Skip to content

Commit

Permalink
gcs: fix proof name.
Browse files Browse the repository at this point in the history
  • Loading branch information
mmcilree committed Jul 12, 2024
1 parent 8d7d1c4 commit fa5adf1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cpmpy/solvers/gcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def has_objective(self):
return self.objective_var != None

def solve(self, time_limit=None, prove=False, proof_name=None, proof_location=".",
verify=False, verify_time_limit=None, veripb_args = [], display_verifier_output=False, **kwargs):
verify=True, verify_time_limit=30, veripb_args = [], display_verifier_output=True, **kwargs):
"""
Run the Glasgow Constraint Solver, get just one (optimal) solution.
Arguments:
Expand All @@ -128,6 +128,8 @@ def solve(self, time_limit=None, prove=False, proof_name=None, proof_location=".
self.proof_name = path.splitext(path.basename(sys.modules['__main__'].__file__))[0]
else:
self.proof_name = "gcs_proof"
else:
self.proof_name = proof_name
self.proof_location = proof_location

# call the solver, with parameters
Expand Down Expand Up @@ -178,7 +180,7 @@ def solve(self, time_limit=None, prove=False, proof_name=None, proof_location=".
return has_sol

def solveAll(self, time_limit=None, display=None, solution_limit=None, call_from_model=False,
prove=False, proof_name=None, proof_location=".", verify=False, verify_time_limit=None, veripb_args = [], display_verifier_output=False, **kwargs):
prove=False, proof_name=None, proof_location=".", verify=True, verify_time_limit=30, veripb_args = [], display_verifier_output=True, **kwargs):
"""
Run the Glasgow Constraint Solver, and get a number of solutions, with optional solution callbacks.
Expand Down

0 comments on commit fa5adf1

Please sign in to comment.