Changeset 111 for mystic/examples/test_wavy.py
- Timestamp:
- 03/11/09 11:33:05 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
mystic/examples/test_wavy.py
r106 r111 46 46 def main(): 47 47 solver = DifferentialEvolutionSolver(ND, NP) 48 49 48 solver.SetRandomInitialPoints(min = [-100.0]*ND, max = [100.0]*ND) 49 solver.SetEvaluationLimits(maxiter=MAX_GENERATIONS) 50 50 51 51 solver.enable_signal_handler() 52 52 53 53 strategy = Best1Bin 54 55 54 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) 60 59 61 60 solution = solver.Solution()
Note: See TracChangeset
for help on using the changeset viewer.