Skip to content

Commit

Permalink
add TODO for self.abort()
Browse files Browse the repository at this point in the history
  • Loading branch information
ZedongPeng committed Jan 10, 2024
1 parent b143e87 commit 09bda47
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pyomo/contrib/mindtpy/single_tree.py
Original file line number Diff line number Diff line change
Expand Up @@ -689,6 +689,7 @@ def __call__(self):
mindtpy_solver.mip_start_lazy_oa_cuts = []

if mindtpy_solver.should_terminate:
# TODO: check the performance difference if we don't use self.abort() and let cplex terminate by itself.
self.abort()
return
self.handle_lazy_main_feasible_solution(main_mip, mindtpy_solver, config, opt)
Expand Down Expand Up @@ -744,6 +745,7 @@ def __call__(self):
)
)
mindtpy_solver.results.solver.termination_condition = tc.optimal
# TODO: check the performance difference if we don't use self.abort() and let cplex terminate by itself.
self.abort()
return

Expand Down

0 comments on commit 09bda47

Please sign in to comment.