3#include <proxsuite-nlp/manifold-base.hpp>
8template <
typename Scalar>
23 void evaluate(
const ConstVectorRef &x,
const ConstVectorRef &u,
42 shared_ptr<CostData>
c1, c2;
48 c1 = obj.
cost_->createData();
49 c2 = obj.
cost_->createData();
53#ifdef ALIGATOR_ENABLE_TEMPLATE_INSTANTIATION
Stage costs for control problems.
xyz::polymorphic< Manifold > space
State dimension.
Data struct for CostAbstractTpl.
shared_ptr< CostData > c1
Data(CostFiniteDifferenceHelper const &obj)
ManifoldAbstractTpl< Scalar > Manifold
CostFiniteDifferenceHelper(xyz::polymorphic< CostBase > cost, const Scalar fd_eps)
void computeGradients(const ConstVectorRef &x, const ConstVectorRef &u, CostData &data_) const override
Compute the cost gradients .
xyz::polymorphic< CostBase > cost_
ALIGATOR_DYNAMIC_TYPEDEFS(Scalar)
void evaluate(const ConstVectorRef &x, const ConstVectorRef &u, CostData &data_) const override
Evaluate the cost function.
void computeHessians(const ConstVectorRef &, const ConstVectorRef &, CostData &) const override
Compute the cost Hessians .
auto createData() const -> shared_ptr< CostData > override