Skip to main content

MonteCarloHV

Module: opytimizer.math.metrics

Hypervolume estimated by Monte Carlo sampling (suited for many objectives).

Samples are drawn uniformly from the box [lower_bound, upper_bound], and the hypervolume is the fraction of samples dominated by the front times the volume of the box. upper_bound plays the role of the reference point and lower_bound should be no worse than the ideal point of the front.

Constructor​

MonteCarloHV(n_samples: int = 1000000, lower_bound: Union[float, List[float]] = 0.0, upper_bound: Union[float, List[float]] = 1.0, parallel: bool = False)

Parameters​

ParameterTypeDefaultDescription
n_samplesint1000000Number of Monte Carlo samples.
lower_boundUnion[float, List[float]]0.0Lower corner of the sampling box (scalar or per objective).
upper_boundUnion[float, List[float]]1.0Upper corner of the sampling box, i.e., the reference point.
parallelboolFalseWhether the dominance checks are split among threads.