Skip to content

Commit 51234cf

Browse files
pre-commit-ci[bot]jcarpent
authored andcommitted
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 583ae75 commit 51234cf

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

test/src/dense_backward.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,8 @@ DOCTEST_TEST_CASE("proxqp::dense: test compute backward for b (feasible QP)")
145145
}
146146
}
147147

148-
DOCTEST_TEST_CASE("proxqp::dense: test compute backward for g (QP with saturating inequality constraints)")
148+
DOCTEST_TEST_CASE("proxqp::dense: test compute backward for g (QP with "
149+
"saturating inequality constraints)")
149150
{
150151
double sparsity_factor = 0.85;
151152
T eps_abs = T(1e-9);
@@ -157,7 +158,6 @@ DOCTEST_TEST_CASE("proxqp::dense: test compute backward for g (QP with saturatin
157158
proxqp::dense::Model<T> random_qp = proxqp::utils::dense_strongly_convex_qp(
158159
dim, n_eq, n_in, sparsity_factor, strong_convexity_factor);
159160

160-
161161
std::cout << "creating random qp " << std::endl;
162162
Eigen::Matrix<T, 10, 10> H = random_qp.H;
163163
Eigen::Matrix<T, 10, 1> g = random_qp.g;
@@ -175,7 +175,8 @@ DOCTEST_TEST_CASE("proxqp::dense: test compute backward for g (QP with saturatin
175175
qp.init(H, g, nullopt, nullopt, C, l, nullopt);
176176
std::cout << "solving qp " << std::endl;
177177
qp.solve();
178-
std::cout << "active ineq " << qp.work.active_inequalities.count() << std::endl;
178+
std::cout << "active ineq " << qp.work.active_inequalities.count()
179+
<< std::endl;
179180

180181
// Compute dx_dg using backward function
181182
Eigen::VectorXd loss_derivative = Eigen::VectorXd::Zero(dim + n_eq + n_in);

0 commit comments

Comments
 (0)