Skip to content

Commit

Permalink
add update_solver_timelimit
Browse files Browse the repository at this point in the history
  • Loading branch information
ZedongPeng committed Sep 23, 2023
1 parent f766c0a commit 8306925
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pyomo/contrib/mindtpy/algorithm_base_class.py
Original file line number Diff line number Diff line change
Expand Up @@ -1618,6 +1618,7 @@ def solve_main(self):
# setup main problem
self.setup_main()
mip_args = self.set_up_mip_solver()
update_solver_timelimit(self.mip_opt, config.mip_solver, self.timing, config)

try:
main_mip_results = self.mip_opt.solve(
Expand Down Expand Up @@ -1675,6 +1676,9 @@ def solve_fp_main(self):
config = self.config
self.setup_fp_main()
mip_args = self.set_up_mip_solver()
update_solver_timelimit(
self.mip_opt, config.mip_solver, self.timing, config
)

main_mip_results = self.mip_opt.solve(
self.mip,
Expand Down

0 comments on commit 8306925

Please sign in to comment.