You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Enhancing stop_criteria for Multi-Objective Optimization #314
In the current PyGAD implementation, the stop_criteria parameter references the fitness function's return value to determine when the desired fitness has been achieved. For example:
In this case, the reach_127.4 is pretty clear with what it does. However, the docs do not specify how stop_criteria works in the context of multi-objective optimization, where the fitness function returns multiple values like here:
From a quick look at the code I deduced that pygad actually supports it, but it's just not mentioned in the docs. So if I'm correct something like this works just fine for multi-objective optimization:
Multi-objective reach criteria now support thresholds for individual objectives, including negative thresholds, and the expected syntax is documented in the stop-criteria documentation. I verified that a run stops when its per-objective thresholds are reached. I am closing this as implemented.
Activity
ahmedfgad commentedon Feb 6, 2025
Thanks so much!
The documentation is updated and some more bugs are fixed: fd0e18f
Will be available in the next release!
ahmedfgad commentedon Oct 8, 2026
Multi-objective reach criteria now support thresholds for individual objectives, including negative thresholds, and the expected syntax is documented in the stop-criteria documentation. I verified that a run stops when its per-objective thresholds are reached. I am closing this as implemented.