Skip to content

Commit

Permalink
Add precisions
Browse files Browse the repository at this point in the history
  • Loading branch information
flomnes committed Jan 9, 2025
1 parent 955a703 commit 3a73ec5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions docs/user-guide/solver/static-modeler/04-parameters.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
4 changes: 2 additions & 2 deletions src/solver/utils/filename.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}

0 comments on commit 3a73ec5

Please sign in to comment.