Skip to content

Commit

Permalink
InMemory use xpress
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonMarechal25 committed Sep 13, 2024
1 parent 0a45c7e commit 0ad726b
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,13 @@ std::unique_ptr<Antares::Data::Study> 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<const char*, argc> argv{"",
reinterpret_cast<const char*>(study_path_.c_str()),
"--parallel"};
"--parallel",
"--use-ortools",
"--ortools-solver=xpress"};
application.prepare(argc, argv.data());

return application.acquireStudy();
Expand Down

0 comments on commit 0ad726b

Please sign in to comment.