30 #ifndef IFOPT_INCLUDE_IFOPT_CONSTRAINT_SET_H_ 31 #define IFOPT_INCLUDE_IFOPT_CONSTRAINT_SET_H_ 49 using Ptr = std::shared_ptr<ConstraintSet>;
std::shared_ptr< Composite > Ptr
A container holding a set of related constraints.
Composite::Ptr VariablesPtr
const VariablesPtr GetVariables() const
Read access to the value of the optimization variables.
ConstraintSet(int n_constraints, const std::string &name)
Creates constraints on the variables x.
virtual void LinkWithVariables(const VariablesPtr &x) final
Connects the constraint with the optimization variables.
Jacobian GetJacobian() const overridefinal
The matrix of derivatives for these constraints and 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
Interface representing either Variable, Cost or Constraint.
virtual void InitVariableDependedQuantities(const VariablesPtr &x_init)
Initialize quantities that depend on the optimization variables.
virtual void SetVariables(const VectorXd &x) overridefinal
Sets the optimization variables from an Eigen vector.
virtual ~ConstraintSet()=default