I am trying to write objective functions and constraints of a multi-objective optimization problem using pymoo. The problem is that I cannot transform the mathematical functions to python.
For a given solution
, one of the objective functions is:
I have searched for pymoo examples (complex ones) but I did not get much help.
Thanks in advance.
If I am not mistaken, you are trying to implement this paper.
I am giving you a rough sketch on how to implement the objective mentioned by you in question. You can try and implement the other two objectives in similar manner. To implement maximize for the third objective just take the negative of the objective and pass to
minimize
function.PS I am using
python 3.8.10
withpymoo 0.6.0
to code this example. This is to illustrate how to implement it in pymoo. For exact/correct solution you may have to consider the data and implement other objectives mentioned in the paper.