From fb252a6f6daf2e9ff73a1004ecf2bbc7f6867290 Mon Sep 17 00:00:00 2001 From: Abdoulbari Zakir Date: Wed, 21 Feb 2024 14:49:14 +0100 Subject: [PATCH] fix --- src/solver/optimisation/opt_optimisation_lineaire.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/solver/optimisation/opt_optimisation_lineaire.cpp b/src/solver/optimisation/opt_optimisation_lineaire.cpp index 0a80822a17..d6fd877dda 100644 --- a/src/solver/optimisation/opt_optimisation_lineaire.cpp +++ b/src/solver/optimisation/opt_optimisation_lineaire.cpp @@ -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);