Ignore:
Timestamp:
08/04/10 16:07:50 (6 years ago)
Author:
altafang
Message:

Fixing minor things, adjusting termination conditions on tests

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/alta/mystic-0.2a1/test_constraints_zimmermann.py

    r369 r373  
    1616Mystic Results: 
    1717--------------- 
     18Note that more precise results could be obtained by adjusting termination, 
     19since VTR's default is tol=0.005, which is pretty rough. 
     20 
    1821Differential Evolution, penalty 
    1922soln= [6.9934815592274999, 2.0016578755677443] 
     
    207210    from differential_evolution import DifferentialEvolutionSolver 
    208211    from mystic.termination import VTR 
     212    from mystic.termination import CandidateRelativeTolerance as CRT 
    209213    from mystic.strategy import Rand1Bin 
    210214    solver = DifferentialEvolutionSolver(ndim, npop) 
    211215    solver.SetRandomInitialPoints(lb, ub) 
    212216    solver.enable_signal_handler() 
    213     term = VTR() 
     217    #term = VTR() 
     218    term = CRT() # more precise 
    214219    solver.Solve(costfunc, term, constraints=constraints_string, \ 
    215220                constraints_method='penalty', strategy=Rand1Bin) 
     
    484489    from scipy_optimize import NelderMeadSimplexSolver 
    485490    from mystic.termination import VTR 
     491    from mystic.termination import CandidateRelativeTolerance as CRT 
    486492    solver = NelderMeadSimplexSolver(ndim) 
    487493     
    488494    solver.SetRandomInitialPoints(lb, ub) 
    489495    solver.enable_signal_handler() 
    490     term = VTR() 
     496    #term = VTR() 
     497    term = CRT() 
    491498    solver.Solve(costfunc, term, constraints=constraints_string, \ 
    492499                constraints_method='auglag') 
Note: See TracChangeset for help on using the changeset viewer.