aligator  0.9.0
A primal-dual augmented Lagrangian-type solver for nonlinear trajectory optimization.
Loading...
Searching...
No Matches
control-box-function.hpp
Go to the documentation of this file.
1#pragma once
2
4
5namespace aligator {
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>;
22
23 VectorXs umin_, umax_;
24
27 ControlBoxFunctionTpl(const int ndx, const VectorXs &umin,
28 const VectorXs &umax);
29
32 ControlBoxFunctionTpl(const int ndx, const int nu, const Scalar umin,
33 const Scalar umax);
34
35 void evaluate(const ConstVectorRef &, const ConstVectorRef &u,
36 Data &data) const override;
37
43 void computeJacobians(const ConstVectorRef &, const ConstVectorRef &,
44 Data &data) const override;
45
48 virtual shared_ptr<Data> createData() const override;
49};
50
51} // namespace aligator
52
53#include "aligator/modelling/control-box-function.hxx"
Base definitions for ternary functions.
#define ALIGATOR_DYNAMIC_TYPEDEFS(Scalar)
Definition math.hpp:8
Main package namespace.