Skip to main content

Module objective

Module objective 

Source
Expand description

What is optimised: Objective for one cost, MultiObjective for a cost vector with a constraint violation.

Structs§

MultiObjectiveFn
A closure used as a MultiObjective; created by multi_objective_fn.

Traits§

MultiObjective
Several costs to minimise at once, plus a constraint violation.
Objective
A cost to minimise for each genome.

Functions§

multi_objective_fn
Turns a closure FnMut(&G, &mut [f64]) -> f64 with objectives costs into a MultiObjective.