From 3dc499592476144c69790c8fcead1da63958b874 Mon Sep 17 00:00:00 2001 From: ZedongPeng Date: Wed, 24 Jan 2024 16:58:41 -0500 Subject: [PATCH] fix bug --- pyomo/contrib/mindtpy/single_tree.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyomo/contrib/mindtpy/single_tree.py b/pyomo/contrib/mindtpy/single_tree.py index a82bb1ce541..77740ff15e3 100644 --- a/pyomo/contrib/mindtpy/single_tree.py +++ b/pyomo/contrib/mindtpy/single_tree.py @@ -775,7 +775,7 @@ def __call__(self): # solve subproblem # Call the NLP pre-solve callback - with time_code(self.timing, 'Call after subproblem solve'): + with time_code(mindtpy_solver.timing, 'Call after subproblem solve'): config.call_before_subproblem_solve(mindtpy_solver.fixed_nlp) # The constraint linearization happens in the handlers fixed_nlp, fixed_nlp_result = mindtpy_solver.solve_subproblem() @@ -924,7 +924,7 @@ def LazyOACallback_gurobi(cb_m, cb_opt, cb_where, mindtpy_solver, config): # solve subproblem # Call the NLP pre-solve callback - with time_code(self.timing, 'Call after subproblem solve'): + with time_code(mindtpy_solver.timing, 'Call after subproblem solve'): config.call_before_subproblem_solve(mindtpy_solver.fixed_nlp) # The constraint linearization happens in the handlers fixed_nlp, fixed_nlp_result = mindtpy_solver.solve_subproblem()