How to minimize an Hamiltonian to find the optimal control?

I need to solve an optimal control problem using Pontryagin's Minimum Principle.

To find the u* I should minimize the Hamiltonian function. But the Hamiltonian's minimization required to know the optimal state x* and the optimal co-state p*, that

I can know only solving the state and co-state ODEs x*_dot=f(x*,u*) and p*_dot=-Hx.

So, I need to know the optimal state and costate to minimize the Hamiltonian and find the optimal input u*, but I need to know the optimal input u* to solve the ODEs and finding the optimal state x* and costate p*.

How can I get out of this loop? Or is this reasoning wrong?

More Carmine Melillo's questions See All
Similar questions and discussions