jMetal / jMetalPy

A framework for single/multi-objective optimization with metaheuristics
https://jmetal.github.io/jMetalPy/index.html
MIT License
498 stars 150 forks source link

Question: what are 'self.MAXIMIZE' and 'self.MINIMIZE' used for ? #116

Closed Amgroot-w closed 2 years ago

Amgroot-w commented 2 years ago

In specific problem definitions such as 'class SubsetSum()', there is an attribute called 'self.obj_directions' in method init() which is defined by 'self.MAXIMIZE' and 'self.MINIMIZE', but there is no call in a whole algorithm run. Is this attribute just a sign? Does it have an influence on the evolution progress?

ajnebro commented 2 years ago

By default, jMetalPy considers that all the objective functions are to be minimized. That attribute is not taken into account in the search process.