def _parse_args(): parser = baseparsers.make_parser("uc_cylinders") parser = baseparsers.two_sided_args(parser) parser = baseparsers.fixer_args(parser) parser = baseparsers.fwph_args(parser) parser = baseparsers.lagrangian_args(parser) parser = baseparsers.xhatlooper_args(parser) parser = baseparsers.xhatshuffle_args(parser) parser = baseparsers.cross_scenario_cuts_args(parser) parser.add_argument("--ph-mipgaps-json", help="json file with mipgap schedule (default None)", dest="ph_mipgaps_json", type=str, default=None) parser.add_argument("--solution-dir", help="writes a tree solution to the provided directory" " (default None)", dest="solution_dir", type=str, default=None) parser.add_argument( "--xhat-closest-tree", help="Uses XhatClosest to compute a tree solution after" " PH termination (default False)", action='store_true', dest='xhat_closest_tree', default=False) args = parser.parse_args() return args
def _parse_args(): parser = baseparsers.make_parser(num_scens_reqd=False) parser.add_argument("--instance-name", help="netdes instance name (e.g., network-10-20-L-01)", dest="instance_name", type=str, default=None) parser = baseparsers.two_sided_args(parser) parser = baseparsers.xhatlooper_args(parser) parser = baseparsers.fwph_args(parser) parser = baseparsers.lagrangian_args(parser) parser = baseparsers.xhatshuffle_args(parser) parser = baseparsers.slamup_args(parser) parser = baseparsers.cross_scenario_cuts_args(parser) args = parser.parse_args() return args
def _parse_args(): parser = baseparsers.make_parser("uc_cylinders") parser = baseparsers.two_sided_args(parser) parser = baseparsers.fixer_args(parser) parser = baseparsers.fwph_args(parser) parser = baseparsers.lagrangian_args(parser) parser = baseparsers.xhatlooper_args(parser) parser = baseparsers.xhatshuffle_args(parser) parser = baseparsers.cross_scenario_cuts_args(parser) parser.add_argument("--ph-mipgaps-json", help="json file with mipgap schedule (default None)", dest="ph_mipgaps_json", type=str, default=None) args = parser.parse_args() return args