mirror of
https://github.com/ANL-CEEESA/MIPLearn.git
synced 2025-12-06 01:18:52 -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):
|
||||
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_pred = self.predict(instance)
|
||||
|
||||
|
||||
@@ -63,7 +63,6 @@ class GurobiSolver(PyomoSolver):
|
||||
self._pyomo_solver.options["LazyConstraints"] = 1
|
||||
self._pyomo_solver.set_callback(cb)
|
||||
self.instance.found_violations = []
|
||||
print(self._is_warm_start_available)
|
||||
streams = [StringIO()]
|
||||
if tee:
|
||||
streams += [sys.stdout]
|
||||
|
||||
Reference in New Issue
Block a user