Skip to content

Commit

Permalink
Fix launch studies with empty solver (#2523)
Browse files Browse the repository at this point in the history
By default, the "solver" field is empty. So the command line looks like
this

```
antares-solver --progress "029 Pumped storage" --solver=
```
which is invalid. Unless the user provides a solver, don't append
"--solver=<solverName>" at the end of the command line.
  • Loading branch information
flomnes authored Dec 5, 2024
1 parent c67e312 commit e80945a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/ui/simulator/application/study.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1207,7 +1207,10 @@ void RunSimulationOnTheStudy(Data::Study::Ptr study,
cmd << " --parallel";

// add solver name for ortools
cmd << " --solver=" << solverName;
if (!solverName.empty())
{
cmd << " --solver=" << solverName;
}

// Go go go !
logs.debug() << "running " << cmd;
Expand Down

0 comments on commit e80945a

Please sign in to comment.