Skip to content

Commit 374e528

Browse files
author
Sarah Krebs
committed
Fix incumbent calculation for single objective
1 parent 9e862e0 commit 374e528

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

deepcave/runs/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -946,7 +946,7 @@ def get_incumbent(
946946
if single_objective is None:
947947
cost = self.merge_costs(avg_cost, objectives)
948948
else:
949-
cost = avg_cost[0]
949+
cost = avg_cost[self.get_objective_id(single_objective)]
950950

951951
if cost is None:
952952
continue

0 commit comments

Comments
 (0)