- 3.0.2 optimal control module.
|
Implements an abstract base class which evaluates the cost function and its gradient in the NLP. More...
#include <DiscreteCostEvaluatorBase.h>
Public Member Functions | |
EIGEN_MAKE_ALIGNED_OPERATOR_NEW | DiscreteCostEvaluatorBase ()=default |
Default constructor. More... | |
virtual | ~DiscreteCostEvaluatorBase ()=default |
Destructor. More... | |
virtual SCALAR | eval ()=0 |
Evaluates the cost function. More... | |
virtual void | evalGradient (size_t grad_length, Eigen::Map< Eigen::Matrix< SCALAR, Eigen::Dynamic, 1 >> &grad)=0 |
Evaluates the cost gradient. 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... | |
Implements an abstract base class which evaluates the cost function and its gradient in the NLP.
|
default |
Default constructor.
|
virtualdefault |
Destructor.
|
pure virtual |
Evaluates the cost function.
Implemented in ExampleCostEvaluator< SCALAR >, ExampleCostEvaluator< SCALAR >, ct::optcon::CostEvaluatorFull< STATE_DIM, CONTROL_DIM, SCALAR >, and ct::optcon::CostEvaluatorSimple< STATE_DIM, CONTROL_DIM, SCALAR >.
|
pure virtual |
Evaluates the cost gradient.
[in] | grad_length | The size of the gradient vector |
[out] | grad | The values of the gradient |
Implemented in ExampleCostEvaluator< SCALAR >, ExampleCostEvaluator< SCALAR >, ct::optcon::CostEvaluatorFull< STATE_DIM, CONTROL_DIM, SCALAR >, and ct::optcon::CostEvaluatorSimple< STATE_DIM, CONTROL_DIM, SCALAR >.
|
inlinevirtual |
Reimplemented in ExampleCostEvaluator< SCALAR >, and ExampleCostEvaluator< SCALAR >.
|
inlinevirtual |
Evaluates the cost hessian.
[in] | optVec | The optimization variables |
[in] | lambda | multipliers for hessian matrix |
[out] | hes | The cost hessian matrix coeff |
Reimplemented in ExampleCostEvaluator< SCALAR >, and ExampleCostEvaluator< SCALAR >.