MCPcopy Create free account
hub / github.com/cvanaret/Uno / determine_subproblem_solvers

Method determine_subproblem_solvers

uno/options/DefaultOptions.cpp:155–169  ·  view source on GitHub ↗

determine default subproblem solvers, based on the available external dependencies

Source from the content-addressed store, hash-verified

153
154 // determine default subproblem solvers, based on the available external dependencies
155 void DefaultOptions::determine_subproblem_solvers(Options& options) {
156 // QP solver
157 if (0 < QPSolverFactory::available_solvers.size()) {
158 options.set_string("QP_solver", *QPSolverFactory::available_solvers.begin(), true);
159 }
160 // LP solver
161 if (0 < LPSolverFactory::available_solvers.size()) {
162 options.set_string("LP_solver", *LPSolverFactory::available_solvers.begin(), true);
163 }
164 // linear solver
165 const auto linear_solvers = SymmetricIndefiniteLinearSolverFactory::available_solvers();
166 if (!linear_solvers.empty()) {
167 options.set_string("linear_solver", linear_solvers[0], true);
168 }
169 }
170} // namespace

Callers

nothing calls this directly

Calls 4

set_stringMethod · 0.80
sizeMethod · 0.45
beginMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected