13template <
typename _Scalar>
14struct ALIGATOR_DEPRECATED_MESSAGE(
15 "ControlBoxFunction should not be used. Instead, just use the identity "
16 "function and a BoxConstraint.") ControlBoxFunctionTpl
17 : StageFunctionTpl<_Scalar> {
18 using Scalar = _Scalar;
20 using Base = StageFunctionTpl<Scalar>;
21 using Data = StageFunctionDataTpl<Scalar>;
23 VectorXs umin_, umax_;
27 ControlBoxFunctionTpl(
const int ndx,
const VectorXs &umin,
28 const VectorXs &umax);
32 ControlBoxFunctionTpl(
const int ndx,
const int nu,
const Scalar umin,
35 void evaluate(
const ConstVectorRef &,
const ConstVectorRef &u,
36 Data &data)
const override;
43 void computeJacobians(
const ConstVectorRef &,
const ConstVectorRef &,
44 Data &data)
const override;
48 virtual shared_ptr<Data> createData()
const override;
53#include "aligator/modelling/control-box-function.hxx"
Base definitions for ternary functions.
#define ALIGATOR_DYNAMIC_TYPEDEFS(Scalar)