Skip to content

Commit

Permalink
fix lbb solve_data bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ZedongPeng committed Feb 13, 2024
1 parent 42fa578 commit dac2f31
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyomo/contrib/gdpopt/branch_and_bound.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,12 +230,12 @@ def _solve_gdp(self, model, config):
no_feasible_soln = float('inf')
self.LB = (
node_data.obj_lb
if solve_data.objective_sense == minimize
if self.objective_sense == minimize
else -no_feasible_soln
)
self.UB = (
no_feasible_soln
if solve_data.objective_sense == minimize
if self.objective_sense == minimize
else -node_data.obj_lb
)
config.logger.info(
Expand Down

0 comments on commit dac2f31

Please sign in to comment.