pub struct Problem {
pub plan: Plan,
pub fleet: Fleet,
pub objectives: Option<Vec<Vec<Objective>>>,
}Expand description
A VRP problem definition.
Fields
plan: PlanProblem plan: customers to serve.
fleet: FleetProblem resources: vehicles to be used, routing info.
objectives: Option<Vec<Vec<Objective>>>Specifies objective function hierarchy.
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Problem
impl<'de> Deserialize<'de> for Problem
sourcefn 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
sourceimpl PragmaticProblem for Problem
impl PragmaticProblem for Problem
sourcefn read_pragmatic(self) -> Result<CoreProblem, Vec<FormatError>>
fn read_pragmatic(self) -> Result<CoreProblem, Vec<FormatError>>
Reads problem defined in pragmatic format.
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