Skip to content

Commit

Permalink
smell code
Browse files Browse the repository at this point in the history
  • Loading branch information
a-zakir committed Sep 22, 2023
1 parent 2f449c5 commit f31fb9e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
7 changes: 1 addition & 6 deletions src/solver/optimisation/constraints/ConstraintBuilder.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
#include "../opt_structure_probleme_a_resoudre.h"
#include "../opt_rename_problem.h"
#include "../opt_fonctions.h"

// TODO remove relative include
#include "../../simulation/sim_structure_probleme_economique.h"

#include <utility>
Expand Down Expand Up @@ -269,10 +267,7 @@ class ConstraintBuilder
class ConstraintBuilderInvalidOperator : public std::runtime_error
{
public:
explicit ConstraintBuilderInvalidOperator(const std::string& error_message) :
std::runtime_error(error_message)
{
}
using std::runtime_error::std::runtime_error;
};

/*!
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,6 @@ using namespace Antares::Data;

void OPT_ConstruireLaMatriceDesContraintesDuProblemeLineaire(PROBLEME_HEBDO* problemeHebdo, Solver::IResultWriter& writer)
{
int var;


PROBLEME_ANTARES_A_RESOUDRE* ProblemeAResoudre = problemeHebdo->ProblemeAResoudre.get();

int nombreDePasDeTempsDUneJournee = problemeHebdo->NombreDePasDeTempsDUneJournee;
Expand Down Expand Up @@ -123,8 +120,6 @@ void OPT_ConstruireLaMatriceDesContraintesDuProblemeLineaire(PROBLEME_HEBDO* pro

if (nombreDePasDeTempsPourUneOptimisation > nombreDePasDeTempsDUneJournee)
{
CORRESPONDANCES_DES_CONTRAINTES_HEBDOMADAIRES& CorrespondanceCntNativesCntOptimHebdomadaires
= problemeHebdo->CorrespondanceCntNativesCntOptimHebdomadaires;
for (uint32_t cntCouplante = 0; cntCouplante < problemeHebdo->NombreDeContraintesCouplantes;
cntCouplante++)
{
Expand Down

0 comments on commit f31fb9e

Please sign in to comment.