Skip to content
Snippets Groups Projects
Commit d7dda4e4 authored by chsieh16's avatar chsieh16
Browse files

Limit number of paths in a candidate for teacher

parent cc65a81c
No related branches found
No related tags found
No related merge requests found
......@@ -123,6 +123,10 @@ class DTreeGurobiTeacherBase(GurobiTeacherBase):
conjunct_list = list(self._candidate_to_conjuncts(candidate))
#TODO ANGELLO: add check if too many conjunctions
print(f"Number of conjuncts: {len(conjunct_list)}")
if len(conjunct_list) > 20: # TODO: make this a parameter to the class
self._reason_unknown = f'(too many paths {len(conjunct_list)} in candidate {candidate})'
return z3.unknown
print("Checking candidate", flush=True)
for conjunct in conjunct_list:
# print(".", end='', flush=True)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment