jMetal / jMetalPy

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

Genetic algorithms cannot solve constrained problems #157

Closed ajnebro closed 5 months ago

ajnebro commented 1 year ago

Currently, the implementation of genetic algorithms for solving single-objective problems does not take into accont problem constraints.

While this issue is solved, the alternative is to use NSGA-II as in this example: https://github.com/jMetal/jMetalPy/blob/main/examples/singleobjective/nsgaii/nsgaii_single_objective_float.py