BIMK / PlatEMO

Evolutionary multi-objective optimization platform
1.5k stars 455 forks source link

Question about function evaluation #119

Closed mich0611 closed 1 year ago

mich0611 commented 1 year ago

It's really an excellent platform for MOP, full of various algorithms and benchmark problems. Just a question about "function evaluations" in the environment setting. How do we count the number of function evaluations in one run of MOEA ? Is it equal to [gen_number populaiton size objective number] ? Thanks !

tomtkg commented 1 year ago

The PROBLEM class has FE property. FE property is number of consumed function evaluations.

On line 154, FE is updated in the Evaluation function. That is, we count the number of function evaluations. The Evaluation function is often called from operator. Ex)OperatorGA line 73.

tomtkg commented 1 year ago

FE is independent of the objective number. FE may be equal to [gen_number populaiton size]. For NSGA-II, FE is equal to [gen_number populaiton size] if populaiton size is even. FE is not equal to [gen_number * populaiton size] if populaiton size is odd.

mich0611 commented 1 year ago

Okay, I got it. Thanks for your reply :)