pub struct HybridSolver {
pub ga_fraction: f64,
pub tabu_fraction: f64,
pub aco_fraction: f64,
pub ga_population: usize,
pub refine_top_k: usize,
/* private fields */
}Expand description
Hybrid solver that combines GA, Tabu Search, and ACO
Fields§
§ga_fraction: f64Fraction of budget for GA exploration (0.0-1.0)
tabu_fraction: f64Fraction of budget for Tabu refinement (0.0-1.0)
aco_fraction: f64Fraction of budget for ACO intensification (0.0-1.0)
ga_population: usizeGA population size
refine_top_k: usizeNumber of top GA solutions to refine
Implementations§
Source§impl HybridSolver
impl HybridSolver
Sourcepub fn with_ga_fraction(self, fraction: f64) -> Self
pub fn with_ga_fraction(self, fraction: f64) -> Self
Set GA budget fraction
Sourcepub fn with_tabu_fraction(self, fraction: f64) -> Self
pub fn with_tabu_fraction(self, fraction: f64) -> Self
Set Tabu budget fraction
Sourcepub fn with_aco_fraction(self, fraction: f64) -> Self
pub fn with_aco_fraction(self, fraction: f64) -> Self
Set ACO budget fraction
Sourcepub fn with_ga_population(self, size: usize) -> Self
pub fn with_ga_population(self, size: usize) -> Self
Set GA population size
Sourcepub fn with_refine_top_k(self, k: usize) -> Self
pub fn with_refine_top_k(self, k: usize) -> Self
Set number of top solutions to refine
Trait Implementations§
Source§impl Clone for HybridSolver
impl Clone for HybridSolver
Source§fn clone(&self) -> HybridSolver
fn clone(&self) -> HybridSolver
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 HybridSolver
impl Debug for HybridSolver
Source§impl Default for HybridSolver
impl Default for HybridSolver
Auto Trait Implementations§
impl Freeze for HybridSolver
impl RefUnwindSafe for HybridSolver
impl Send for HybridSolver
impl Sync for HybridSolver
impl Unpin for HybridSolver
impl UnwindSafe for HybridSolver
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more