Skip to main content

resolve_solver

Function resolve_solver 

Source
pub fn resolve_solver(
    class: ProblemClass,
    selection: SolverSelection,
) -> Result<SolverChoice, String>
Expand description

Resolve a ProblemClass and a SolverSelection into the solver to dispatch to, or an error string when a forced selection does not match the detected class.

auto routes LP / convex QP to the convex IPM (QpIpm) and convex QCQP to the conic IPM (SocpIpm); nonconvex QP and general NLP resolve to Nlp. A forced selection that does not match the detected class is rejected with a clear message. (QpActiveSet is accepted for LP / convex QP and dispatched to the active-set SQP engine — see main.rs.)