Changeset 3099


Ignore:
Timestamp:
Oct 14, 2010 11:16:07 AM (11 years ago)
Author:
jwatson
Message:

Missed this file in a previous commit - adding "preprocess" keyword argument to the create() method of PyomoModel?, to allow for more control of preprocessing within PySP. Default is true, with no change in default behavior.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • coopr.pyomo/trunk/coopr/pyomo/base/PyomoModel.py

    r3068 r3099  
    131131        return [ProblemFormat.pyomo]
    132132
    133     def create(self, filename=None, name=None, namespace=None, namespaces=None):
     133    def create(self, filename=None, name=None, namespace=None, namespaces=None, preprocess=True):
    134134        """
    135135        Create a concrete instance of this Model, possibly using data
     
    146146        else:
    147147            instance = self
    148         instance.preprocess()
     148        if preprocess is True:
     149           instance.preprocess()
    149150        if not name is None:
    150151            instance.name=name
Note: See TracChangeset for help on using the changeset viewer.