sip-python 0.0.1__tar.gz → 0.0.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {sip_python-0.0.1 → sip_python-0.0.2}/PKG-INFO +1 -1
- {sip_python-0.0.1 → sip_python-0.0.2}/pyproject.toml +1 -1
- {sip_python-0.0.1 → sip_python-0.0.2}/src/sip_python.egg-info/PKG-INFO +1 -1
- {sip_python-0.0.1 → sip_python-0.0.2}/tests/test_simple_nlp.py +3 -5
- {sip_python-0.0.1 → sip_python-0.0.2}/tests/test_simple_qp.py +3 -3
- {sip_python-0.0.1 → sip_python-0.0.2}/LICENSE +0 -0
- {sip_python-0.0.1 → sip_python-0.0.2}/README.md +0 -0
- {sip_python-0.0.1 → sip_python-0.0.2}/setup.cfg +0 -0
- {sip_python-0.0.1 → sip_python-0.0.2}/setup.py +0 -0
- {sip_python-0.0.1 → sip_python-0.0.2}/src/sip_python/__init__.py +0 -0
- {sip_python-0.0.1 → sip_python-0.0.2}/src/sip_python/helpers.py +0 -0
- {sip_python-0.0.1 → sip_python-0.0.2}/src/sip_python.egg-info/SOURCES.txt +0 -0
- {sip_python-0.0.1 → sip_python-0.0.2}/src/sip_python.egg-info/dependency_links.txt +0 -0
- {sip_python-0.0.1 → sip_python-0.0.2}/src/sip_python.egg-info/requires.txt +0 -0
- {sip_python-0.0.1 → sip_python-0.0.2}/src/sip_python.egg-info/top_level.txt +0 -0
|
@@ -25,9 +25,7 @@ from scipy import sparse as sp
|
|
|
25
25
|
|
|
26
26
|
def test_simple_qp():
|
|
27
27
|
ss = Settings()
|
|
28
|
-
ss.
|
|
29
|
-
ss.num_iterative_refinement_steps = 1
|
|
30
|
-
ss.penalty_parameter_increase_factor = 3.0
|
|
28
|
+
ss.max_kkt_violation = 1e-6
|
|
31
29
|
ss.enable_elastics = True
|
|
32
30
|
ss.elastic_var_cost_coeff = 1e6
|
|
33
31
|
ss.assert_checks_pass = True
|
|
@@ -144,5 +142,5 @@ def test_simple_qp():
|
|
|
144
142
|
output = solver.solve(vars)
|
|
145
143
|
|
|
146
144
|
assert output.exit_status == Status.SOLVED
|
|
147
|
-
assert vars.x[0] == pytest.approx(-1.15747396, abs=1e-
|
|
148
|
-
assert vars.x[1] == pytest.approx(-4.31975162, abs=1e-
|
|
145
|
+
assert vars.x[0] == pytest.approx(-1.15747396, abs=1e-2)
|
|
146
|
+
assert vars.x[1] == pytest.approx(-4.31975162, abs=1e-2)
|
|
@@ -25,7 +25,7 @@ from scipy import sparse as sp
|
|
|
25
25
|
|
|
26
26
|
def test_simple_qp():
|
|
27
27
|
ss = Settings()
|
|
28
|
-
ss.
|
|
28
|
+
ss.max_kkt_violation = 1e-6
|
|
29
29
|
ss.enable_elastics = True
|
|
30
30
|
ss.elastic_var_cost_coeff = 1e6
|
|
31
31
|
ss.assert_checks_pass = True
|
|
@@ -141,5 +141,5 @@ def test_simple_qp():
|
|
|
141
141
|
output = solver.solve(vars)
|
|
142
142
|
|
|
143
143
|
assert output.exit_status == Status.SOLVED
|
|
144
|
-
assert vars.x[0] == pytest.approx(0.3, abs=1e-
|
|
145
|
-
assert vars.x[1] == pytest.approx(0.7, abs=1e-
|
|
144
|
+
assert vars.x[0] == pytest.approx(0.3, abs=1e-2)
|
|
145
|
+
assert vars.x[1] == pytest.approx(0.7, abs=1e-2)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|