|
robotoc
robotoc - efficient ROBOT Optimal Control solvers
|
Base class of components of the cost function of the switching time optimization (STO) problem. More...
#include <sto_cost_function_component_base.hpp>


Public Member Functions | |
| STOCostFunctionComponentBase () | |
| Default constructor. More... | |
| virtual | ~STOCostFunctionComponentBase () |
| Destructor. More... | |
| STOCostFunctionComponentBase (const STOCostFunctionComponentBase &)=default | |
| Default copy constructor. More... | |
| STOCostFunctionComponentBase & | operator= (const STOCostFunctionComponentBase &)=default |
| Default copy operator. More... | |
| STOCostFunctionComponentBase (STOCostFunctionComponentBase &&) noexcept=default | |
| Default move constructor. More... | |
| STOCostFunctionComponentBase & | operator= (STOCostFunctionComponentBase &&) noexcept=default |
| Default move assign operator. More... | |
| virtual double | evalCost (const TimeDiscretization &time_discretization) const =0 |
| Computes the cost on the switching times. More... | |
| virtual void | evalCostDerivatives (const TimeDiscretization &time_discretization, Eigen::VectorXd <) const =0 |
| Computes the derivative of the cost on the switching times. More... | |
| virtual void | evalCostHessian (const TimeDiscretization &time_discretization, Eigen::MatrixXd &Qtt) const =0 |
| Computes the twice-time derivative (Hessian) of the cost on the switching times. More... | |
| template<typename Derived > | |
| std::shared_ptr< Derived > | as_shared_ptr () |
| Gets the shared ptr of this object as the specified type. If this fails in dynamic casting, throws an exception. More... | |
Base class of components of the cost function of the switching time optimization (STO) problem.
|
inline |
Default constructor.
|
inlinevirtual |
Destructor.
|
default |
Default copy constructor.
|
defaultnoexcept |
Default move constructor.
|
inline |
Gets the shared ptr of this object as the specified type. If this fails in dynamic casting, throws an exception.
| Derived | The derived type. |
|
pure virtual |
Computes the cost on the switching times.
| [in] | time_discretization | Time discretization of the hybrid optimal control problem. |
|
pure virtual |
Computes the derivative of the cost on the switching times.
| [in] | time_discretization | Time discretization of the hybrid optimal control problem. |
| [in,out] | lt | The derivatives of the Lagrangian w.r.t. the switching times. |
|
pure virtual |
Computes the twice-time derivative (Hessian) of the cost on the switching times.
| [in] | time_discretization | Time discretization of the hybrid optimal control problem. |
| [in,out] | Qtt | The Hessian of the Lagrangian w.r.t. the switching times. |
|
default |
Default copy operator.
|
defaultnoexcept |
Default move assign operator.