csu-hmc / opty

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

Instance constraints should also be able to contain non state functions #98

Open tjstienstra opened 1 year ago

tjstienstra commented 1 year ago

determine_free_index in _find_closest_free_index assumes that the free variables that are time varying used in the instance constraints are by definition states. This may not actually be the case. A simple example is a torque that should be periodic or something.