Skip to content

Commit

Permalink
fix #2092 maxevals should be consistent with evals in constrained set…
Browse files Browse the repository at this point in the history
…ting
  • Loading branch information
nikohansen committed Apr 19, 2022
1 parent 9b67323 commit 6294fda
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions code-postprocessing/cocopp/pproc.py
Original file line number Diff line number Diff line change
Expand Up @@ -1332,6 +1332,9 @@ def maxevals(self):
`maxevals` is a dictionary with maxevals as values and the source
file or folder as key.
"""
if testbedsettings.current_testbed.has_constraints:
return self.maxfgevals

if self._need_balancing:
return np.hstack([self._maxevals, np.hstack([(m - 1) * [self._maxevals[i]]
for i, m in enumerate(self.instance_multipliers)
Expand Down

0 comments on commit 6294fda

Please sign in to comment.