Skip to content

Commit 973224e

Browse files
committed
Missed gurobi_persistent iteration logic
1 parent 41ef40b commit 973224e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pyomo/contrib/solver/solvers/gurobi_persistent.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -857,7 +857,9 @@ def _postsolve(self, timer: HierarchicalTimer):
857857
):
858858
results.incumbent_objective = None
859859

860-
results.extra_info.iteration_count = gprob.getAttr('IterCount')
860+
results.extra_info.IterCount = gprob.getAttr('IterCount')
861+
results.extra_info.BarIterCount = gprob.getAttr('BarIterCount')
862+
results.extra_info.NodeCount = gprob.getAttr('NodeCount')
861863

862864
timer.start('load solution')
863865
if config.load_solutions:

0 commit comments

Comments
 (0)