pub struct VrptwRequest {
pub id: String,
pub depot: Depot,
pub customers: Vec<Customer>,
pub time_limit_seconds: f64,
}Expand description
Seeded into ContextKey::Seeds with id prefix "vrptw-request:".
Models a single-vehicle TSP with Time Windows (TSPTW). Customers are optional: the objective is to maximise customers visited while respecting time windows and the vehicle’s return deadline.
Fields§
§id: String§depot: Depot§customers: Vec<Customer>§time_limit_seconds: f64Trait Implementations§
Source§impl Clone for VrptwRequest
impl Clone for VrptwRequest
Source§fn clone(&self) -> VrptwRequest
fn clone(&self) -> VrptwRequest
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for VrptwRequest
impl Debug for VrptwRequest
Source§impl<'de> Deserialize<'de> for VrptwRequest
impl<'de> Deserialize<'de> for VrptwRequest
Source§fn 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
Auto Trait Implementations§
impl Freeze for VrptwRequest
impl RefUnwindSafe for VrptwRequest
impl Send for VrptwRequest
impl Sync for VrptwRequest
impl Unpin for VrptwRequest
impl UnsafeUnpin for VrptwRequest
impl UnwindSafe for VrptwRequest
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