30 #ifndef IFOPT_INCLUDE_IFOPT_CONSTRAINT_SET_H_ 31 #define IFOPT_INCLUDE_IFOPT_CONSTRAINT_SET_H_ 53 using Ptr = std::shared_ptr<ConstraintSet>;
std::shared_ptr< Composite > Ptr
A container holding a set of related constraints.
Composite::Ptr VariablesPtr
ConstraintSet(int n_constraints, const std::string &name)
Creates constraints on the variables x.
void LinkWithVariables(const VariablesPtr &x)
Connects the constraint with the optimization variables.
std::shared_ptr< Component > Ptr
virtual void FillJacobianBlock(std::string var_set, Jacobian &jac_block) const =0
Set individual Jacobians corresponding to each decision variable set.
Declares the classes Composite and Component used as variables, costs and constraints.
Eigen::SparseMatrix< double, Eigen::RowMajor > Jacobian
common namespace for all elements in this library.
Interface representing either Variable, Cost or Constraint.
virtual void InitVariableDependedQuantities(const VariablesPtr &x_init)
Initialize quantities that depend on the optimization variables.
const VariablesPtr GetVariables() const
Read access to the value of the optimization variables.
Jacobian GetJacobian() const final
The matrix of derivatives for these constraints and variables.
void SetVariables(const VectorXd &x) final
Sets the optimization variables from an Eigen vector.
virtual ~ConstraintSet()=default