Skip to main content

quantrs2_tytan/applications/logistics/
binaryvehicleroutingproblem_traits.rs

1//! # BinaryVehicleRoutingProblem - Trait Implementations
2//!
3//! This module contains trait implementations for `BinaryVehicleRoutingProblem`.
4//!
5//! ## Implemented Traits
6//!
7//! - `OptimizationProblem`
8//!
9//! 🤖 Generated with [SplitRS](https://github.com/cool-japan/splitrs)
10
11use scirs2_core::random::prelude::*;
12use scirs2_core::random::prelude::*;
13
14use super::functions::OptimizationProblem;
15use super::types::BinaryVehicleRoutingProblem;
16
17impl OptimizationProblem for BinaryVehicleRoutingProblem {
18    type Solution = Vec<i8>;
19    fn evaluate(&self, solution: &Self::Solution) -> f64 {
20        self.evaluate_binary(solution)
21    }
22}