anyoptimization / pymoo

NSGA2, NSGA3, R-NSGA3, MOEAD, Genetic Algorithms (GA), Differential Evolution (DE), CMAES, PSO
https://pymoo.org
Apache License 2.0
2.23k stars 381 forks source link

How to repair inputs(X) after problem evaluation? #591

Closed jacktang closed 4 months ago

jacktang commented 5 months ago

Hello there!

In my project the problem evaluation is very expensive, and I know how to repair the inputs(X) after the evaluation. In pymoo, the Repair operator takes problem and pop as arguments, which means I have to re-evaluate the problem and get the repaired inputs. How can I pass the evaluation results(repaired inputs included) to the Repair operator directory? Thanks!

blankjul commented 4 months ago

I am not sure if I fully understand the question. The Repair operator is always executed BEFORE the solution is even evaluated.

jacktang commented 4 months ago

@blankjul Thanks for your reply! and yes the Repair is executed before problem evaluation. As to the question, I created some cheap Repair function through data driven method and solved it.