Skip to content

Commit

Permalink
Fix Antares command line
Browse files Browse the repository at this point in the history
  • Loading branch information
tbittar committed Dec 13, 2024
1 parent a12396a commit baa0479
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/python/antares_xpansion/antares_driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,9 @@ def _set_simulation_name(self):
def _get_antares_cmd(self):
cmd = [str(self.antares_exe_path), self.data_dir, self.ANTARES_N_CPU_OPTION, str(self.antares_n_cpu), self.zip_option]
if self.use_xpress:
cmd.extend(["--use-ortools", "--ortools-solver=xpress"])
cmd.extend(["--solver=xpress"])
else:
cmd.extend(["--use-ortools", "--ortools-solver=sirius"])
cmd.extend(["--solver=sirius"])
simulator_version = version.parse(__antares_simulator_version__)
simulator_version_with_named_mps = version.parse(self.FIRST_VERSION_WITH_NAMED_PROBLEMS)
if (simulator_version.major > simulator_version_with_named_mps.major) or (simulator_version.major >= simulator_version_with_named_mps.major and simulator_version.minor >= simulator_version_with_named_mps.minor):
Expand Down

0 comments on commit baa0479

Please sign in to comment.