Changeset 764
- Timestamp:
- 10/07/14 19:31:21 (20 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
mystic/mystic/ensemble.py
r762 r764 138 138 op = [copy(solver) for i in range(len(initial_values))] 139 139 #cf = [cost for i in range(len(initial_values))] 140 #vb = [verbose for i in range(len(initial_values))] 140 vb = [verbose for i in range(len(initial_values))] 141 cb = [echo for i in range(len(initial_values))] #XXX: remove? 141 142 id = range(len(initial_values)) 142 143 143 144 # generate the local_optimize function 144 def local_optimize(solver, x0, rank=None, disp= verbose, callback=echo):145 def local_optimize(solver, x0, rank=None, disp=False, callback=None): 145 146 solver.id = rank 146 147 solver.SetInitialPoints(x0) … … 153 154 # map:: solver = local_optimize(solver, x0, id, verbose) 154 155 results = self._map(local_optimize, op, initial_values, id, \ 155 156 vb, cb, **self._mapconfig) 156 157 157 158 # save initial state … … 296 297 op = [copy(solver) for i in range(len(initial_values))] 297 298 #cf = [cost for i in range(len(initial_values))] 298 #vb = [verbose for i in range(len(initial_values))] 299 vb = [verbose for i in range(len(initial_values))] 300 cb = [echo for i in range(len(initial_values))] #XXX: remove? 299 301 id = range(len(initial_values)) 300 302 301 303 # generate the local_optimize function 302 def local_optimize(solver, x0, rank=None, disp= verbose, callback=echo):304 def local_optimize(solver, x0, rank=None, disp=False, callback=None): 303 305 solver.id = rank 304 306 solver.SetInitialPoints(x0) … … 311 313 # map:: solver = local_optimize(solver, x0, id, verbose) 312 314 results = self._map(local_optimize, op, initial_values, id, \ 313 315 vb, cb, **self._mapconfig) 314 316 315 317 # save initial state
Note: See TracChangeset
for help on using the changeset viewer.