12 proxsuite::nlp::python::PolymorphicWrapper<PyCostFunction,
13 context::CostAbstract> {
20 void evaluate(
const ConstVectorRef &x,
const ConstVectorRef &u,
49struct value_holder<
aligator::python::PyCostFunction>
50 : proxsuite::nlp::python::OwningNonOwningHolder<
51 aligator::python::PyCostFunction> {
52 using OwningNonOwningHolder::OwningNonOwningHolder;
#define ALIGATOR_PYTHON_OVERRIDE(ret_type, cname, fname,...)
Define the body of a virtual function override. This is meant to reduce boilerplate code when exposin...
#define ALIGATOR_PYTHON_OVERRIDE_PURE(ret_type, pyname,...)
Define the body of a virtual function override. This is meant to reduce boilerplate code when exposin...
CostAbstractTpl< Scalar > CostAbstract
Stage costs for control problems.
CostAbstractTpl(U &&space, const int nu)
virtual shared_ptr< CostData > createData() const
Data struct for CostAbstractTpl.
Wrapper for the CostDataAbstractTpl class and its children.
shared_ptr< CostData > createData() const override
shared_ptr< CostData > default_createData() const
void computeGradients(const ConstVectorRef &x, const ConstVectorRef &u, CostData &data) const override
Compute the cost gradients .
void evaluate(const ConstVectorRef &x, const ConstVectorRef &u, CostData &data) const override
Evaluate the cost function.
ALIGATOR_DYNAMIC_TYPEDEFS(Scalar)
void computeHessians(const ConstVectorRef &x, const ConstVectorRef &u, CostData &data) const override
Compute the cost Hessians .