Changeset 786


Ignore:
Timestamp:
02/21/15 09:06:40 (15 months ago)
Author:
mmckerns
Message:

fix: removed stray None attached to ExtraArgs? in SetObjective?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • mystic/mystic/abstract_solver.py

    r785 r786  
    586586        return bool(msg) 
    587587 
    588     def SetTermination(self, termination): 
     588    def SetTermination(self, termination): # disp ? 
    589589        """set the termination conditions""" 
    590590        #XXX: validate that termination is a 'condition' ? 
     
    592592        return 
    593593 
    594     def SetObjective(self, cost, ExtraArgs=None, fetch=False): 
     594    def SetObjective(self, cost, ExtraArgs=None, **kwds): # callback, fetch ? 
    595595        """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) 
    597598        return cost if fetch else None 
    598599 
Note: See TracChangeset for help on using the changeset viewer.