Ignore:
Timestamp:
Oct 18, 2010 11:11:21 PM (10 years ago)
Author:
jwatson
Message:

Adding PySP options for linearizing expressions.

File:
1 edited

Legend:

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

    r3107 r3120  
    202202     dest="disable_warmstarts",
    203203     default=False)
     204   solverOpts.add_option("--linearize-expressions",
     205     help="EXPERIMENTAL: An option intended for use on linear or mixed-integer models " \
     206          "in which expression trees in a model (constraints or objectives) are compacted " \
     207          "into a more memory-efficient and concise form. The trees themselves are eliminated. ",
     208     action="store_true",
     209     dest="linearize_expressions",
     210     default=False)
    204211
    205212   postprocessOpts.add_option('--ef-output-file',
     
    231238     dest="output_ef_solver_log",
    232239     default=False)
    233 
    234240   
    235241   outputOpts.add_option('--output-scenario-tree-solution',
     
    550556                 model_instance=reference_instance, \
    551557                 scenario_tree=scenario_tree, \
    552                  converger=converger)
     558                 converger=converger, \
     559                 linearize=options.linearize_expressions)
    553560
    554561   if options.suppress_continuous_variable_output is True:
Note: See TracChangeset for help on using the changeset viewer.