API
4.2
For MATLAB, Python, Java, and C++ users
|
This class provides an interface specification for optimizing redundant systems. More...
Public Member Functions | |
OptimizationTarget (int aNX=0) | |
void | setNumParameters (const int aNX) |
void | setDX (double aVal) |
void | setDX (int aIndex, double aVal) |
double | getDX (int aIndex) |
double * | getDXArray () |
void | validatePerturbationSize (double &aSize) |
virtual bool | prepareToOptimize (SimTK::State &s, double *x) |
virtual void | printPerformance (double *x) |
Static Public Member Functions | |
static int | CentralDifferencesConstraint (const OptimizationTarget *aTarget, double *dx, const SimTK::Vector &x, SimTK::Matrix &jacobian) |
static int | CentralDifferences (const OptimizationTarget *aTarget, double *dx, const SimTK::Vector &x, SimTK::Vector &dpdx) |
static int | ForwardDifferences (const OptimizationTarget *aTarget, double *dx, const SimTK::Vector &x, SimTK::Vector &dpdx) |
This class provides an interface specification for optimizing redundant systems.
If a class represents a redundant system for which one would like to find a set of optimal controls, the class should inherit from this class and implement the virtual functions defined here.
OpenSim::OptimizationTarget::OptimizationTarget | ( | int | aNX = 0 | ) |
|
static |
|
static |
|
static |
double OpenSim::OptimizationTarget::getDX | ( | int | aIndex | ) |
double* OpenSim::OptimizationTarget::getDXArray | ( | ) |
|
inlinevirtual |
Reimplemented in OpenSim::ActuatorForceTargetFast, and OpenSim::ActuatorForceTarget.
|
virtual |
void OpenSim::OptimizationTarget::setDX | ( | double | aVal | ) |
void OpenSim::OptimizationTarget::setDX | ( | int | aIndex, |
double | aVal | ||
) |
void OpenSim::OptimizationTarget::setNumParameters | ( | const int | aNX | ) |
void OpenSim::OptimizationTarget::validatePerturbationSize | ( | double & | aSize | ) |