- Timestamp:
- 02/21/15 09:06:40 (15 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
mystic/mystic/abstract_solver.py
r785 r786 586 586 return bool(msg) 587 587 588 def SetTermination(self, termination): 588 def SetTermination(self, termination): # disp ? 589 589 """set the termination conditions""" 590 590 #XXX: validate that termination is a 'condition' ? … … 592 592 return 593 593 594 def SetObjective(self, cost, ExtraArgs=None, fetch=False):594 def SetObjective(self, cost, ExtraArgs=None, **kwds): # callback, fetch ? 595 595 """set the objective, decorated with bounds, penalties, monitors, etc""" 596 cost = self._bootstrap_objective(cost, ExtraArgs=None) 596 fetch = kwds.get('fetch', False) 597 cost = self._bootstrap_objective(cost, ExtraArgs) 597 598 return cost if fetch else None 598 599
Note: See TracChangeset
for help on using the changeset viewer.