Should I always give output values in the evaluate function? #213
-
First of all, I would like to thank everyone who contributed to this library. ^^ I'm developing a circuit optimization tool, simulating the input values in the circuit and passing the output values to pymoo. But a numerical value does not always come from the circuit simulation, the circuit may give an error according to the individuals produced. In this case, the value is "failed" and I cannot output this value.(out["F"]) In this case, is it sufficient to just terminate the function with exiting with "return"? Nor can I define a constraint function and have it fail manually, as I have to use the MOEA/D algorithm. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
This looks like a hidden constraint to me with failed runs. The easiest fix is to wrap your function with |
Beta Was this translation helpful? Give feedback.
-
just set |
Beta Was this translation helpful? Give feedback.
just set
out["F"] = [np.inf, np.inf]
when it fails.