Closed Peter230655 closed 2 months ago
I just ran this code and the bounds seem to be respected:
Bounds for strength are within 0 to infinity and bounds for q0 are +/- pi.
..but here the bounds do not seem to be observed?
I just ran this code and the bounds seem to be respected:
Did you change anything on the code? (This was my early days of opty, I may have made even more mistakes then)
I must have made a mistake in my plotting routine. When I use prob.plot_trajectories, all works fine. Sorry about this unnecessary issue!
I tried to simulate a simple 2D rocket. opty converged to a local optimum, and all terminal constraints and other errors, as found in the info['g'] dictionary seem to be within numerical accuracy. However, it does not seem to respect the bounds on the control variables, here called strength and q0.
No idea what I did wrong.
Below is the code.
Any help is greatly appreciated!