csu-hmc / opty

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

Need a simple way to set the bounds for the free variables #15

Closed moorepants closed 10 years ago

moorepants commented 10 years ago

Should be something like:

Problem(..., state_bounds={x: (0.0, 4.5), v: (-1.0, 5,0)}, ...)

moorepants commented 10 years ago

Setting the bounds for the free variables is implemented. Fixed by ec7eb3720dcf

See this line for the API:

https://github.com/csu-hmc/inverted-pendulum-sys-id/blob/master/test_direct_collocation.py#L26

FYI @tvdbogert