pub struct Problem {
pub fleet: Arc<Fleet>,
pub jobs: Arc<Jobs>,
pub locks: Vec<Arc<Lock>>,
pub goal: Arc<GoalContext>,
pub activity: Arc<dyn ActivityCost + Send + Sync>,
pub transport: Arc<dyn TransportCost + Send + Sync>,
pub extras: Arc<Extras>,
}Expand description
Defines VRP problem.
Fields
fleet: Arc<Fleet>Specifies used fleet.
jobs: Arc<Jobs>Specifies all jobs.
locks: Vec<Arc<Lock>>Specifies jobs which preassigned to specific vehicles and/or drivers.
goal: Arc<GoalContext>Specifies optimization goal with the corresponding global/local objectives and invariants.
activity: Arc<dyn ActivityCost + Send + Sync>Specifies activity costs.
transport: Arc<dyn TransportCost + Send + Sync>Specifies transport costs.
extras: Arc<Extras>Specifies index for storing extra parameters of arbitrary type.
Auto Trait Implementations
impl !RefUnwindSafe for Problem
impl Send for Problem
impl Sync for Problem
impl Unpin for Problem
impl !UnwindSafe for Problem
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more