Changeset 1290 for trunk/coopr/pyomo/base/plugin.py
- Timestamp:
- Apr 22, 2009 5:48:18 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/coopr/pyomo/base/plugin.py
r1221 r1290 12 12 'IPyomoSet', 'IModelComponent', 'ComponentRegistration', 13 13 'ComponentFactory', 14 'IPyomoPresolver' ]14 'IPyomoPresolver', 'IPyomoPresolveAction'] 15 15 16 16 from pyutilib.plugin import * … … 19 19 class IPyomoPresolver(Interface): 20 20 21 def get_actions(self): 22 """Return a list of presolve actions, in the order in which 23 they will be applied.""" 24 25 def activate_action(self, action): 26 """Activate an action, but leave its default rank""" 27 28 def deactivate_action(self, action): 29 """Deactivate an action""" 30 31 def set_actions(self, actions): 32 """Set presolve action list""" 33 21 34 def presolve(self, instance): 22 """Apply the presolve rto this instance, and return the35 """Apply the presolve actions to this instance, and return the 23 36 revised instance""" 37 38 39 class IPyomoPresolveAction(Interface): 40 41 def presolve(self, instance): 42 """Apply the presolve action to this instance, and return the 43 revised instance""" 44 45 def rank(self): 46 """Return an integer that is used to automatically order presolve actions, 47 from low to high rank.""" 24 48 25 49
Note: See TracChangeset
for help on using the changeset viewer.