36 const Eigen::MatrixXd& M,
38 const std::string& variable_name)
39 : ConstraintSet(v.rows(),
"linear-equality-" + variable_name)
58 for (
int i=0; i<
GetRows(); ++i) {
60 bounds.push_back(bound);
72 jac =
M_.sparseView();
VecBound GetBounds() const final
Eigen::SparseMatrix< double, Eigen::RowMajor > Jacobian
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_
void FillJacobianBlock(std::string var_set, Jacobian &) const final
VectorXd GetValues() const final
const VariablesPtr GetVariables() const
std::vector< Bounds > VecBound