We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1bcbce9 commit 8c32b37Copy full SHA for 8c32b37
pymoo/core/replacement.py
@@ -7,12 +7,12 @@
7
8
9
def is_better(_new, _old, eps=0.0):
10
- both_infeasible = not _old.feasible[0] and not _new.feasible[0]
11
- both_feasible = _old.feasible[0] and _new.feasible[0]
+ both_infeasible = not _old.feas and not _new.feas
+ both_feasible = _old.feas and _new.feas
12
13
if both_infeasible and _old.CV[0] - _new.CV[0] > eps:
14
return True
15
- elif not _old.feasible and _new.feasible:
+ elif not _old.FEAS and _new.FEAS:
16
17
elif both_feasible and _old.F[0] - _new.F[0] > eps:
18
0 commit comments