Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ZedongPeng committed Jan 24, 2024
1 parent a49eb25 commit 3dc4995
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyomo/contrib/mindtpy/single_tree.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit 3dc4995

Please sign in to comment.