sip-python 0.0.4__tar.gz → 0.0.5__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: sip_python
3
- Version: 0.0.4
3
+ Version: 0.0.5
4
4
  Summary: Python bindings for the SIP solver.
5
5
  Author-email: João Sousa-Pinto <joaospinto@gmail.com>
6
6
  Project-URL: Homepage, https://github.com/joaospinto/sip_python
@@ -12,6 +12,8 @@ Description-Content-Type: text/markdown
12
12
  License-File: LICENSE
13
13
  Requires-Dist: numpy
14
14
  Requires-Dist: scipy
15
+ Provides-Extra: test
16
+ Requires-Dist: pytest; extra == "test"
15
17
  Dynamic: license-file
16
18
 
17
19
  # sip_python
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "sip_python"
7
- version = "0.0.4"
7
+ version = "0.0.5"
8
8
  description = "Python bindings for the SIP solver."
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.10"
@@ -19,5 +19,10 @@ dependencies = [
19
19
  "scipy",
20
20
  ]
21
21
 
22
+ [project.optional-dependencies]
23
+ test = [
24
+ "pytest",
25
+ ]
26
+
22
27
  [project.urls]
23
28
  Homepage = "https://github.com/joaospinto/sip_python"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: sip_python
3
- Version: 0.0.4
3
+ Version: 0.0.5
4
4
  Summary: Python bindings for the SIP solver.
5
5
  Author-email: João Sousa-Pinto <joaospinto@gmail.com>
6
6
  Project-URL: Homepage, https://github.com/joaospinto/sip_python
@@ -12,6 +12,8 @@ Description-Content-Type: text/markdown
12
12
  License-File: LICENSE
13
13
  Requires-Dist: numpy
14
14
  Requires-Dist: scipy
15
+ Provides-Extra: test
16
+ Requires-Dist: pytest; extra == "test"
15
17
  Dynamic: license-file
16
18
 
17
19
  # sip_python
@@ -0,0 +1,5 @@
1
+ numpy
2
+ scipy
3
+
4
+ [test]
5
+ pytest
@@ -22,18 +22,18 @@ jax.config.update("jax_enable_x64", True)
22
22
 
23
23
  def test_simple_constrained_lqr():
24
24
  ss = Settings()
25
- ss.max_kkt_violation = 1e-6
26
- ss.enable_elastics = True
27
- ss.elastic_var_cost_coeff = 1e6
25
+ ss.termination.max_dual_residual = 1e-6
26
+ ss.termination.max_constraint_violation = 1e-6
27
+ ss.termination.max_complementarity_gap = 1e-6
28
28
  ss.assert_checks_pass = True
29
- ss.penalty_parameter_increase_factor = 2.0
30
- ss.mu_update_factor = 0.9
29
+ ss.penalty.penalty_parameter_increase_factor = 2.0
30
+ ss.barrier.mu_update_factor = 0.9
31
31
  ss.max_iterations = 200
32
- ss.max_ls_iterations = 1000
33
- ss.print_logs = False
34
- ss.print_line_search_logs = False
35
- ss.print_search_direction_logs = False
36
- ss.print_derivative_check_logs = False
32
+ ss.line_search.max_iterations = 1000
33
+ ss.logging.print_logs = False
34
+ ss.logging.print_line_search_logs = False
35
+ ss.logging.print_search_direction_logs = False
36
+ ss.logging.print_derivative_check_logs = False
37
37
 
38
38
  x_dim = 2
39
39
  u_dim = 1
@@ -187,7 +187,6 @@ def test_simple_constrained_lqr():
187
187
  vars.x[:] = 0.0
188
188
  vars.s[:] = 1.0
189
189
  vars.y[:] = 0.0
190
- vars.e[:] = 0.0
191
190
  vars.z[:] = 1.0
192
191
 
193
192
  output = solver.solve(vars)
@@ -22,16 +22,16 @@ jax.config.update("jax_enable_x64", True)
22
22
 
23
23
  def test_simple_lqr():
24
24
  ss = Settings()
