For quadratic programming, the objective function is:
$$\text{min } \frac{1}{2}x^TQx + c^Tx$$
Subject to: $$Ax \leq b$$
These QP-solvers that can only handle inequality constraints are the most simplest QP-solvers. But adding an equality constraints together with the inequality constraints, can turn the QP-solver to a much more advanced QP-solver.
I got therefore a question. What if I could do like this:
Subject to: $$Ax \leq b$$ $$Gx \leq d$$ $$-Gx \leq -d$$
For example if $G = 5$ and $d = 7$. Assume that we say $x = 0.5$
5*0.5 <= 7.0 // Yes
-5*0.5 <= -7.0 // No
If I say $x = 1.4$
5*1.4 <= 7.0 // Yes
-5*1.4 <= -7.0 // Yes
If I say $x = 1.5$
5*1.5 <= 7.0 // No
-5*1.5 <= -7.0 // Yes
Question:
By using the same inequality constraints, but adding a negative sign on both sides, does this turn two inequality constraints into an equality constraint?
$$Gx = d$$
Or is it important to have some kind of a small number $\epsilon$ ?
$$Gx \leq d + \epsilon$$ $$-Gx \leq -d - \epsilon$$