martin-fleck / momot

Marrying Search-based Optimization and Model Transformation Technology
http://martin-fleck.github.io/momot/
17 stars 6 forks source link

MultiDimensionalFitnessFunction evaluates objectives prior to constraints #1

Closed sherzig closed 8 years ago

sherzig commented 8 years ago

In at.ac.tuwien.big.moea.search.fitness.MultiDimensionalFitnessFunction, the method delegateEvaluation(Solution solution) evaluates objectives prior to constraints. In practice, this can be a performance problem if objectives are computationally hard to evaluate, and solutions that violate constraints are considered for further analysis.

Is there a particular reason this was done in this order?

martin-fleck commented 8 years ago

You are right, this should not be the case. In fact, the evaluation of the objectives can be neglected when the constraints are violated. Thank you for pointing this out. I will have a more detailed look at the implications of changing this and push a fix as soon as I have some time!

sherzig commented 8 years ago

Thanks!