Description Usage Arguments Value Examples
Get the hypervolume (HV) contribution of the individual with least HV contribution.
1 2 3 4 5 6 | GetLeastContribution(
populationObjective,
reference = NULL,
method = "exact",
ref_multiplier = 1.1
)
|
populationObjective |
The objective value of the corresponding individual |
reference |
The reference point for computing HV |
method |
the HV computation method |
ref_multiplier |
Multiplier to the nadir point for dynamic reference point location |
The HV contribution value of the least contributor.
1 2 3 4 5 6 7 8 9 10 11 12 13 |
nObjective <- 5 # the number of objectives
nPoint <- 10 # the number of points that will form the hypervolume
objective <- matrix(stats::runif(nObjective*nPoint), nrow = nObjective, ncol = nPoint)
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 example
GetHypervolume(objective,,"exact") # no reference supplied
reference <- rep(2,nObjective) # create a reference point at (2,2,2,2,2)
if(py_module_ready) # prevent error on testing the example
GetLeastContribution(objective,reference,"exact")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.