mirror of
https://github.com/ANL-CEEESA/MIPLearn.git
synced 2025-12-06 09:28:51 -06:00
Remove print statement; add progress bar on evaluate
This commit is contained in:
@@ -114,7 +114,8 @@ class PrimalSolutionComponent(Component):
|
|||||||
|
|
||||||
def evaluate(self, instances):
|
def evaluate(self, instances):
|
||||||
ev = {}
|
ev = {}
|
||||||
for (instance_idx, instance) in enumerate(instances):
|
for instance_idx in tqdm(range(len(instances))):
|
||||||
|
instance = instances[instance_idx]
|
||||||
solution_actual = instance.solution
|
solution_actual = instance.solution
|
||||||
solution_pred = self.predict(instance)
|
solution_pred = self.predict(instance)
|
||||||
|
|
||||||
|
|||||||
@@ -63,7 +63,6 @@ class GurobiSolver(PyomoSolver):
|
|||||||
self._pyomo_solver.options["LazyConstraints"] = 1
|
self._pyomo_solver.options["LazyConstraints"] = 1
|
||||||
self._pyomo_solver.set_callback(cb)
|
self._pyomo_solver.set_callback(cb)
|
||||||
self.instance.found_violations = []
|
self.instance.found_violations = []
|
||||||
print(self._is_warm_start_available)
|
|
||||||
streams = [StringIO()]
|
streams = [StringIO()]
|
||||||
if tee:
|
if tee:
|
||||||
streams += [sys.stdout]
|
streams += [sys.stdout]
|
||||||
|
|||||||
Reference in New Issue
Block a user