From 6340cb22dfe77c6f2807eed3e99b6bbd12b8f8bb Mon Sep 17 00:00:00 2001 From: Abdoulbari Zakir Date: Wed, 15 Nov 2023 08:46:01 -0800 Subject: [PATCH] set Xpress bool check --- src/cpp/multisolver_interface/SolverFactory.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/cpp/multisolver_interface/SolverFactory.cpp b/src/cpp/multisolver_interface/SolverFactory.cpp index f0b6932ee..c4cdce683 100644 --- a/src/cpp/multisolver_interface/SolverFactory.cpp +++ b/src/cpp/multisolver_interface/SolverFactory.cpp @@ -24,7 +24,10 @@ std::vector SolverLoader::GetAvailableSolvers() { } SolverFactory::SolverFactory() - : _available_solvers(SolverLoader::GetAvailableSolvers()) {} + : _available_solvers(SolverLoader::GetAvailableSolvers()) { + isXpress_available_ = + std::find(tmp.cbegin(), tmp.cend(), XPRESS_STR) != tmp.cend(); +} SolverAbstract::Ptr SolverFactory::create_solver( const std::string &solver_name, const SOLVER_TYPE solver_type) const {