Skip to content

Commit

Permalink
about objects lifetime
Browse files Browse the repository at this point in the history
  • Loading branch information
a-zakir committed Sep 11, 2023
1 parent 692a8a8 commit 7f8054d
Showing 1 changed file with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,11 @@ void OPT_ConstruireLaMatriceDesContraintesDuProblemeLineaire(PROBLEME_HEBDO* pro
ConstraintNamer constraintNamer(ProblemeAResoudre->NomDesContraintes,
problemeHebdo->NamedProblems);

AreaBalance areaBalance(problemeHebdo);
FictitiousLoad fictitiousLoad(problemeHebdo);
ShortTermStorageLevel shortTermStorageLevel(problemeHebdo);
FlowDissociation flowDissociation(problemeHebdo);
BindingConstraintHour bindingConstraintHour(problemeHebdo);
BindingConstraintDay bindingConstraintDay(problemeHebdo);
BindingConstraintWeek bindingConstraintWeek(problemeHebdo);
HydroPower hydroPower(problemeHebdo);
Expand All @@ -97,12 +102,6 @@ void OPT_ConstruireLaMatriceDesContraintesDuProblemeLineaire(PROBLEME_HEBDO* pro
CORRESPONDANCES_DES_CONTRAINTES& CorrespondanceCntNativesCntOptim
= problemeHebdo->CorrespondanceCntNativesCntOptim[pdt];

AreaBalance areaBalance(problemeHebdo);
FictitiousLoad fictitiousLoad(problemeHebdo);
ShortTermStorageLevel shortTermStorageLevel(problemeHebdo);
FlowDissociation flowDissociation(problemeHebdo);
BindingConstraintHour bindingConstraintHour(problemeHebdo);

for (uint32_t pays = 0; pays < problemeHebdo->NombreDePays; pays++)
{
areaBalance.add(pdt, pays);
Expand Down

0 comments on commit 7f8054d

Please sign in to comment.