pub struct VrptwPlan {
pub request_id: String,
pub route: Vec<RouteStop>,
pub customers_total: usize,
pub customers_visited: usize,
pub total_distance: f64,
pub return_time: i64,
pub solver: String,
pub status: String,
pub wall_time_seconds: f64,
}Expand description
Written to ContextKey::Strategies with id prefix "vrptw-plan-<solver>:".
Fields§
§request_id: String§route: Vec<RouteStop>Ordered stops (depot → customers → depot is implied).
customers_total: usize§customers_visited: usize§total_distance: f64Total travel distance (unscaled, Euclidean).
return_time: i64Time the vehicle returns to depot.
solver: String§status: String§wall_time_seconds: f64Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for VrptwPlan
impl<'de> Deserialize<'de> for VrptwPlan
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 VrptwPlan
impl RefUnwindSafe for VrptwPlan
impl Send for VrptwPlan
impl Sync for VrptwPlan
impl Unpin for VrptwPlan
impl UnsafeUnpin for VrptwPlan
impl UnwindSafe for VrptwPlan
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