Skip to content

Optimal control of surge and heading #362

Answered by pulsipher
Olarm asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @Olarm, welcome to the forum!

Before using the "optimal values" it is important to check the termination status to make sure the solver achieved a a feasible optimal solution. In this case, I get:

julia> termination_status(m)
LOCALLY_INFEASIBLE::TerminationStatusCode = 5

so the solver was unable to find a feasible solution which explains why the plot doesn't make sense. This can be because either the model is in fact infeasible (i.e., the ship is not capable of hitting the desired waypoints) or a better initial guess is needed (a feasible guess is critical for an interior point solver like Ipopt).

Initial guesses are very helpful for both your control and state variables. You will want…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Olarm
Comment options

Answer selected by Olarm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants