Can I solve equations backward in time? (Pontryagin maximum principle optimal control problem)

25 views (last 30 days)
Hello. I am trying to solve a problem with 7 states in the time interval (0,T), using Pontryagin Maximum Principle. I already have state, costate and optimal input equations, but it is quite hard to obtain its analytical equations since its nonlinear differential equation set with 15 variables. So I have modeled in Simulink. But the problem is, adjoint equations' solving method is, considering the problem backwards in time: starting from time T, up to 0. And I dont know a way to implement it on Matlab (Simulink, or in a toolbox). If anybody in the know could help me with the problem, I would be grateful.
  6 Comments
Siddhartha Ganguly
Siddhartha Ganguly on 10 Jun 2020
Edited: Siddhartha Ganguly on 10 Jun 2020
Hi @Praveen Kumar can you please elaborate how did you solved it? it is possible to share your code (work) ?

Sign in to comment.

Accepted Answer

Torsten
Torsten on 6 Apr 2018
All MATLAB ODE-solvers can integrate backward in time. Just specify "tspan=[T 0]".
Best wishes
Torsten.
  2 Comments
Gamze Balkan
Gamze Balkan on 15 Apr 2018
Thank you for the answer! But I think my problem cannot be solved with ode since it has more than one independent variable in the dif. equation, what do you think? Even so, where can I make these setting and run it in Simulink, not in an mfile?

Sign in to comment.

More Answers (0)

Categories

Find more on Simulink Design Optimization in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!