class documentation

class TestCMOArchiving(unittest.TestCase):

View In Hierarchy

Tests for the CMOArchive class

Method test_add test if the add_points function works correctly
Method test_copy_CMOArchive Test the copy function of the CMOArchive class
Method test_hypervolume_easy test the hypervolume calculation for a simple case
Method test_hypervolume_plus_constr test the hypervolume_plus_constr indicator
Method test_infos_dominated test if the infos about dominated points are removed
Method test_remove Test the remove function, by comparing the archive with 100 points added and then 50 removed, to the with only the other 50 points added
def test_add(self):

test if the add_points function works correctly

def test_copy_CMOArchive(self):

Test the copy function of the CMOArchive class

def test_hypervolume_easy(self):

test the hypervolume calculation for a simple case

def test_hypervolume_plus_constr(self):

test the hypervolume_plus_constr indicator

def test_infos_dominated(self):

test if the infos about dominated points are removed

def test_remove(self, n_points=100, n_points_remove=50):

Test the remove function, by comparing the archive with 100 points added and then 50 removed, to the with only the other 50 points added