Changeset 2667
- Timestamp:
- Jun 16, 2010 2:45:58 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
coopr.opt/trunk/coopr/opt/base/solver.py
r2657 r2667 104 104 self.mipgap = None 105 105 106 # We define no capabilities for the generic solver; base classes must override this 107 self._capabilities = pyutilib.misc.Options() 108 106 109 def has_capability(self, cap): 107 110 """ … … 116 119 # False otherwise 117 120 """ 118 try:119 # See if self.capabilities has been defined120 caps = self._capabilities121 except:122 raise NotImplementedError, "Generic solver has no capabilities"123 124 121 if not isinstance(cap, str): 125 122 raise TypeError, "Expected argument to be of type '%s', not " + \
Note: See TracChangeset
for help on using the changeset viewer.