NathanRoll commited on
Commit
ca9b42e
·
verified ·
1 Parent(s): d473813

Keep trivial records on exact reference metrics

Browse files
Files changed (1) hide show
  1. packing_benchmark/store.py +1 -1
packing_benchmark/store.py CHANGED
@@ -158,7 +158,7 @@ class SolutionStore:
158
  if reference is None:
159
  best[key] = coordinate
160
  continue
161
- if is_trivial_record(reference):
162
  best[key] = reference
163
  continue
164
  if metric_matches_reference(coordinate, reference):
 
158
  if reference is None:
159
  best[key] = coordinate
160
  continue
161
+ if is_trivial_record(reference) and is_trivial_record(coordinate):
162
  best[key] = reference
163
  continue
164
  if metric_matches_reference(coordinate, reference):