Skip to content

Commit d7d86b8

Browse files
committed
Revert "Merge pull request #543 from aasgerr/grad-rho"
This reverts commit 8cc8085, reversing changes made to 900d058.
1 parent c8fcc8c commit d7d86b8

File tree

2 files changed

+28
-327
lines changed

2 files changed

+28
-327
lines changed

mpisppy/extensions/grad_rho.py

Lines changed: 0 additions & 315 deletions
This file was deleted.

mpisppy/utils/config.py

Lines changed: 28 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -899,19 +899,35 @@ def cross_scenario_cuts_args(self):
899899

900900
def gradient_args(self):
901901

902-
self.add_to_config("grad_rho_multiplier",
903-
description="multiplier for GradRho (default 1.0)",
904-
domain=float,
905-
default=1.0)
906-
907-
self.add_to_config("eval_at_xhat",
908-
description="evaluate the gradient at xhat whenever available (default False)",
909-
domain=bool,
910-
default=False)
911-
self.add_to_config("indep_denom",
912-
description="evaluate rho using scenario independent denominator (default False)",
902+
self.add_to_config("xhatpath",
903+
description="path to npy file with xhat",
904+
domain=str,
905+
default='')
906+
self.add_to_config("grad_cost_file_out",
907+
description="name of the gradient cost file for output (will be csv)",
908+
domain=str,
909+
default='')
910+
self.add_to_config("grad_cost_file_in",
911+
description="path to csv file with (grad based?) costs",
912+
domain=str,
913+
default='')
914+
self.add_to_config("grad_rho_file_out",
915+
description="name of the gradient rho output file (must be csv)",
916+
domain=str,
917+
default='')
918+
self.add_to_config("rho_file_in",
919+
description="name of the (gradient) rho input file (must be csv)",
920+
domain=str,
921+
default='')
922+
self.add_to_config("grad_display_rho",
923+
description="display rho during gradient calcs (default True)",
913924
domain=bool,
914-
default=False)
925+
default=True)
926+
# likely unused presently
927+
# self.add_to_config("grad_pd_thresh",
928+
# description="threshold for dual/primal during gradient calcs",
929+
# domain=float,
930+
# default=0.1)
915931

916932
self.add_to_config('grad_rho',
917933
description="use a gradient-based rho setter",

0 commit comments

Comments
 (0)