summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sumofsquares/solver/scs.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/sumofsquares/solver/scs.py b/sumofsquares/solver/scs.py
index 71c2248..faad4e1 100644
--- a/sumofsquares/solver/scs.py
+++ b/sumofsquares/solver/scs.py
@@ -110,11 +110,13 @@ def solve_cone(prob: ConicProblem, verbose: bool = False,
for (linear, constant) in prob.constraints["s"]:
# -1 because RHS
- b_rows.append(vec(constant) * -1)
+ b_rows.append(vec(-constant))
A_rows.append(np.hstack(tuple(vec(m) for m in linear)))
- if prob.constraints["e"]:
- raise NotImplementedError
+ for (linear, constant) in prob.constraints["e"]:
+ for i in range(3):
+ b_rows.append(constant[i])
+ A_rows.append(np.hstack(tuple(-m[i] for m in linear)))
if prob.constraints["e*"]:
raise NotImplementedError