Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
a-zakir authored and JasonMarechal25 committed Feb 21, 2024
1 parent 670628e commit fb252a6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/solver/optimisation/opt_optimisation_lineaire.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,10 @@ bool OPT_OptimisationLineaire(const OptimizationOptions& options,
ConstraintBuilder builder(builder_data);
LinearProblemMatrix linearProblemMatrix(problemeHebdo, builder);
linearProblemMatrix.Run();
OPT_ExportStructures(problemeHebdo, writer);
if (problemeHebdo->ExportStructure && problemeHebdo->firstWeekOfSimulation)
{
OPT_ExportStructures(problemeHebdo, writer);
}

bool ret = runWeeklyOptimization(
options, problemeHebdo, adqPatchParams, writer, PREMIERE_OPTIMISATION);
Expand Down

0 comments on commit fb252a6

Please sign in to comment.