Skip to content

Termination Criterion #235

Answered by blankjul
m-zakeri asked this question in Q&A
Discussion options

You must be logged in to vote

So far, the termination does not store why the decision has been made. The easiest way of achieving this is by inheriting from MultiObjectiveDefaultTermination and storing the decision in the object itself.
See the example below. Also, note that cv_tol is violated anytime for unconstrained problems to ensure the expression becomes false when f_tol is violated.

from pymoo.algorithms.moo.nsga2 import NSGA2
from pymoo.factory import get_problem
from pymoo.optimize import minimize
from pymoo.util.termination.default import MultiObjectiveDefaultTermination

problem = get_problem("zdt1")

algorithm = NSGA2(pop_size=100, eliminate_duplicates=True)

termination = MultiObjectiveDefaultTermination(…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by m-zakeri
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants