Changeset 2283


Ignore:
Timestamp:
Feb 8, 2010 1:28:22 PM (10 years ago)
Author:
jwatson
Message:

Added suffix option to pyomo script, to enable specification of suffixes on the command-line.

Location:
coopr.pyomo/trunk/coopr/pyomo/scripting
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • coopr.pyomo/trunk/coopr/pyomo/scripting/pyomo.py

    r2264 r2283  
    139139            type="float",
    140140            default=None)
     141    parser.add_option("--solver-suffixes",
     142            help="One or more solution suffixes to be extracted by the solver",
     143            action="append",
     144            dest="solver_suffixes",
     145            type="string",
     146            default=[])
    141147    parser.add_option("--model-name",
    142148            help="The name of the model object that is created in the specified Pyomo module",
  • coopr.pyomo/trunk/coopr/pyomo/scripting/util.py

    r2264 r2283  
    238238    if options.solver_mipgap is not None:
    239239       opt.mipgap = options.solver_mipgap
     240    opt.suffixes = options.solver_suffixes
    240241    if not subsolver is None:
    241242        subsolver=' solver='+subsolver
Note: See TracChangeset for help on using the changeset viewer.