Skip to content

Commit

Permalink
adding new option to vanilla
Browse files Browse the repository at this point in the history
  • Loading branch information
bknueven committed Dec 2, 2024
1 parent a925ebe commit 7d73776
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions mpisppy/utils/cfg_vanilla.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,7 @@ def add_reduced_costs_fixer(hub_dict,
"fix_fraction_target_iterK": cfg.rc_fix_fraction_iterk,
"use_rc_bt": cfg.rc_bound_tightening,
"rc_bound_tol": cfg.rc_bound_tol,
"rc_fixer_require_improving_lagrangian": cfg.rc_fixer_require_improving_lagrangian,
}

return hub_dict
Expand Down
6 changes: 6 additions & 0 deletions mpisppy/utils/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -553,6 +553,12 @@ def reduced_costs_args(self):
domain=bool,
default=False)

self.add_to_config('rc_fixer_require_improving_lagrangian',
description="Only consider fixing / unfixing variables after the lagrangian "
"bound computed by the reduced cost spoke has improved. (default True)",
domain=bool,
default=True)

self.add_to_config('rc_zero_tol',
description="vars with rc below tol will never be fixed",
domain=float,
Expand Down

0 comments on commit 7d73776

Please sign in to comment.