Skip to main content

TchebycheffSolver

Trait TchebycheffSolver 

Source
pub trait TchebycheffSolver<C, const N: usize> {
    type Solution;

    // Required method
    fn minimize(
        &mut self,
        scalarization: &Scalarization<C, N>,
    ) -> Option<(Self::Solution, [C; N])>;
}
Expand description

A single-objective solver for TPA’s subproblems: the solution with the smallest Scalarization::score over the whole feasible set, with its cost vector, or None if there is none.

Required Associated Types§

Source

type Solution

The solution type.

Required Methods§

Source

fn minimize( &mut self, scalarization: &Scalarization<C, N>, ) -> Option<(Self::Solution, [C; N])>

Minimizes scalarization.score over all solutions.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<G, H, C, P, const N: usize> TchebycheffSolver<C, N> for PathTchebycheff<'_, G, H, P>
where G: Graph<Weight = [C; N]>, H: Heuristic<G::State, [C; N]>, C: Cost + ExactArith<Exact = BigUint>, P: Fn(&G::State) -> bool,