![]() |
- 3.0.2 optimal control module.
|
Performs the full cost integration over the shots. More...
#include <CostEvaluatorFull.h>
Public Types | |
| typedef DIMENSIONS::state_vector_t | state_vector_t |
| typedef DIMENSIONS::control_vector_t | control_vector_t |
| typedef DIMENSIONS::state_vector_array_t | state_vector_array_t |
| typedef DIMENSIONS::control_vector_array_t | control_vector_array_t |
| typedef DIMENSIONS::time_array_t | time_array_t |
Public Member Functions | |
| CostEvaluatorFull ()=delete | |
| CostEvaluatorFull (std::shared_ptr< ct::optcon::CostFunctionQuadratic< STATE_DIM, CONTROL_DIM, SCALAR >> costFct, std::shared_ptr< OptVectorDms< STATE_DIM, CONTROL_DIM, SCALAR >> w, std::shared_ptr< SplinerBase< control_vector_t, SCALAR >> controlSpliner, std::vector< std::shared_ptr< ShotContainer< STATE_DIM, CONTROL_DIM, SCALAR >>> shotInt, DmsSettings settings) | |
| Custom constructor. More... | |
| ~CostEvaluatorFull () override=default | |
| The destructor. More... | |
| SCALAR | eval () override |
| Evaluates the cost function. More... | |
| void | evalGradient (size_t grad_length, Eigen::Map< Eigen::Matrix< SCALAR, Eigen::Dynamic, 1 >> &grad) override |
| Evaluates the cost gradient. More... | |
Public Member Functions inherited from ct::optcon::tpl::DiscreteCostEvaluatorBase< SCALAR > | |
| EIGEN_MAKE_ALIGNED_OPERATOR_NEW | DiscreteCostEvaluatorBase ()=default |
| Default constructor. More... | |
| virtual | ~DiscreteCostEvaluatorBase ()=default |
| Destructor. More... | |
| virtual void | getSparsityPatternHessian (Eigen::VectorXi &iRow, Eigen::VectorXi &jCol) |
| virtual void | sparseHessianValues (const Eigen::VectorXd &optVec, const Eigen::VectorXd &lambda, Eigen::VectorXd &hes) |
| Evaluates the cost hessian. More... | |
Public Attributes | |
| EIGEN_MAKE_ALIGNED_OPERATOR_NEW typedef DmsDimensions< STATE_DIM, CONTROL_DIM, SCALAR > | DIMENSIONS |
Performs the full cost integration over the shots.
| STATE_DIM | The state dimension |
| CONTROL_DIM | The input dimension |
| typedef DIMENSIONS::state_vector_t ct::optcon::CostEvaluatorFull< STATE_DIM, CONTROL_DIM, SCALAR >::state_vector_t |
| typedef DIMENSIONS::control_vector_t ct::optcon::CostEvaluatorFull< STATE_DIM, CONTROL_DIM, SCALAR >::control_vector_t |
| typedef DIMENSIONS::state_vector_array_t ct::optcon::CostEvaluatorFull< STATE_DIM, CONTROL_DIM, SCALAR >::state_vector_array_t |
| typedef DIMENSIONS::control_vector_array_t ct::optcon::CostEvaluatorFull< STATE_DIM, CONTROL_DIM, SCALAR >::control_vector_array_t |
| typedef DIMENSIONS::time_array_t ct::optcon::CostEvaluatorFull< STATE_DIM, CONTROL_DIM, SCALAR >::time_array_t |
|
delete |
|
inline |
Custom constructor.
| [in] | costFct | The cost function |
| [in] | w | The optimization vector |
| [in] | controlSpliner | The control spliner |
| [in] | shotInt | The shot number |
| [in] | settings | The dms settings |
References ct::optcon::CostEvaluatorFull< STATE_DIM, CONTROL_DIM, SCALAR >::~CostEvaluatorFull().
|
overridedefault |
The destructor.
Referenced by ct::optcon::CostEvaluatorFull< STATE_DIM, CONTROL_DIM, SCALAR >::CostEvaluatorFull().
|
inlineoverridevirtual |
Evaluates the cost function.
Implements ct::optcon::tpl::DiscreteCostEvaluatorBase< SCALAR >.
References ct::optcon::DmsSettings::N_.
|
inlineoverridevirtual |
Evaluates the cost gradient.
| [in] | grad_length | The size of the gradient vector |
| [out] | grad | The values of the gradient |
Implements ct::optcon::tpl::DiscreteCostEvaluatorBase< SCALAR >.
References ct::optcon::DmsSettings::N_, ct::optcon::DmsSettings::PIECEWISE_LINEAR, ct::optcon::DmsSettings::splineType_, and ct::optcon::DmsSettings::ZERO_ORDER_HOLD.
| EIGEN_MAKE_ALIGNED_OPERATOR_NEW typedef DmsDimensions<STATE_DIM, CONTROL_DIM, SCALAR> ct::optcon::CostEvaluatorFull< STATE_DIM, CONTROL_DIM, SCALAR >::DIMENSIONS |