Skip to main content

tpa

Function tpa 

Source
pub fn tpa<C, S, const N: usize>(
    solver: &mut S,
    ideal: [C; N],
    nadir: [C; N],
    on_point: impl FnMut(&S::Solution, [C; N]),
    budget: impl FnMut(&S) -> bool,
) -> TpaResult<S::Solution, C, N>
where C: Cost + ExactArith<Exact = BigUint>, S: TchebycheffSolver<C, N>,
Expand description

TPA (Algorithm 2) over any solver: the exact Pareto front of the problem whose ideal point is ideal and whose costs all lie below nadir (strictly, in every objective), found box by box.

The objective space starts as one box [ideal, nadir). Each step selects a box from the next direction’s queue in turn (Algorithm 3), by highest priority, and solves the augmented-Tchebycheff subproblem with weights ω_i = 1 / max(1, u_i - z^I_i) and ϵ = 1 / (2p(r - 1)) (r the widest range). A score below the limit means a new non-dominated point inside the box (Holzmann and Smith’s Theorem 5); it is reported, and every box whose upper bound lies above it is split by the p-partition (Definition 1, Algorithm 4), boxes with comparable upper bounds are joined (Definition 3), and the new boxes get the reduced scaled priority (Definition 4). Otherwise the box is dropped. Every point found is efficient, none twice, and the front is complete when no box is left (Theorem 1).

on_point gets each new solution and point; budget sees the solver and is checked before each subproblem.

Returns the solutions found and whether the front is complete.

§Panics

Panics if ideal is not below nadir in every objective.