pub struct Lns2Config {
pub neighborhood_size: usize,
pub seed: u64,
}Expand description
The settings of lns2.
Fields§
§neighborhood_size: usizeHow many agents each iteration replans, the paper’s N; at least 1, at most the
number of agents (larger values are capped). The default is the paper’s 8.
seed: u64The seed of every random choice: the same instance, configuration and budget give the same result.
Trait Implementations§
Source§impl Clone for Lns2Config
impl Clone for Lns2Config
impl Copy for Lns2Config
Source§impl Debug for Lns2Config
impl Debug for Lns2Config
impl Eq for Lns2Config
Source§impl Hash for Lns2Config
impl Hash for Lns2Config
Source§impl PartialEq for Lns2Config
impl PartialEq for Lns2Config
impl StructuralPartialEq for Lns2Config
Auto Trait Implementations§
impl Forget for Lns2Config
impl Freeze for Lns2Config
impl Move for Lns2Config
impl RefUnwindSafe for Lns2Config
impl Send for Lns2Config
impl Sync for Lns2Config
impl Unpin for Lns2Config
impl UnsafeUnpin for Lns2Config
impl UnwindSafe for Lns2Config
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