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

created SetEvaluationLimits? method in abstract_solver;
propagated changes to the derived solvers and examples;
removed 'ooe' circle branch... it's in the trunk now

File:
1 edited

Legend:

Unmodified
Added
Removed
  • mystic/examples/test_wavy.py

    r106 r111  
    4646def main(): 
    4747    solver = DifferentialEvolutionSolver(ND, NP) 
    48  
    4948    solver.SetRandomInitialPoints(min = [-100.0]*ND, max = [100.0]*ND) 
     49    solver.SetEvaluationLimits(maxiter=MAX_GENERATIONS) 
    5050 
    5151    solver.enable_signal_handler() 
    52    
     52 
    5353    strategy = Best1Bin 
    54  
    5554    stepmon = VerboseSow(1) 
    56     solver.Solve(wavy, strategy, termination = ChangeOverGeneration(generations=50) , \ 
    57                  maxiter= MAX_GENERATIONS, CrossProbability=1.0, ScalingFactor=0.9 , \ 
    58                  StepMonitor = stepmon,  sigint_callback = plot_solution \ 
    59                  ) 
     55    solver.Solve(wavy, strategy,\ 
     56                 termination = ChangeOverGeneration(generations=50) , \ 
     57                 CrossProbability=1.0, ScalingFactor=0.9 , \ 
     58                 StepMonitor = stepmon,  sigint_callback = plot_solution) 
    6059 
    6160    solution = solver.Solution() 
Note: See TracChangeset for help on using the changeset viewer.