From baa047930dd3dfba3bab6cfe58ff9759cfa3a389 Mon Sep 17 00:00:00 2001 From: Thomas Bittar Date: Fri, 13 Dec 2024 16:09:44 +0100 Subject: [PATCH] Fix Antares command line --- src/python/antares_xpansion/antares_driver.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/python/antares_xpansion/antares_driver.py b/src/python/antares_xpansion/antares_driver.py index d98953170..65b7634c6 100644 --- a/src/python/antares_xpansion/antares_driver.py +++ b/src/python/antares_xpansion/antares_driver.py @@ -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):