pub struct TspConfig {
pub simulation: SimulationConfig,
pub meta: TspMeta,
pub cities: Vec<TspCity>,
pub matrix: Vec<Vec<u32>>,
pub algorithm: TspAlgorithmConfig,
}Expand description
Complete TSP configuration from YAML (extends TspInstanceYaml).
Fields§
§simulation: SimulationConfigSimulation header for DemoEngine.
meta: TspMetaInstance metadata.
cities: Vec<TspCity>List of cities.
matrix: Vec<Vec<u32>>Distance matrix (n x n).
algorithm: TspAlgorithmConfigAlgorithm configuration.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TspConfig
impl<'de> Deserialize<'de> for TspConfig
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 TspConfig
impl RefUnwindSafe for TspConfig
impl Send for TspConfig
impl Sync for TspConfig
impl Unpin for TspConfig
impl UnsafeUnpin for TspConfig
impl UnwindSafe for TspConfig
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