Skip to content

Commit

Permalink
set Xpress bool check
Browse files Browse the repository at this point in the history
  • Loading branch information
a-zakir committed Nov 15, 2023
1 parent dd28db3 commit 6340cb2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/cpp/multisolver_interface/SolverFactory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,10 @@ std::vector<std::string> 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 {
Expand Down

0 comments on commit 6340cb2

Please sign in to comment.