Skip to content

Python wrapper for the WFG Hypervolume implementations

License

Notifications You must be signed in to change notification settings

epfl-lamd/hvwfg

Repository files navigation

hvwfg

Python wrapper for the Hypervolume calculation code of the Walking Fish Group

This package needs Cython and numpy to be installed.

python setup.py install

Usage

import numpy as np
import hvwfg

# Fitness vector assuming minimization
obj = np.array([[0.3, 0.6],
                [0.4, 0.4],
                [0.6, 0.2]])

ref = np.array([1.1, 1.1])

hvwfg.wfg(obj, ref)

Depending on the input size, the fastest code is selected.