Go to the documentation of this file.
25 #ifndef SRC_OPTIMAL_CONTROL_INCLUDE_CORBO_OPTIMAL_CONTROL_STRUCTURED_OCP_EDGES_L1_STAB_EDGES_H_
26 #define SRC_OPTIMAL_CONTROL_INCLUDE_CORBO_OPTIMAL_CONTROL_STRUCTURED_OCP_EDGES_L1_STAB_EDGES_H_
41 class L1StabCostEdge :
public Edge<VectorVertex>
44 using Ptr = std::shared_ptr<L1StabCostEdge>;
45 using UPtr = std::unique_ptr<L1StabCostEdge>;
49 _s =
static_cast<const VectorVertex*
>(
_vertices[0]);
56 bool isLinear()
const override {
return false; }
77 class L1StabInequalityEdge :
public Edge<VectorVertex, VectorVertex>
80 using Ptr = std::shared_ptr<L1StabInequalityEdge>;
81 using UPtr = std::unique_ptr<L1StabInequalityEdge>;
85 _x =
static_cast<const VectorVertex*
>(
_vertices[0]);
86 _s =
static_cast<const VectorVertex*
>(
_vertices[1]);
98 bool isLinear()
const override {
return false; }
124 const Eigen::VectorXd*
_xref =
nullptr;
134 #endif // SRC_OPTIMAL_CONTROL_INCLUDE_CORBO_OPTIMAL_CONTROL_STRUCTURED_OCP_EDGES_L1_STAB_EDGES_H_
int getDimension() const override
Return number of elements/values/components stored in this vertex.
L1StabCostEdge(VectorVertex &s, double delta_pow_k)
const Eigen::VectorXd * _xref
bool isLinear() const override
Return true if the edge is linear (and hence its Hessian is always zero)
std::unique_ptr< L1StabCostEdge > UPtr
std::shared_ptr< L1StabInequalityEdge > Ptr
const Eigen::VectorXd & values() const
Read-access to the underlying value vector.
int getDimension() const override
Get dimension of the edge (dimension of the cost-function/constraint value vector)
bool isLinear() const override
Return true if the edge is linear (and hence its Hessian is always zero)
std::unique_ptr< L1StabInequalityEdge > UPtr
#define EIGEN_MAKE_ALIGNED_OPERATOR_NEW
void computeValues(Eigen::Ref< Eigen::VectorXd > values) override
Compute function values.
L1StabInequalityEdge(VectorVertex &x, VectorVertex &s, const Eigen::VectorXd *xref)
A matrix or vector expression mapping an existing expression.
bool isLeastSquaresForm() const override
Defines if the edge is formulated as Least-Squares form.
std::shared_ptr< L1StabCostEdge > Ptr
bool isLeastSquaresForm() const override
Defines if the edge is formulated as Least-Squares form.
Vertex implementation that stores an Eigen::VectorXd (dynamic dimension)
int getDimension() const override
Get dimension of the edge (dimension of the cost-function/constraint value vector)
void computeValues(Eigen::Ref< Eigen::VectorXd > values) override
Compute function values.
const VertexContainer _vertices
Vertex container.
control_box_rst
Author(s): Christoph Rösmann
autogenerated on Wed Mar 2 2022 00:05:51