Skip to content

Commit feb2d18

Browse files
authored
[_dq_quadprog_solver.py] Add comments to explain equality constraints.
1 parent 353f552 commit feb2d18

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

dqrobotics/solvers/_dq_quadprog_solver.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
# ################################################################
2020
#
2121
# Contributors:
22-
# - Murilo M. Marinho, email: murilo@g.u-tokyo.ac.jp
22+
# - Murilo M. Marinho, email: murilomarinho@ieee.org
2323
#
2424
# ################################################################
2525
"""
@@ -70,6 +70,8 @@ def solve_quadratic_program(self, H, f, A, b, Aeq, beq):
7070
raise ValueError(f"Aeq={Aeq} and beq={beq} must both be None or both not None.")
7171

7272
# Turn equality into a bounded inequality
73+
## Aeq.x <= beq + delta
74+
## Aeq.x >= beq - delta ==> -Aeq.x <= -beq + delta
7375
if Aeq is not None: # beq is None already checked by the ValueError
7476
if Aeq.shape == (0, 0) or beq.shape == 0:
7577
pass

0 commit comments

Comments
 (0)