Trait cisat::utilities::solution::Solution[][src]

pub trait Solution: PartialOrd + Sub<Output = f64> + Sized + Send + Ord + Clone + Debug {
    const NUMBER_OF_MOVE_OPERATORS: usize;
    const NUMBER_OF_OBJECTIVES: usize;

    fn generate_initial_solution() -> Self;
fn apply_move_operator(&mut self, move_index: usize, temperature: f64);
fn get_quality_scalar(&self) -> f64; }

This trait is the Solution trait, which provides the necessary pieces for a problem to interface with CISAT

Associated Constants

const NUMBER_OF_MOVE_OPERATORS: usize[src]

A problem must have a number of move operators specified

const NUMBER_OF_OBJECTIVES: usize[src]

A problem must have a number of objectives specified

Loading content...

Required methods

fn generate_initial_solution() -> Self[src]

A problem must have a means for generating an initia solution

fn apply_move_operator(&mut self, move_index: usize, temperature: f64)[src]

A problem must have a way to apply move operators to itself

fn get_quality_scalar(&self) -> f64[src]

A problem must have a mapping to a quality scalar

Loading content...

Implementors

Loading content...