Changeset 112
- Timestamp:
- 03/11/09 14:05:25 (7 years ago)
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
DEV_NOTES
r110 r112 3 3 - move more of "mogi" to mystic.models 4 4 mystic/mystic/scipy_optimize.py: 5 - better way to deal with direc , maxfun, maxiter(?)5 - better way to deal with direc (?) 6 6 mystic/mystic/differential_evolution.py: 7 7 - use wrap_bounds instead of existing method (?) 8 8 - fix bug: DESolver throws error when given numpy.inf as a bound (!) 9 - enable signal_handler & sigint_callback (?) for all 'one-liner' interfaces 9 - resolve strategy, CrossProbability, & ScalingFactor against AbstractSolver 10 - allow register of sigint_callback for all 'one-liner' interfaces (?) 10 11 - DESolver needs documentation 11 12 mystic/mystic/_genSow.py -
DEV_TODO
r110 r112 5 5 * Update the parallel branch (pyina), get "handler" to work in parallel (ipd?) 6 6 * Better 'programmatic' interface for handler 7 * Add more options to handler (i.e. toggle_verbosity?, get_cost?, ...?) 7 8 * Allow sigint_callback to take a list (i.e. provide call[i]) 8 9 * Add "constraints" to models (design similar to pyre.inventory and validators) -
mystic/mystic/differential_evolution.py
r111 r112 187 187 self.bestSolution[:] = self.trialSolution[:] 188 188 189 #To print this line, use StepMonitor instead190 #print "Generation %d has best cost function : %f" % (generation, self.bestEnergy)191 189 self.energy_history.append(self.bestEnergy) 192 190 … … 318 316 self.bestSolution[:] = trialPop[candidate][:] 319 317 320 #To print this line, use StepMonitor instead321 #print "Generation %d has best cost function : %f" % (generation, self.bestEnergy)322 318 self.energy_history.append(self.bestEnergy) 323 319 … … 365 361 solver.SetInitialPoints(x0) 366 362 367 #solver.enable_signal_handler() 368 #TODO: enable signal handlers & sigint_callbacks? for all minimal interfaces 363 solver.enable_signal_handler() 364 #TODO: allow sigint_callbacks for all minimal interfaces ? 365 #TODO: fix Solve() interface to strategy, CrossProbability, & ScalingFactor 369 366 #FIXME: DESolve can't handle bounds of numpy.inf 370 367 solver.Solve(func,strategy=strategy,termination=termination,\ -
mystic/mystic/scipy_optimize.py
r111 r112 344 344 solver = NelderMeadSimplexSolver(len(x0)) 345 345 solver.SetInitialPoints(x0) 346 #solver.enable_signal_handler()346 solver.enable_signal_handler() 347 347 solver.SetEvaluationLimits(maxiter,maxfun) 348 348 solver.Solve(func,termination=CRT(xtol,ftol),\ … … 631 631 solver = PowellDirectionalSolver(len(x0)) 632 632 solver.SetInitialPoints(x0) 633 #solver.enable_signal_handler()633 solver.enable_signal_handler() 634 634 solver.SetEvaluationLimits(maxiter,maxfun) 635 635 solver.Solve(func,termination=NCOG(ftol),\
Note: See TracChangeset
for help on using the changeset viewer.