populationObjective: The objective value of the corresponding individual
reference: The reference point for computing HV
method: the HV computation method
hypervolumeMethodParam: A list of parameters to be passed to the hypervolumeMethod
ref_multiplier: Multiplier to the nadir point for dynamic reference point location
Returns
The index of the least contributor, an integer.
Examples
nObjective <-5# the number of objectivesnPoint <-10# the number of points that will form the hypervolumeobjective <- matrix(stats::runif(nObjective*nPoint), nrow = nObjective, ncol = nPoint)# run a generation of MO-CMA-ES with standard WFG8 test function.numpyready <- reticulate::py_module_available('numpy')pygmoready <- reticulate::py_module_available('pygmo')py_module_ready <- numpyready && pygmoready
if(py_module_ready)# prevent error on testing the exampleGetHypervolume(objective,,"exact")# no reference suppliedreference <- rep(2,nObjective)# create a reference point at (2,2,2,2,2)if(py_module_ready)# prevent error on testing the exampleGetLeastContributor(objective,reference,"exact")