Skip to content

Commit

Permalink
not everything can be linearized. Catch errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Wout4 committed May 16, 2024
1 parent f5f2e8d commit fdaa043
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion benchmarks/run_benchmarks.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import glob
from pycsp3.parser.xparser import CallbackerXCSP3, ParserXCSP3
from callbackscpmpy import CallbacksCPMPy
from cpmpy.exceptions import TransformationNotImplementedError

# give this a meaningful name, so we know what branch was tested after the results are safed.
branch = 'main'
Expand Down Expand Up @@ -75,7 +76,11 @@ def solve_ortools():

def solve_exact():
global result
result = s.solve(time_limit=time_limit)
try:
result = s.solve(time_limit=time_limit)
except TransformationNotImplementedError as e:
result = None


if not transonly:
print('solving')
Expand Down

0 comments on commit fdaa043

Please sign in to comment.