- 3.0.2 optimal control module.
|
Defines the DMS settings. More...
#include <DmsSettings.h>
Public Types | |
enum | SplineType { ZERO_ORDER_HOLD = 0, PIECEWISE_LINEAR = 1, num_types_splining } |
enum | ObjectiveType { KEEP_TIME_AND_GRID = 0, OPTIMIZE_GRID = 1, num_types_objectives } |
enum | IntegrationType { EULER = 0, RK4 = 1, RK5 = 2, num_types_integration } |
enum | CostEvaluationType { SIMPLE = 0, FULL = 1, num_types_costevaluation } |
typedef enum ct::optcon::DmsSettings::SplineType | SplineType_t |
typedef enum ct::optcon::DmsSettings::ObjectiveType | ObjectiveType_t |
typedef enum ct::optcon::DmsSettings::IntegrationType | IntegrationType_t |
typedef enum ct::optcon::DmsSettings::CostEvaluationType | CostEvaluationType_t |
Public Member Functions | |
DmsSettings () | |
Default constructor. Sets some default DMS settings. Note that the optimal settings are strongly dependent on the problem and it is highly recommended to use custom settings. More... | |
void | print () |
bool | parametersOk () const |
void | load (const std::string &filename, bool verbose=true, const std::string &ns="dms") |
Public Attributes | |
size_t | N_ |
double | T_ |
size_t | nThreads_ |
SplineType_t | splineType_ |
CostEvaluationType_t | costEvaluationType_ |
ObjectiveType_t | objectiveType_ |
double | h_min_ |
IntegrationType_t | integrationType_ |
double | dt_sim_ |
double | absErrTol_ |
double | relErrTol_ |
NlpSolverSettings | solverSettings_ |
ct::core::DerivativesCppadSettings | cppadSettings_ |
Defines the DMS settings.
typedef enum ct::optcon::DmsSettings::CostEvaluationType ct::optcon::DmsSettings::CostEvaluationType_t |
Enumerator | |
---|---|
ZERO_ORDER_HOLD | |
PIECEWISE_LINEAR | |
num_types_splining |
Enumerator | |
---|---|
KEEP_TIME_AND_GRID | |
OPTIMIZE_GRID | |
num_types_objectives |
Enumerator | |
---|---|
SIMPLE | |
FULL | |
num_types_costevaluation |
|
inline |
Default constructor. Sets some default DMS settings. Note that the optimal settings are strongly dependent on the problem and it is highly recommended to use custom settings.
|
inline |
References costEvaluationType_, integrationType_, objectiveType_, ct::optcon::NlpSolverSettings::print(), and splineType_.
Referenced by ct::optcon::example::OscillatorDms::initialize(), load(), main(), and ct::optcon::example::OscDms::OscDms().
|
inline |
|
inline |
size_t ct::optcon::DmsSettings::N_ |
Referenced by ct::optcon::OptVectorDms< STATE_DIM, CONTROL_DIM, SCALAR >::changeDesiredState(), ct::optcon::example::OscDms::compareSnoptSolutions(), ct::optcon::CostEvaluatorSimple< STATE_DIM, CONTROL_DIM, SCALAR >::CostEvaluatorSimple(), ct::optcon::DmsProblem< STATE_DIM, CONTROL_DIM, SCALAR >::DmsProblem(), ct::optcon::CostEvaluatorSimple< STATE_DIM, CONTROL_DIM, SCALAR >::eval(), ct::optcon::CostEvaluatorFull< STATE_DIM, CONTROL_DIM, SCALAR >::eval(), ct::optcon::CostEvaluatorSimple< STATE_DIM, CONTROL_DIM, SCALAR >::evalGradient(), ct::optcon::CostEvaluatorFull< STATE_DIM, CONTROL_DIM, SCALAR >::evalGradient(), ct::optcon::example::OscillatorDms::getSolution(), main(), ct::optcon::example::OscDms::OscDms(), ct::optcon::ShotContainer< STATE_DIM, CONTROL_DIM, SCALAR >::ShotContainer(), and ct::optcon::example::TEST().
double ct::optcon::DmsSettings::T_ |
Referenced by ct::optcon::DmsProblem< STATE_DIM, CONTROL_DIM, SCALAR >::DmsProblem(), ct::optcon::example::OscDms::getIpoptSolution(), ct::optcon::example::OscDms::getSnoptSolution(), ct::optcon::example::OscillatorDms::initialize(), main(), ct::optcon::example::OscDms::OscDms(), and ct::optcon::example::TEST().
size_t ct::optcon::DmsSettings::nThreads_ |
Referenced by main(), ct::optcon::example::OscDms::OscDms(), and ct::optcon::example::TEST().
SplineType_t ct::optcon::DmsSettings::splineType_ |
Referenced by ct::optcon::ContinuityConstraint< STATE_DIM, CONTROL_DIM, SCALAR >::ContinuityConstraint(), ct::optcon::DmsProblem< STATE_DIM, CONTROL_DIM, SCALAR >::DmsProblem(), ct::optcon::CostEvaluatorSimple< STATE_DIM, CONTROL_DIM, SCALAR >::evalGradient(), ct::optcon::CostEvaluatorFull< STATE_DIM, CONTROL_DIM, SCALAR >::evalGradient(), ct::optcon::ContinuityConstraint< STATE_DIM, CONTROL_DIM, SCALAR >::evalSparseJacobian(), ct::optcon::ContinuityConstraint< STATE_DIM, CONTROL_DIM, SCALAR >::genSparsityPattern(), ct::optcon::ContinuityConstraint< STATE_DIM, CONTROL_DIM, SCALAR >::getNumNonZerosJacobian(), ct::optcon::ShotContainer< STATE_DIM, CONTROL_DIM, SCALAR >::integrateCostSensitivities(), ct::optcon::ShotContainer< STATE_DIM, CONTROL_DIM, SCALAR >::integrateSensitivities(), main(), ct::optcon::example::OscDms::OscDms(), print(), and ct::optcon::example::TEST().
CostEvaluationType_t ct::optcon::DmsSettings::costEvaluationType_ |
ObjectiveType_t ct::optcon::DmsSettings::objectiveType_ |
Referenced by ct::optcon::DmsProblem< STATE_DIM, CONTROL_DIM, SCALAR >::DmsProblem(), main(), ct::optcon::example::OscDms::OscDms(), print(), and ct::optcon::example::TEST().
double ct::optcon::DmsSettings::h_min_ |
Referenced by main(), ct::optcon::example::OscDms::OscDms(), and ct::optcon::example::TEST().
IntegrationType_t ct::optcon::DmsSettings::integrationType_ |
Referenced by ct::optcon::RKnDerivatives< STATE_DIM, CONTROL_DIM >::compute_dXdQi(), ct::optcon::RKnDerivatives< STATE_DIM, CONTROL_DIM >::compute_dXdQip1(), ct::optcon::RKnDerivatives< STATE_DIM, CONTROL_DIM >::compute_dXdSi(), main(), ct::optcon::example::OscDms::OscDms(), print(), ct::optcon::ShotContainer< STATE_DIM, CONTROL_DIM, SCALAR >::ShotContainer(), and ct::optcon::example::TEST().
double ct::optcon::DmsSettings::dt_sim_ |
Referenced by ct::optcon::DmsProblem< STATE_DIM, CONTROL_DIM, SCALAR >::DmsProblem(), ct::optcon::ShotContainer< STATE_DIM, CONTROL_DIM, SCALAR >::integrateCost(), ct::optcon::ShotContainer< STATE_DIM, CONTROL_DIM, SCALAR >::integrateCostSensitivities(), ct::optcon::ShotContainer< STATE_DIM, CONTROL_DIM, SCALAR >::integrateSensitivities(), ct::optcon::ShotContainer< STATE_DIM, CONTROL_DIM, SCALAR >::integrateShot(), main(), ct::optcon::example::OscDms::OscDms(), and ct::optcon::example::TEST().
double ct::optcon::DmsSettings::absErrTol_ |
Referenced by main(), ct::optcon::example::OscDms::OscDms(), and ct::optcon::example::TEST().
double ct::optcon::DmsSettings::relErrTol_ |
Referenced by main(), ct::optcon::example::OscDms::OscDms(), and ct::optcon::example::TEST().
NlpSolverSettings ct::optcon::DmsSettings::solverSettings_ |
Referenced by ct::optcon::example::OscDms::getIpoptSolution(), ct::optcon::example::OscDms::getSnoptSolution(), main(), and ct::optcon::example::TEST().
ct::core::DerivativesCppadSettings ct::optcon::DmsSettings::cppadSettings_ |