From 3a73ec523921b633d3ebcc88d9b4dd83ba247a97 Mon Sep 17 00:00:00 2001 From: Florian OMNES Date: Thu, 9 Jan 2025 14:35:56 +0100 Subject: [PATCH] Add precisions --- docs/user-guide/solver/static-modeler/04-parameters.md | 5 +++-- src/solver/utils/filename.cpp | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/docs/user-guide/solver/static-modeler/04-parameters.md b/docs/user-guide/solver/static-modeler/04-parameters.md index c0b60b7562..a50f982135 100644 --- a/docs/user-guide/solver/static-modeler/04-parameters.md +++ b/docs/user-guide/solver/static-modeler/04-parameters.md @@ -439,8 +439,9 @@ _**This section is under construction**_ - **Required:** no - **Default value:** `false` - **Usage:** set to `true` to activate writing the raw optimization results, that is - - values and reduced costs for each variable - - marginal cost for each constraint + - For each variable, optimal values (saved in output/output-name/optimal-values-y-w--optim-nb-z.txt) and reduced costs (saved in output/output-name/reduced-costs-y-w--optim-nb-z.txt) + - each constraint, the marginal cost is saved in output/output-name/marinal-costs-y-w--optim-nb-z.txt +where y is the year number (starting from 1), w is the week number (starting from 1) and z is the optimization index (1 or 2). This is an advanced option intended to help developers and advanced users better understand their simulation results. diff --git a/src/solver/utils/filename.cpp b/src/solver/utils/filename.cpp index 2b23ed35ce..2393e40c13 100644 --- a/src/solver/utils/filename.cpp +++ b/src/solver/utils/filename.cpp @@ -75,11 +75,11 @@ std::string createSolutionFilename(const OptPeriodStringGenerator& optPeriodStri std::string createMarginalCostFilename(const OptPeriodStringGenerator& optPeriodStringGenerator, const unsigned int optNumber) { - return createOptimizationFilename("marginal-cost", optPeriodStringGenerator, optNumber, "txt"); + return createOptimizationFilename("marginal-costs", optPeriodStringGenerator, optNumber, "txt"); } std::string createReducedCostFilename(const OptPeriodStringGenerator& optPeriodStringGenerator, const unsigned int optNumber) { - return createOptimizationFilename("reduced-cost", optPeriodStringGenerator, optNumber, "txt"); + return createOptimizationFilename("reduced-costs", optPeriodStringGenerator, optNumber, "txt"); }