[−][src]Struct vrp_core::construction::heuristics::SolutionContext
Contains information regarding discovered solution.
Fields
required: Vec<Job>List of jobs which require permanent assignment.
ignored: Vec<Job>List of jobs which at the moment does not require assignment and might be ignored.
unassigned: HashMap<Job, i32>Map of jobs which cannot be assigned and within reason code.
locked: HashSet<Job>Specifies jobs which should not be affected by ruin.
routes: Vec<RouteContext>Set of routes within their state.
registry: RegistryKeeps track of used resources.
state: HashMap<i32, StateValue>A collection of data associated with solution.
Implementations
impl SolutionContext[src]
pub fn get_total_cost(&self) -> Cost[src]
pub fn get_max_cost(&self) -> Cost[src]
pub fn to_solution(&self, extras: Arc<Extras>) -> Solution[src]
pub fn deep_copy(&self) -> Self[src]
Auto Trait Implementations
impl !RefUnwindSafe for SolutionContext
impl Send for SolutionContext
impl Sync for SolutionContext
impl Unpin for SolutionContext
impl !UnwindSafe for SolutionContext
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>,