Can I solve equations backward in time? (Pontryagin maximum principle optimal control problem)
Show older comments
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
muhammad naeem
on 22 Jul 2018
Hi have you solved the problem
Praveen Kumar
on 6 Nov 2019
Hi,
Have you solved the problem? I am also working on similar problem but with less states, but I have succussefully solved backward in ODE solver. The code is less efficient and its difficult to find initial step, control and costate.
Gamze Balkan
on 17 Nov 2019
Hi, I have simplify the system and recuded it to 3 states, but analytical solution was still impossible to obtain, and I have put the problem aside for a while unfortunately. How many states do you have? Do you suggest ODE solver rather than Simulink?
Praveen Kumar
on 19 Nov 2019
Only one state. Even though ODE is working, its very slow and results seems inaccurate sometimes. There is no way to prove the results are optimal.
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) ?
Praveen Kumar
on 25 Jul 2020
Hi Siddhartha,
Please check the following methods (codes) to solve such problems. I have used "eg2OC_descent" method for my problem.
Accepted Answer
More Answers (0)
Categories
Find more on Optimization Toolbox 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!