[−][src]Struct vrp_core::construction::heuristics::InsertionContext
A context which contains information needed for heuristic and metaheuristic.
Fields
problem: Arc<Problem>
Original problem.
solution: SolutionContext
Solution context: discovered solution.
random: Arc<dyn Random + Send + Sync>
Random generator.
Implementations
impl InsertionContext
[src]
pub fn new(problem: Arc<Problem>, random: Arc<dyn Random + Send + Sync>) -> Self
[src]
Creates insertion context from existing solution.
pub fn new_from_solution(
problem: Arc<Problem>,
solution: (Solution, Option<Cost>),
random: Arc<dyn Random + Send + Sync>
) -> Self
[src]
problem: Arc<Problem>,
solution: (Solution, Option<Cost>),
random: Arc<dyn Random + Send + Sync>
) -> Self
Creates insertion context from existing solution.
pub fn restore(&mut self)
[src]
Restores valid context state.
pub fn deep_copy(&self) -> Self
[src]
Creates a deep copy of InsertionContext
.
Auto Trait Implementations
impl !RefUnwindSafe for InsertionContext
impl Send for InsertionContext
impl Sync for InsertionContext
impl Unpin for InsertionContext
impl !UnwindSafe for InsertionContext
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,