Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

show fingerprint #13

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -131,3 +131,5 @@ dmypy.json
examples/tsp_evaluation/PRIVATE_DATA/full_experiment_data
evaluations/tsp/2023-11-18_random_euclidean/PRIVATE_DATA
evaluations/tsp/2023-11-18_tsplib/PRIVATE_DATA

.vscode/
2 changes: 2 additions & 0 deletions _app/overview.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
SolverBlock,
ResponseBlock,
InitialModelBlock,
SolutionsBlock,
PresolvedModelBlock,
PresolveSummaryBlock,
)
from cpsat_log_parser import LogParser
Expand Down
6 changes: 6 additions & 0 deletions cpsat_log_parser/blocks/solver_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ def __init__(self, lines: typing.List[str]) -> None:
def matches(lines: typing.List[str]) -> bool:
return lines[0].startswith("CpSolverResponse") if lines else False

def get_solution_fingerprint(self) -> str:
for line in self.lines:
if "solution_fingerprint" in line:
return line.split("solution_fingerprint:")[1].strip(")")
return "None"

def get_title(self) -> str:
return "CpSolverResponse"

Expand Down