25
- ss.max_kkt_violation = 1e-6
26
- ss.enable_elastics = True
27
- ss.elastic_var_cost_coeff = 1e6
25
+ ss.termination.max_dual_residual = 1e-6
26
+ ss.termination.max_constraint_violation = 1e-6
27
+ ss.termination.max_complementarity_gap = 1e-6
28
28
  ss.assert_checks_pass = True
29
- ss.penalty_parameter_increase_factor = 2.0
30
- ss.mu_update_factor = 0.9
31
- ss.print_logs = False
32
- ss.print_line_search_logs = False
33
- ss.print_search_direction_logs = False
34
- ss.print_derivative_check_logs = False
29
+ ss.penalty.penalty_parameter_increase_factor = 2.0
30
+ ss.barrier.mu_update_factor = 0.9
31
+ ss.logging.print_logs = False
32
+ ss.logging.print_line_search_logs = False
33
+ ss.logging.print_search_direction_logs = False
34
+ ss.logging.print_derivative_check_logs = False
35
35
 
36
36
  x_dim = 2
37
37
  u_dim = 1
@@ -163,7 +163,6 @@ def test_simple_lqr():
163
163
  vars.x[:] = 0.0
164
164
  vars.s[:] = 1.0
165
165
  vars.y[:] = 0.0
166
- vars.e[:] = 0.0
167
166
  vars.z[:] = 1.0
168
167
 
169
168
  output = solver.solve(vars)
@@ -22,14 +22,14 @@ jax.config.update("jax_enable_x64", True)
22
22
 
23
23
  def test_simple_qp():
24
24
  ss = Settings()
25
- ss.max_kkt_violation = 1e-6
26
- ss.enable_elastics = True
27
- ss.elastic_var_cost_coeff = 1e6
25
+ ss.termination.max_dual_residual = 1e-6
26
+ ss.termination.max_constraint_violation = 1e-6
27
+ ss.termination.max_complementarity_gap = 1e-6
28
28
  ss.assert_checks_pass = True
29
- ss.print_logs = False
30
- ss.print_line_search_logs = False
31
- ss.print_search_direction_logs = False
32
- ss.print_derivative_check_logs = False
29
+ ss.logging.print_logs = False
30
+ ss.logging.print_line_search_logs = False
31
+ ss.logging.print_search_direction_logs = False
32
+ ss.logging.print_derivative_check_logs = False
33
33
 
34
34
  @jax.jit
35
35
  def f(x):
@@ -133,7 +133,6 @@ def test_simple_qp():
133
133
  vars.x[:] = 0.0
134
134
  vars.s[:] = 1.0
135
135
  vars.y[:] = 0.0
136
- vars.e[:] = 0.0
137
136
  vars.z[:] = 1.0
138
137
 
139
138
  output = solver.solve(vars)
@@ -22,14 +22,14 @@ jax.config.update("jax_enable_x64", True)
22
22
 
23
23
  def test_simple_qp():
24
24
  ss = Settings()
25
- ss.max_kkt_violation = 1e-6
26
- ss.enable_elastics = True
27
- ss.elastic_var_cost_coeff = 1e6
25
+ ss.termination.max_dual_residual = 1e-6
26
+ ss.termination.max_constraint_violation = 1e-6
27
+ ss.termination.max_complementarity_gap = 1e-6
28
28
  ss.assert_checks_pass = True
29
- ss.print_logs = False
30
- ss.print_line_search_logs = False
31
- ss.print_search_direction_logs = False
32
- ss.print_derivative_check_logs = False
29
+ ss.logging.print_logs = False
30
+ ss.logging.print_line_search_logs = False
31
+ ss.logging.print_search_direction_logs = False
32
+ ss.logging.print_derivative_check_logs = False
33
33
 
34
34
  @jax.jit
35
35
  def f(x):
@@ -132,7 +132,6 @@ def test_simple_qp():
132
132
  vars.x[:] = 0.0
133
133
  vars.s[:] = 1.0
134
134
  vars.y[:] = 0.0
135
- vars.e[:] = 0.0
136
135
  vars.z[:] = 1.0
137
136
 
138
137
  output = solver.solve(vars)
@@ -1,2 +0,0 @@
1
- numpy
2
- scipy
File without changes
File without changes
File without changes
File without changes