OpenSim Moco  0.4.0
List of all members
OpenSim::MocoInitialBounds Class Reference

Description

Used for specifying the bounds on a variable at the start of a phase.

Examples:
exampleMocoCustomEffortGoal.cpp, exampleSlidingMass.cpp, and exampleSlidingMassAdvanced.cpp.
Inheritance diagram for OpenSim::MocoInitialBounds:
OpenSim::MocoBounds

#include <Moco/Moco/MocoBounds.h>

Additional Inherited Members

- Public Member Functions inherited from OpenSim::MocoBounds
 MocoBounds ()
 The bounds are unset (NaN).
 
 MocoBounds (double value)
 The lower and upper bound are equal (the variable is constrained to this single value). More...
 
 MocoBounds (double lower, double upper)
 The variable is constrained to be within [lower, upper].
 
bool isSet () const
 True if the lower and upper bounds are both not NaN.
 
bool isEquality () const
 True if the lower and upper bounds are the same, resulting in an equality constraint. More...
 
bool isWithinBounds (const double &value) const
 Returns true if the provided value is within these bounds.
 
double getLower () const
 
double getUpper () const
 
Array< double > getAsArray () const
 The returned array has either 0, 1, or 2 elements. More...
 
void printDescription (std::ostream &stream) const
 
- Static Public Member Functions inherited from OpenSim::MocoBounds
static MocoBounds unconstrained ()
 Create bounds that are (-inf, inf), so the variable is unconstrained.
 
- Protected Member Functions inherited from OpenSim::MocoBounds
 MocoBounds (const Property< double > &p)
 Used internally to create Bounds from a list property. More...
 
 OpenSim_DECLARE_LIST_PROPERTY_ATMOST (bounds, double, 2, "1 value: required value. " "2 values: lower, upper bounds on value.")
 
- Protected Attributes inherited from OpenSim::MocoBounds
friend MocoPhase
 
friend MocoVariableInfo
 
friend MocoParameter
 

The documentation for this class was generated from the following file: