From f07d09546d4724d7539589462699ff2fc56452c1 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 13 May 2024 22:46:17 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- include/proxsuite/proxqp/dense/solver.hpp | 20 ++++++++++++-------- include/proxsuite/proxqp/sparse/solver.hpp | 20 ++++++++++++-------- 2 files changed, 24 insertions(+), 16 deletions(-) diff --git a/include/proxsuite/proxqp/dense/solver.hpp b/include/proxsuite/proxqp/dense/solver.hpp index fcd7425c0..5710fe6db 100644 --- a/include/proxsuite/proxqp/dense/solver.hpp +++ b/include/proxsuite/proxqp/dense/solver.hpp @@ -1793,29 +1793,33 @@ qp_solve( // std::cout << "objective: " << qpresults.info.objValue << std::endl; switch (qpresults.info.status) { case QPSolverOutput::PROXQP_SOLVED: { - std::cout << "status: " << "Solved" << std::endl; + std::cout << "status: " + << "Solved" << std::endl; break; } case QPSolverOutput::PROXQP_MAX_ITER_REACHED: { - std::cout << "status: " << "Maximum number of iterations reached" - << std::endl; + std::cout << "status: " + << "Maximum number of iterations reached" << std::endl; break; } case QPSolverOutput::PROXQP_PRIMAL_INFEASIBLE: { - std::cout << "status: " << "Primal infeasible" << std::endl; + std::cout << "status: " + << "Primal infeasible" << std::endl; break; } case QPSolverOutput::PROXQP_DUAL_INFEASIBLE: { - std::cout << "status: " << "Dual infeasible" << std::endl; + std::cout << "status: " + << "Dual infeasible" << std::endl; break; } case QPSolverOutput::PROXQP_SOLVED_CLOSEST_PRIMAL_FEASIBLE: { - std::cout << "status: " << "Solved closest primal feasible" - << std::endl; + std::cout << "status: " + << "Solved closest primal feasible" << std::endl; break; } case QPSolverOutput::PROXQP_NOT_RUN: { - std::cout << "status: " << "Solver not run" << std::endl; + std::cout << "status: " + << "Solver not run" << std::endl; break; } } diff --git a/include/proxsuite/proxqp/sparse/solver.hpp b/include/proxsuite/proxqp/sparse/solver.hpp index a6699aeb4..609d2b84d 100644 --- a/include/proxsuite/proxqp/sparse/solver.hpp +++ b/include/proxsuite/proxqp/sparse/solver.hpp @@ -1630,29 +1630,33 @@ qp_solve(Results& results, std::cout << "objective: " << results.info.objValue << std::endl; switch (results.info.status) { case QPSolverOutput::PROXQP_SOLVED: { - std::cout << "status: " << "Solved" << std::endl; + std::cout << "status: " + << "Solved" << std::endl; break; } case QPSolverOutput::PROXQP_MAX_ITER_REACHED: { - std::cout << "status: " << "Maximum number of iterations reached" - << std::endl; + std::cout << "status: " + << "Maximum number of iterations reached" << std::endl; break; } case QPSolverOutput::PROXQP_PRIMAL_INFEASIBLE: { - std::cout << "status: " << "Primal infeasible" << std::endl; + std::cout << "status: " + << "Primal infeasible" << std::endl; break; } case QPSolverOutput::PROXQP_DUAL_INFEASIBLE: { - std::cout << "status: " << "Dual infeasible" << std::endl; + std::cout << "status: " + << "Dual infeasible" << std::endl; break; } case QPSolverOutput::PROXQP_SOLVED_CLOSEST_PRIMAL_FEASIBLE: { - std::cout << "status: " << "Solved closest primal feasible" - << std::endl; + std::cout << "status: " + << "Solved closest primal feasible" << std::endl; break; } case QPSolverOutput::PROXQP_NOT_RUN: { - std::cout << "status: " << "Solver not run" << std::endl; + std::cout << "status: " + << "Solver not run" << std::endl; break; } }