Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions mpisppy/utils/amalgamator.py
Original file line number Diff line number Diff line change
Expand Up @@ -328,12 +328,14 @@ def run(self):

self.is_minimizing = objs[0].is_minimizing
#TBD : Write a function doing this
# The solver's Lower and Upper bounds bracket the optimal value, so
# which one is the outer (relaxation) bound depends on the sense.
if self.is_minimizing:
self.best_outer_bound = results.Problem[0]['Lower bound']
self.best_inner_bound = results.Problem[0]['Upper bound']
else:
self.best_inner_bound = results.Problem[0]['Upper bound']
self.best_outer_bound = results.Problem[0]['Lower bound']
self.best_outer_bound = results.Problem[0]['Upper bound']
self.best_inner_bound = results.Problem[0]['Lower bound']
self.ef = ef

if 'write_solution' in self.cfg:
Expand Down
Loading