- 3.0.2 optimal control module.
ct::optcon::DmsSettings Class Reference

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_
 

Detailed Description

Defines the DMS settings.

Examples:
DMS.cpp.

Member Typedef Documentation

◆ SplineType_t

◆ ObjectiveType_t

◆ IntegrationType_t

◆ CostEvaluationType_t

Member Enumeration Documentation

◆ SplineType

Enumerator
ZERO_ORDER_HOLD 
PIECEWISE_LINEAR 
num_types_splining 
Examples:
oscDMSTestAllVariants.cpp.

◆ ObjectiveType

Enumerator
KEEP_TIME_AND_GRID 
OPTIMIZE_GRID 
num_types_objectives 
Examples:
oscDMSTestAllVariants.cpp.

◆ IntegrationType

Enumerator
EULER 
RK4 
RK5 
num_types_integration 

◆ CostEvaluationType

Enumerator
SIMPLE 
FULL 
num_types_costevaluation 
Examples:
oscDMSTestAllVariants.cpp.

Constructor & Destructor Documentation

◆ DmsSettings()

ct::optcon::DmsSettings::DmsSettings ( )
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.

Member Function Documentation

◆ print()

◆ parametersOk()

bool ct::optcon::DmsSettings::parametersOk ( ) const
inline

◆ load()

Member Data Documentation

◆ N_

◆ T_

◆ nThreads_

size_t ct::optcon::DmsSettings::nThreads_

◆ splineType_

◆ costEvaluationType_

◆ objectiveType_

◆ h_min_

double ct::optcon::DmsSettings::h_min_

◆ integrationType_

◆ dt_sim_

◆ absErrTol_

double ct::optcon::DmsSettings::absErrTol_

◆ relErrTol_

double ct::optcon::DmsSettings::relErrTol_

◆ solverSettings_

◆ cppadSettings_

ct::core::DerivativesCppadSettings ct::optcon::DmsSettings::cppadSettings_

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