Ignore:
Timestamp:
Oct 25, 2010 12:15:29 AM (10 years ago)
Author:
jwatson
Message:

Added --linearize-expression and associated processing to runef PySP script.

File:
1 edited

Legend:

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

    r3107 r3155  
    8282     type='float',
    8383     default=0.95)
     84   efOpts.add_option("--linearize-expressions",
     85     help="EXPERIMENTAL: An option intended for use on linear or mixed-integer models " \
     86          "in which expression trees in a model (constraints or objectives) are compacted " \
     87          "into a more memory-efficient and concise form. The trees themselves are eliminated. ",
     88     action="store_true",
     89     dest="linearize_expressions",
     90     default=False)
    8491
    8592   solverOpts.add_option('--mipgap',
     
    184191                                                                               os.path.expanduser(options.output_file),
    185192                                                                               options.verbose,
     193                                                                               options.linearize_expressions,
    186194                                                                               generate_weighted_cvar, cvar_weight, risk_alpha)
    187195
Note: See TracChangeset for help on using the changeset viewer.