I am implementing Bryson-Denham problem. The objective is:
$J=\frac{1}{2}\int_{0}^{1}u^2\left(t\right)dt$
and in the doc of Dymos, all explanation and examples state objective value as a scalar at loc=initial or loc=final. I could not find any example that use integral of some quantity over time as an objective function. Is this possible? How can I implement this?
FYI, Bryson-Denham problem is well-explained in this page: https://www.gpops2.com/Examples/Bryson-Denham.html
Dymos will integrate any state you give it. In this case, you need to add a state for J and then also compute a state rate for it --- J_dot.