Ignore:
Timestamp:
Jul 23, 2010 5:36:23 PM (11 years ago)
Author:
jwatson
Message:

Adding --keep-solver-files option to the PySP runef script, to aid debugging.

File:
1 edited

Legend:

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

    r2772 r2842  
    9494                     default="serial")
    9595   parser.add_option("--solver-options",
    96                      help="Solver options for the extension form problem",
     96                     help="Solver options for the extension form problem.",
    9797                     action="append",
    9898                     dest="solver_options",
     
    100100                     default=[])
    101101   parser.add_option("--mipgap",
    102                      help="Specifies the mipgap for the EF solve",
     102                     help="Specifies the mipgap for the EF solve.",
    103103                     action="store",
    104104                     dest="mipgap",
     
    106106                     default=None)   
    107107   parser.add_option("--output-solver-log",
    108                      help="Output solver log during the extensive form solve",
     108                     help="Output solver log during the extensive form solve.",
    109109                     action="store_true",
    110110                     dest="output_solver_log",
     111                     default=False)
     112   parser.add_option("--keep-solver-files",
     113                     help="Retain temporary input and output files for solve.",
     114                     action="store_true",
     115                     dest="keep_solver_files",
    111116                     default=False)   
    112117   parser.add_option("--profile",
     
    160165         else:
    161166            ef_solver.mipgap = options.mipgap
     167      if options.keep_solver_files is True:
     168         ef_solver.keepFiles = True         
    162169
    163170      ef_solver_manager = SolverManagerFactory(options.solver_manager_type)
Note: See TracChangeset for help on using the changeset viewer.