Skip to content

Commit cfb443e

Browse files
committed
cleanup + trying to remove equilibrate
1 parent 337e356 commit cfb443e

File tree

2 files changed

+0
-10
lines changed

2 files changed

+0
-10
lines changed

tests/test_clarabel.py

-6
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,6 @@ def test_expcone():
9797
tol_gap_rel=1e-13,
9898
tol_feas=1e-13,
9999
tol_ktratio=1e-13,
100-
equilibrate_enable=False,
101100
)
102101
dA = utils.get_random_like(A, lambda n: np.random.normal(0, 1e-6, size=n))
103102
db = np.random.normal(0, 1e-6, size=b.size)
@@ -116,13 +115,8 @@ def test_expcone():
116115
tol_infeas_abs=1e-13,
117116
tol_infeas_rel=1e-13,
118117
tol_ktratio=1e-13,
119-
equilibrate_enable=False,
120118
)
121119

122120
np.testing.assert_allclose(x_pert - x, dx, atol=1e-8)
123121
np.testing.assert_allclose(y_pert - y, dy, atol=1e-8)
124122
np.testing.assert_allclose(s_pert - s, ds, atol=1e-8)
125-
126-
127-
if __name__ == "__main__":
128-
test_expcone()

tests/test_scs.py

-4
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ def test_solve_and_derivative():
1111
n = 10
1212

1313
A, b, c, cone_dims = utils.least_squares_eq_scs_data(m, n)
14-
print(cone_dims)
1514
for mode in ["lsqr", "dense"]:
1615
x, y, s, derivative, adjoint_derivative = cone_prog.solve_and_derivative(
1716
A, b, c, cone_dims, eps=1e-10, mode=mode, solve_method="SCS")
@@ -124,6 +123,3 @@ def test_expcone():
124123
np.testing.assert_allclose(x_pert - x, dx, atol=1e-8)
125124
np.testing.assert_allclose(y_pert - y, dy, atol=1e-8)
126125
np.testing.assert_allclose(s_pert - s, ds, atol=1e-8)
127-
128-
if __name__ == "__main__":
129-
test_expcone()

0 commit comments

Comments
 (0)