From 6db9d324cec6df7ab6209f85442b513df7044ba8 Mon Sep 17 00:00:00 2001 From: sylvmara Date: Thu, 9 Jan 2025 12:48:31 +0100 Subject: [PATCH] Formated using clang --- src/solver/optimisation/opt_optimisation_lineaire.cpp | 4 +++- src/solver/utils/filename.cpp | 6 +++--- src/solver/utils/include/antares/solver/utils/filename.h | 4 ++-- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/src/solver/optimisation/opt_optimisation_lineaire.cpp b/src/solver/optimisation/opt_optimisation_lineaire.cpp index 0d8e089b63..4f3f711225 100644 --- a/src/solver/optimisation/opt_optimisation_lineaire.cpp +++ b/src/solver/optimisation/opt_optimisation_lineaire.cpp @@ -79,7 +79,9 @@ void OPT_WriteSolution(const PROBLEME_ANTARES_A_RESOUDRE& pb, filename = createMarginalCostFilename(optPeriodStringGenerator, optimizationNumber); for (int cont = 0; cont < pb.NombreDeContraintes; cont++) { - buffer.appendFormat("%s\t%11.10e\n", pb.NomDesContraintes[cont].c_str(), pb.CoutsMarginauxDesContraintes[cont]); + buffer.appendFormat("%s\t%11.10e\n", + pb.NomDesContraintes[cont].c_str(), + pb.CoutsMarginauxDesContraintes[cont]); } writer.addEntryFromBuffer(filename, buffer); buffer.clear(); diff --git a/src/solver/utils/filename.cpp b/src/solver/utils/filename.cpp index 80b79233e1..d8a49f4b99 100644 --- a/src/solver/utils/filename.cpp +++ b/src/solver/utils/filename.cpp @@ -73,13 +73,13 @@ std::string createSolutionFilename(const OptPeriodStringGenerator& optPeriodStri } std::string createMarginalCostFilename(const OptPeriodStringGenerator& optPeriodStringGenerator, - const unsigned int optNumber) + const unsigned int optNumber) { return createOptimizationFilename("marginal-cost", optPeriodStringGenerator, optNumber, "txt"); } std::string createReducedCostFilename(const OptPeriodStringGenerator& optPeriodStringGenerator, - const unsigned int optNumber) + const unsigned int optNumber) { return createOptimizationFilename("reduced-cost", optPeriodStringGenerator, optNumber, "txt"); -} \ No newline at end of file +} diff --git a/src/solver/utils/include/antares/solver/utils/filename.h b/src/solver/utils/include/antares/solver/utils/filename.h index 84ed86ce81..7828fcc7a3 100644 --- a/src/solver/utils/include/antares/solver/utils/filename.h +++ b/src/solver/utils/include/antares/solver/utils/filename.h @@ -40,7 +40,7 @@ std::string createSolutionFilename(const OptPeriodStringGenerator& optPeriodStri const unsigned int optNumber); std::string createMarginalCostFilename(const OptPeriodStringGenerator& optPeriodStringGenerator, - const unsigned int optNumber); + const unsigned int optNumber); std::string createReducedCostFilename(const OptPeriodStringGenerator& optPeriodStringGenerator, - const unsigned int optNumber); \ No newline at end of file + const unsigned int optNumber);