Platypus icon indicating copy to clipboard operation
Platypus copied to clipboard

maximization with NSGA III

Open harsha3080 opened this issue 4 years ago • 4 comments

Is there any possible way using NSGA III for 3 objectives problem with 2 objectives are minimized and the one should be maximized?

harsha3080 avatar Apr 08 '20 10:04 harsha3080

Yes, this should be possible by setting the directions:

problem.directions[0] = Problem.MINIMIZE
problem.directions[1] = Problem.MINIMIZE
problem.directions[2] = Problem.MAXIMIZE

dhadka avatar Apr 08 '20 13:04 dhadka

Hi...Thanks for the reply but it says as it is shown in the attached figure. Capture

harsha3080 avatar Apr 08 '20 14:04 harsha3080

Oh, lol...thanks for pointing that out :) I don't remember why I didn't add support for maximizing...

Alternatively, you can negate the objective value instead. Maximizing objective f(x) is the same as minimizing -f(x).

dhadka avatar Apr 08 '20 15:04 dhadka

Yeah....thanks dhadka. Let me try that....i am just comparing nsga 2 and nsga 3 for an engineering problem with 3 objectives. Nsga 2 is giving distributed results while nsga 3 is sticking to the small part. Anyway...thanks for the wonderful library.

harsha3080 avatar Apr 09 '20 08:04 harsha3080

This issue is stale and will be closed soon. If you feel this issue is still relevant, please comment to keep it active. Please also consider working on a fix and submitting a PR.

github-actions[bot] avatar Nov 04 '22 20:11 github-actions[bot]