Changeset 172 for branches/UQ/TEST2.py
- Timestamp:
- 08/07/09 11:28:29 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/UQ/TEST2.py
r157 r172 9 9 #XXX: <mpi config goes here> 10 10 11 npop = 50012 maxiter = 513 maxfun = 500014 convergence_tol = 0.00115 crossover = 0. 116 percent_change = 0. 511 npop = 20 12 maxiter = 1000 13 maxfun = 1e+6 14 convergence_tol = 1e-4 15 crossover = 0.9 16 percent_change = 0.9 17 17 18 18 … … 84 84 def dakota(cost,lb,ub): 85 85 from mystic.differential_evolution import DifferentialEvolutionSolver2 86 from mystic.termination import VTR86 from mystic.termination import CandidateRelativeTolerance as CRT 87 87 from mystic.strategy import Best1Exp 88 88 from mystic import getch, random_seed, VerboseSow, Sow … … 90 90 random_seed(123) 91 91 92 stepmon = VerboseSow() 92 #stepmon = VerboseSow(100) 93 stepmon = Sow() 93 94 evalmon = Sow() 94 95 … … 100 101 solver.SetEvaluationLimits(maxiter,maxfun) 101 102 102 solver.Solve(cost,termination=VTR(convergence_tol),strategy=Best1Exp, \ 103 tol = convergence_tol 104 solver.Solve(cost,termination=CRT(tol,tol),strategy=Best1Exp, \ 103 105 CrossProbability=crossover,ScalingFactor=percent_change, \ 104 106 StepMonitor=stepmon, EvaluationMonitor=evalmon)
Note: See TracChangeset
for help on using the changeset viewer.