Skip to content

Commit 0c3586d

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 0e7b68a commit 0c3586d

File tree

4 files changed

+12
-6
lines changed

4 files changed

+12
-6
lines changed

include/proxsuite/proxqp/dense/model.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ struct Model
7575
SparseMat<T> A_sparse = A.sparseView();
7676
SparseMat<T> C_sparse = C.sparseView();
7777
proxsuite::proxqp::sparse::SparseModel<T> res{ H_sparse, g, A_sparse, b,
78-
C_sparse, u, l};
78+
C_sparse, u, l };
7979
return res;
8080
}
8181
};

test/src/cvxpy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def test_trigger_infeasibility_with_exact_solution_known(self):
3030
u = np.ones(n)
3131

3232
qp = proxsuite.proxqp.dense.QP(n, 0, n)
33-
qp.init(H, g, A, b, C, l,u)
33+
qp.init(H, g, A, b, C, l, u)
3434
qp.settings.verbose = True
3535
qp.solve()
3636
x_sol = np.array([1, 0.5, -1])

test/src/dense_qp_solve.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,13 @@ def test_initializing_with_None(self):
347347
u = None
348348
l = None
349349

350-
results = proxsuite.proxqp.dense.solve(H, g, A, b, C, )
350+
results = proxsuite.proxqp.dense.solve(
351+
H,
352+
g,
353+
A,
354+
b,
355+
C,
356+
)
351357
print("optimal x: {}".format(results.x))
352358

353359
dua_res = normInf(H @ results.x + g)

test/src/dense_qp_wrapper.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def generate_mixed_qp(n, seed=1):
4747
class DenseqpWrapper(unittest.TestCase):
4848

4949
# TESTS OF GENERAL METHODS OF THE API
50-
50+
5151
def test_case_update_rho(self):
5252
print(
5353
"------------------------sparse random strongly convex qp with equality and inequality constraints: test update rho"
@@ -1659,7 +1659,7 @@ def test_case_cold_start_with_previous_result_starting_with_no_initial_guess(sel
16591659
qp.results.info.setup_time, qp.results.info.solve_time
16601660
)
16611661
)
1662-
1662+
16631663
def test_case_warm_start_with_no_initial_guess(self):
16641664

16651665
print(
@@ -1791,7 +1791,7 @@ def test_case_warm_start_with_no_initial_guess(self):
17911791
qp.results.info.setup_time, qp.results.info.solve_time
17921792
)
17931793
)
1794-
1794+
17951795
def test_case_warm_start_with_no_initial_guess_and_different_init(self):
17961796

17971797
print(

0 commit comments

Comments
 (0)