Ignore:
Timestamp:
Mar 22, 2010 9:18:10 PM (9 years ago)
Author:
jwatson
Message:

Added --output-scenario-tree-solution option to PySP runph script, which will:
1) Create a solution from the node averages in a scenario tree -and-
2) Output the full solution in scenario tree format (which includes the leaf nodes).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • coopr.pysp/trunk/coopr/pysp/phinit.py

    r2418 r2446  
    5353                     action="store_true",
    5454                     dest="report_solutions",
     55                     default=False)
     56   parser.add_option("--output-scenario-tree-solution",
     57                     help="Report the full solution (even leaves) in scenario tree format upon termination. Values represent averages, so convergence is not an issue. Default is False.",
     58                     action="store_true",
     59                     dest="output_scenario_tree_solution",
    5560                     default=False)
    5661   parser.add_option("--report-weights",
     
    473478                           solver=options.solver_type, \
    474479                           solver_manager=options.solver_manager_type, \
     480                           output_scenario_tree_solution=options.output_scenario_tree_solution, \
    475481                           scenario_solver_options=options.scenario_solver_options, \
    476482                           scenario_mipgap=options.scenario_mipgap, \
Note: See TracChangeset for help on using the changeset viewer.