csu-hmc / opty

A library for using direct collocation in the optimization of dynamic systems.
http://opty.readthedocs.io
Other
92 stars 20 forks source link

Specified inputs are not in an expected order #111

Closed moorepants closed 2 months ago

moorepants commented 11 months ago

I think this TODO may relate: https://github.com/csu-hmc/opty/blob/master/opty/tests/test_direct_collocation.py#L180

Both Timo and I saw this when we started solving the bicycle problem with multiple inputs.

moorepants commented 11 months ago

See: https://github.com/brocksam/muscle-driven-bicycle-paper/pull/12#issuecomment-1704653531

moorepants commented 2 months ago

See: brocksam/muscle-driven-bicycle-paper#12 (comment)

was not due to the Problem.plot_trajectories() method being incorrect but due to not using the internal order of the inputs that opty creates. I fixed that in the bicycle muscle paper.

Peter230655 commented 2 months ago

I had a problem with plot_trajectories, see discussion #186. I had 3 specified symbols (a torque acting on a ball) and one known trajectory (the time appearing explicitly in the EOMs). What do I need to do? Thanks!