pub struct OneDOptions {
pub algorithm: OneDAlgorithm,
pub multistart_runs: usize,
pub improvement_rounds: usize,
pub column_generation_rounds: usize,
pub exact_pattern_limit: usize,
pub auto_exact_max_types: usize,
pub auto_exact_max_quantity: usize,
pub seed: Option<u64>,
}Expand description
Options controlling how solve_1d runs.
Fields§
§algorithm: OneDAlgorithmAlgorithm to dispatch to.
multistart_runs: usizeNumber of multistart restarts used by local search.
improvement_rounds: usizeNumber of improvement rounds per local search start.
column_generation_rounds: usizeNumber of column-generation rounds in the exact backend.
exact_pattern_limit: usizeMaximum number of patterns enumerated by the exact backend.
auto_exact_max_types: usizeMaximum number of demand types for the Auto mode to attempt exact solving.
auto_exact_max_quantity: usizeMaximum total quantity for the Auto mode to attempt exact solving.
seed: Option<u64>Optional seed for reproducible randomized algorithms.
Trait Implementations§
Source§impl Clone for OneDOptions
impl Clone for OneDOptions
Source§fn clone(&self) -> OneDOptions
fn clone(&self) -> OneDOptions
Returns a duplicate of the value. Read more
1.0.0 · 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 OneDOptions
impl Debug for OneDOptions
Source§impl Default for OneDOptions
impl Default for OneDOptions
Source§impl<'de> Deserialize<'de> for OneDOptions
impl<'de> Deserialize<'de> for OneDOptions
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
Source§impl PartialEq for OneDOptions
impl PartialEq for OneDOptions
Source§impl Serialize for OneDOptions
impl Serialize for OneDOptions
impl Eq for OneDOptions
impl StructuralPartialEq for OneDOptions
Auto Trait Implementations§
impl Freeze for OneDOptions
impl RefUnwindSafe for OneDOptions
impl Send for OneDOptions
impl Sync for OneDOptions
impl Unpin for OneDOptions
impl UnsafeUnpin for OneDOptions
impl UnwindSafe for OneDOptions
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