OpenSim Moco
0.1.0-preprint
Solve optimal control problems with OpenSim models
|
Bounds on continuous variables (states, controls, multipliers, etc).
For states, the name should correspond to a path of a state variable in the model. For controls, the name should correspond to a path of an actuator in the model, or, for controls associated with actuators that have more than one control, the path of an actuator in the model appended by the control index (e.g. "/actuator_0").
#include <Moco/Moco/MocoVariableInfo.h>
Public Member Functions | |
MocoVariableInfo (const std::string &name, const MocoBounds &, const MocoInitialBounds &, const MocoFinalBounds &) | |
MocoBounds | getBounds () const |
MocoInitialBounds | getInitialBounds () const |
MocoFinalBounds | getFinalBounds () const |
void | setBounds (const MocoBounds &bounds) |
void | setInitialBounds (const MocoInitialBounds &bounds) |
void | setFinalBounds (const MocoFinalBounds &bounds) |
void | validate () const |
Throws an exception if initial and final bounds are not within bounds. | |
void | printDescription (std::ostream &stream=std::cout) const |
Print the bounds on this variable. | |
|
inline |
Note: the return value is constructed fresh on every call from the internal property. Avoid repeated calls to this function.
|
inline |
Note: the return value is constructed fresh on every call from the internal property. Avoid repeated calls to this function.
|
inline |
Note: the return value is constructed fresh on every call from the internal property. Avoid repeated calls to this function.