Skip to content

Commit

Permalink
Error from RVEA algorithm when the problem has no feasible solutions a…
Browse files Browse the repository at this point in the history
  • Loading branch information
blankjul committed Oct 17, 2023
1 parent 2a63574 commit f3f4b83
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pymoo/algorithms/moo/rvea.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,9 @@ def __init__(self, ref_dirs, alpha=2.0) -> None:
self.gamma = calc_gamma(self.V)

def adapt(self):
self.V = calc_V(calc_V(self.ref_dirs) * (self.nadir - self.ideal))
self.gamma = calc_gamma(self.V)
if self.nadir is not None:
self.V = calc_V(calc_V(self.ref_dirs) * (self.nadir - self.ideal))
self.gamma = calc_gamma(self.V)

def _do(self, problem, pop, n_survive, algorithm=None, n_gen=None, n_max_gen=None, **kwargs):

Expand Down

0 comments on commit f3f4b83

Please sign in to comment.