Skip to content

Commit

Permalink
Refactor experiment scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
reinterpretcat committed Oct 6, 2024
1 parent ff0ac24 commit fd3d623
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions experiments/etc/shared.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@ def solve_scientific(self, scientific_format, problem_path, config_path, solutio
raise ValueError('cannot get solution statistic')

# expected:
# rank: 0, fitness: (0.000, 92.000, 53389.603),
# fitness: (0.000, 92.000, 53389.603),
for best in re.finditer(
r"rank: 0, fitness: \((?P<unassigned>[\d.]+),?\s*(?P<tours>[\d.]+)?\s*, (?P<cost>[\d.]+)\)",
r"fitness: \((?P<unassigned>[\d.]+),?\s*(?P<tours>[\d.]+)?\s*, (?P<cost>[\d.]+)\)",
p.stdout):
pass

Expand Down

0 comments on commit fd3d623

Please sign in to comment.