36 const Eigen::MatrixXd& M,
38 const std::string& variable_name)
39 : ConstraintSet(v.rows(),
"LinearEqualityConstraint-" + variable_name)
53 LinearEqualityConstraint::VecBound
58 for (
int i=0; i<GetRows(); ++i) {
59 ifopt::Bounds bound(-
v_[i],-
v_[i]);
60 bounds.push_back(bound);
72 jac =
M_.sparseView();
VectorXd GetValues() const overridefinal
void FillJacobianBlock(std::string var_set, Jacobian &) const overridefinal
LinearEqualityConstraint(const MatrixXd &M, const VectorXd &v, const std::string &variable_set)
Defines the elements of the linear constraint as g = Mx+v = 0.
std::string variable_name_
VecBound GetBounds() const overridefinal