This script manages the hypervolume indicator computation of multiple Pareto fronts in parallel, using the calculator by Fonseca et al. available here.
- Bash
- Hypervolume Indicator Calculator: The path of your executable must be supplied on the first line of this script.
- GNU Parallel
Run this script from within the folder of the .pof
files that are to be processed, of which each contains a Pareto front.
A single file with the extension .ref
must be present in the current directory, containing the appropriate hypervolume reference point for the many-objective problem.
For each .pof
file found, a .hv
file is written containing the calculated hypervolume.
A .ohv
file is also written at the end of execution, containing the number of valid, convergent .pof
files (i.e., the number of files that contain solutions that dominate the provided reference point), the mean hypervolume, and the standard deviation of hypervolume of the valid files.
All filenames may contain any character other than the null character, \0
.
Run with the following command:
<path to hv_manager.sh> [OPTIONS]
Options:
-j N | --jobs N
: Number of concurrent calculations-s N | --stepping N
: If a generation number is specified in a filename, only process it if the generation number is divisible by N-r | --recursive
: Find.pof
files recursively-h | --help
: Display the help page
A sample of the required files and structure is provided in the examples
folder.
For academic publications, be sure to also cite GNU Parallel as per parallel --citation
.