Skip to content
Merged
Changes from 2 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
5 changes: 4 additions & 1 deletion mpisppy/cylinders/reduced_costs_spoke.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,8 @@ def lagrangian(self, need_solution=True, warmstart=False):
self.extract_and_store_reduced_costs()
self.update_bounding_functions(bound)
self.extract_and_store_updated_nonant_bounds(new_dual=True)
else:
self.extract_and_store_updated_nonant_bounds(new_dual=False)
return bound

def extract_and_store_reduced_costs(self):
Expand Down Expand Up @@ -317,6 +319,8 @@ def extract_and_store_updated_nonant_bounds(self, new_dual=False):
Field.NONANT_UPPER_BOUNDS,
)

self.update_nonant_bounds()

def update_nonant_bounds(self):
bounds_modified = 0
send_buf = self.send_buffers[Field.NONANT_LOWER_BOUNDS]
Expand Down Expand Up @@ -350,7 +354,6 @@ def do_while_waiting_for_new_Ws(self, need_solution, warmstart=False):
super().do_while_waiting_for_new_Ws(need_solution=need_solution, warmstart=False)
# might as well see if a tighter upper bound has come along
self.extract_and_store_updated_nonant_bounds(new_dual=False)
self.update_nonant_bounds()

def main(self):
# need the solution for ReducedCostsSpoke
Expand Down
Loading