- 3.0.2 optimal control module.
|
This class implements the cost function and its gradient. More...
Public Member Functions | |
EIGEN_MAKE_ALIGNED_OPERATOR_NEW | ExampleCostEvaluator (std::shared_ptr< tpl::OptVector< SCALAR >> optVector) |
~ExampleCostEvaluator () override=default | |
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... | |
void | getSparsityPatternHessian (Eigen::VectorXi &iRow, Eigen::VectorXi &jCol) override |
void | sparseHessianValues (const Eigen::VectorXd &optVec, const Eigen::VectorXd &lambda, Eigen::VectorXd &hes) override |
Evaluates the cost hessian. More... | |
ExampleCostEvaluator (std::shared_ptr< tpl::OptVector< SCALAR >> optVector) | |
number non-zero elements in the hessian (triangular view) More... | |
~ExampleCostEvaluator () override=default | |
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... | |
void | getSparsityPatternHessian (Eigen::VectorXi &iRow, Eigen::VectorXi &jCol) override |
void | sparseHessianValues (const Eigen::VectorXd &optVec, const Eigen::VectorXd &lambda, Eigen::VectorXd &hes) override |
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... | |
Static Public Attributes | |
static EIGEN_MAKE_ALIGNED_OPERATOR_NEW const size_t | nnz_hessian = 2 |
This class implements the cost function and its gradient.
SCALAR | Scalar type |
|
inline |
|
overridedefault |
|
inline |
number non-zero elements in the hessian (triangular view)
|
overridedefault |
|
inlineoverridevirtual |
Evaluates the cost function.
Implements ct::optcon::tpl::DiscreteCostEvaluatorBase< SCALAR >.
|
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 >.
|
inlineoverridevirtual |
Reimplemented from ct::optcon::tpl::DiscreteCostEvaluatorBase< SCALAR >.
|
inlineoverridevirtual |
Evaluates the cost hessian.
[in] | optVec | The optimization variables |
[in] | lambda | multipliers for hessian matrix |
[out] | hes | The cost hessian matrix coeff |
Reimplemented from ct::optcon::tpl::DiscreteCostEvaluatorBase< SCALAR >.
|
inlineoverridevirtual |
Evaluates the cost function.
Implements ct::optcon::tpl::DiscreteCostEvaluatorBase< SCALAR >.
|
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 >.
|
inlineoverridevirtual |
Reimplemented from ct::optcon::tpl::DiscreteCostEvaluatorBase< SCALAR >.
|
inlineoverridevirtual |
Reimplemented from ct::optcon::tpl::DiscreteCostEvaluatorBase< SCALAR >.
|
static |