Linear/EqualityConstraint
Add linear/EqualityConstraint, which is result of linearizing nonlinear/EqualityConstraint, also does general Ax==b
Comments (7)
-
reporter -
Actually, it's so that users could find it. It can be a trivial derived class of JacobianFactor, one that takes and A and a b and implements
Ax==b
-
Actually, would make your constraint stuff in QP much more readable, compare
// Special constrained noise model denoting <= inequalities with negative sigmas noiseModel::Constrained::shared_ptr noise = noiseModel::Constrained::MixedSigmas((Vector(4) << -1, -1, -1, -1)); graph.push_back(JacobianFactor(X(1), A1, X(2), A2, b, noise));
with desired
graph.push_back(InequalityConstraint(X(1), A1, X(2), A2, b, noise));
(realizing you could create both an
EqualityConstraint
and anInequalityConstraint
. Adding the latter in QP branch would allow us to easily change the implementation, if we decide to abandon the -1 hack. -
Is this done, @thduynguyen ?
-
reporter Yes. A simple QP without LP is now in develop. We will need to implement the simplex method to find a feasible initial point in the feature. It is important for SQP to solve nonlinear constraints.
-
Then close this issue?
-
reporter - changed status to resolved
LinearEquality and LinearInequality constraints, inherited from JacobianFactor, are added, together with a QPSolver.
- Log in to comment
Question for @dellaert : I think it is handled in the current JacobianFactor already. What is the motivation for another special equality constraint factor at the linear level?