Skip to content

Commit

Permalink
Formated using clang
Browse files Browse the repository at this point in the history
  • Loading branch information
sylvmara committed Jan 9, 2025
1 parent b7b299a commit 6db9d32
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
4 changes: 3 additions & 1 deletion src/solver/optimisation/opt_optimisation_lineaire.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
6 changes: 3 additions & 3 deletions src/solver/utils/filename.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
}
4 changes: 2 additions & 2 deletions src/solver/utils/include/antares/solver/utils/filename.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
const unsigned int optNumber);

0 comments on commit 6db9d32

Please sign in to comment.