#[non_exhaustive]pub struct Options {
pub pivot_rule: PivotRule,
pub max_iterations: usize,
}Expand description
Solver settings.
use simplex_trace::{Options, PivotRule};
let options = Options::default().pivot_rule(PivotRule::Bland).max_iterations(500);
assert_eq!(options.pivot_rule, PivotRule::Bland);Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.pivot_rule: PivotRule§max_iterations: usizeMaximum number of pivots per phase before giving up with Error::IterationLimit.
Implementations§
Source§impl Options
impl Options
pub fn pivot_rule(self, rule: PivotRule) -> Self
pub fn max_iterations(self, n: usize) -> Self
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Options
impl<'de> Deserialize<'de> for Options
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Options
impl StructuralPartialEq for Options
Auto Trait Implementations§
impl Freeze for Options
impl RefUnwindSafe for Options
impl Send for Options
impl Sync for Options
impl Unpin for Options
impl UnsafeUnpin for Options
impl UnwindSafe for Options
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