pub struct TspStateSnapshot {
pub tour: Vec<usize>,
pub tour_length: f64,
pub best_tour: Vec<usize>,
pub best_tour_length: f64,
pub restarts: u64,
pub two_opt_iterations: u64,
pub two_opt_improvements: u64,
}Expand description
TSP state snapshot for audit logging.
Fields§
§tour: Vec<usize>Current tour (city indices)
tour_length: f64Current tour length
best_tour: Vec<usize>Best tour found
best_tour_length: f64Best tour length
restarts: u64Number of restarts
two_opt_iterations: u64Number of 2-opt iterations
two_opt_improvements: u64Number of 2-opt improvements
Trait Implementations§
Source§impl Clone for TspStateSnapshot
impl Clone for TspStateSnapshot
Source§fn clone(&self) -> TspStateSnapshot
fn clone(&self) -> TspStateSnapshot
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 TspStateSnapshot
impl Debug for TspStateSnapshot
Source§impl Default for TspStateSnapshot
impl Default for TspStateSnapshot
Source§impl<'de> Deserialize<'de> for TspStateSnapshot
impl<'de> Deserialize<'de> for TspStateSnapshot
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 TspStateSnapshot
impl RefUnwindSafe for TspStateSnapshot
impl Send for TspStateSnapshot
impl Sync for TspStateSnapshot
impl Unpin for TspStateSnapshot
impl UnsafeUnpin for TspStateSnapshot
impl UnwindSafe for TspStateSnapshot
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