Changeset 172 for branches/UQ/TEST2.py


Ignore:
Timestamp:
08/07/09 11:28:29 (7 years ago)
Author:
mmckerns
Message:

bugfix in termination condition choice for UQ & parameter sensitivity
added explicit parameter sensitivity case (TEST2b.py)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/UQ/TEST2.py

    r157 r172  
    99#XXX: <mpi config goes here> 
    1010 
    11 npop = 500 
    12 maxiter = 5 
    13 maxfun = 5000  
    14 convergence_tol = 0.001 
    15 crossover = 0.1 
    16 percent_change = 0.5 
     11npop = 20 
     12maxiter = 1000 
     13maxfun = 1e+6 
     14convergence_tol = 1e-4 
     15crossover = 0.9 
     16percent_change = 0.9 
    1717 
    1818 
     
    8484def dakota(cost,lb,ub): 
    8585  from mystic.differential_evolution import DifferentialEvolutionSolver2 
    86   from mystic.termination import VTR 
     86  from mystic.termination import CandidateRelativeTolerance as CRT 
    8787  from mystic.strategy import Best1Exp 
    8888  from mystic import getch, random_seed, VerboseSow, Sow 
     
    9090  random_seed(123) 
    9191 
    92   stepmon = VerboseSow() 
     92 #stepmon = VerboseSow(100) 
     93  stepmon = Sow() 
    9394  evalmon = Sow() 
    9495 
     
    100101  solver.SetEvaluationLimits(maxiter,maxfun) 
    101102 
    102   solver.Solve(cost,termination=VTR(convergence_tol),strategy=Best1Exp, \ 
     103  tol = convergence_tol 
     104  solver.Solve(cost,termination=CRT(tol,tol),strategy=Best1Exp, \ 
    103105               CrossProbability=crossover,ScalingFactor=percent_change, \ 
    104106               StepMonitor=stepmon, EvaluationMonitor=evalmon) 
Note: See TracChangeset for help on using the changeset viewer.