OpenSim::StaticOptimization Class Reference
This class implements static optimization to compute Muscle Forces and activations.
More...
#include <StaticOptimization.h>
List of all members.
Detailed Description
This class implements static optimization to compute Muscle Forces and activations.
- Author:
- Jeff Reinbolt
Constructor & Destructor Documentation
StaticOptimization::StaticOptimization |
( |
Model * |
aModel = 0 |
) |
|
StaticOptimization::~StaticOptimization |
( |
|
) |
[virtual] |
Member Function Documentation
int StaticOptimization::begin |
( |
const SimTK::State & |
s |
) |
[virtual] |
This method is called at the beginning of an analysis so that any necessary initializations may be performed.
This method is meant to be called at the begining of an integration
- Parameters:
-
- Returns:
- -1 on error, 0 otherwise.
Reimplemented from OpenSim::Analysis.
Object * StaticOptimization::copy |
( |
|
) |
const [virtual] |
int StaticOptimization::end |
( |
const SimTK::State & |
s |
) |
[virtual] |
This method is called at the end of an analysis so that any necessary finalizations may be performed.
- Parameters:
-
- Returns:
- -1 on error, 0 otherwise.
Reimplemented from OpenSim::Analysis.
double OpenSim::StaticOptimization::getActivationExponent |
( |
|
) |
const [inline] |
Storage * StaticOptimization::getActivationStorage |
( |
|
) |
|
Get the activation storage.
- Returns:
- Activation storage.
Storage * StaticOptimization::getForceStorage |
( |
|
) |
|
Get the force storage.
- Returns:
- Force storage.
bool OpenSim::StaticOptimization::getUseModelForceSet |
( |
|
) |
[inline] |
bool OpenSim::StaticOptimization::getUseMusclePhysiology |
( |
|
) |
const [inline] |
Assign this object to the values of another.
- Returns:
- Reference to this object.
Reimplemented from OpenSim::Analysis.
virtual int OpenSim::StaticOptimization::printResults |
( |
const std::string & |
aBaseName, |
|
|
const std::string & |
aDir = "" , |
|
|
double |
aDT = -1.0 , |
|
|
const std::string & |
aExtension = ".sto" | |
|
) |
| | [virtual] |
Print the results of the analysis.
- Parameters:
-
| aFileName | File to which to print the data. |
| aDT | Time interval between results (linear interpolation is used). If not included as an argument or negative, all time steps are printed without interpolation. |
- Returns:
- -1 on error, 0 otherwise.
Reimplemented from OpenSim::Analysis.
int StaticOptimization::record |
( |
const SimTK::State & |
s |
) |
[protected, virtual] |
void OpenSim::StaticOptimization::setActivationExponent |
( |
const double |
aExponent |
) |
[inline] |
void StaticOptimization::setModel |
( |
Model & |
aModel |
) |
[virtual] |
Set the model for which the static optimization is to be computed.
- Parameters:
-
Reimplemented from OpenSim::Analysis.
void StaticOptimization::setStorageCapacityIncrements |
( |
int |
aIncrement |
) |
|
Set the capacity increments of all storage instances.
- Parameters:
-
| aIncrement | Increment by which storage capacities will be increased when storage capacities run out. |
void OpenSim::StaticOptimization::setUseModelForceSet |
( |
bool |
aUseModelActuatorSet |
) |
[inline] |
void OpenSim::StaticOptimization::setUseMusclePhysiology |
( |
const bool |
useIt |
) |
[inline] |
int StaticOptimization::step |
( |
const SimTK::State & |
s |
) |
[virtual] |
This method is called to perform the analysis.
It can be called during the execution of a forward integrations or after the integration by feeding it the necessary data.
This method should be overriden in derived classes. It is included here so that the derived class will not have to implement it if it is not necessary.
- Parameters:
-
- Returns:
- -1 on error, 0 otherwise.
Reimplemented from OpenSim::Analysis.
Member Data Documentation
Use force set from model.
The documentation for this class was generated from the following files:
- OpenSim/Analyses/StaticOptimization.h
- OpenSim/Analyses/StaticOptimization.cpp