Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong simulation mode when using CLI option --expansion #1761

Closed
flomnes opened this issue Nov 9, 2023 · 1 comment · Fixed by #1771
Closed

Wrong simulation mode when using CLI option --expansion #1761

flomnes opened this issue Nov 9, 2023 · 1 comment · Fixed by #1771
Labels
bug Something isn't working question Further information is requested

Comments

@flomnes
Copy link
Member

flomnes commented Nov 9, 2023

How to reproduce

Execute

antares-8.7-solver --expansion <study>

See logs

forcing the simulation mode Economy

Open question

Is it just in the logs, or is it a real bug ?

Developer notes

const char* StudyModeToCString(StudyMode mode)
{
switch (mode)
{
case stdmEconomy:
return "Economy";
case stdmAdequacy:
return "Adequacy";
case stdmMax:
case stdmExpansion:
case stdmUnknown:
return "Unknown";
}
return "Unknown";
}

// Simulation mode
// ... Expansion
if (mode == stdmExpansion)
{
mode = stdmEconomy;
expansion = true;
}
// ... Enforcing simulation mode
if (options.forceMode != stdmUnknown)
{
if (options.forceMode == stdmExpansion)
{
mode = stdmEconomy;
expansion = true;
}
else
mode = options.forceMode;

@flomnes flomnes added bug Something isn't working question Further information is requested labels Nov 9, 2023
@flomnes
Copy link
Member Author

flomnes commented Nov 15, 2023

It's only the logs. The 2nd optimization isn't run.

We only need to clarify the logs to display "Expansion".

@flomnes flomnes linked a pull request Nov 15, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working question Further information is requested
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant