Trait cisat::Solution[][src]

pub trait Solution<T>: PartialOrd + Sub<Output = f64> + Sized {
    const NUMBER_OF_MOVE_OPERATORS: usize;
    const NUMBER_OF_OBJECTIVES: usize;

    fn generate_initial_solution() -> T;
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() -> T[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...