From 0ad726b08bc65188d4603f326346338b4fc1e61f Mon Sep 17 00:00:00 2001 From: Jason Marechal Date: Fri, 13 Sep 2024 17:20:53 +0200 Subject: [PATCH] InMemory use xpress --- .../antares/file-tree-study-loader/FileTreeStudyLoader.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/libs/antares/file-tree-study-loader/FileTreeStudyLoader.cpp b/src/libs/antares/file-tree-study-loader/FileTreeStudyLoader.cpp index 92b8691d83..d5113dcea9 100644 --- a/src/libs/antares/file-tree-study-loader/FileTreeStudyLoader.cpp +++ b/src/libs/antares/file-tree-study-loader/FileTreeStudyLoader.cpp @@ -37,11 +37,13 @@ std::unique_ptr FileTreeStudyLoader::load() const { using namespace std::literals::string_literals; Antares::Solver::Application application; - constexpr unsigned int argc = 3; + constexpr unsigned int argc = 5; // On Windows, std::filesystem::path::value_type is wchar_t std::array argv{"", reinterpret_cast(study_path_.c_str()), - "--parallel"}; + "--parallel", + "--use-ortools", + "--ortools-solver=xpress"}; application.prepare(argc, argv.data()); return application.acquireStudy();