Changeset 112


Ignore:
Timestamp:
03/11/09 14:05:25 (7 years ago)
Author:
mmckerns
Message:

enabled sigint_handler in all 'one-liner' interfaces

Files:
4 edited

Legend:

Unmodified
Added
Removed
  • DEV_NOTES

    r110 r112  
    33 - move more of "mogi" to mystic.models 
    44mystic/mystic/scipy_optimize.py: 
    5  - better way to deal with direc, maxfun, maxiter (?) 
     5 - better way to deal with direc (?) 
    66mystic/mystic/differential_evolution.py: 
    77 - use wrap_bounds instead of existing method (?) 
    88 - 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 (?) 
    1011 - DESolver needs documentation 
    1112mystic/mystic/_genSow.py 
  • DEV_TODO

    r110 r112  
    55* Update the parallel branch (pyina), get "handler" to work in parallel (ipd?) 
    66* Better 'programmatic' interface for handler 
     7* Add more options to handler (i.e. toggle_verbosity?, get_cost?, ...?) 
    78* Allow sigint_callback to take a list (i.e. provide call[i]) 
    89* Add "constraints" to models (design similar to pyre.inventory and validators) 
  • mystic/mystic/differential_evolution.py

    r111 r112  
    187187                        self.bestSolution[:] = self.trialSolution[:] 
    188188                             
    189             #To print this line, use StepMonitor instead 
    190             #print "Generation %d has best cost function : %f" % (generation, self.bestEnergy) 
    191189            self.energy_history.append(self.bestEnergy) 
    192190 
     
    318316                        self.bestSolution[:] = trialPop[candidate][:] 
    319317                             
    320             #To print this line, use StepMonitor instead 
    321             #print "Generation %d has best cost function : %f" % (generation, self.bestEnergy) 
    322318            self.energy_history.append(self.bestEnergy) 
    323319 
     
    365361        solver.SetInitialPoints(x0) 
    366362 
    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  
    369366    #FIXME: DESolve can't handle bounds of numpy.inf 
    370367    solver.Solve(func,strategy=strategy,termination=termination,\ 
  • mystic/mystic/scipy_optimize.py

    r111 r112  
    344344    solver = NelderMeadSimplexSolver(len(x0)) 
    345345    solver.SetInitialPoints(x0) 
    346    #solver.enable_signal_handler() 
     346    solver.enable_signal_handler() 
    347347    solver.SetEvaluationLimits(maxiter,maxfun) 
    348348    solver.Solve(func,termination=CRT(xtol,ftol),\ 
     
    631631    solver = PowellDirectionalSolver(len(x0)) 
    632632    solver.SetInitialPoints(x0) 
    633    #solver.enable_signal_handler() 
     633    solver.enable_signal_handler() 
    634634    solver.SetEvaluationLimits(maxiter,maxfun) 
    635635    solver.Solve(func,termination=NCOG(ftol),\ 
Note: See TracChangeset for help on using the changeset viewer.