When we get the init after max_iter=0, the value of the objective for optimal control problems with Lagrange cost is the default value (0.1), not the true objective value. This comes from the fact the Lagrange part is replaced in CTDirect by a Mayer cost with an initial guess fixed to 0.1.
See: https://github.com/control-toolbox/OptimalControlProblems.jl/actions/runs/17193430974/job/48772177053#step:4:1441
@PierreMartinon
When we get the init after
max_iter=0, the value of the objective for optimal control problems with Lagrange cost is the default value (0.1), not the true objective value. This comes from the fact the Lagrange part is replaced in CTDirect by a Mayer cost with an initial guess fixed to 0.1.See: https://github.com/control-toolbox/OptimalControlProblems.jl/actions/runs/17193430974/job/48772177053#step:4:1441
@PierreMartinon