pub enum GamsSolverConfig {
Show 26 variants
Alphaecp(GamsAlphaecpOptions),
Antigone(GamsAntigoneOptions),
Baron(GamsBaronOptions),
Cbc(GamsCbcOptions),
Conopt(GamsConoptOptions),
Conopt3(GamsConopt3Options),
Copt(GamsCoptOptions),
Cplex(GamsCplexOptions),
Decis(GamsDecisOptions),
Dicopt(GamsDicoptOptions),
Gurobi(GamsGurobiOptions),
Highs(GamsHighsOptions),
Ipopt(GamsIpoptOptions),
Knitro(GamsKnitroOptions),
Lindo(GamsLindoOptions),
Minos(GamsMinosOptions),
Mosek(GamsMosekOptions),
Odhcplex(GamsOdhcplexOptions),
Sbb(GamsSbbOptions),
Scip(GamsScipOptions),
Shot(GamsShotOptions),
Snopt(GamsSnoptOptions),
Soplex(GamsSoplexOptions),
Xpress(GamsXpressOptions),
Named(GamsSolver),
Raw(GamsSolver, Vec<String>),
}Expand description
Selects a GAMS sub-solver and optionally carries typed options written
to a <solver>.opt file before invoking GAMS.
One variant per solver oximo supports from a modelling standpoint
(generated from option-snapshots/), plus Named to
pick any solver by name and Raw to write verbatim
option lines for a named solver.
Variants§
Alphaecp(GamsAlphaecpOptions)
Antigone(GamsAntigoneOptions)
Baron(GamsBaronOptions)
Cbc(GamsCbcOptions)
Conopt(GamsConoptOptions)
Conopt3(GamsConopt3Options)
Copt(GamsCoptOptions)
Cplex(GamsCplexOptions)
Decis(GamsDecisOptions)
Dicopt(GamsDicoptOptions)
Gurobi(GamsGurobiOptions)
Highs(GamsHighsOptions)
Ipopt(GamsIpoptOptions)
Knitro(GamsKnitroOptions)
Lindo(GamsLindoOptions)
Minos(GamsMinosOptions)
Mosek(GamsMosekOptions)
Odhcplex(GamsOdhcplexOptions)
Sbb(GamsSbbOptions)
Scip(GamsScipOptions)
Shot(GamsShotOptions)
Snopt(GamsSnoptOptions)
Soplex(GamsSoplexOptions)
Xpress(GamsXpressOptions)
Named(GamsSolver)
Any solver selectable by name with no typed option file.
Raw(GamsSolver, Vec<String>)
A solver selected by name with raw option-file lines written verbatim.
Implementations§
Source§impl GamsSolverConfig
impl GamsSolverConfig
Sourcepub fn supports(&self, kind: ModelKind) -> bool
pub fn supports(&self, kind: ModelKind) -> bool
Whether this solver can handle kind under oximo’s GAMS translation,
which emits QP as a QCP solve and MIQP as a MIQCP solve.
GamsSolver::Custom and any unrecognized name return true.
Trait Implementations§
Source§impl Clone for GamsSolverConfig
impl Clone for GamsSolverConfig
Source§fn clone(&self) -> GamsSolverConfig
fn clone(&self) -> GamsSolverConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GamsSolverConfig
impl Debug for GamsSolverConfig
Source§impl From<GamsSolver> for GamsSolverConfig
impl From<GamsSolver> for GamsSolverConfig
Source§fn from(s: GamsSolver) -> Self
fn from(s: GamsSolver) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for GamsSolverConfig
impl RefUnwindSafe for GamsSolverConfig
impl Send for GamsSolverConfig
impl Sync for GamsSolverConfig
impl Unpin for GamsSolverConfig
impl UnsafeUnpin for GamsSolverConfig
impl UnwindSafe for GamsSolverConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more