pub struct GamsOptions {
pub universal: UniversalOptions,
pub mip_gap: Option<f64>,
pub solver: Option<GamsSolverConfig>,
pub gams_path: Option<PathBuf>,
}Expand description
GAMS-specific solver options.
Fields§
§universal: UniversalOptions§mip_gap: Option<f64>§solver: Option<GamsSolverConfig>Sub-solver selection with optional typed options.
Translates to option {LP|MIP} = <name>; plus a <solver>.opt file
when options are set.
gams_path: Option<PathBuf>Override for the gams executable. When None, "gams" is looked up
from PATH.
Implementations§
Trait Implementations§
Source§impl Clone for GamsOptions
impl Clone for GamsOptions
Source§fn clone(&self) -> GamsOptions
fn clone(&self) -> GamsOptions
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 GamsOptions
impl Debug for GamsOptions
Source§impl Default for GamsOptions
impl Default for GamsOptions
Source§fn default() -> GamsOptions
fn default() -> GamsOptions
Returns the “default value” for a type. Read more
Source§impl HasUniversal for GamsOptions
impl HasUniversal for GamsOptions
fn universal(&self) -> &UniversalOptions
fn universal_mut(&mut self) -> &mut UniversalOptions
Auto Trait Implementations§
impl Freeze for GamsOptions
impl RefUnwindSafe for GamsOptions
impl Send for GamsOptions
impl Sync for GamsOptions
impl Unpin for GamsOptions
impl UnsafeUnpin for GamsOptions
impl UnwindSafe for GamsOptions
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