Skip to content

Commit

Permalink
New version of AbsCon
Browse files Browse the repository at this point in the history
  • Loading branch information
lecoutre committed Oct 6, 2020
1 parent 00f678f commit 5dcad7b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Binary file modified solvers/abscon/AbsCon-20-09.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion solvers/solver.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def extract_result_and_solution(stdout):
left, right = stdout.rfind("<instantiation"), stdout.rfind("</instantiation>")
s = stdout[left:right + len("</instantiation>")].replace("\nv", "")
root = etree.fromstring(s, etree.XMLParser(remove_blank_text=True))
optimal = stdout.find("s OPTIMUM ") != - -1
optimal = stdout.find("s OPTIMUM ") != -1
if cop:
if "type" not in root.attrib:
root.attrib['type'] = "solution" + (" optimal" if optimal else "")
Expand Down

0 comments on commit 5dcad7b

Please sign in to comment.