Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
flomnes committed Jul 3, 2024
1 parent 863afa0 commit 18232c4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
7 changes: 4 additions & 3 deletions src/solver/infeasible-problem-analysis/constraint.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,15 @@
* You should have received a copy of the Mozilla Public Licence 2.0
* along with Antares_Simulator. If not, see <https://opensource.org/license/mpl-2-0/>.
*/
#include "antares/solver/infeasible-problem-analysis/constraint.h"

#include <algorithm>
#include <cassert>
#include <iomanip>
#include <sstream>
#include <boost/regex.hpp>
#include <boost/algorithm/string/regex.hpp>

#include "antares/solver/infeasible-problem-analysis/constraint.h"
#include <boost/algorithm/string/regex.hpp>
#include <boost/regex.hpp>

namespace
{
Expand Down
4 changes: 2 additions & 2 deletions src/solver/infeasible-problem-analysis/report.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,15 @@ static bool compareSlackSolutions(const Antares::Optimization::Constraint& a,
namespace Antares::Optimization
{
InfeasibleProblemReport::InfeasibleProblemReport(
const std::vector<const MPVariable*>& slackVariables)
const std::vector<const MPVariable*>& slackVariables)
{
turnSlackVarsIntoConstraints(slackVariables);
sortConstraints();
trimConstraints();
}

void InfeasibleProblemReport::turnSlackVarsIntoConstraints(
const std::vector<const MPVariable*>& slackVariables)
const std::vector<const MPVariable*>& slackVariables)
{
for (const MPVariable* slack: slackVariables)
{
Expand Down

0 comments on commit 18232c4

Please sign in to comment.