Skip to content

Commit

Permalink
slightly improved documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasWeise committed Sep 28, 2024
1 parent 3987e18 commit 9931a35
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions moptipy/algorithms/so/ffa/eafea_c.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ def solve(self, process: Process) -> None:
ea_no_lt_moves += 1 # Increase non-improved counter.
x_ea, x_new = x_new, x_ea # Accept new solution.
y_ea = y_new # Store objective value.
else: # The move was wose than current solution.
ea_no_lt_moves += 1 # Increase non-improved counter.
else: # The move was worse than the current solution.
ea_no_lt_moves += 1 # Increase non-improvement counter.

if ea_no_lt_moves >= ea_max_no_lt_moves: # Toggle: EA to FEA.
ea_no_lt_moves = 0 # Reset non-improving move counter.
Expand Down

0 comments on commit 9931a35

Please sign in to comment.