Changeset 465
- Timestamp:
- 07/01/11 23:05:59 (5 years ago)
- Files:
-
- 1 added
- 100 edited
- 4 moved
Legend:
- Unmodified
- Added
- Removed
-
branches/UQ/TEST.py
r182 r465 71 71 ####################################################################### 72 72 def dakota(cost,lb,ub): 73 from mystic. differential_evolutionimport DifferentialEvolutionSolver273 from mystic.solvers import DifferentialEvolutionSolver2 74 74 from mystic.termination import CandidateRelativeTolerance as CRT 75 75 from mystic.strategy import Best1Exp 76 from mystic import getch, random_seed, VerboseSow, Sow76 from mystic.tools import getch, random_seed, VerboseSow, Sow 77 77 78 78 random_seed(123) -
branches/UQ/TEST2.py
r182 r465 72 72 ####################################################################### 73 73 def dakota(cost,lb,ub): 74 from mystic. differential_evolutionimport DifferentialEvolutionSolver274 from mystic.solvers import DifferentialEvolutionSolver2 75 75 from mystic.termination import CandidateRelativeTolerance as CRT 76 76 from mystic.strategy import Best1Exp 77 from mystic import getch, random_seed, VerboseSow, Sow77 from mystic.tools import getch, random_seed, VerboseSow, Sow 78 78 79 79 random_seed(123) -
branches/UQ/TEST3.py
r182 r465 77 77 ####################################################################### 78 78 def dakota(cost,lb,ub): 79 from mystic. differential_evolutionimport DifferentialEvolutionSolver279 from mystic.solvers import DifferentialEvolutionSolver2 80 80 from mystic.termination import CandidateRelativeTolerance as CRT 81 81 from mystic.strategy import Best1Exp 82 from mystic import getch, random_seed, VerboseSow, Sow82 from mystic.tools import getch, random_seed, VerboseSow, Sow 83 83 84 84 random_seed(123) -
branches/UQ/TEST3b.py
r182 r465 77 77 ####################################################################### 78 78 def dakota(cost,lb,ub): 79 from mystic. differential_evolutionimport DifferentialEvolutionSolver279 from mystic.solvers import DifferentialEvolutionSolver2 80 80 from mystic.termination import CandidateRelativeTolerance as CRT 81 81 from mystic.strategy import Best1Exp 82 from mystic import getch, random_seed, VerboseSow, Sow82 from mystic.tools import getch, random_seed, VerboseSow, Sow 83 83 84 84 random_seed(123) -
branches/UQ/math/examples/MPI2_helper.py
r253 r465 63 63 ####################################################################### 64 64 def local_optimize(cost,x0,lb,ub): 65 from mystic.s cipy_optimizeimport PowellDirectionalSolver65 from mystic.solvers import PowellDirectionalSolver 66 66 from mystic.termination import NormalizedChangeOverGeneration as NCOG 67 from mystic import getch, VerboseSow, Sow67 from mystic.tools import getch, VerboseSow, Sow 68 68 69 69 maxiter = 1000 -
branches/UQ/math/examples/MPI2_surrogate_diam_batchgrid.py
r253 r465 60 60 ####################################################################### 61 61 def optimize(cost,lower,upper,nbins): 62 from mystic import random_seed62 from mystic.tools import random_seed 63 63 from pyina.ez_map import ez_map2 as map 64 64 from pyina.launchers import mpirun_launcher -
branches/UQ/math/examples/MPI_surrogate_diam.py
r252 r465 66 66 from pyina.launchers import mpirun_launcher 67 67 from pyina.mappers import equalportion_mapper 68 from mystic. differential_evolutionimport DifferentialEvolutionSolver268 from mystic.solvers import DifferentialEvolutionSolver2 69 69 from mystic.termination import CandidateRelativeTolerance as CRT 70 70 from mystic.strategy import Best1Exp 71 from mystic import getch, random_seed, VerboseSow, Sow71 from mystic.tools import getch, random_seed, VerboseSow, Sow 72 72 73 73 random_seed(123) -
branches/UQ/math/examples/MPI_surrogate_diam_batchgrid.py
r202 r465 111 111 ####################################################################### 112 112 def local_optimize(cost,x0,lb,ub): 113 from mystic.s cipy_optimizeimport PowellDirectionalSolver113 from mystic.solvers import PowellDirectionalSolver 114 114 from mystic.termination import NormalizedChangeOverGeneration as NCOG 115 from mystic import getch, VerboseSow, Sow115 from mystic.tools import getch, VerboseSow, Sow 116 116 117 117 maxiter = 1000 … … 150 150 ####################################################################### 151 151 def optimize(cost,lower,upper): 152 from mystic import random_seed152 from mystic.tools import random_seed 153 153 from pyina.ez_map import ez_map2 as map 154 154 from pyina.launchers import mpirun_launcher -
branches/UQ/math/examples/MPI_surrogate_diam_scatter.py
r201 r465 94 94 ####################################################################### 95 95 def local_optimize(cost,x0,lb,ub): 96 from mystic.s cipy_optimizeimport PowellDirectionalSolver96 from mystic.solvers import PowellDirectionalSolver 97 97 from mystic.termination import NormalizedChangeOverGeneration as NCOG 98 from mystic import getch, VerboseSow, Sow98 from mystic.tools import getch, VerboseSow, Sow 99 99 100 100 maxiter = 1000 … … 133 133 ####################################################################### 134 134 def optimize(cost,lower,upper): 135 from mystic import random_seed135 from mystic.tools import random_seed 136 136 from pyina.ez_map import ez_map2 as map 137 137 from pyina.launchers import mpirun_launcher -
branches/UQ/math/examples/MSUB_surrogate_diam_batchgrid.py
r414 r465 115 115 ####################################################################### 116 116 def local_optimize(cost,x0,lb,ub): 117 from mystic.s cipy_optimizeimport PowellDirectionalSolver117 from mystic.solvers import PowellDirectionalSolver 118 118 from mystic.termination import NormalizedChangeOverGeneration as NCOG 119 from mystic import getch, VerboseSow, Sow119 from mystic.tools import getch, VerboseSow, Sow 120 120 121 121 maxiter = 1000 … … 154 154 ####################################################################### 155 155 def optimize(cost,lower,upper): 156 from mystic import random_seed156 from mystic.tools import random_seed 157 157 from pyina.ez_map import ez_map2 as map 158 158 from pyina.launchers import srun_launcher -
branches/UQ/math/examples/QSUB2_surrogate_diam_batchgrid.py
r414 r465 60 60 ####################################################################### 61 61 def optimize(cost,lower,upper): 62 from mystic import random_seed62 from mystic.tools import random_seed 63 63 from pyina.ez_map import ez_map2 as map 64 64 from pyina.launchers import mpirun_launcher -
branches/UQ/math/examples/QSUB_surrogate_diam_batchgrid.py
r414 r465 115 115 ####################################################################### 116 116 def local_optimize(cost,x0,lb,ub): 117 from mystic.s cipy_optimizeimport PowellDirectionalSolver117 from mystic.solvers import PowellDirectionalSolver 118 118 from mystic.termination import NormalizedChangeOverGeneration as NCOG 119 from mystic import getch, VerboseSow, Sow119 from mystic.tools import getch, VerboseSow, Sow 120 120 121 121 maxiter = 1000 … … 154 154 ####################################################################### 155 155 def optimize(cost,lower,upper): 156 from mystic import random_seed156 from mystic.tools import random_seed 157 157 from pyina.ez_map import ez_map2 as map 158 158 from pyina.launchers import mpirun_launcher -
branches/UQ/math/examples/TEST_surrogate_McD.py
r200 r465 62 62 ####################################################################### 63 63 def optimize(cost,lb,ub): 64 from mystic. differential_evolutionimport DifferentialEvolutionSolver264 from mystic.solvers import DifferentialEvolutionSolver2 65 65 from mystic.termination import CandidateRelativeTolerance as CRT 66 66 from mystic.strategy import Best1Exp 67 from mystic import getch, random_seed, VerboseSow, Sow67 from mystic.tools import getch, random_seed, VerboseSow, Sow 68 68 69 69 random_seed(123) -
branches/UQ/math/examples/TEST_surrogate_cut.py
r200 r465 31 31 ####################################################################### 32 32 def optimize(cost,lb,ub): 33 from mystic. differential_evolutionimport DifferentialEvolutionSolver233 from mystic.solvers import DifferentialEvolutionSolver2 34 34 from mystic.termination import CandidateRelativeTolerance as CRT 35 35 from mystic.strategy import Best1Exp 36 from mystic import getch, random_seed, VerboseSow, Sow36 from mystic.tools import getch, random_seed, VerboseSow, Sow 37 37 38 38 random_seed(123) -
branches/UQ/math/examples/TEST_surrogate_diam.py
r201 r465 59 59 ####################################################################### 60 60 def optimize(cost,lb,ub): 61 from mystic. differential_evolutionimport DifferentialEvolutionSolver261 from mystic.solvers import DifferentialEvolutionSolver2 62 62 from mystic.termination import CandidateRelativeTolerance as CRT 63 63 from mystic.strategy import Best1Exp 64 from mystic import getch, random_seed, VerboseSow, Sow64 from mystic.tools import getch, random_seed, VerboseSow, Sow 65 65 66 66 random_seed(123) -
branches/UQ/math/examples/TEST_surrogate_diam_batchgrid.py
r202 r465 96 96 ####################################################################### 97 97 def local_optimize(cost,x0,lb,ub): 98 from mystic.s cipy_optimizeimport PowellDirectionalSolver98 from mystic.solvers import PowellDirectionalSolver 99 99 from mystic.termination import NormalizedChangeOverGeneration as NCOG 100 from mystic import getch, VerboseSow, Sow100 from mystic.tools import getch, VerboseSow, Sow 101 101 102 102 #stepmon = VerboseSow(100) -
branches/UQ/math/examples/TEST_surrogate_diam_scatter.py
r201 r465 79 79 ####################################################################### 80 80 def local_optimize(cost,x0,lb,ub): 81 from mystic.s cipy_optimizeimport PowellDirectionalSolver81 from mystic.solvers import PowellDirectionalSolver 82 82 from mystic.termination import NormalizedChangeOverGeneration as NCOG 83 from mystic import getch, VerboseSow, Sow83 from mystic.tools import getch, VerboseSow, Sow 84 84 85 85 #stepmon = VerboseSow(100) … … 108 108 ####################################################################### 109 109 def optimize(cost,lower,upper): 110 from mystic import random_seed110 from mystic.tools import random_seed 111 111 random_seed(123) 112 112 -
branches/UQ/math/examples/TEST_surrogate_samples.py
r200 r465 96 96 ####################################################################### 97 97 def optimize(cost,lb,ub): 98 from mystic. differential_evolutionimport DifferentialEvolutionSolver298 from mystic.solvers import DifferentialEvolutionSolver2 99 99 from mystic.termination import CandidateRelativeTolerance as CRT 100 100 from mystic.strategy import Best1Exp 101 from mystic import getch, random_seed, VerboseSow, Sow101 from mystic.tools import getch, random_seed, VerboseSow, Sow 102 102 103 103 random_seed(123) -
branches/UQ/math/examples/TEST_surrogate_smartcut.py
r200 r465 46 46 ####################################################################### 47 47 def optimize(cost,lb,ub): 48 from mystic. differential_evolutionimport DifferentialEvolutionSolver248 from mystic.solvers import DifferentialEvolutionSolver2 49 49 from mystic.termination import CandidateRelativeTolerance as CRT 50 50 from mystic.strategy import Best1Exp 51 from mystic import getch, random_seed, VerboseSow, Sow51 from mystic.tools import getch, random_seed, VerboseSow, Sow 52 52 53 53 random_seed(123) -
branches/UQ/math/examples2/TEST4d_OUQ_surrogate_diam.py
r449 r465 25 25 ####################################################################### 26 26 def optimize(cost,_bounds,_constraints): 27 from mystic. differential_evolutionimport DifferentialEvolutionSolver227 from mystic.solvers import DifferentialEvolutionSolver2 28 28 from mystic.termination import ChangeOverGeneration as COG 29 29 from mystic.strategy import Best1Exp 30 from mystic import random_seed, VerboseSow, Sow30 from mystic.tools import random_seed, VerboseSow, Sow 31 31 32 32 #random_seed(123) -
branches/UQ/math/examples2/TEST_OUQ_surrogate_diam.py
r449 r465 25 25 ####################################################################### 26 26 def optimize(cost,_bounds,_constraints): 27 from mystic. differential_evolutionimport DifferentialEvolutionSolver227 from mystic.solvers import DifferentialEvolutionSolver2 28 28 from mystic.termination import ChangeOverGeneration as COG 29 29 from mystic.strategy import Best1Exp 30 from mystic import random_seed, VerboseSow, Sow30 from mystic.tools import random_seed, VerboseSow, Sow 31 31 32 32 #random_seed(123) -
branches/UQ/math/examples3/thk_safe/INV_seesaw2d_inf_thk_diam.py
r319 r465 26 26 ####################################################################### 27 27 def optimize(cost,lb,ub,_constraints): 28 from mystic. differential_evolutionimport DifferentialEvolutionSolver228 from mystic.solvers import DifferentialEvolutionSolver2 29 29 #from mystic.termination import CandidateRelativeTolerance as CRT 30 30 #from mystic.termination import VTR 31 31 from mystic.termination import ChangeOverGeneration as COG 32 32 from mystic.strategy import Best1Exp 33 from mystic import getch, random_seed, VerboseSow, Sow33 from mystic.tools import getch, random_seed, VerboseSow, Sow 34 34 35 35 random_seed(123) -
branches/UQ/math/examples3/thk_safe/INV_seesaw2d_sup_thk_diam.py
r319 r465 26 26 ####################################################################### 27 27 def optimize(cost,lb,ub,_constraints): 28 from mystic. differential_evolutionimport DifferentialEvolutionSolver228 from mystic.solvers import DifferentialEvolutionSolver2 29 29 #from mystic.termination import CandidateRelativeTolerance as CRT 30 30 #from mystic.termination import VTR 31 31 from mystic.termination import ChangeOverGeneration as COG 32 32 from mystic.strategy import Best1Exp 33 from mystic import getch, random_seed, VerboseSow, Sow33 from mystic.tools import getch, random_seed, VerboseSow, Sow 34 34 35 35 random_seed(123) -
branches/UQ/math/examples3/thk_safe/INV_surrogate_expect.py
r319 r465 67 67 ####################################################################### 68 68 def optimize(cost,lb,ub,_range): 69 from mystic. differential_evolutionimport DifferentialEvolutionSolver269 from mystic.solvers import DifferentialEvolutionSolver2 70 70 from mystic.termination import VTR 71 71 #from mystic.termination import CandidateRelativeTolerance as CRT 72 72 #from mystic.termination import ChangeOverGeneration as COG 73 73 from mystic.strategy import Best1Exp 74 from mystic import getch, random_seed, VerboseSow, Sow74 from mystic.tools import getch, random_seed, VerboseSow, Sow 75 75 76 76 # random_seed(123) -
branches/UQ/math/examples3/thk_unsafe/INV_seesaw2d_inf_thk_diam.py
r319 r465 26 26 ####################################################################### 27 27 def optimize(cost,lb,ub,_constraints): 28 from mystic. differential_evolutionimport DifferentialEvolutionSolver228 from mystic.solvers import DifferentialEvolutionSolver2 29 29 #from mystic.termination import CandidateRelativeTolerance as CRT 30 30 #from mystic.termination import VTR 31 31 from mystic.termination import ChangeOverGeneration as COG 32 32 from mystic.strategy import Best1Exp 33 from mystic import getch, random_seed, VerboseSow, Sow33 from mystic.tools import getch, random_seed, VerboseSow, Sow 34 34 35 35 random_seed(123) -
branches/UQ/math/examples3/thk_unsafe/INV_seesaw2d_sup_thk_diam.py
r319 r465 26 26 ####################################################################### 27 27 def optimize(cost,lb,ub,_constraints): 28 from mystic. differential_evolutionimport DifferentialEvolutionSolver228 from mystic.solvers import DifferentialEvolutionSolver2 29 29 #from mystic.termination import CandidateRelativeTolerance as CRT 30 30 #from mystic.termination import VTR 31 31 from mystic.termination import ChangeOverGeneration as COG 32 32 from mystic.strategy import Best1Exp 33 from mystic import getch, random_seed, VerboseSow, Sow33 from mystic.tools import getch, random_seed, VerboseSow, Sow 34 34 35 35 random_seed(123) -
branches/UQ/math/examples3/thk_unsafe/INV_surrogate_expect.py
r319 r465 67 67 ####################################################################### 68 68 def optimize(cost,lb,ub,_range): 69 from mystic. differential_evolutionimport DifferentialEvolutionSolver269 from mystic.solvers import DifferentialEvolutionSolver2 70 70 from mystic.termination import VTR 71 71 #from mystic.termination import CandidateRelativeTolerance as CRT 72 72 #from mystic.termination import ChangeOverGeneration as COG 73 73 from mystic.strategy import Best1Exp 74 from mystic import getch, random_seed, VerboseSow, Sow74 from mystic.tools import getch, random_seed, VerboseSow, Sow 75 75 76 76 # random_seed(123) -
branches/UQ/math/examples3/vel_safe/INV_seesaw2d_inf_vel_diam.py
r319 r465 26 26 ####################################################################### 27 27 def optimize(cost,lb,ub,_constraints): 28 from mystic. differential_evolutionimport DifferentialEvolutionSolver228 from mystic.solvers import DifferentialEvolutionSolver2 29 29 #from mystic.termination import CandidateRelativeTolerance as CRT 30 30 #from mystic.termination import VTR 31 31 from mystic.termination import ChangeOverGeneration as COG 32 32 from mystic.strategy import Best1Exp 33 from mystic import getch, random_seed, VerboseSow, Sow33 from mystic.tools import getch, random_seed, VerboseSow, Sow 34 34 35 35 random_seed(123) -
branches/UQ/math/examples3/vel_safe/INV_seesaw2d_sup_vel_diam.py
r319 r465 26 26 ####################################################################### 27 27 def optimize(cost,lb,ub,_constraints): 28 from mystic. differential_evolutionimport DifferentialEvolutionSolver228 from mystic.solvers import DifferentialEvolutionSolver2 29 29 #from mystic.termination import CandidateRelativeTolerance as CRT 30 30 #from mystic.termination import VTR 31 31 from mystic.termination import ChangeOverGeneration as COG 32 32 from mystic.strategy import Best1Exp 33 from mystic import getch, random_seed, VerboseSow, Sow33 from mystic.tools import getch, random_seed, VerboseSow, Sow 34 34 35 35 random_seed(123) -
branches/UQ/math/examples3/vel_safe/INV_surrogate_expect.py
r319 r465 67 67 ####################################################################### 68 68 def optimize(cost,lb,ub,_range): 69 from mystic. differential_evolutionimport DifferentialEvolutionSolver269 from mystic.solvers import DifferentialEvolutionSolver2 70 70 from mystic.termination import VTR 71 71 #from mystic.termination import CandidateRelativeTolerance as CRT 72 72 #from mystic.termination import ChangeOverGeneration as COG 73 73 from mystic.strategy import Best1Exp 74 from mystic import getch, random_seed, VerboseSow, Sow74 from mystic.tools import getch, random_seed, VerboseSow, Sow 75 75 76 76 # random_seed(123) -
branches/UQ/math/examples3/vel_unsafe/INV_seesaw2d_inf_vel_diam.py
r319 r465 26 26 ####################################################################### 27 27 def optimize(cost,lb,ub,_constraints): 28 from mystic. differential_evolutionimport DifferentialEvolutionSolver228 from mystic.solvers import DifferentialEvolutionSolver2 29 29 #from mystic.termination import CandidateRelativeTolerance as CRT 30 30 #from mystic.termination import VTR 31 31 from mystic.termination import ChangeOverGeneration as COG 32 32 from mystic.strategy import Best1Exp 33 from mystic import getch, random_seed, VerboseSow, Sow33 from mystic.tools import getch, random_seed, VerboseSow, Sow 34 34 35 35 random_seed(123) -
branches/UQ/math/examples3/vel_unsafe/INV_seesaw2d_sup_vel_diam.py
r319 r465 26 26 ####################################################################### 27 27 def optimize(cost,lb,ub,_constraints): 28 from mystic. differential_evolutionimport DifferentialEvolutionSolver228 from mystic.solvers import DifferentialEvolutionSolver2 29 29 #from mystic.termination import CandidateRelativeTolerance as CRT 30 30 #from mystic.termination import VTR 31 31 from mystic.termination import ChangeOverGeneration as COG 32 32 from mystic.strategy import Best1Exp 33 from mystic import getch, random_seed, VerboseSow, Sow33 from mystic.tools import getch, random_seed, VerboseSow, Sow 34 34 35 35 random_seed(123) -
branches/UQ/math/examples3/vel_unsafe/INV_surrogate_expect.py
r319 r465 67 67 ####################################################################### 68 68 def optimize(cost,lb,ub,_range): 69 from mystic. differential_evolutionimport DifferentialEvolutionSolver269 from mystic.solvers import DifferentialEvolutionSolver2 70 70 from mystic.termination import VTR 71 71 #from mystic.termination import CandidateRelativeTolerance as CRT 72 72 #from mystic.termination import ChangeOverGeneration as COG 73 73 from mystic.strategy import Best1Exp 74 from mystic import getch, random_seed, VerboseSow, Sow74 from mystic.tools import getch, random_seed, VerboseSow, Sow 75 75 76 76 # random_seed(123) -
mystic/_math/measures.py
r461 r465 235 235 236 236 def optimize(cost,(lb,ub),tolerance,_constraints): 237 from mystic. differential_evolutionimport DifferentialEvolutionSolver2237 from mystic.solvers import DifferentialEvolutionSolver2 238 238 from mystic.termination import VTR 239 239 from mystic.strategy import Best1Exp 240 from mystic import random_seed, VerboseSow, Sow240 from mystic.tools import random_seed, VerboseSow, Sow 241 241 if debug: random_seed(123) 242 242 evalmon = Sow(); stepmon = Sow() -
mystic/examples/TEST_ffitPP.py
r232 r465 15 15 16 16 def main(): 17 from mystic. differential_evolutionimport DifferentialEvolutionSolver217 from mystic.solvers import DifferentialEvolutionSolver2 18 18 from pathos.pp_map import pp_map 19 19 -
mystic/examples/TEST_ffitPP2.py
r231 r465 14 14 15 15 if __name__ == '__main__': 16 from mystic.s cipy_optimizeimport fmin16 from mystic.solvers import fmin 17 17 #from scipy.optimize import fmin 18 18 import random -
mystic/examples/TEST_ffitPP2_b.py
r231 r465 15 15 16 16 if __name__ == '__main__': 17 from mystic.s cipy_optimizeimport fmin17 from mystic.solvers import fmin 18 18 #from scipy.optimize import fmin 19 19 import random -
mystic/examples/TEST_ffitPP_b.py
r236 r465 42 42 43 43 def main(servers,ncpus): 44 from mystic. differential_evolutionimport DifferentialEvolutionSolver244 from mystic.solvers import DifferentialEvolutionSolver2 45 45 from pathos.pp_map import pp_map 46 46 -
mystic/examples/buckshot_example06.py
r236 r465 4 4 Example: 5 5 - Solve 8th-order Chebyshev polynomial coefficients with Powell's method. 6 - Uses ScattershotSolver to provide 'pseudo-global' optimization6 - Uses BuckshotSolver to provide 'pseudo-global' optimization 7 7 - Plot of fitting to Chebyshev polynomial. 8 8 … … 11 11 - minimal solver interface 12 12 """ 13 # the Scattershot solver14 from mystic. nested import ScattershotSolver13 # the Buckshot solver 14 from mystic.solvers import BuckshotSolver 15 15 16 16 # Powell's Directonal solver 17 from mystic.s cipy_optimizeimport PowellDirectionalSolver17 from mystic.solvers import PowellDirectionalSolver 18 18 19 19 # Chebyshev polynomial and cost function … … 24 24 from mystic.termination import NormalizedChangeOverGeneration as NCOG 25 25 from mystic.math import poly1d 26 from mystic import getch, VerboseSow26 from mystic.tools import getch, VerboseSow 27 27 import pylab 28 28 pylab.ion() … … 70 70 stepmon = VerboseSow(1) 71 71 72 # use ScattershotPowell to solve 8th-order Chebyshev coefficients73 solver = ScattershotSolver(ndim, npts)72 # use buckshot-Powell to solve 8th-order Chebyshev coefficients 73 solver = BuckshotSolver(ndim, npts) 74 74 solver.SetNestedSolver(PowellDirectionalSolver) 75 75 #solver.SetMapper(ez_map) -
mystic/examples/cg_rosenbrock.py
r133 r465 14 14 from scipy.optimize import fmin_cg 15 15 import numpy 16 from mystic import getch16 from mystic.tools import getch 17 17 18 18 def show(): -
mystic/examples/derun.py
r335 r465 4 4 5 5 """ 6 Runs differential _evolution as a pyre application6 Runs differential evolution as a pyre application 7 7 8 Based on differential_evolution.py8 Based on DifferentialEvolutionSolver 9 9 """ 10 10 11 11 from pyre.applications.Script import Script 12 12 from mystic.helputil import paginate 13 from mystic. differential_evolution import *13 from mystic.solvers import DifferentialEvolutionSolver 14 14 import logging 15 15 -
mystic/examples/example01.py
r126 r465 11 11 12 12 # Powell's Directonal solver 13 from mystic.s cipy_optimizeimport fmin_powell13 from mystic.solvers import fmin_powell 14 14 15 15 # Rosenbrock function -
mystic/examples/example02.py
r131 r465 12 12 13 13 # Nelder-Mead solver 14 from mystic.s cipy_optimizeimport fmin14 from mystic.solvers import fmin 15 15 16 16 # Rosenbrock function -
mystic/examples/example03.py
r131 r465 13 13 14 14 # Nelder-Mead solver 15 from mystic.s cipy_optimizeimport fmin15 from mystic.solvers import fmin 16 16 17 17 # Rosenbrock function -
mystic/examples/example04.py
r131 r465 14 14 15 15 # Nelder-Mead solver 16 from mystic.s cipy_optimizeimport fmin16 from mystic.solvers import fmin 17 17 18 18 # Rosenbrock function … … 20 20 21 21 # tools 22 from mystic import getch22 from mystic.tools import getch 23 23 import pylab 24 24 pylab.ion() -
mystic/examples/example05.py
r126 r465 13 13 14 14 # Powell's Directonal solver 15 from mystic.s cipy_optimizeimport fmin_powell15 from mystic.solvers import fmin_powell 16 16 17 17 # Rosenbrock function -
mystic/examples/example06.py
r236 r465 12 12 13 13 # Powell's Directonal solver 14 from mystic.s cipy_optimizeimport fmin_powell14 from mystic.solvers import fmin_powell 15 15 16 16 # Chebyshev polynomial and cost function … … 20 20 # tools 21 21 from mystic.math import poly1d 22 from mystic import getch22 from mystic.tools import getch 23 23 import pylab 24 24 pylab.ion() -
mystic/examples/example07.py
r236 r465 13 13 14 14 # Differential Evolution solver 15 from mystic. differential_evolutionimport diffev15 from mystic.solvers import diffev 16 16 17 17 # Chebyshev polynomial and cost function … … 21 21 # tools 22 22 from mystic.math import poly1d 23 from mystic import getch, random_seed23 from mystic.tools import getch, random_seed 24 24 import pylab 25 25 pylab.ion() -
mystic/examples/example08.py
r236 r465 16 16 17 17 # Differential Evolution solver 18 from mystic. differential_evolutionimport DifferentialEvolutionSolver218 from mystic.solvers import DifferentialEvolutionSolver2 19 19 20 20 # Chebyshev polynomial and cost function … … 25 25 from mystic.termination import VTR 26 26 from mystic.strategy import Best1Exp 27 from mystic import getch, random_seed, VerboseSow27 from mystic.tools import getch, random_seed, VerboseSow 28 28 from mystic.math import poly1d 29 29 import pylab -
mystic/examples/example09.py
r236 r465 18 18 19 19 # Differential Evolution solver 20 from mystic. differential_evolutionimport DifferentialEvolutionSolver220 from mystic.solvers import DifferentialEvolutionSolver2 21 21 22 22 # Chebyshev polynomial and cost function … … 27 27 from mystic.termination import VTR 28 28 from mystic.strategy import Best1Exp 29 from mystic import getch, random_seed, VerboseSow29 from mystic.tools import getch, random_seed, VerboseSow 30 30 from mystic.math import poly1d 31 31 import pylab -
mystic/examples/example10.py
r236 r465 16 16 17 17 # Differential Evolution solver 18 from mystic. differential_evolutionimport DifferentialEvolutionSolver218 from mystic.solvers import DifferentialEvolutionSolver2 19 19 20 20 # Chebyshev polynomial and cost function … … 25 25 from mystic.termination import VTR 26 26 from mystic.strategy import Best1Exp 27 from mystic import getch, random_seed, VerboseSow, Sow27 from mystic.tools import getch, random_seed, VerboseSow, Sow 28 28 from mystic.math import poly1d 29 29 import pylab -
mystic/examples/example11.py
r236 r465 17 17 18 18 # Nelder-Mead Simplex solver 19 from mystic.s cipy_optimizeimport NelderMeadSimplexSolver19 from mystic.solvers import NelderMeadSimplexSolver 20 20 21 21 # Chebyshev polynomial and cost function … … 25 25 # tools 26 26 from mystic.termination import CandidateRelativeTolerance as CRT 27 from mystic import getch, random_seed, VerboseSow, Sow27 from mystic.tools import getch, random_seed, VerboseSow, Sow 28 28 from mystic.math import poly1d 29 29 import pylab -
mystic/examples/example12.py
r131 r465 12 12 13 13 # Powell's Directonal solver 14 from mystic.s cipy_optimizeimport fmin_powell14 from mystic.solvers import fmin_powell 15 15 16 16 # cost function factory … … 18 18 19 19 # tools 20 from mystic import getch, random_seed20 from mystic.tools import getch, random_seed 21 21 random_seed(123) 22 22 import pylab -
mystic/examples/ezmap_desolve.py
r456 r465 26 26 27 27 28 from mystic. differential_evolutionimport DifferentialEvolutionSolver228 from mystic.solvers import DifferentialEvolutionSolver2 29 29 from mystic.termination import ChangeOverGeneration, VTR 30 30 from mystic.strategy import Best1Exp -
mystic/examples/ezmap_desolve_rosen.py
r456 r465 27 27 28 28 29 from mystic. differential_evolutionimport DifferentialEvolutionSolver229 from mystic.solvers import DifferentialEvolutionSolver2 30 30 from mystic.termination import ChangeOverGeneration, VTR 31 31 from mystic.strategy import Best1Exp -
mystic/examples/lattice_example06.py
r236 r465 4 4 Example: 5 5 - Solve 8th-order Chebyshev polynomial coefficients with Powell's method. 6 - Uses BatchGridSolver to provide 'pseudo-global' optimization6 - Uses LatticeSolver to provide 'pseudo-global' optimization 7 7 - Plot of fitting to Chebyshev polynomial. 8 8 … … 11 11 - minimal solver interface 12 12 """ 13 # the BatchGridsolver14 from mystic. nested import BatchGridSolver13 # the Lattice solver 14 from mystic.solvers import LatticeSolver 15 15 16 16 # Powell's Directonal solver 17 from mystic.s cipy_optimizeimport PowellDirectionalSolver17 from mystic.solvers import PowellDirectionalSolver 18 18 19 19 # Chebyshev polynomial and cost function … … 24 24 from mystic.termination import NormalizedChangeOverGeneration as NCOG 25 25 from mystic.math import poly1d 26 from mystic import getch, VerboseSow26 from mystic.tools import getch, VerboseSow 27 27 import pylab 28 28 pylab.ion() … … 71 71 stepmon = VerboseSow(1) 72 72 73 # use BatchGridPowell to solve 8th-order Chebyshev coefficients74 solver = BatchGridSolver(ndim, nbins)73 # use lattice-Powell to solve 8th-order Chebyshev coefficients 74 solver = LatticeSolver(ndim, nbins) 75 75 solver.SetNestedSolver(PowellDirectionalSolver) 76 76 #solver.SetMapper(ez_map) -
mystic/examples/mpl_corana.py
r97 r465 7 7 import pylab, numpy, mystic 8 8 #from test_corana import * 9 from mystic.s cipy_optimizeimport fmin10 from mystic import getch9 from mystic.solvers import fmin 10 from mystic.tools import getch 11 11 12 12 from mystic.models.corana import corana1d as Corana1 -
mystic/examples/rosetta_mogi.py
r335 r465 70 70 # --- Call to Mystic's Fmin optimizer --- 71 71 def mystic_optimize(point): 72 from mystic import getch, Sow, random_seed, VerboseSow72 from mystic.tools import getch, Sow, random_seed, VerboseSow 73 73 random_seed(123) 74 from mystic.s cipy_optimizeimport NelderMeadSimplexSolver as fmin74 from mystic.solvers import NelderMeadSimplexSolver as fmin 75 75 from mystic.termination import CandidateRelativeTolerance as CRT 76 76 simplex, esow = VerboseSow(50), Sow() … … 84 84 # --- Call to Mystic's DE optimizer --- 85 85 def mystic_optimize2(point): 86 from mystic import getch, Sow, random_seed, VerboseSow86 from mystic.tools import getch, Sow, random_seed, VerboseSow 87 87 random_seed(123) 88 from mystic. differential_evolutionimport DifferentialEvolutionSolver as de88 from mystic.solvers import DifferentialEvolutionSolver as de 89 89 from mystic.termination import ChangeOverGeneration as COG 90 90 NPOP = 50 -
mystic/examples/rosetta_parabola.py
r335 r465 52 52 # --- Call to Mystic --- 53 53 def mystic_optimize(point): 54 from mystic import Sow, VerboseSow55 from mystic.s cipy_optimizeimport NelderMeadSimplexSolver as fmin54 from mystic.tools import Sow, VerboseSow 55 from mystic.solvers import NelderMeadSimplexSolver as fmin 56 56 from mystic.termination import CandidateRelativeTolerance as CRT 57 57 simplex, esow = VerboseSow(50), Sow() … … 144 144 145 145 # set plot window 146 from mystic import getch146 from mystic.tools import getch 147 147 plotview = [-10,10, 0,100] 148 148 -
mystic/examples/test_br8.py
r236 r465 10 10 from numpy import * 11 11 from scipy.integrate import romberg 12 from mystic. differential_evolutionimport DifferentialEvolutionSolver2 as DifferentialEvolutionSolver12 from mystic.solvers import DifferentialEvolutionSolver2 as DifferentialEvolutionSolver 13 13 from mystic.termination import ChangeOverGeneration, VTR 14 from mystic import getch, random_seed15 from mystic import VerboseSow as MySow14 from mystic.tools import getch, random_seed 15 from mystic.tools import VerboseSow as MySow 16 16 17 17 from mystic.models.br8 import decay; F = decay.ForwardFactory -
mystic/examples/test_circle.py
r117 r465 42 42 43 43 # prepare DESolver 44 from mystic. differential_evolutionimport DifferentialEvolutionSolver2 \44 from mystic.solvers import DifferentialEvolutionSolver2 \ 45 45 as DifferentialEvolutionSolver 46 46 from mystic.termination import ChangeOverGeneration, VTR … … 66 66 pylab.axis('equal') 67 67 68 # solve with mystic .differential_evolution68 # solve with mystic's differential evolution solver 69 69 solution = solver.Solution() 70 70 sx, sy, sr = solution … … 77 77 78 78 # solve with scipy.fmin 79 from mystic.s cipy_optimizeimport fmin79 from mystic.solvers import fmin 80 80 sol = fmin(cost, guess) 81 81 print "scipy.fmin sol: ", sol -
mystic/examples/test_corana.py
r117 r465 13 13 """ 14 14 15 from mystic. differential_evolutionimport DifferentialEvolutionSolver15 from mystic.solvers import DifferentialEvolutionSolver 16 16 from mystic.termination import ChangeOverGeneration, VTR 17 17 from mystic.strategy import Best1Exp, Rand1Exp … … 49 49 50 50 try: 51 from mystic.s cipy_optimizeimport fmin51 from mystic.solvers import fmin 52 52 #from scipy.optimize import fmin 53 53 import random -
mystic/examples/test_dejong3.py
r117 r465 16 16 """ 17 17 18 from mystic. differential_evolutionimport DifferentialEvolutionSolver18 from mystic.solvers import DifferentialEvolutionSolver 19 19 from mystic.termination import ChangeOverGeneration, VTR 20 20 from mystic.models.dejong import step as DeJong3 … … 51 51 52 52 # optimize with fmin 53 from mystic.s cipy_optimizeimport fmin53 from mystic.solvers import fmin 54 54 print fmin(DeJong3, [0 for i in range(ND)]) 55 55 -
mystic/examples/test_dejong4.py
r117 r465 15 15 """ 16 16 17 from mystic. differential_evolutionimport DifferentialEvolutionSolver17 from mystic.solvers import DifferentialEvolutionSolver 18 18 from mystic.termination import ChangeOverGeneration, VTR 19 19 from mystic.strategy import Best1Exp, Rand1Exp … … 51 51 52 52 # optimize with fmin 53 from mystic.s cipy_optimizeimport fmin53 from mystic.solvers import fmin 54 54 print fmin(DeJong4, [0 for i in range(ND)]) 55 55 -
mystic/examples/test_dejong5.py
r117 r465 13 13 """ 14 14 15 from mystic. differential_evolutionimport DifferentialEvolutionSolver15 from mystic.solvers import DifferentialEvolutionSolver 16 16 from mystic.termination import ChangeOverGeneration, VTR 17 17 from mystic.strategy import Best1Exp, Rand1Exp -
mystic/examples/test_ffit.py
r236 r465 15 15 """ 16 16 17 from mystic. differential_evolutionimport DifferentialEvolutionSolver17 from mystic.solvers import DifferentialEvolutionSolver 18 18 from mystic.termination import ChangeOverGeneration, VTR 19 19 from mystic.strategy import Best1Exp, Best1Bin, Rand1Exp 20 20 from mystic.math import poly1d 21 from mystic import getch, VerboseSow21 from mystic.tools import getch, VerboseSow 22 22 23 23 import random -
mystic/examples/test_ffit2.py
r236 r465 11 11 """ 12 12 13 from mystic. differential_evolutionimport DifferentialEvolutionSolver13 from mystic.solvers import DifferentialEvolutionSolver 14 14 from mystic.termination import ChangeOverGeneration, VTR 15 15 from mystic.strategy import Best1Exp, Best1Bin, Rand1Exp, Best2Bin, Best2Exp 16 16 from mystic.math import poly1d 17 from mystic import VerboseSow17 from mystic.tools import VerboseSow 18 18 from mystic.models.poly import chebyshev16cost 19 19 -
mystic/examples/test_ffitB.py
r117 r465 15 15 16 16 def main(): 17 from mystic. differential_evolutionimport DifferentialEvolutionSolver2 as DifferentialEvolutionSolver17 from mystic.solvers import DifferentialEvolutionSolver2 as DifferentialEvolutionSolver 18 18 19 19 solver = DifferentialEvolutionSolver(ND, NP) -
mystic/examples/test_ffitC.py
r106 r465 14 14 15 15 if __name__ == '__main__': 16 from mystic.s cipy_optimizeimport fmin16 from mystic.solvers import fmin 17 17 #from scipy.optimize import fmin 18 18 import random -
mystic/examples/test_ffitD.py
r109 r465 12 12 """ 13 13 14 from mystic. differential_evolutionimport diffev14 from mystic.solvers import diffev 15 15 from test_ffit import plot_solution, print_solution, Chebyshev8, ChebyshevCost 16 16 -
mystic/examples/test_fosc3d.py
r117 r465 6 6 """ 7 7 8 from mystic. differential_evolutionimport DifferentialEvolutionSolver8 from mystic.solvers import DifferentialEvolutionSolver 9 9 10 10 from mystic.termination import ChangeOverGeneration, VTR … … 48 48 if __name__ == '__main__': 49 49 import pylab, Image 50 from mystic.s cipy_optimizeimport fmin50 from mystic.solvers import fmin 51 51 #from scipy.optimize import fmin 52 52 draw_contour() -
mystic/examples/test_getCost.py
r236 r465 11 11 from mystic.math import poly1d as ForwardPolyFactory 12 12 from mystic.models import poly; PolyCostFactory = poly.CostFactory 13 from mystic. differential_evolutionimport DifferentialEvolutionSolver13 from mystic.solvers import DifferentialEvolutionSolver 14 14 from mystic.tools import VerboseSow, getch 15 15 -
mystic/examples/test_griewangk.py
r117 r465 13 13 """ 14 14 15 from mystic. differential_evolutionimport DifferentialEvolutionSolver15 from mystic.solvers import DifferentialEvolutionSolver 16 16 from mystic.termination import ChangeOverGeneration, VTR 17 17 from mystic.strategy import Best1Exp, Rand1Exp … … 43 43 44 44 if __name__ == '__main__': 45 from mystic.s cipy_optimizeimport fmin45 from mystic.solvers import fmin 46 46 from timeit import Timer 47 47 t = Timer("main()", "from __main__ import main") -
mystic/examples/test_lorentzian2.py
r117 r465 10 10 import pylab, matplotlib, Image 11 11 from numpy import * 12 from mystic. differential_evolutionimport DifferentialEvolutionSolver12 from mystic.solvers import DifferentialEvolutionSolver 13 13 from mystic.termination import ChangeOverGeneration, VTR 14 14 from mystic.strategy import Best1Exp, Rand1Exp, Best2Exp, Best2Exp 15 from mystic import getch, Sow, random_seed15 from mystic.tools import getch, Sow, random_seed 16 16 17 17 random.seed(123) -
mystic/examples/test_mogi.py
r245 r465 21 21 22 22 import pylab 23 from mystic. differential_evolutionimport DifferentialEvolutionSolver23 from mystic.solvers import DifferentialEvolutionSolver 24 24 from mystic.termination import ChangeOverGeneration, VTR 25 from mystic import getch, Sow, random_seed, VerboseSow25 from mystic.tools import getch, Sow, random_seed, VerboseSow 26 26 27 27 from numpy import pi, sqrt, array, mgrid, random, real, conjugate, arange … … 109 109 if __name__ == '__main__': 110 110 111 from mystic.s cipy_optimizeimport NelderMeadSimplexSolver as fmin111 from mystic.solvers import NelderMeadSimplexSolver as fmin 112 112 from mystic.termination import CandidateRelativeTolerance as CRT 113 113 from scipy.optimize import leastsq, fmin_cg -
mystic/examples/test_mogi4.py
r133 r465 6 6 7 7 from test_mogi2 import params0, params1, stations, data, data_z, ND, NP, plot_sol, plot_noisy_data, MAX_GENERATIONS, ForwardMogiFactory 8 from mystic. differential_evolutionimport DifferentialEvolutionSolver8 from mystic.solvers import DifferentialEvolutionSolver 9 9 from mystic.termination import ChangeOverGeneration, VTR 10 from mystic import getch, Sow, random_seed10 from mystic.tools import getch, Sow, random_seed 11 11 12 12 from mystic.forward_model import CostFactory -
mystic/examples/test_rosenbrock.py
r462 r465 13 13 """ 14 14 15 from mystic. differential_evolutionimport DifferentialEvolutionSolver, diffev15 from mystic.solvers import DifferentialEvolutionSolver, diffev 16 16 from mystic.termination import ChangeOverGeneration, VTR 17 17 from mystic.models import rosen 18 from mystic import Sow, VerboseSow18 from mystic.tools import Sow, VerboseSow 19 19 20 20 import random -
mystic/examples/test_rosenbrock2.py
r462 r465 30 30 31 31 #from scipy.optimize import fmin 32 from mystic.s cipy_optimizeimport fmin, NelderMeadSimplexSolver32 from mystic.solvers import fmin, NelderMeadSimplexSolver 33 33 #print fmin(rosen,x0,retall=0,full_output=0,maxiter=121) 34 34 solver = NelderMeadSimplexSolver(len(x0)) -
mystic/examples/test_rosenbrock3.py
r462 r465 34 34 35 35 #from scipy.optimize import fmin_powell 36 from mystic.s cipy_optimizeimport fmin_powell, PowellDirectionalSolver36 from mystic.solvers import fmin_powell, PowellDirectionalSolver 37 37 #print fmin_powell(rosen,x0,retall=0,full_output=0)#,maxiter=14) 38 38 solver = PowellDirectionalSolver(len(x0)) -
mystic/examples/test_twistedgaussian2.py
r88 r465 33 33 Cs , As = remix(Cs, As) 34 34 35 from mystic import flatten_array35 from mystic.tools import flatten_array 36 36 37 37 Sk = [a[100:] for a in Sk] # throw away the first 100 pts of each chain -
mystic/examples/test_twistedgaussian3.py
r88 r465 49 49 50 50 51 from mystic import flatten_array51 from mystic.tools import flatten_array 52 52 53 53 Sk = [a[100:] for a in Sk] # throw away the first 100 pts of each chain -
mystic/examples/test_wavy.py
r117 r465 5 5 """ 6 6 7 from mystic. differential_evolutionimport DifferentialEvolutionSolver2 as DifferentialEvolutionSolver7 from mystic.solvers import DifferentialEvolutionSolver2 as DifferentialEvolutionSolver 8 8 from mystic.termination import ChangeOverGeneration, VTR 9 9 from mystic.strategy import Best1Exp, Best1Bin, Rand1Exp 10 from mystic import getch, VerboseSow10 from mystic.tools import getch, VerboseSow 11 11 from numpy import arange 12 from mystic.s cipy_optimizeimport fmin12 from mystic.solvers import fmin 13 13 #from scipy.optimize import fmin 14 14 -
mystic/examples/test_zimmermann.py
r117 r465 16 16 """ 17 17 18 from mystic. differential_evolutionimport DifferentialEvolutionSolver18 from mystic.solvers import DifferentialEvolutionSolver 19 19 from mystic.termination import ChangeOverGeneration, VTR 20 20 from mystic.strategy import Best1Exp, Rand1Exp … … 51 51 print "CPU Time: %s" % timetaken 52 52 53 from mystic import Sow54 from mystic.s cipy_optimizeimport NelderMeadSimplexSolver as fmin53 from mystic.tools import Sow 54 from mystic.solvers import NelderMeadSimplexSolver as fmin 55 55 from mystic.termination import CandidateRelativeTolerance as CRT 56 56 -
mystic/examples_other/sam_cg_rosenbrock.py
r133 r465 12 12 from scipy.optimize import fmin_cg 13 13 import numpy 14 from mystic import getch14 from mystic.tools import getch 15 15 16 16 def draw_contour(): -
mystic/examples_other/sam_cg_zimmermann.py
r133 r465 11 11 from scipy.optimize import fmin_cg 12 12 import numpy 13 from mystic import getch13 from mystic.tools import getch 14 14 15 15 def draw_contour(): -
mystic/examples_other/sam_corana.py
r133 r465 7 7 import sam, numpy, mystic 8 8 #from test_corana import * 9 from mystic.s cipy_optimizeimport fmin10 from mystic import getch9 from mystic.solvers import fmin 10 from mystic.tools import getch 11 11 12 12 from mystic.models.corana import corana1d as Corana1 -
mystic/examples_other/sam_corana2.py
r133 r465 11 11 import sam 12 12 #from test_corana import * 13 from mystic.s cipy_optimizeimport NelderMeadSimplexSolver as fmin13 from mystic.solvers import NelderMeadSimplexSolver as fmin 14 14 from mystic.termination import CandidateRelativeTolerance as CRT 15 from mystic import getch, Sow15 from mystic.tools import getch, Sow 16 16 17 17 from mystic.models.corana import corana2d as Corana2 -
mystic/examples_other/sam_mogi.py
r133 r465 9 9 import sam 10 10 from test_mogi import * 11 from mystic.s cipy_optimizeimport NelderMeadSimplexSolver as fmin11 from mystic.solvers import NelderMeadSimplexSolver as fmin 12 12 from mystic.termination import CandidateRelativeTolerance as CRT 13 from mystic import getch, Sow13 from mystic.tools import getch, Sow 14 14 15 15 x0,y0,z0,v0 = actual_params -
mystic/examples_other/sam_rosenbrock.py
r133 r465 12 12 import sam 13 13 from test_rosenbrock import * 14 from mystic.s cipy_optimizeimport NelderMeadSimplexSolver as fmin14 from mystic.solvers import NelderMeadSimplexSolver as fmin 15 15 from mystic.termination import CandidateRelativeTolerance as CRT 16 from mystic import getch, Sow16 from mystic.tools import getch, Sow 17 17 18 18 def draw_contour(): -
mystic/examples_other/sam_zimmermann.py
r133 r465 12 12 import sam 13 13 from test_zimmermann import * 14 from mystic.s cipy_optimizeimport NelderMeadSimplexSolver as fmin14 from mystic.solvers import NelderMeadSimplexSolver as fmin 15 15 from mystic.termination import CandidateRelativeTolerance as CRT 16 from mystic import getch, Sow16 from mystic.tools import getch, Sow 17 17 18 18 def draw_contour(): -
mystic/examples_other/test_gplot.py
r88 r465 1 1 #!/usr/bin/env python 2 2 3 from mystic import getch3 from mystic.tools import getch 4 4 5 5 import Gnuplot, numpy -
mystic/mystic/Make.mm
r427 r465 42 42 python_map.py \ 43 43 scipy_optimize.py \ 44 solvers.py \ 44 45 strategy.py \ 45 46 termination.py \ -
mystic/mystic/__init__.py
r464 r465 78 78 79 79 You will be warned of any missing dependencies and/or settings 80 after you run the "build" step above. Mystic depends on numpy, 81 so you should install it first. Having matplotlib is necessary 82 for running several of the examples, and you should probably go 83 get it even though it's not required. 80 after you run the "build" step above. Mystic depends on numpy 81 and sympy, so you should install them first. There are several 82 functions within mystic where scipy is used if it is available; 83 however, scipy is an optional dependency. Having matplotlib installed 84 is necessary for running several of the examples, and you should 85 probably go get it even though it's not required. Matplotlib is 86 also required by mystic's "analysis viewers". 84 87 85 88 Alternately, mystic can be installed with easy_install:: … … 99 102 - python, version >= 2.5, version < 3.0 100 103 - numpy, version >= 1.0 104 - sympy, version >= 0.6.7 101 105 102 106 Optional requirements:: 103 107 - setuptools, version >= 0.6 104 108 - matplotlib, version >= 0.91 109 - scipy, version >= 0.6.0 105 110 - pathos, version >= 0.1a1 111 - pyina, version >= 0.1a1 106 112 107 113 … … 144 150 145 151 Important classes and functions are found here:: 152 - mystic.mystic.solvers [solver optimization algorithms] 153 - mystic.mystic.termination [solver termination conditions] 154 - mystic.mystic.strategy [solver population mutation strategies] 155 - mystic.mystic.tools [monitors, function wrappers, and other tools] 156 - mystic.mystic.forward_model [cost function generator] 157 - mystic.models [a collection of standard models] 158 - mystic.math [some mathematical functions and tools] 159 160 Solver and model API definitions are found here:: 146 161 - mystic.mystic.abstract_solver [the solver API definition] 147 162 - mystic.mystic.abstract_map_solver [the parallel solver API] 148 163 - mystic.mystic.abstract_nested_solver [the nested solver API] 149 - mystic.mystic.termination [solver termination conditions]150 - mystic.mystic.strategy [solver population mutation strategies]151 164 - mystic.models.abstract_model [the model API definition] 152 - mystic.models.forward_model [cost function generator]153 - mystic.mystic.tools [monitors, function wrappers, and other tools]154 - mystic.mystic.math [some useful mathematical functions and tools]155 156 Solvers are found here::157 - mystic.mystic.differential_evolution [Differential Evolution solvers]158 - mystic.mystic.scipy_optimize [Nelder-Mead and Powell's Directional solvers]159 - mystic.mystic.nested [Batch Grid and Scattershot solvers]160 165 161 166 … … 218 223 219 224 """ 225 __all__ = ['solvers', 'termination', 'strategy', 'munge', 'tools'] 220 226 221 227 # solvers 222 import differential_evolution, scipy_optimize, nested228 import solvers 223 229 224 230 # strategies, termination conditions … … 226 232 import strategy 227 233 234 # constraints and penalties 235 # import constraints 236 # import penalties 237 228 238 # monitors, function wrappers, and other tools 239 # import monitors 240 import munge 241 import tools 242 243 # backward compatibility 229 244 from tools import * 245 230 246 231 247 def copyright(): -
mystic/mystic/differential_evolution.py
r462 r465 39 39 A minimal interface that mimics a scipy.optimize interface has also been 40 40 implemented, and functionality from the mystic solver API has been added 41 with reasonable defaults. DifferentialEvolutionSolver2 is used by 42 the minimal interface, unless 'invariant_current' is set to False. 41 with reasonable defaults. 43 42 44 43 Minimal function interface to optimization routines:: 45 44 diffev -- Differential Evolution (DE) solver 45 diffev2 -- Price & Storn's Differential Evolution solver 46 46 47 47 The corresponding solvers built on mystic's AbstractSolver are:: … … 49 49 DifferentialEvolutionSolver2 -- Storn & Price's DE solver 50 50 51 Mystic solver behavior activated in d effev::51 Mystic solver behavior activated in diffev and diffev2:: 52 52 - EvaluationMonitor = Sow() 53 53 - StepMonitor = Sow() … … 138 138 """ 139 139 __all__ = ['DifferentialEvolutionSolver','DifferentialEvolutionSolver2',\ 140 'diffev' ]140 'diffev','diffev2'] 141 141 142 142 from mystic.tools import Null, wrap_function, unpair … … 565 565 566 566 567 def diffev (func,x0,npop,args=(),bounds=None,ftol=5e-3,gtol=None,568 maxiter=None,maxfun=None,cross=0.9,scale=0.8,569 full_output=0,disp=1,retall=0,callback=None,invariant_current=True):570 """Minimize a function using differential evolution.567 def diffev2(func,x0,npop,args=(),bounds=None,ftol=5e-3,gtol=None, 568 maxiter=None,maxfun=None,cross=0.9,scale=0.8, 569 full_output=0,disp=1,retall=0,callback=None): 570 """Minimize a function using Storn & Price's differential evolution. 571 571 572 572 Description: 573 573 574 Uses a differential evolution algorith to find the minimum of575 a function of one or more variables. Mimics a scipy.optimize style574 Uses Storn & Prices's differential evolution algorith to find the minimum 575 of a function of one or more variables. Mimics a scipy.optimize style 576 576 interface. 577 577 … … 600 600 iteration. It is called as callback(xk), where xk is the 601 601 current parameter vector. 602 invariant_current -- set to True to call DifferentialEvolutionSolver2,603 otherwise call DifferentialEvolutionSolver604 602 605 603 Returns: (xopt, {fopt, iter, funcalls, warnflag}, {allvecs}) … … 615 613 616 614 """ 615 return diffev(func,x0,npop,args=(),bounds=None,ftol=5e-3,gtol=None, 616 maxiter=None,maxfun=None,cross=0.9,scale=0.8, 617 full_output=0,disp=1,retall=0,callback=None, 618 invariant_current=True) 619 620 621 def diffev(func,x0,npop,args=(),bounds=None,ftol=5e-3,gtol=None, 622 maxiter=None,maxfun=None,cross=0.9,scale=0.8, 623 full_output=0,disp=1,retall=0,callback=None,**kwds): 624 """Minimize a function using differential evolution. 625 626 Description: 627 628 Uses a differential evolution algorith to find the minimum of 629 a function of one or more variables. Mimics a scipy.optimize style 630 interface. 631 632 Inputs: 633 634 func -- the Python function or method to be minimized. 635 x0 -- the initial guess (ndarray), if desired to start from a 636 set point; otherwise takes an array of (min,max) bounds, 637 for when random initial points are desired 638 npop -- size of the trial solution population. 639 640 Additional Inputs: 641 642 args -- extra arguments for func. 643 bounds -- list - n pairs of bounds (min,max), one pair for each parameter. 644 ftol -- number - acceptable relative error in func(xopt) for convergence. 645 gtol -- number - maximum number of iterations to run without improvement. 646 maxiter -- number - the maximum number of iterations to perform. 647 maxfun -- number - the maximum number of function evaluations. 648 cross -- number - the probability of cross-parameter mutations 649 scale -- number - multiplier for impact of mutations on trial solution. 650 full_output -- number - non-zero if fval and warnflag outputs are desired. 651 disp -- number - non-zero to print convergence messages. 652 retall -- number - non-zero to return list of solutions at each iteration. 653 callback -- an optional user-supplied function to call after each 654 iteration. It is called as callback(xk), where xk is the 655 current parameter vector. 656 657 Returns: (xopt, {fopt, iter, funcalls, warnflag}, {allvecs}) 658 659 xopt -- ndarray - minimizer of function 660 fopt -- number - value of function at minimum: fopt = func(xopt) 661 iter -- number - number of iterations 662 funcalls -- number - number of function calls 663 warnflag -- number - Integer warning flag: 664 1 : 'Maximum number of function evaluations.' 665 2 : 'Maximum number of iterations.' 666 allvecs -- list - a list of solutions at each iteration 667 668 """ 669 invariant_current = False 670 if kwds.has_key('invariant_current'): 671 invariant_current = kwds['invariant_current'] 617 672 618 673 from mystic.tools import Sow -
mystic/mystic/munge.py
r370 r465 1 from mystic import list_or_tuple_or_ndarray as sequence1 from mystic.tools import list_or_tuple_or_ndarray as sequence 2 2 3 3 def write_support_file(mon,log_file='paramlog.py'): -
mystic/mystic/nested.py
r463 r465 12 12 13 13 The set of solvers built on mystic's AbstractNestdSolver are:: 14 BatchGridSolver -- start from center of N grid points15 ScattershotSolver -- start from N random points in parameter space14 LatticeSolver -- start from center of N grid points 15 BuckshotSolver -- start from N random points in parameter space 16 16 17 17 … … 19 19 ===== 20 20 21 See `mystic.examples. scattershot_example06` for an example of using22 ScattershotSolver. See `mystic.examples.batchgrid_example06`23 or an example of using BatchGridSolver.21 See `mystic.examples.buckshot_example06` for an example of using 22 BuckshotSolver. See `mystic.examples.lattice_example06` 23 or an example of using LatticeSolver. 24 24 25 25 All solvers included in this module provide the standard signal handling. 26 26 For more information, see `mystic.mystic.abstract_solver`. 27 27 """ 28 __all__ = [' BatchGridSolver','ScattershotSolver']28 __all__ = ['LatticeSolver','BuckshotSolver'] 29 29 30 30 from mystic.tools import Null, wrap_function … … 33 33 34 34 35 class BatchGridSolver(AbstractNestedSolver):35 class LatticeSolver(AbstractNestedSolver): 36 36 """ 37 37 parallel mapped optimization starting from the center of N grid points … … 45 45 All important class members are inherited from AbstractNestedSolver. 46 46 """ 47 super( BatchGridSolver, self).__init__(dim, nbins=nbins)47 super(LatticeSolver, self).__init__(dim, nbins=nbins) 48 48 49 49 # def SetGridBins(self, nbins): … … 134 134 def local_optimize(cost, termination, x0, rank): 135 135 from %s import %s as LocalSolver 136 from mystic import Sow136 from mystic.tools import Sow 137 137 138 138 stepmon = Sow() … … 220 220 return 221 221 222 class ScattershotSolver(AbstractNestedSolver):222 class BuckshotSolver(AbstractNestedSolver): 223 223 """ 224 224 parallel mapped optimization starting from the N random points … … 232 232 All important class members are inherited from AbstractNestedSolver. 233 233 """ 234 super( ScattershotSolver, self).__init__(dim, npts=npts)234 super(BuckshotSolver, self).__init__(dim, npts=npts) 235 235 236 236 def Solve(self, cost, termination, sigint_callback=None, 237 237 EvaluationMonitor=Null, StepMonitor=Null, ExtraArgs=(), **kwds): 238 """Minimize a function using scattershot optimization.238 """Minimize a function using buckshot optimization. 239 239 240 240 Description: … … 308 308 def local_optimize(cost, termination, x0, rank): 309 309 from %s import %s as LocalSolver 310 from mystic import Sow310 from mystic.tools import Sow 311 311 312 312 stepmon = Sow() … … 394 394 return 395 395 396 # backward compatibility 397 ScattershotSolver = BuckshotSolver 398 BatchGridSolver = LatticeSolver 399 396 400 397 401 if __name__=='__main__': -
mystic/scripts/support_hypercube.py
r374 r465 168 168 #steps = [[0,1],[1,2],[2,3],[3,4,5,6,7,8]] or similar 169 169 if flatten: 170 from mystic import flatten170 from mystic.tools import flatten 171 171 steps = [list(flatten(steps))] 172 172 -
mystic/scripts/support_hypercube2.py
r374 r465 180 180 #steps = [[0],[1],[3],[8]] or similar 181 181 if flatten: 182 from mystic import flatten182 from mystic.tools import flatten 183 183 steps = [list(flatten(steps))] 184 184 -
mystic/tests/solver_test_best_performance.py
r424 r465 54 54 print "\nUsing DifferentialEvolutionSolver:" 55 55 npop = 40 56 from mystic. differential_evolutionimport DifferentialEvolutionSolver56 from mystic.solvers import DifferentialEvolutionSolver 57 57 from mystic.termination import ChangeOverGeneration as COG 58 58 from mystic.strategy import Rand1Bin … … 78 78 print "\nUsing DifferentialEvolutionSolver2:" 79 79 npop = 40 80 from mystic. differential_evolutionimport DifferentialEvolutionSolver280 from mystic.solvers import DifferentialEvolutionSolver2 81 81 from mystic.termination import ChangeOverGeneration as COG 82 82 from mystic.strategy import Rand1Bin … … 101 101 # NelderMeadSimplexSolver 102 102 print "\nUsing NelderMeadSimplexSolver:" 103 from mystic.s cipy_optimizeimport NelderMeadSimplexSolver103 from mystic.solvers import NelderMeadSimplexSolver 104 104 from mystic.termination import CandidateRelativeTolerance as CRT 105 105 esow = Sow() … … 122 122 # PowellDirectionalSolver 123 123 print "\nUsing PowellDirectionalSolver:" 124 from mystic.s cipy_optimizeimport PowellDirectionalSolver124 from mystic.solvers import PowellDirectionalSolver 125 125 from mystic.termination import NormalizedChangeOverGeneration as NCOG 126 126 esow = Sow() … … 179 179 npop = 50 180 180 random_seed(seed) 181 from mystic. differential_evolutionimport DifferentialEvolutionSolver181 from mystic.solvers import DifferentialEvolutionSolver 182 182 from mystic.termination import ChangeOverGeneration as COG 183 183 from mystic.termination import CandidateRelativeTolerance as CRT … … 209 209 npop = 50 210 210 random_seed(seed) 211 from mystic. differential_evolutionimport DifferentialEvolutionSolver2211 from mystic.solvers import DifferentialEvolutionSolver2 212 212 from mystic.termination import ChangeOverGeneration as COG 213 213 from mystic.termination import CandidateRelativeTolerance as CRT -
mystic/tests/solver_test_suite.py
r425 r465 29 29 30 30 def _run_solver(self, iter_limit=False, local=False, **kwds): 31 from mystic import Sow31 from mystic.tools import Sow 32 32 import numpy 33 33 from mystic.tools import random_seed … … 72 72 73 73 def test_DifferentialEvolutionSolver_VTR(self): 74 from mystic. differential_evolutionimport DifferentialEvolutionSolver74 from mystic.solvers import DifferentialEvolutionSolver 75 75 from mystic.termination import VTR 76 76 tol = 1e-7 … … 82 82 83 83 def test_DifferentialEvolutionSolver_COG(self): # Default for this solver 84 from mystic. differential_evolutionimport DifferentialEvolutionSolver84 from mystic.solvers import DifferentialEvolutionSolver 85 85 from mystic.termination import ChangeOverGeneration as COG 86 86 tol = 1e-7 … … 92 92 93 93 def test_DifferentialEvolutionSolver_NCOG(self): 94 from mystic. differential_evolutionimport DifferentialEvolutionSolver94 from mystic.solvers import DifferentialEvolutionSolver 95 95 from mystic.termination import NormalizedChangeOverGeneration as NCOG 96 96 tol = 1e-7 … … 102 102 103 103 def test_DifferentialEvolutionSolver_CRT(self): 104 from mystic. differential_evolutionimport DifferentialEvolutionSolver104 from mystic.solvers import DifferentialEvolutionSolver 105 105 from mystic.termination import CandidateRelativeTolerance as CRT 106 106 tol = 1e-7 … … 114 114 115 115 def test_DifferentialEvolutionSolver2_VTR(self): 116 from mystic. differential_evolutionimport DifferentialEvolutionSolver2116 from mystic.solvers import DifferentialEvolutionSolver2 117 117 from mystic.termination import VTR 118 118 tol = 1e-7 … … 124 124 125 125 def test_DifferentialEvolutionSolver2_COG(self): # Default for this solver 126 from mystic. differential_evolutionimport DifferentialEvolutionSolver2126 from mystic.solvers import DifferentialEvolutionSolver2 127 127 from mystic.termination import ChangeOverGeneration as COG 128 128 tol = 1e-7 … … 134 134 135 135 def test_DifferentialEvolutionSolver2_NCOG(self): 136 from mystic. differential_evolutionimport DifferentialEvolutionSolver2136 from mystic.solvers import DifferentialEvolutionSolver2 137 137 from mystic.termination import NormalizedChangeOverGeneration as NCOG 138 138 tol = 1e-7 … … 144 144 145 145 def test_DifferentialEvolutionSolver2_CRT(self): 146 from mystic. differential_evolutionimport DifferentialEvolutionSolver2146 from mystic.solvers import DifferentialEvolutionSolver2 147 147 from mystic.termination import CandidateRelativeTolerance as CRT 148 148 tol = 1e-7 … … 156 156 157 157 def test_NelderMeadSimplexSolver_CRT(self): # Default for this solver 158 from mystic.s cipy_optimizeimport NelderMeadSimplexSolver158 from mystic.solvers import NelderMeadSimplexSolver 159 159 from mystic.termination import CandidateRelativeTolerance as CRT 160 160 tol = 1e-7 … … 164 164 165 165 def test_NelderMeadSimplexSolver_VTR(self): 166 from mystic.s cipy_optimizeimport NelderMeadSimplexSolver166 from mystic.solvers import NelderMeadSimplexSolver 167 167 from mystic.termination import VTR 168 168 tol = 1e-7 … … 172 172 173 173 def test_NelderMeadSimplexSolver_COG(self): 174 from mystic.s cipy_optimizeimport NelderMeadSimplexSolver174 from mystic.solvers import NelderMeadSimplexSolver 175 175 from mystic.termination import ChangeOverGeneration as COG 176 176 tol = 1e-7 … … 180 180 181 181 def test_NelderMeadSimplexSolver_NCOG(self): 182 from mystic.s cipy_optimizeimport NelderMeadSimplexSolver182 from mystic.solvers import NelderMeadSimplexSolver 183 183 from mystic.termination import NormalizedChangeOverGeneration as NCOG 184 184 tol = 1e-7 … … 190 190 191 191 def test_PowellDirectionalSolver_NCOG(self): # Default for this solver 192 from mystic.s cipy_optimizeimport PowellDirectionalSolver192 from mystic.solvers import PowellDirectionalSolver 193 193 from mystic.termination import NormalizedChangeOverGeneration as NCOG 194 194 tol = 1e-7 … … 198 198 199 199 def test_PowellDirectionalSolver_COG(self): 200 from mystic.s cipy_optimizeimport PowellDirectionalSolver200 from mystic.solvers import PowellDirectionalSolver 201 201 from mystic.termination import ChangeOverGeneration as COG 202 202 tol = 1e-7 … … 206 206 207 207 def test_PowellDirectionalSolver_VTR(self): 208 from mystic.s cipy_optimizeimport PowellDirectionalSolver208 from mystic.solvers import PowellDirectionalSolver 209 209 from mystic.termination import VTR 210 210 tol = 1e-7 … … 214 214 215 215 def test_PowellDirectionalSolver_CRT(self): 216 from mystic.s cipy_optimizeimport PowellDirectionalSolver216 from mystic.solvers import PowellDirectionalSolver 217 217 from mystic.termination import CandidateRelativeTolerance as CRT 218 218 tol = 1e-7 … … 239 239 240 240 def _run_solver(self, iter_limit=False, **kwds): 241 from mystic import Sow241 from mystic.tools import Sow 242 242 import numpy 243 243 from mystic.tools import random_seed … … 272 272 273 273 def test_DifferentialEvolutionSolver_VTR(self): 274 from mystic. differential_evolutionimport DifferentialEvolutionSolver274 from mystic.solvers import DifferentialEvolutionSolver 275 275 from mystic.termination import VTR 276 276 tol = 1e-7 … … 282 282 283 283 def test_DifferentialEvolutionSolver_COG(self): # Default for this solver 284 from mystic. differential_evolutionimport DifferentialEvolutionSolver284 from mystic.solvers import DifferentialEvolutionSolver 285 285 from mystic.termination import ChangeOverGeneration as COG 286 286 tol = 1e-7 … … 292 292 293 293 def test_DifferentialEvolutionSolver_NCOG(self): 294 from mystic. differential_evolutionimport DifferentialEvolutionSolver294 from mystic.solvers import DifferentialEvolutionSolver 295 295 from mystic.termination import NormalizedChangeOverGeneration as NCOG 296 296 tol = 1e-7 … … 302 302 303 303 def test_DifferentialEvolutionSolver_CRT(self): 304 from mystic. differential_evolutionimport DifferentialEvolutionSolver304 from mystic.solvers import DifferentialEvolutionSolver 305 305 from mystic.termination import CandidateRelativeTolerance as CRT 306 306 tol = 1e-7 … … 314 314 315 315 def test_DifferentialEvolutionSolver2_VTR(self): 316 from mystic. differential_evolutionimport DifferentialEvolutionSolver2316 from mystic.solvers import DifferentialEvolutionSolver2 317 317 from mystic.termination import VTR 318 318 tol = 1e-7 … … 324 324 325 325 def test_DifferentialEvolutionSolver2_COG(self): # Default for this solver 326 from mystic. differential_evolutionimport DifferentialEvolutionSolver2326 from mystic.solvers import DifferentialEvolutionSolver2 327 327 from mystic.termination import ChangeOverGeneration as COG 328 328 tol = 1e-7 … … 334 334 335 335 def test_DifferentialEvolutionSolver2_NCOG(self): 336 from mystic. differential_evolutionimport DifferentialEvolutionSolver2336 from mystic.solvers import DifferentialEvolutionSolver2 337 337 from mystic.termination import NormalizedChangeOverGeneration as NCOG 338 338 tol = 1e-7 … … 344 344 345 345 def test_DifferentialEvolutionSolver2_CRT(self): 346 from mystic. differential_evolutionimport DifferentialEvolutionSolver2346 from mystic.solvers import DifferentialEvolutionSolver2 347 347 from mystic.termination import CandidateRelativeTolerance as CRT 348 348 tol = 1e-7 … … 356 356 357 357 def test_NelderMeadSimplexSolver_CRT(self): # Default for this solver 358 from mystic.s cipy_optimizeimport NelderMeadSimplexSolver358 from mystic.solvers import NelderMeadSimplexSolver 359 359 from mystic.termination import CandidateRelativeTolerance as CRT 360 360 tol = 1e-7 … … 364 364 365 365 def test_NelderMeadSimplexSolver_VTR(self): 366 from mystic.s cipy_optimizeimport NelderMeadSimplexSolver366 from mystic.solvers import NelderMeadSimplexSolver 367 367 from mystic.termination import VTR 368 368 tol = 1e-7 … … 372 372 373 373 def test_NelderMeadSimplexSolver_COG(self): 374 from mystic.s cipy_optimizeimport NelderMeadSimplexSolver374 from mystic.solvers import NelderMeadSimplexSolver 375 375 from mystic.termination import ChangeOverGeneration as COG 376 376 tol = 1e-7 … … 380 380 381 381 def test_NelderMeadSimplexSolver_NCOG(self): 382 from mystic.s cipy_optimizeimport NelderMeadSimplexSolver382 from mystic.solvers import NelderMeadSimplexSolver 383 383 from mystic.termination import NormalizedChangeOverGeneration as NCOG 384 384 tol = 1e-7 … … 390 390 391 391 def test_PowellDirectionalSolver_NCOG(self): # Default for this solver 392 from mystic.s cipy_optimizeimport PowellDirectionalSolver392 from mystic.solvers import PowellDirectionalSolver 393 393 from mystic.termination import NormalizedChangeOverGeneration as NCOG 394 394 tol = 1e-7 … … 398 398 399 399 def test_PowellDirectionalSolver_COG(self): 400 from mystic.s cipy_optimizeimport PowellDirectionalSolver400 from mystic.solvers import PowellDirectionalSolver 401 401 from mystic.termination import ChangeOverGeneration as COG 402 402 tol = 1e-7 … … 406 406 407 407 def test_PowellDirectionalSolver_VTR(self): 408 from mystic.s cipy_optimizeimport PowellDirectionalSolver408 from mystic.solvers import PowellDirectionalSolver 409 409 from mystic.termination import VTR 410 410 tol = 1e-7 … … 414 414 415 415 def test_PowellDirectionalSolver_CRT(self): 416 from mystic.s cipy_optimizeimport PowellDirectionalSolver416 from mystic.solvers import PowellDirectionalSolver 417 417 from mystic.termination import CandidateRelativeTolerance as CRT 418 418 tol = 1e-7 … … 439 439 440 440 def _run_solver(self, iter_limit=False, **kwds): 441 from mystic import Sow441 from mystic.tools import Sow 442 442 import numpy 443 443 from mystic.tools import random_seed … … 473 473 474 474 def test_DifferentialEvolutionSolver_VTR(self): 475 from mystic. differential_evolutionimport DifferentialEvolutionSolver475 from mystic.solvers import DifferentialEvolutionSolver 476 476 from mystic.termination import VTR 477 477 tol = 1e-7 … … 483 483 484 484 def test_DifferentialEvolutionSolver_COG(self): # Default for this solver 485 from mystic. differential_evolutionimport DifferentialEvolutionSolver485 from mystic.solvers import DifferentialEvolutionSolver 486 486 from mystic.termination import ChangeOverGeneration as COG 487 487 tol = 1e-7 … … 493 493 494 494 def test_DifferentialEvolutionSolver_NCOG(self): 495 from mystic. differential_evolutionimport DifferentialEvolutionSolver495 from mystic.solvers import DifferentialEvolutionSolver 496 496 from mystic.termination import NormalizedChangeOverGeneration as NCOG 497 497 tol = 1e-7 … … 503 503 504 504 def test_DifferentialEvolutionSolver_CRT(self): 505 from mystic. differential_evolutionimport DifferentialEvolutionSolver505 from mystic.solvers import DifferentialEvolutionSolver 506 506 from mystic.termination import CandidateRelativeTolerance as CRT 507 507 tol = 1e-7 … … 515 515 516 516 def test_DifferentialEvolutionSolver2_VTR(self): 517 from mystic. differential_evolutionimport DifferentialEvolutionSolver2517 from mystic.solvers import DifferentialEvolutionSolver2 518 518 from mystic.termination import VTR 519 519 tol = 1e-7 … … 525 525 526 526 def test_DifferentialEvolutionSolver2_COG(self): # Default for this solver 527 from mystic. differential_evolutionimport DifferentialEvolutionSolver2527 from mystic.solvers import DifferentialEvolutionSolver2 528 528 from mystic.termination import ChangeOverGeneration as COG 529 529 tol = 1e-7 … … 535 535 536 536 def test_DifferentialEvolutionSolver2_NCOG(self): 537 from mystic. differential_evolutionimport DifferentialEvolutionSolver2537 from mystic.solvers import DifferentialEvolutionSolver2 538 538 from mystic.termination import NormalizedChangeOverGeneration as NCOG 539 539 tol = 1e-7 … … 545 545 546 546 def test_DifferentialEvolutionSolver2_CRT(self): 547 from mystic. differential_evolutionimport DifferentialEvolutionSolver2547 from mystic.solvers import DifferentialEvolutionSolver2 548 548 from mystic.termination import CandidateRelativeTolerance as CRT 549 549 tol = 1e-7 … … 557 557 558 558 def test_NelderMeadSimplexSolver_CRT(self): # Default for this solver 559 from mystic.s cipy_optimizeimport NelderMeadSimplexSolver559 from mystic.solvers import NelderMeadSimplexSolver 560 560 from mystic.termination import CandidateRelativeTolerance as CRT 561 561 tol = 1e-7 … … 565 565 566 566 def test_NelderMeadSimplexSolver_VTR(self): 567 from mystic.s cipy_optimizeimport NelderMeadSimplexSolver567 from mystic.solvers import NelderMeadSimplexSolver 568 568 from mystic.termination import VTR 569 569 tol = 1e-7 … … 573 573 574 574 def test_NelderMeadSimplexSolver_COG(self): 575 from mystic.s cipy_optimizeimport NelderMeadSimplexSolver575 from mystic.solvers import NelderMeadSimplexSolver 576 576 from mystic.termination import ChangeOverGeneration as COG 577 577 tol = 1e-7 … … 581 581 582 582 def test_NelderMeadSimplexSolver_NCOG(self): 583 from mystic.s cipy_optimizeimport NelderMeadSimplexSolver583 from mystic.solvers import NelderMeadSimplexSolver 584 584 from mystic.termination import NormalizedChangeOverGeneration as NCOG 585 585 tol = 1e-7 … … 591 591 592 592 def test_PowellDirectionalSolver_NCOG(self): # Default for this solver 593 from mystic.s cipy_optimizeimport PowellDirectionalSolver593 from mystic.solvers import PowellDirectionalSolver 594 594 from mystic.termination import NormalizedChangeOverGeneration as NCOG 595 595 tol = 1e-7 … … 599 599 600 600 def test_PowellDirectionalSolver_COG(self): 601 from mystic.s cipy_optimizeimport PowellDirectionalSolver601 from mystic.solvers import PowellDirectionalSolver 602 602 from mystic.termination import ChangeOverGeneration as COG 603 603 tol = 1e-7 … … 607 607 608 608 def test_PowellDirectionalSolver_VTR(self): 609 from mystic.s cipy_optimizeimport PowellDirectionalSolver609 from mystic.solvers import PowellDirectionalSolver 610 610 from mystic.termination import VTR 611 611 tol = 1e-7 … … 615 615 616 616 def test_PowellDirectionalSolver_CRT(self): 617 from mystic.s cipy_optimizeimport PowellDirectionalSolver617 from mystic.solvers import PowellDirectionalSolver 618 618 from mystic.termination import CandidateRelativeTolerance as CRT 619 619 tol = 1e-7 … … 639 639 640 640 def _run_solver(self, iter_limit=False, **kwds): 641 from mystic import Sow641 from mystic.tools import Sow 642 642 import numpy 643 643 from mystic.tools import random_seed … … 671 671 672 672 def test_DifferentialEvolutionSolver_VTR(self): 673 from mystic. differential_evolutionimport DifferentialEvolutionSolver673 from mystic.solvers import DifferentialEvolutionSolver 674 674 from mystic.termination import VTR 675 675 tol = 1e-7 … … 681 681 682 682 def test_DifferentialEvolutionSolver_COG(self): # Default for this solver 683 from mystic. differential_evolutionimport DifferentialEvolutionSolver683 from mystic.solvers import DifferentialEvolutionSolver 684 684 from mystic.termination import ChangeOverGeneration as COG 685 685 tol = 1e-7 … … 691 691 692 692 def test_DifferentialEvolutionSolver_NCOG(self): 693 from mystic. differential_evolutionimport DifferentialEvolutionSolver693 from mystic.solvers import DifferentialEvolutionSolver 694 694 from mystic.termination import NormalizedChangeOverGeneration as NCOG 695 695 tol = 1e-7 … … 701 701 702 702 def test_DifferentialEvolutionSolver_CRT(self): 703 from mystic. differential_evolutionimport DifferentialEvolutionSolver703 from mystic.solvers import DifferentialEvolutionSolver 704 704 from mystic.termination import CandidateRelativeTolerance as CRT 705 705 tol = 1e-7 … … 713 713 714 714 def test_DifferentialEvolutionSolver2_VTR(self): 715 from mystic. differential_evolutionimport DifferentialEvolutionSolver2715 from mystic.solvers import DifferentialEvolutionSolver2 716 716 from mystic.termination import VTR 717 717 tol = 1e-7 … … 723 723 724 724 def test_DifferentialEvolutionSolver2_COG(self): # Default for this solver 725 from mystic. differential_evolutionimport DifferentialEvolutionSolver2725 from mystic.solvers import DifferentialEvolutionSolver2 726 726 from mystic.termination import ChangeOverGeneration as COG 727 727 tol = 1e-7 … … 733 733 734 734 def test_DifferentialEvolutionSolver2_NCOG(self): 735 from mystic. differential_evolutionimport DifferentialEvolutionSolver2735 from mystic.solvers import DifferentialEvolutionSolver2 736 736 from mystic.termination import NormalizedChangeOverGeneration as NCOG 737 737 tol = 1e-7 … … 743 743 744 744 def test_DifferentialEvolutionSolver2_CRT(self): 745 from mystic. differential_evolutionimport DifferentialEvolutionSolver2745 from mystic.solvers import DifferentialEvolutionSolver2 746 746 from mystic.termination import CandidateRelativeTolerance as CRT 747 747 tol = 1e-7 … … 755 755 756 756 def test_NelderMeadSimplexSolver_CRT(self): # Default for this solver 757 from mystic.s cipy_optimizeimport NelderMeadSimplexSolver757 from mystic.solvers import NelderMeadSimplexSolver 758 758 from mystic.termination import CandidateRelativeTolerance as CRT 759 759 tol = 1e-7 … … 763 763 764 764 def test_NelderMeadSimplexSolver_VTR(self): 765 from mystic.s cipy_optimizeimport NelderMeadSimplexSolver765 from mystic.solvers import NelderMeadSimplexSolver 766 766 from mystic.termination import VTR 767 767 tol = 1e-7 … … 771 771 772 772 def test_NelderMeadSimplexSolver_COG(self): 773 from mystic.s cipy_optimizeimport NelderMeadSimplexSolver773 from mystic.solvers import NelderMeadSimplexSolver 774 774 from mystic.termination import ChangeOverGeneration as COG 775 775 tol = 1e-7 … … 779 779 780 780 def test_NelderMeadSimplexSolver_NCOG(self): 781 from mystic.s cipy_optimizeimport NelderMeadSimplexSolver781 from mystic.solvers import NelderMeadSimplexSolver 782 782 from mystic.termination import NormalizedChangeOverGeneration as NCOG 783 783 tol = 1e-7 … … 789 789 790 790 def test_PowellDirectionalSolver_NCOG(self): # Default for this solver 791 from mystic.s cipy_optimizeimport PowellDirectionalSolver791 from mystic.solvers import PowellDirectionalSolver 792 792 from mystic.termination import NormalizedChangeOverGeneration as NCOG 793 793 tol = 1e-7 … … 797 797 798 798 def test_PowellDirectionalSolver_COG(self): 799 from mystic.s cipy_optimizeimport PowellDirectionalSolver799 from mystic.solvers import PowellDirectionalSolver 800 800 from mystic.termination import ChangeOverGeneration as COG 801 801 tol = 1e-7 … … 805 805 806 806 def test_PowellDirectionalSolver_VTR(self): 807 from mystic.s cipy_optimizeimport PowellDirectionalSolver807 from mystic.solvers import PowellDirectionalSolver 808 808 from mystic.termination import VTR 809 809 tol = 1e-7 … … 813 813 814 814 def test_PowellDirectionalSolver_CRT(self): 815 from mystic.s cipy_optimizeimport PowellDirectionalSolver815 from mystic.solvers import PowellDirectionalSolver 816 816 from mystic.termination import CandidateRelativeTolerance as CRT 817 817 tol = 1e-7 … … 837 837 838 838 def _run_solver(self, iter_limit=False, **kwds): 839 from mystic import Sow839 from mystic.tools import Sow 840 840 import numpy 841 841 from mystic.tools import random_seed … … 869 869 870 870 def test_DifferentialEvolutionSolver_VTR(self): 871 from mystic. differential_evolutionimport DifferentialEvolutionSolver871 from mystic.solvers import DifferentialEvolutionSolver 872 872 from mystic.termination import VTR 873 873 tol = 1e-7 … … 879 879 880 880 def test_DifferentialEvolutionSolver_COG(self): # Default for this solver 881 from mystic. differential_evolutionimport DifferentialEvolutionSolver881 from mystic.solvers import DifferentialEvolutionSolver 882 882 from mystic.termination import ChangeOverGeneration as COG 883 883 tol = 1e-7 … … 889 889 890 890 def test_DifferentialEvolutionSolver_NCOG(self): 891 from mystic. differential_evolutionimport DifferentialEvolutionSolver891 from mystic.solvers import DifferentialEvolutionSolver 892 892 from mystic.termination import NormalizedChangeOverGeneration as NCOG 893 893 tol = 1e-7 … … 899 899 900 900 def test_DifferentialEvolutionSolver_CRT(self): 901 from mystic. differential_evolutionimport DifferentialEvolutionSolver901 from mystic.solvers import DifferentialEvolutionSolver 902 902 from mystic.termination import CandidateRelativeTolerance as CRT 903 903 tol = 1e-7 … … 911 911 912 912 def test_DifferentialEvolutionSolver2_VTR(self): 913 from mystic. differential_evolutionimport DifferentialEvolutionSolver2913 from mystic.solvers import DifferentialEvolutionSolver2 914 914 from mystic.termination import VTR 915 915 tol = 1e-7 … … 921 921 922 922 def test_DifferentialEvolutionSolver2_COG(self): # Default for this solver 923 from mystic. differential_evolutionimport DifferentialEvolutionSolver2923 from mystic.solvers import DifferentialEvolutionSolver2 924 924 from mystic.termination import ChangeOverGeneration as COG 925 925 tol = 1e-7 … … 931 931 932 932 def test_DifferentialEvolutionSolver2_NCOG(self): 933 from mystic. differential_evolutionimport DifferentialEvolutionSolver2933 from mystic.solvers import DifferentialEvolutionSolver2 934 934 from mystic.termination import NormalizedChangeOverGeneration as NCOG 935 935 tol = 1e-7 … … 941 941 942 942 def test_DifferentialEvolutionSolver2_CRT(self): 943 from mystic. differential_evolutionimport DifferentialEvolutionSolver2943 from mystic.solvers import DifferentialEvolutionSolver2 944 944 from mystic.termination import CandidateRelativeTolerance as CRT 945 945 tol = 1e-7 … … 953 953 954 954 def test_NelderMeadSimplexSolver_CRT(self): # Default for this solver 955 from mystic.s cipy_optimizeimport NelderMeadSimplexSolver955 from mystic.solvers import NelderMeadSimplexSolver 956 956 from mystic.termination import CandidateRelativeTolerance as CRT 957 957 tol = 1e-7 … … 961 961 962 962 def test_NelderMeadSimplexSolver_VTR(self): 963 from mystic.s cipy_optimizeimport NelderMeadSimplexSolver963 from mystic.solvers import NelderMeadSimplexSolver 964 964 from mystic.termination import VTR 965 965 tol = 1e-7 … … 969 969 970 970 def test_NelderMeadSimplexSolver_COG(self): 971 from mystic.s cipy_optimizeimport NelderMeadSimplexSolver971 from mystic.solvers import NelderMeadSimplexSolver 972 972 from mystic.termination import ChangeOverGeneration as COG 973 973 tol = 1e-7 … … 977 977 978 978 def test_NelderMeadSimplexSolver_NCOG(self): 979 from mystic.s cipy_optimizeimport NelderMeadSimplexSolver979 from mystic.solvers import NelderMeadSimplexSolver 980 980 from mystic.termination import NormalizedChangeOverGeneration as NCOG 981 981 tol = 1e-7 … … 987 987 988 988 def test_PowellDirectionalSolver_NCOG(self): # Default for this solver 989 from mystic.s cipy_optimizeimport PowellDirectionalSolver989 from mystic.solvers import PowellDirectionalSolver 990 990 from mystic.termination import NormalizedChangeOverGeneration as NCOG 991 991 tol = 1e-7 … … 995 995 996 996 def test_PowellDirectionalSolver_COG(self): 997 from mystic.s cipy_optimizeimport PowellDirectionalSolver997 from mystic.solvers import PowellDirectionalSolver 998 998 from mystic.termination import ChangeOverGeneration as COG 999 999 tol = 1e-7 … … 1003 1003 1004 1004 def test_PowellDirectionalSolver_VTR(self): 1005 from mystic.s cipy_optimizeimport PowellDirectionalSolver1005 from mystic.solvers import PowellDirectionalSolver 1006 1006 from mystic.termination import VTR 1007 1007 tol = 1e-7 … … 1011 1011 1012 1012 def test_PowellDirectionalSolver_CRT(self): 1013 from mystic.s cipy_optimizeimport PowellDirectionalSolver1013 from mystic.solvers import PowellDirectionalSolver 1014 1014 from mystic.termination import CandidateRelativeTolerance as CRT 1015 1015 tol = 1e-7 … … 1036 1036 1037 1037 def _run_solver(self, iter_limit = False, **kwds): 1038 from mystic import Sow1038 from mystic.tools import Sow 1039 1039 import numpy 1040 1040 from mystic.tools import random_seed … … 1069 1069 1070 1070 def test_DifferentialEvolutionSolver_VTR(self): 1071 from mystic. differential_evolutionimport DifferentialEvolutionSolver1071 from mystic.solvers import DifferentialEvolutionSolver 1072 1072 from mystic.termination import VTR 1073 1073 tol = 1e-7 … … 1079 1079 1080 1080 def test_DifferentialEvolutionSolver_COG(self): # Default for this solver 1081 from mystic. differential_evolutionimport DifferentialEvolutionSolver1081 from mystic.solvers import DifferentialEvolutionSolver 1082 1082 from mystic.termination import ChangeOverGeneration as COG 1083 1083 tol = 1e-7 … … 1089 1089 1090 1090 def test_DifferentialEvolutionSolver_NCOG(self): 1091 from mystic. differential_evolutionimport DifferentialEvolutionSolver1091 from mystic.solvers import DifferentialEvolutionSolver 1092 1092 from mystic.termination import NormalizedChangeOverGeneration as NCOG 1093 1093 tol = 1e-7 … … 1099 1099 1100 1100 def test_DifferentialEvolutionSolver_CRT(self): 1101 from mystic. differential_evolutionimport DifferentialEvolutionSolver1101 from mystic.solvers import DifferentialEvolutionSolver 1102 1102 from mystic.termination import CandidateRelativeTolerance as CRT 1103 1103 tol = 1e-7 … … 1111 1111 1112 1112 def test_DifferentialEvolutionSolver2_VTR(self): 1113 from mystic. differential_evolutionimport DifferentialEvolutionSolver21113 from mystic.solvers import DifferentialEvolutionSolver2 1114 1114 from mystic.termination import VTR 1115 1115 tol = 1e-7 … … 1121 1121 1122 1122 def test_DifferentialEvolutionSolver2_COG(self): # Default for this solver 1123 from mystic. differential_evolutionimport DifferentialEvolutionSolver21123 from mystic.solvers import DifferentialEvolutionSolver2 1124 1124 from mystic.termination import ChangeOverGeneration as COG 1125 1125 tol = 1e-7 … … 1131 1131 1132 1132 def test_DifferentialEvolutionSolver2_NCOG(self): 1133 from mystic. differential_evolutionimport DifferentialEvolutionSolver21133 from mystic.solvers import DifferentialEvolutionSolver2 1134 1134 from mystic.termination import NormalizedChangeOverGeneration as NCOG 1135 1135 tol = 1e-7 … … 1141 1141 1142 1142 def test_DifferentialEvolutionSolver2_CRT(self): 1143 from mystic. differential_evolutionimport DifferentialEvolutionSolver21143 from mystic.solvers import DifferentialEvolutionSolver2 1144 1144 from mystic.termination import CandidateRelativeTolerance as CRT 1145 1145 tol = 1e-7 … … 1153 1153 1154 1154 def test_NelderMeadSimplexSolver_CRT(self): # Default for this solver 1155 from mystic.s cipy_optimizeimport NelderMeadSimplexSolver1155 from mystic.solvers import NelderMeadSimplexSolver 1156 1156 from mystic.termination import CandidateRelativeTolerance as CRT 1157 1157 tol = 1e-7 … … 1161 1161 1162 1162 def test_NelderMeadSimplexSolver_VTR(self): 1163 from mystic.s cipy_optimizeimport NelderMeadSimplexSolver1163 from mystic.solvers import NelderMeadSimplexSolver 1164 1164 from mystic.termination import VTR 1165 1165 tol = 1e-7 … … 1169 1169 1170 1170 def test_NelderMeadSimplexSolver_COG(self): 1171 from mystic.s cipy_optimizeimport NelderMeadSimplexSolver1171 from mystic.solvers import NelderMeadSimplexSolver 1172 1172 from mystic.termination import ChangeOverGeneration as COG 1173 1173 tol = 1e-7 … … 1177 1177 1178 1178 def test_NelderMeadSimplexSolver_NCOG(self): 1179 from mystic.s cipy_optimizeimport NelderMeadSimplexSolver1179 from mystic.solvers import NelderMeadSimplexSolver 1180 1180 from mystic.termination import NormalizedChangeOverGeneration as NCOG 1181 1181 tol = 1e-7 … … 1187 1187 1188 1188 def test_PowellDirectionalSolver_NCOG(self): # Default for this solver 1189 from mystic.s cipy_optimizeimport PowellDirectionalSolver1189 from mystic.solvers import PowellDirectionalSolver 1190 1190 from mystic.termination import NormalizedChangeOverGeneration as NCOG 1191 1191 tol = 1e-7 … … 1195 1195 1196 1196 def test_PowellDirectionalSolver_COG(self): 1197 from mystic.s cipy_optimizeimport PowellDirectionalSolver1197 from mystic.solvers import PowellDirectionalSolver 1198 1198 from mystic.termination import ChangeOverGeneration as COG 1199 1199 tol = 1e-7 … … 1203 1203 1204 1204 def test_PowellDirectionalSolver_VTR(self): 1205 from mystic.s cipy_optimizeimport PowellDirectionalSolver1205 from mystic.solvers import PowellDirectionalSolver 1206 1206 from mystic.termination import VTR 1207 1207 tol = 1e-7 … … 1211 1211 1212 1212 def test_PowellDirectionalSolver_CRT(self): 1213 from mystic.s cipy_optimizeimport PowellDirectionalSolver1213 from mystic.solvers import PowellDirectionalSolver 1214 1214 from mystic.termination import CandidateRelativeTolerance as CRT 1215 1215 tol = 1e-7 … … 1236 1236 1237 1237 def _run_solver(self, iter_limit=False, **kwds): 1238 from mystic import Sow1238 from mystic.tools import Sow 1239 1239 import numpy 1240 1240 from mystic.tools import random_seed … … 1269 1269 1270 1270 def test_DifferentialEvolutionSolver_VTR(self): 1271 from mystic. differential_evolutionimport DifferentialEvolutionSolver1271 from mystic.solvers import DifferentialEvolutionSolver 1272 1272 from mystic.termination import VTR 1273 1273 tol = 1e-7 … … 1279 1279 1280 1280 def test_DifferentialEvolutionSolver_COG(self): # Default for this solver 1281 from mystic. differential_evolutionimport DifferentialEvolutionSolver1281 from mystic.solvers import DifferentialEvolutionSolver 1282 1282 from mystic.termination import ChangeOverGeneration as COG 1283 1283 tol = 1e-7 … … 1289 1289 1290 1290 def test_DifferentialEvolutionSolver_NCOG(self): 1291 from mystic. differential_evolutionimport DifferentialEvolutionSolver1291 from mystic.solvers import DifferentialEvolutionSolver 1292 1292 from mystic.termination import NormalizedChangeOverGeneration as NCOG 1293 1293 tol = 1e-7 … … 1299 1299 1300 1300 def test_DifferentialEvolutionSolver_CRT(self): 1301 from mystic. differential_evolutionimport DifferentialEvolutionSolver1301 from mystic.solvers import DifferentialEvolutionSolver 1302 1302 from mystic.termination import CandidateRelativeTolerance as CRT 1303 1303 tol = 1e-7 … … 1311 1311 1312 1312 def test_DifferentialEvolutionSolver2_VTR(self): 1313 from mystic. differential_evolutionimport DifferentialEvolutionSolver21313 from mystic.solvers import DifferentialEvolutionSolver2 1314 1314 from mystic.termination import VTR 1315 1315 tol = 1e-7 … … 1321 1321 1322 1322 def test_DifferentialEvolutionSolver2_COG(self): # Default for this solver 1323 from mystic. differential_evolutionimport DifferentialEvolutionSolver21323 from mystic.solvers import DifferentialEvolutionSolver2 1324 1324 from mystic.termination import ChangeOverGeneration as COG 1325 1325 tol = 1e-7 … … 1331 1331 1332 1332 def test_DifferentialEvolutionSolver2_NCOG(self): 1333 from mystic. differential_evolutionimport DifferentialEvolutionSolver21333 from mystic.solvers import DifferentialEvolutionSolver2 1334 1334 from mystic.termination import NormalizedChangeOverGeneration as NCOG 1335 1335 tol = 1e-7 … … 1341 1341 1342 1342 def test_DifferentialEvolutionSolver2_CRT(self): 1343 from mystic. differential_evolutionimport DifferentialEvolutionSolver21343 from mystic.solvers import DifferentialEvolutionSolver2 1344 1344 from mystic.termination import CandidateRelativeTolerance as CRT 1345 1345 tol = 1e-7 … … 1353 1353 1354 1354 def test_NelderMeadSimplexSolver_CRT(self): # Default for this solver 1355 from mystic.s cipy_optimizeimport NelderMeadSimplexSolver1355 from mystic.solvers import NelderMeadSimplexSolver 1356 1356 from mystic.termination import CandidateRelativeTolerance as CRT 1357 1357 tol = 1e-7 … … 1361 1361 1362 1362 def test_NelderMeadSimplexSolver_VTR(self): 1363 from mystic.s cipy_optimizeimport NelderMeadSimplexSolver1363 from mystic.solvers import NelderMeadSimplexSolver 1364 1364 from mystic.termination import VTR 1365 1365 tol = 1e-7 … … 1369 1369 1370 1370 def test_NelderMeadSimplexSolver_COG(self): 1371 from mystic.s cipy_optimizeimport NelderMeadSimplexSolver1371 from mystic.solvers import NelderMeadSimplexSolver 1372 1372 from mystic.termination import ChangeOverGeneration as COG 1373 1373 tol = 1e-7 … … 1377 1377 1378 1378 def test_NelderMeadSimplexSolver_NCOG(self): 1379 from mystic.s cipy_optimizeimport NelderMeadSimplexSolver1379 from mystic.solvers import NelderMeadSimplexSolver 1380 1380 from mystic.termination import NormalizedChangeOverGeneration as NCOG 1381 1381 tol = 1e-7 … … 1387 1387 1388 1388 def test_PowellDirectionalSolver_NCOG(self): # Default for this solver 1389 from mystic.s cipy_optimizeimport PowellDirectionalSolver1389 from mystic.solvers import PowellDirectionalSolver 1390 1390 from mystic.termination import NormalizedChangeOverGeneration as NCOG 1391 1391 tol = 1e-7 … … 1395 1395 1396 1396 def test_PowellDirectionalSolver_COG(self): 1397 from mystic.s cipy_optimizeimport PowellDirectionalSolver1397 from mystic.solvers import PowellDirectionalSolver 1398 1398 from mystic.termination import ChangeOverGeneration as COG 1399 1399 tol = 1e-7 … … 1403 1403 1404 1404 def test_PowellDirectionalSolver_VTR(self): 1405 from mystic.s cipy_optimizeimport PowellDirectionalSolver1405 from mystic.solvers import PowellDirectionalSolver 1406 1406 from mystic.termination import VTR 1407 1407 tol = 1e-7 … … 1411 1411 1412 1412 def test_PowellDirectionalSolver_CRT(self): 1413 from mystic.s cipy_optimizeimport PowellDirectionalSolver1413 from mystic.solvers import PowellDirectionalSolver 1414 1414 from mystic.termination import CandidateRelativeTolerance as CRT 1415 1415 tol = 1e-7 … … 1448 1448 1449 1449 def _run_solver(self, iter_limit=False, **kwds): 1450 from mystic import Sow1450 from mystic.tools import Sow 1451 1451 import numpy 1452 1452 from mystic.tools import random_seed … … 1480 1480 1481 1481 def test_DifferentialEvolutionSolver_VTR(self): 1482 from mystic. differential_evolutionimport DifferentialEvolutionSolver1482 from mystic.solvers import DifferentialEvolutionSolver 1483 1483 from mystic.termination import VTR 1484 1484 tol = 1e-7 … … 1490 1490 1491 1491 def test_DifferentialEvolutionSolver_COG(self): # Default for this solver 1492 from mystic. differential_evolutionimport DifferentialEvolutionSolver1492 from mystic.solvers import DifferentialEvolutionSolver 1493 1493 from mystic.termination import ChangeOverGeneration as COG 1494 1494 tol = 1e-7 … … 1500 1500 1501 1501 def test_DifferentialEvolutionSolver_NCOG(self): 1502 from mystic. differential_evolutionimport DifferentialEvolutionSolver1502 from mystic.solvers import DifferentialEvolutionSolver 1503 1503 from mystic.termination import NormalizedChangeOverGeneration as NCOG 1504 1504 tol = 1e-7 … … 1510 1510 1511 1511 def test_DifferentialEvolutionSolver_CRT(self): 1512 from mystic. differential_evolutionimport DifferentialEvolutionSolver1512 from mystic.solvers import DifferentialEvolutionSolver 1513 1513 from mystic.termination import CandidateRelativeTolerance as CRT 1514 1514 tol = 1e-7 … … 1522 1522 1523 1523 def test_DifferentialEvolutionSolver2_VTR(self): 1524 from mystic. differential_evolutionimport DifferentialEvolutionSolver21524 from mystic.solvers import DifferentialEvolutionSolver2 1525 1525 from mystic.termination import VTR 1526 1526 tol = 1e-7 … … 1532 1532 1533 1533 def test_DifferentialEvolutionSolver2_COG(self): # Default for this solver 1534 from mystic. differential_evolutionimport DifferentialEvolutionSolver21534 from mystic.solvers import DifferentialEvolutionSolver2 1535 1535 from mystic.termination import ChangeOverGeneration as COG 1536 1536 tol = 1e-7 … … 1542 1542 1543 1543 def test_DifferentialEvolutionSolver2_NCOG(self): 1544 from mystic. differential_evolutionimport DifferentialEvolutionSolver21544 from mystic.solvers import DifferentialEvolutionSolver2 1545 1545 from mystic.termination import NormalizedChangeOverGeneration as NCOG 1546 1546 tol = 1e-7 … … 1552 1552 1553 1553 def test_DifferentialEvolutionSolver2_CRT(self): 1554 from mystic. differential_evolutionimport DifferentialEvolutionSolver21554 from mystic.solvers import DifferentialEvolutionSolver2 1555 1555 from mystic.termination import CandidateRelativeTolerance as CRT 1556 1556 tol = 1e-7 … … 1564 1564 1565 1565 def test_NelderMeadSimplexSolver_CRT(self): # Default for this solver 1566 from mystic.s cipy_optimizeimport NelderMeadSimplexSolver1566 from mystic.solvers import NelderMeadSimplexSolver 1567 1567 from mystic.termination import CandidateRelativeTolerance as CRT 1568 1568 tol = 1e-7 … … 1572 1572 1573 1573 def test_NelderMeadSimplexSolver_VTR(self): 1574 from mystic.s cipy_optimizeimport NelderMeadSimplexSolver1574 from mystic.solvers import NelderMeadSimplexSolver 1575 1575 from mystic.termination import VTR 1576 1576 tol = 1e-7 … … 1580 1580 1581 1581 def test_NelderMeadSimplexSolver_COG(self): 1582 from mystic.s cipy_optimizeimport NelderMeadSimplexSolver1582 from mystic.solvers import NelderMeadSimplexSolver 1583 1583 from mystic.termination import ChangeOverGeneration as COG 1584 1584 tol = 1e-7 … … 1588 1588 1589 1589 def test_NelderMeadSimplexSolver_NCOG(self): 1590 from mystic.s cipy_optimizeimport NelderMeadSimplexSolver1590 from mystic.solvers import NelderMeadSimplexSolver 1591 1591 from mystic.termination import NormalizedChangeOverGeneration as NCOG 1592 1592 tol = 1e-7 … … 1598 1598 1599 1599 def test_PowellDirectionalSolver_NCOG(self): # Default for this solver 1600 from mystic.s cipy_optimizeimport PowellDirectionalSolver1600 from mystic.solvers import PowellDirectionalSolver 1601 1601 from mystic.termination import NormalizedChangeOverGeneration as NCOG 1602 1602 tol = 1e-7 … … 1606 1606 1607 1607 def test_PowellDirectionalSolver_COG(self): 1608 from mystic.s cipy_optimizeimport PowellDirectionalSolver1608 from mystic.solvers import PowellDirectionalSolver 1609 1609 from mystic.termination import ChangeOverGeneration as COG 1610 1610 tol = 1e-7 … … 1614 1614 1615 1615 def test_PowellDirectionalSolver_VTR(self): 1616 from mystic.s cipy_optimizeimport PowellDirectionalSolver1616 from mystic.solvers import PowellDirectionalSolver 1617 1617 from mystic.termination import VTR 1618 1618 tol = 1e-7 … … 1622 1622 1623 1623 def test_PowellDirectionalSolver_CRT(self): 1624 from mystic.s cipy_optimizeimport PowellDirectionalSolver1624 from mystic.solvers import PowellDirectionalSolver 1625 1625 from mystic.termination import CandidateRelativeTolerance as CRT 1626 1626 tol = 1e-7 … … 1659 1659 1660 1660 def _run_solver(self, iter_limit=False, **kwds): 1661 from mystic import Sow1661 from mystic.tools import Sow 1662 1662 import numpy 1663 1663 from mystic.tools import random_seed … … 1691 1691 1692 1692 def test_DifferentialEvolutionSolver_VTR(self): 1693 from mystic. differential_evolutionimport DifferentialEvolutionSolver1693 from mystic.solvers import DifferentialEvolutionSolver 1694 1694 from mystic.termination import VTR 1695 1695 tol = 1e-7 … … 1701 1701 1702 1702 def test_DifferentialEvolutionSolver_COG(self): # Default for this solver 1703 from mystic. differential_evolutionimport DifferentialEvolutionSolver1703 from mystic.solvers import DifferentialEvolutionSolver 1704 1704 from mystic.termination import ChangeOverGeneration as COG 1705 1705 tol = 1e-7 … … 1711 1711 1712 1712 def test_DifferentialEvolutionSolver_NCOG(self): 1713 from mystic. differential_evolutionimport DifferentialEvolutionSolver1713 from mystic.solvers import DifferentialEvolutionSolver 1714 1714 from mystic.termination import NormalizedChangeOverGeneration as NCOG 1715 1715 tol = 1e-7 … … 1721 1721 1722 1722 def test_DifferentialEvolutionSolver_CRT(self): 1723 from mystic. differential_evolutionimport DifferentialEvolutionSolver1723 from mystic.solvers import DifferentialEvolutionSolver 1724 1724 from mystic.termination import CandidateRelativeTolerance as CRT 1725 1725 tol = 1e-7 … … 1733 1733 1734 1734 def test_DifferentialEvolutionSolver2_VTR(self): 1735 from mystic. differential_evolutionimport DifferentialEvolutionSolver21735 from mystic.solvers import DifferentialEvolutionSolver2 1736 1736 from mystic.termination import VTR 1737 1737 tol = 1e-7 … … 1743 1743 1744 1744 def test_DifferentialEvolutionSolver2_COG(self): # Default for this solver 1745 from mystic. differential_evolutionimport DifferentialEvolutionSolver21745 from mystic.solvers import DifferentialEvolutionSolver2 1746 1746 from mystic.termination import ChangeOverGeneration as COG 1747 1747 tol = 1e-7 … … 1753 1753 1754 1754 def test_DifferentialEvolutionSolver2_NCOG(self): 1755 from mystic. differential_evolutionimport DifferentialEvolutionSolver21755 from mystic.solvers import DifferentialEvolutionSolver2 1756 1756 from mystic.termination import NormalizedChangeOverGeneration as NCOG 1757 1757 tol = 1e-7 … … 1763 1763 1764 1764 def test_DifferentialEvolutionSolver2_CRT(self): 1765 from mystic. differential_evolutionimport DifferentialEvolutionSolver21765 from mystic.solvers import DifferentialEvolutionSolver2 1766 1766 from mystic.termination import CandidateRelativeTolerance as CRT 1767 1767 tol = 1e-7 … … 1775 1775 1776 1776 def test_NelderMeadSimplexSolver_CRT(self): # Default for this solver 1777 from mystic.s cipy_optimizeimport NelderMeadSimplexSolver1777 from mystic.solvers import NelderMeadSimplexSolver 1778 1778 from mystic.termination import CandidateRelativeTolerance as CRT 1779 1779 tol = 1e-7 … … 1783 1783 1784 1784 def test_NelderMeadSimplexSolver_VTR(self): 1785 from mystic.s cipy_optimizeimport NelderMeadSimplexSolver1785 from mystic.solvers import NelderMeadSimplexSolver 1786 1786 from mystic.termination import VTR 1787 1787 tol = 1e-7 … … 1791 1791 1792 1792 def test_NelderMeadSimplexSolver_COG(self): 1793 from mystic.s cipy_optimizeimport NelderMeadSimplexSolver1793 from mystic.solvers import NelderMeadSimplexSolver 1794 1794 from mystic.termination import ChangeOverGeneration as COG 1795 1795 tol = 1e-7 … … 1799 1799 1800 1800 def test_NelderMeadSimplexSolver_NCOG(self): 1801 from mystic.s cipy_optimizeimport NelderMeadSimplexSolver1801 from mystic.solvers import NelderMeadSimplexSolver 1802 1802 from mystic.termination import NormalizedChangeOverGeneration as NCOG 1803 1803 tol = 1e-7 … … 1809 1809 1810 1810 def test_PowellDirectionalSolver_NCOG(self): # Default for this solver 1811 from mystic.s cipy_optimizeimport PowellDirectionalSolver1811 from mystic.solvers import PowellDirectionalSolver 1812 1812 from mystic.termination import NormalizedChangeOverGeneration as NCOG 1813 1813 tol = 1e-7 … … 1817 1817 1818 1818 def test_PowellDirectionalSolver_COG(self): 1819 from mystic.s cipy_optimizeimport PowellDirectionalSolver1819 from mystic.solvers import PowellDirectionalSolver 1820 1820 from mystic.termination import ChangeOverGeneration as COG 1821 1821 tol = 1e-7 … … 1825 1825 1826 1826 def test_PowellDirectionalSolver_VTR(self): 1827 from mystic.s cipy_optimizeimport PowellDirectionalSolver1827 from mystic.solvers import PowellDirectionalSolver 1828 1828 from mystic.termination import VTR 1829 1829 tol = 1e-7 … … 1833 1833 1834 1834 def test_PowellDirectionalSolver_CRT(self): 1835 from mystic.s cipy_optimizeimport PowellDirectionalSolver1835 from mystic.solvers import PowellDirectionalSolver 1836 1836 from mystic.termination import CandidateRelativeTolerance as CRT 1837 1837 tol = 1e-7 … … 1867 1867 1868 1868 def _run_solver(self, iter_limit=False, **kwds): 1869 from mystic import Sow1869 from mystic.tools import Sow 1870 1870 import numpy 1871 1871 from mystic.tools import random_seed … … 1899 1899 1900 1900 def test_DifferentialEvolutionSolver_VTR(self): 1901 from mystic. differential_evolutionimport DifferentialEvolutionSolver1901 from mystic.solvers import DifferentialEvolutionSolver 1902 1902 from mystic.termination import VTR 1903 1903 tol = 1e-7 … … 1909 1909 1910 1910 def test_DifferentialEvolutionSolver_COG(self): # Default for this solver 1911 from mystic. differential_evolutionimport DifferentialEvolutionSolver1911 from mystic.solvers import DifferentialEvolutionSolver 1912 1912 from mystic.termination import ChangeOverGeneration as COG 1913 1913 tol = 1e-7 … … 1919 1919 1920 1920 def test_DifferentialEvolutionSolver_NCOG(self): 1921 from mystic. differential_evolutionimport DifferentialEvolutionSolver1921 from mystic.solvers import DifferentialEvolutionSolver 1922 1922 from mystic.termination import NormalizedChangeOverGeneration as NCOG 1923 1923 tol = 1e-7 … … 1929 1929 1930 1930 def test_DifferentialEvolutionSolver_CRT(self): 1931 from mystic. differential_evolutionimport DifferentialEvolutionSolver1931 from mystic.solvers import DifferentialEvolutionSolver 1932 1932 from mystic.termination import CandidateRelativeTolerance as CRT 1933 1933 tol = 1e-7 … … 1941 1941 1942 1942 def test_DifferentialEvolutionSolver2_VTR(self): 1943 from mystic. differential_evolutionimport DifferentialEvolutionSolver21943 from mystic.solvers import DifferentialEvolutionSolver2 1944 1944 from mystic.termination import VTR 1945 1945 tol = 1e-7 … … 1951 1951 1952 1952 def test_DifferentialEvolutionSolver2_COG(self): # Default for this solver 1953 from mystic. differential_evolutionimport DifferentialEvolutionSolver21953 from mystic.solvers import DifferentialEvolutionSolver2 1954 1954 from mystic.termination import ChangeOverGeneration as COG 1955 1955 tol = 1e-7 … … 1961 1961 1962 1962 def test_DifferentialEvolutionSolver2_NCOG(self): 1963 from mystic. differential_evolutionimport DifferentialEvolutionSolver21963 from mystic.solvers import DifferentialEvolutionSolver2 1964 1964 from mystic.termination import NormalizedChangeOverGeneration as NCOG 1965 1965 tol = 1e-7 … … 1971 1971 1972 1972 def test_DifferentialEvolutionSolver2_CRT(self): 1973 from mystic. differential_evolutionimport DifferentialEvolutionSolver21973 from mystic.solvers import DifferentialEvolutionSolver2 1974 1974 from mystic.termination import CandidateRelativeTolerance as CRT 1975 1975 tol = 1e-7 … … 1983 1983 1984 1984 def test_NelderMeadSimplexSolver_CRT(self): # Default for this solver 1985 from mystic.s cipy_optimizeimport NelderMeadSimplexSolver1985 from mystic.solvers import NelderMeadSimplexSolver 1986 1986 from mystic.termination import CandidateRelativeTolerance as CRT 1987 1987 tol = 1e-7 … … 1991 1991 1992 1992 def test_NelderMeadSimplexSolver_VTR(self): 1993 from mystic.s cipy_optimizeimport NelderMeadSimplexSolver1993 from mystic.solvers import NelderMeadSimplexSolver 1994 1994 from mystic.termination import VTR 1995 1995 tol = 1e-7 … … 1999 1999 2000 2000 def test_NelderMeadSimplexSolver_COG(self): 2001 from mystic.s cipy_optimizeimport NelderMeadSimplexSolver2001 from mystic.solvers import NelderMeadSimplexSolver 2002 2002 from mystic.termination import ChangeOverGeneration as COG 2003 2003 tol = 1e-7 … … 2007 2007 2008 2008 def test_NelderMeadSimplexSolver_NCOG(self): 2009 from mystic.s cipy_optimizeimport NelderMeadSimplexSolver2009 from mystic.solvers import NelderMeadSimplexSolver 2010 2010 from mystic.termination import NormalizedChangeOverGeneration as NCOG 2011 2011 tol = 1e-7 … … 2017 2017 2018 2018 def test_PowellDirectionalSolver_NCOG(self): # Default for this solver 2019 from mystic.s cipy_optimizeimport PowellDirectionalSolver2019 from mystic.solvers import PowellDirectionalSolver 2020 2020 from mystic.termination import NormalizedChangeOverGeneration as NCOG 2021 2021 tol = 1e-7 … … 2025 2025 2026 2026 def test_PowellDirectionalSolver_COG(self): 2027 from mystic.s cipy_optimizeimport PowellDirectionalSolver2027 from mystic.solvers import PowellDirectionalSolver 2028 2028 from mystic.termination import ChangeOverGeneration as COG 2029 2029 tol = 1e-7 … … 2033 2033 2034 2034 def test_PowellDirectionalSolver_VTR(self): 2035 from mystic.s cipy_optimizeimport PowellDirectionalSolver2035 from mystic.solvers import PowellDirectionalSolver 2036 2036 from mystic.termination import VTR 2037 2037 tol = 1e-7 … … 2041 2041 2042 2042 def test_PowellDirectionalSolver_CRT(self): 2043 from mystic.s cipy_optimizeimport PowellDirectionalSolver2043 from mystic.solvers import PowellDirectionalSolver 2044 2044 from mystic.termination import CandidateRelativeTolerance as CRT 2045 2045 tol = 1e-7 … … 2073 2073 2074 2074 def _run_solver(self, iter_limit=False, **kwds): 2075 from mystic import Sow2075 from mystic.tools import Sow 2076 2076 import numpy 2077 2077 from mystic.tools import random_seed … … 2105 2105 2106 2106 def test_DifferentialEvolutionSolver_VTR(self): 2107 from mystic. differential_evolutionimport DifferentialEvolutionSolver2107 from mystic.solvers import DifferentialEvolutionSolver 2108 2108 from mystic.termination import VTR 2109 2109 tol = 1e-7 … … 2115 2115 2116 2116 def test_DifferentialEvolutionSolver_COG(self): # Default for this solver 2117 from mystic. differential_evolutionimport DifferentialEvolutionSolver2117 from mystic.solvers import DifferentialEvolutionSolver 2118 2118 from mystic.termination import ChangeOverGeneration as COG 2119 2119 tol = 1e-7 … … 2125 2125 2126 2126 def test_DifferentialEvolutionSolver_NCOG(self): 2127 from mystic. differential_evolutionimport DifferentialEvolutionSolver2127 from mystic.solvers import DifferentialEvolutionSolver 2128 2128 from mystic.termination import NormalizedChangeOverGeneration as NCOG 2129 2129 tol = 1e-7 … … 2135 2135 2136 2136 def test_DifferentialEvolutionSolver_CRT(self): 2137 from mystic. differential_evolutionimport DifferentialEvolutionSolver2137 from mystic.solvers import DifferentialEvolutionSolver 2138 2138 from mystic.termination import CandidateRelativeTolerance as CRT 2139 2139 tol = 1e-7 … … 2147 2147 2148 2148 def test_DifferentialEvolutionSolver2_VTR(self): 2149 from mystic. differential_evolutionimport DifferentialEvolutionSolver22149 from mystic.solvers import DifferentialEvolutionSolver2 2150 2150 from mystic.termination import VTR 2151 2151 tol = 1e-7 … … 2157 2157 2158 2158 def test_DifferentialEvolutionSolver2_COG(self): # Default for this solver 2159 from mystic. differential_evolutionimport DifferentialEvolutionSolver22159 from mystic.solvers import DifferentialEvolutionSolver2 2160 2160 from mystic.termination import ChangeOverGeneration as COG 2161 2161 tol = 1e-7 … … 2167 2167 2168 2168 def test_DifferentialEvolutionSolver2_NCOG(self): 2169 from mystic. differential_evolutionimport DifferentialEvolutionSolver22169 from mystic.solvers import DifferentialEvolutionSolver2 2170 2170 from mystic.termination import NormalizedChangeOverGeneration as NCOG 2171 2171 tol = 1e-7 … … 2177 2177 2178 2178 def test_DifferentialEvolutionSolver2_CRT(self): 2179 from mystic. differential_evolutionimport DifferentialEvolutionSolver22179 from mystic.solvers import DifferentialEvolutionSolver2 2180 2180 from mystic.termination import CandidateRelativeTolerance as CRT 2181 2181 tol = 1e-7 … … 2189 2189 2190 2190 def test_NelderMeadSimplexSolver_CRT(self): # Default for this solver 2191 from mystic.s cipy_optimizeimport NelderMeadSimplexSolver2191 from mystic.solvers import NelderMeadSimplexSolver 2192 2192 from mystic.termination import CandidateRelativeTolerance as CRT 2193 2193 tol = 1e-7 … … 2197 2197 2198 2198 def test_NelderMeadSimplexSolver_VTR(self): 2199 from mystic.s cipy_optimizeimport NelderMeadSimplexSolver2199 from mystic.solvers import NelderMeadSimplexSolver 2200 2200 from mystic.termination import VTR 2201 2201 tol = 1e-7 … … 2205 2205 2206 2206 def test_NelderMeadSimplexSolver_COG(self): 2207 from mystic.s cipy_optimizeimport NelderMeadSimplexSolver2207 from mystic.solvers import NelderMeadSimplexSolver 2208 2208 from mystic.termination import ChangeOverGeneration as COG 2209 2209 tol = 1e-7 … … 2213 2213 2214 2214 def test_NelderMeadSimplexSolver_NCOG(self): 2215 from mystic.s cipy_optimizeimport NelderMeadSimplexSolver2215 from mystic.solvers import NelderMeadSimplexSolver 2216 2216 from mystic.termination import NormalizedChangeOverGeneration as NCOG 2217 2217 tol = 1e-7 … … 2223 2223 2224 2224 def test_PowellDirectionalSolver_NCOG(self): # Default for this solver 2225 from mystic.s cipy_optimizeimport PowellDirectionalSolver2225 from mystic.solvers import PowellDirectionalSolver 2226 2226 from mystic.termination import NormalizedChangeOverGeneration as NCOG 2227 2227 tol = 1e-7 … … 2231 2231 2232 2232 def test_PowellDirectionalSolver_COG(self): 2233 from mystic.s cipy_optimizeimport PowellDirectionalSolver2233 from mystic.solvers import PowellDirectionalSolver 2234 2234 from mystic.termination import ChangeOverGeneration as COG 2235 2235 tol = 1e-7 … … 2239 2239 2240 2240 def test_PowellDirectionalSolver_VTR(self): 2241 from mystic.s cipy_optimizeimport PowellDirectionalSolver2241 from mystic.solvers import PowellDirectionalSolver 2242 2242 from mystic.termination import VTR 2243 2243 tol = 1e-7 … … 2247 2247 2248 2248 def test_PowellDirectionalSolver_CRT(self): 2249 from mystic.s cipy_optimizeimport PowellDirectionalSolver2249 from mystic.solvers import PowellDirectionalSolver 2250 2250 from mystic.termination import CandidateRelativeTolerance as CRT 2251 2251 tol = 1e-7 … … 2284 2284 2285 2285 def _run_solver(self, iter_limit=False, **kwds): 2286 from mystic import Sow2286 from mystic.tools import Sow 2287 2287 import numpy 2288 2288 from mystic.tools import random_seed … … 2316 2316 2317 2317 def test_DifferentialEvolutionSolver_VTR(self): 2318 from mystic. differential_evolutionimport DifferentialEvolutionSolver2318 from mystic.solvers import DifferentialEvolutionSolver 2319 2319 from mystic.termination import VTR 2320 2320 tol = 1e-7 … … 2326 2326 2327 2327 def test_DifferentialEvolutionSolver_COG(self): # Default for this solver 2328 from mystic. differential_evolutionimport DifferentialEvolutionSolver2328 from mystic.solvers import DifferentialEvolutionSolver 2329 2329 from mystic.termination import ChangeOverGeneration as COG 2330 2330 tol = 1e-7 … … 2336 2336 2337 2337 def test_DifferentialEvolutionSolver_NCOG(self): 2338 from mystic. differential_evolutionimport DifferentialEvolutionSolver2338 from mystic.solvers import DifferentialEvolutionSolver 2339 2339 from mystic.termination import NormalizedChangeOverGeneration as NCOG 2340 2340 tol = 1e-7 … … 2346 2346 2347 2347 def test_DifferentialEvolutionSolver_CRT(self): 2348 from mystic. differential_evolutionimport DifferentialEvolutionSolver2348 from mystic.solvers import DifferentialEvolutionSolver 2349 2349 from mystic.termination import CandidateRelativeTolerance as CRT 2350 2350 tol = 1e-7 … … 2358 2358 2359 2359 def test_DifferentialEvolutionSolver2_VTR(self): 2360 from mystic. differential_evolutionimport DifferentialEvolutionSolver22360 from mystic.solvers import DifferentialEvolutionSolver2 2361 2361 from mystic.termination import VTR 2362 2362 tol = 1e-7 … … 2368 2368 2369 2369 def test_DifferentialEvolutionSolver2_COG(self): # Default for this solver 2370 from mystic. differential_evolutionimport DifferentialEvolutionSolver22370 from mystic.solvers import DifferentialEvolutionSolver2 2371 2371 from mystic.termination import ChangeOverGeneration as COG 2372 2372 tol = 1e-7 … … 2378 2378 2379 2379 def test_DifferentialEvolutionSolver2_NCOG(self): 2380 from mystic. differential_evolutionimport DifferentialEvolutionSolver22380 from mystic.solvers import DifferentialEvolutionSolver2 2381 2381 from mystic.termination import NormalizedChangeOverGeneration as NCOG 2382 2382 tol = 1e-7 … … 2388 2388 2389 2389 def test_DifferentialEvolutionSolver2_CRT(self): 2390 from mystic. differential_evolutionimport DifferentialEvolutionSolver22390 from mystic.solvers import DifferentialEvolutionSolver2 2391 2391 from mystic.termination import CandidateRelativeTolerance as CRT 2392 2392 tol = 1e-7 … … 2400 2400 2401 2401 def test_NelderMeadSimplexSolver_CRT(self): # Default for this solver 2402 from mystic.s cipy_optimizeimport NelderMeadSimplexSolver2402 from mystic.solvers import NelderMeadSimplexSolver 2403 2403 from mystic.termination import CandidateRelativeTolerance as CRT 2404 2404 tol = 1e-7 … … 2408 2408 2409 2409 def test_NelderMeadSimplexSolver_VTR(self): 2410 from mystic.s cipy_optimizeimport NelderMeadSimplexSolver2410 from mystic.solvers import NelderMeadSimplexSolver 2411 2411 from mystic.termination import VTR 2412 2412 tol = 1e-7 … … 2416 2416 2417 2417 def test_NelderMeadSimplexSolver_COG(self): 2418 from mystic.s cipy_optimizeimport NelderMeadSimplexSolver2418 from mystic.solvers import NelderMeadSimplexSolver 2419 2419 from mystic.termination import ChangeOverGeneration as COG 2420 2420 tol = 1e-7 … … 2424 2424 2425 2425 def test_NelderMeadSimplexSolver_NCOG(self): 2426 from mystic.s cipy_optimizeimport NelderMeadSimplexSolver2426 from mystic.solvers import NelderMeadSimplexSolver 2427 2427 from mystic.termination import NormalizedChangeOverGeneration as NCOG 2428 2428 tol = 1e-7 … … 2434 2434 2435 2435 def test_PowellDirectionalSolver_NCOG(self): # Default for this solver 2436 from mystic.s cipy_optimizeimport PowellDirectionalSolver2436 from mystic.solvers import PowellDirectionalSolver 2437 2437 from mystic.termination import NormalizedChangeOverGeneration as NCOG 2438 2438 tol = 1e-7 … … 2442 2442 2443 2443 def test_PowellDirectionalSolver_COG(self): 2444 from mystic.s cipy_optimizeimport PowellDirectionalSolver2444 from mystic.solvers import PowellDirectionalSolver 2445 2445 from mystic.termination import ChangeOverGeneration as COG 2446 2446 tol = 1e-7 … … 2450 2450 2451 2451 def test_PowellDirectionalSolver_VTR(self): 2452 from mystic.s cipy_optimizeimport PowellDirectionalSolver2452 from mystic.solvers import PowellDirectionalSolver 2453 2453 from mystic.termination import VTR 2454 2454 tol = 1e-7 … … 2458 2458 2459 2459 def test_PowellDirectionalSolver_CRT(self): 2460 from mystic.s cipy_optimizeimport PowellDirectionalSolver2460 from mystic.solvers import PowellDirectionalSolver 2461 2461 from mystic.termination import CandidateRelativeTolerance as CRT 2462 2462 tol = 1e-7 … … 2490 2490 2491 2491 def _run_solver(self, iter_limit=False, **kwds): 2492 from mystic import Sow2492 from mystic.tools import Sow 2493 2493 import numpy 2494 2494 from mystic.tools import random_seed … … 2522 2522 2523 2523 def test_DifferentialEvolutionSolver_VTR(self): 2524 from mystic. differential_evolutionimport DifferentialEvolutionSolver2524 from mystic.solvers import DifferentialEvolutionSolver 2525 2525 from mystic.termination import VTR 2526 2526 tol = 1e-7 … … 2532 2532 2533 2533 def test_DifferentialEvolutionSolver_COG(self): # Default for this solver 2534 from mystic. differential_evolutionimport DifferentialEvolutionSolver2534 from mystic.solvers import DifferentialEvolutionSolver 2535 2535 from mystic.termination import ChangeOverGeneration as COG 2536 2536 tol = 1e-7 … … 2542 2542 2543 2543 def test_DifferentialEvolutionSolver_NCOG(self): 2544 from mystic. differential_evolutionimport DifferentialEvolutionSolver2544 from mystic.solvers import DifferentialEvolutionSolver 2545 2545 from mystic.termination import NormalizedChangeOverGeneration as NCOG 2546 2546 tol = 1e-7 … … 2552 2552 2553 2553 def test_DifferentialEvolutionSolver_CRT(self): 2554 from mystic. differential_evolutionimport DifferentialEvolutionSolver2554 from mystic.solvers import DifferentialEvolutionSolver 2555 2555 from mystic.termination import CandidateRelativeTolerance as CRT 2556 2556 tol = 1e-7 … … 2564 2564 2565 2565 def test_DifferentialEvolutionSolver2_VTR(self): 2566 from mystic. differential_evolutionimport DifferentialEvolutionSolver22566 from mystic.solvers import DifferentialEvolutionSolver2 2567 2567 from mystic.termination import VTR 2568 2568 tol = 1e-7 … … 2574 2574 2575 2575 def test_DifferentialEvolutionSolver2_COG(self): # Default for this solver 2576 from mystic. differential_evolutionimport DifferentialEvolutionSolver22576 from mystic.solvers import DifferentialEvolutionSolver2 2577 2577 from mystic.termination import ChangeOverGeneration as COG 2578 2578 tol = 1e-7 … … 2584 2584 2585 2585 def test_DifferentialEvolutionSolver2_NCOG(self): 2586 from mystic. differential_evolutionimport DifferentialEvolutionSolver22586 from mystic.solvers import DifferentialEvolutionSolver2 2587 2587 from mystic.termination import NormalizedChangeOverGeneration as NCOG 2588 2588 tol = 1e-7 … … 2594 2594 2595 2595 def test_DifferentialEvolutionSolver2_CRT(self): 2596 from mystic. differential_evolutionimport DifferentialEvolutionSolver22596 from mystic.solvers import DifferentialEvolutionSolver2 2597 2597 from mystic.termination import CandidateRelativeTolerance as CRT 2598 2598 tol = 1e-7 … … 2606 2606 2607 2607 def test_NelderMeadSimplexSolver_CRT(self): # Default for this solver 2608 from mystic.s cipy_optimizeimport NelderMeadSimplexSolver2608 from mystic.solvers import NelderMeadSimplexSolver 2609 2609 from mystic.termination import CandidateRelativeTolerance as CRT 2610 2610 tol = 1e-7 … … 2614 2614 2615 2615 def test_NelderMeadSimplexSolver_VTR(self): 2616 from mystic.s cipy_optimizeimport NelderMeadSimplexSolver2616 from mystic.solvers import NelderMeadSimplexSolver 2617 2617 from mystic.termination import VTR 2618 2618 tol = 1e-7 … … 2622 2622 2623 2623 def test_NelderMeadSimplexSolver_COG(self): 2624 from mystic.s cipy_optimizeimport NelderMeadSimplexSolver2624 from mystic.solvers import NelderMeadSimplexSolver 2625 2625 from mystic.termination import ChangeOverGeneration as COG 2626 2626 tol = 1e-7 … … 2630 2630 2631 2631 def test_NelderMeadSimplexSolver_NCOG(self): 2632 from mystic.s cipy_optimizeimport NelderMeadSimplexSolver2632 from mystic.solvers import NelderMeadSimplexSolver 2633 2633 from mystic.termination import NormalizedChangeOverGeneration as NCOG 2634 2634 tol = 1e-7 … … 2640 2640 2641 2641 def test_PowellDirectionalSolver_NCOG(self): # Default for this solver 2642 from mystic.s cipy_optimizeimport PowellDirectionalSolver2642 from mystic.solvers import PowellDirectionalSolver 2643 2643 from mystic.termination import NormalizedChangeOverGeneration as NCOG 2644 2644 tol = 1e-7 … … 2648 2648 2649 2649 def test_PowellDirectionalSolver_COG(self): 2650 from mystic.s cipy_optimizeimport PowellDirectionalSolver2650 from mystic.solvers import PowellDirectionalSolver 2651 2651 from mystic.termination import ChangeOverGeneration as COG 2652 2652 tol = 1e-7 … … 2656 2656 2657 2657 def test_PowellDirectionalSolver_VTR(self): 2658 from mystic.s cipy_optimizeimport PowellDirectionalSolver2658 from mystic.solvers import PowellDirectionalSolver 2659 2659 from mystic.termination import VTR 2660 2660 tol = 1e-7 … … 2664 2664 2665 2665 def test_PowellDirectionalSolver_CRT(self): 2666 from mystic.s cipy_optimizeimport PowellDirectionalSolver2666 from mystic.solvers import PowellDirectionalSolver 2667 2667 from mystic.termination import CandidateRelativeTolerance as CRT 2668 2668 tol = 1e-7 … … 2695 2695 2696 2696 def _run_solver(self, iter_limit=False, **kwds): 2697 from mystic import Sow2697 from mystic.tools import Sow 2698 2698 import numpy 2699 2699 from mystic.tools import random_seed … … 2727 2727 2728 2728 def test_DifferentialEvolutionSolver_VTR(self): 2729 from mystic. differential_evolutionimport DifferentialEvolutionSolver2729 from mystic.solvers import DifferentialEvolutionSolver 2730 2730 from mystic.termination import VTR 2731 2731 tol = 1e-7 … … 2737 2737 2738 2738 def test_DifferentialEvolutionSolver_COG(self): # Default for this solver 2739 from mystic. differential_evolutionimport DifferentialEvolutionSolver2739 from mystic.solvers import DifferentialEvolutionSolver 2740 2740 from mystic.termination import ChangeOverGeneration as COG 2741 2741 tol = 1e-7 … … 2747 2747 2748 2748 def test_DifferentialEvolutionSolver_NCOG(self): 2749 from mystic. differential_evolutionimport DifferentialEvolutionSolver2749 from mystic.solvers import DifferentialEvolutionSolver 2750 2750 from mystic.termination import NormalizedChangeOverGeneration as NCOG 2751 2751 tol = 1e-7 … … 2757 2757 2758 2758 def test_DifferentialEvolutionSolver_CRT(self): 2759 from mystic. differential_evolutionimport DifferentialEvolutionSolver2759 from mystic.solvers import DifferentialEvolutionSolver 2760 2760 from mystic.termination import CandidateRelativeTolerance as CRT 2761 2761 tol = 1e-7 … … 2769 2769 2770 2770 def test_DifferentialEvolutionSolver2_VTR(self): 2771 from mystic. differential_evolutionimport DifferentialEvolutionSolver22771 from mystic.solvers import DifferentialEvolutionSolver2 2772 2772 from mystic.termination import VTR 2773 2773 tol = 1e-7 … … 2779 2779 2780 2780 def test_DifferentialEvolutionSolver2_COG(self): # Default for this solver 2781 from mystic. differential_evolutionimport DifferentialEvolutionSolver22781 from mystic.solvers import DifferentialEvolutionSolver2 2782 2782 from mystic.termination import ChangeOverGeneration as COG 2783 2783 tol = 1e-7 … … 2789 2789 2790 2790 def test_DifferentialEvolutionSolver2_NCOG(self): 2791 from mystic. differential_evolutionimport DifferentialEvolutionSolver22791 from mystic.solvers import DifferentialEvolutionSolver2 2792 2792 from mystic.termination import NormalizedChangeOverGeneration as NCOG 2793 2793 tol = 1e-7 … … 2799 2799 2800 2800 def test_DifferentialEvolutionSolver2_CRT(self): 2801 from mystic. differential_evolutionimport DifferentialEvolutionSolver22801 from mystic.solvers import DifferentialEvolutionSolver2 2802 2802 from mystic.termination import CandidateRelativeTolerance as CRT 2803 2803 tol = 1e-7 … … 2811 2811 2812 2812 def test_NelderMeadSimplexSolver_CRT(self): # Default for this solver 2813 from mystic.s cipy_optimizeimport NelderMeadSimplexSolver2813 from mystic.solvers import NelderMeadSimplexSolver 2814 2814 from mystic.termination import CandidateRelativeTolerance as CRT 2815 2815 tol = 1e-7 … … 2819 2819 2820 2820 def test_NelderMeadSimplexSolver_VTR(self): 2821 from mystic.s cipy_optimizeimport NelderMeadSimplexSolver2821 from mystic.solvers import NelderMeadSimplexSolver 2822 2822 from mystic.termination import VTR 2823 2823 tol = 1e-7 … … 2827 2827 2828 2828 def test_NelderMeadSimplexSolver_COG(self): 2829 from mystic.s cipy_optimizeimport NelderMeadSimplexSolver2829 from mystic.solvers import NelderMeadSimplexSolver 2830 2830 from mystic.termination import ChangeOverGeneration as COG 2831 2831 tol = 1e-7 … … 2835 2835 2836 2836 def test_NelderMeadSimplexSolver_NCOG(self): 2837 from mystic.s cipy_optimizeimport NelderMeadSimplexSolver2837 from mystic.solvers import NelderMeadSimplexSolver 2838 2838 from mystic.termination import NormalizedChangeOverGeneration as NCOG 2839 2839 tol = 1e-7 … … 2845 2845 2846 2846 def test_PowellDirectionalSolver_NCOG(self): # Default for this solver 2847 from mystic.s cipy_optimizeimport PowellDirectionalSolver2847 from mystic.solvers import PowellDirectionalSolver 2848 2848 from mystic.termination import NormalizedChangeOverGeneration as NCOG 2849 2849 tol = 1e-7 … … 2853 2853 2854 2854 def test_PowellDirectionalSolver_COG(self): 2855 from mystic.s cipy_optimizeimport PowellDirectionalSolver2855 from mystic.solvers import PowellDirectionalSolver 2856 2856 from mystic.termination import ChangeOverGeneration as COG 2857 2857 tol = 1e-7 … … 2861 2861 2862 2862 def test_PowellDirectionalSolver_VTR(self): 2863 from mystic.s cipy_optimizeimport PowellDirectionalSolver2863 from mystic.solvers import PowellDirectionalSolver 2864 2864 from mystic.termination import VTR 2865 2865 tol = 1e-7 … … 2869 2869 2870 2870 def test_PowellDirectionalSolver_CRT(self): 2871 from mystic.s cipy_optimizeimport PowellDirectionalSolver2871 from mystic.solvers import PowellDirectionalSolver 2872 2872 from mystic.termination import CandidateRelativeTolerance as CRT 2873 2873 tol = 1e-7 … … 2901 2901 2902 2902 def _run_solver(self, iter_limit=False, **kwds): 2903 from mystic import Sow2903 from mystic.tools import Sow 2904 2904 import numpy 2905 2905 from mystic.tools import random_seed … … 2934 2934 2935 2935 def test_DifferentialEvolutionSolver_VTR(self): 2936 from mystic. differential_evolutionimport DifferentialEvolutionSolver2936 from mystic.solvers import DifferentialEvolutionSolver 2937 2937 from mystic.termination import VTR 2938 2938 tol = 1e-7 … … 2944 2944 2945 2945 def test_DifferentialEvolutionSolver_COG(self): # Default for this solver 2946 from mystic. differential_evolutionimport DifferentialEvolutionSolver2946 from mystic.solvers import DifferentialEvolutionSolver 2947 2947 from mystic.termination import ChangeOverGeneration as COG 2948 2948 tol = 1e-7 … … 2954 2954 2955 2955 def test_DifferentialEvolutionSolver_NCOG(self): 2956 from mystic. differential_evolutionimport DifferentialEvolutionSolver2956 from mystic.solvers import DifferentialEvolutionSolver 2957 2957 from mystic.termination import NormalizedChangeOverGeneration as NCOG 2958 2958 tol = 1e-7 … … 2964 2964 2965 2965 def test_DifferentialEvolutionSolver_CRT(self): 2966 from mystic. differential_evolutionimport DifferentialEvolutionSolver2966 from mystic.solvers import DifferentialEvolutionSolver 2967 2967 from mystic.termination import CandidateRelativeTolerance as CRT 2968 2968 tol = 1e-7 … … 2976 2976 2977 2977 def test_DifferentialEvolutionSolver2_VTR(self): 2978 from mystic. differential_evolutionimport DifferentialEvolutionSolver22978 from mystic.solvers import DifferentialEvolutionSolver2 2979 2979 from mystic.termination import VTR 2980 2980 tol = 1e-7 … … 2986 2986 2987 2987 def test_DifferentialEvolutionSolver2_COG(self): # Default for this solver 2988 from mystic. differential_evolutionimport DifferentialEvolutionSolver22988 from mystic.solvers import DifferentialEvolutionSolver2 2989 2989 from mystic.termination import ChangeOverGeneration as COG 2990 2990 tol = 1e-7 … … 2996 2996 2997 2997 def test_DifferentialEvolutionSolver2_NCOG(self): 2998 from mystic. differential_evolutionimport DifferentialEvolutionSolver22998 from mystic.solvers import DifferentialEvolutionSolver2 2999 2999 from mystic.termination import NormalizedChangeOverGeneration as NCOG 3000 3000 tol = 1e-7 … … 3006 3006 3007 3007 def test_DifferentialEvolutionSolver2_CRT(self): 3008 from mystic. differential_evolutionimport DifferentialEvolutionSolver23008 from mystic.solvers import DifferentialEvolutionSolver2 3009 3009 from mystic.termination import CandidateRelativeTolerance as CRT 3010 3010 tol = 1e-7 … … 3018 3018 3019 3019 def test_NelderMeadSimplexSolver_CRT(self): # Default for this solver 3020 from mystic.s cipy_optimizeimport NelderMeadSimplexSolver3020 from mystic.solvers import NelderMeadSimplexSolver 3021 3021 from mystic.termination import CandidateRelativeTolerance as CRT 3022 3022 tol = 1e-7 … … 3026 3026 3027 3027 def test_NelderMeadSimplexSolver_VTR(self): 3028 from mystic.s cipy_optimizeimport NelderMeadSimplexSolver3028 from mystic.solvers import NelderMeadSimplexSolver 3029 3029 from mystic.termination import VTR 3030 3030 tol = 1e-7 … … 3034 3034 3035 3035 def test_NelderMeadSimplexSolver_COG(self): 3036 from mystic.s cipy_optimizeimport NelderMeadSimplexSolver3036 from mystic.solvers import NelderMeadSimplexSolver 3037 3037 from mystic.termination import ChangeOverGeneration as COG 3038 3038 tol = 1e-7 … … 3042 3042 3043 3043 def test_NelderMeadSimplexSolver_NCOG(self): 3044 from mystic.s cipy_optimizeimport NelderMeadSimplexSolver3044 from mystic.solvers import NelderMeadSimplexSolver 3045 3045 from mystic.termination import NormalizedChangeOverGeneration as NCOG 3046 3046 tol = 1e-7 … … 3052 3052 3053 3053 def test_PowellDirectionalSolver_NCOG(self): # Default for this solver 3054 from mystic.s cipy_optimizeimport PowellDirectionalSolver3054 from mystic.solvers import PowellDirectionalSolver 3055 3055 from mystic.termination import NormalizedChangeOverGeneration as NCOG 3056 3056 tol = 1e-7 … … 3060 3060 3061 3061 def test_PowellDirectionalSolver_COG(self): 3062 from mystic.s cipy_optimizeimport PowellDirectionalSolver3062 from mystic.solvers import PowellDirectionalSolver 3063 3063 from mystic.termination import ChangeOverGeneration as COG 3064 3064 tol = 1e-7 … … 3068 3068 3069 3069 def test_PowellDirectionalSolver_VTR(self): 3070 from mystic.s cipy_optimizeimport PowellDirectionalSolver3070 from mystic.solvers import PowellDirectionalSolver 3071 3071 from mystic.termination import VTR 3072 3072 tol = 1e-7 … … 3076 3076 3077 3077 def test_PowellDirectionalSolver_CRT(self): 3078 from mystic.s cipy_optimizeimport PowellDirectionalSolver3078 from mystic.solvers import PowellDirectionalSolver 3079 3079 from mystic.termination import CandidateRelativeTolerance as CRT 3080 3080 tol = 1e-7 … … 3111 3111 3112 3112 def _run_solver(self, iter_limit=False, **kwds): 3113 from mystic import Sow3113 from mystic.tools import Sow 3114 3114 import numpy 3115 3115 from mystic.tools import random_seed … … 3144 3144 3145 3145 def test_DifferentialEvolutionSolver_VTR(self): 3146 from mystic. differential_evolutionimport DifferentialEvolutionSolver3146 from mystic.solvers import DifferentialEvolutionSolver 3147 3147 from mystic.termination import VTR 3148 3148 tol = 1e-7 … … 3154 3154 3155 3155 def test_DifferentialEvolutionSolver_COG(self): # Default for this solver 3156 from mystic. differential_evolutionimport DifferentialEvolutionSolver3156 from mystic.solvers import DifferentialEvolutionSolver 3157 3157 from mystic.termination import ChangeOverGeneration as COG 3158 3158 tol = 1e-7 … … 3164 3164 3165 3165 def test_DifferentialEvolutionSolver_NCOG(self): 3166 from mystic. differential_evolutionimport DifferentialEvolutionSolver3166 from mystic.solvers import DifferentialEvolutionSolver 3167 3167 from mystic.termination import NormalizedChangeOverGeneration as NCOG 3168 3168 tol = 1e-7 … … 3174 3174 3175 3175 def test_DifferentialEvolutionSolver_CRT(self): 3176 from mystic. differential_evolutionimport DifferentialEvolutionSolver3176 from mystic.solvers import DifferentialEvolutionSolver 3177 3177 from mystic.termination import CandidateRelativeTolerance as CRT 3178 3178 tol = 1e-7 … … 3186 3186 3187 3187 def test_DifferentialEvolutionSolver2_VTR(self): 3188 from mystic. differential_evolutionimport DifferentialEvolutionSolver23188 from mystic.solvers import DifferentialEvolutionSolver2 3189 3189 from mystic.termination import VTR 3190 3190 tol = 1e-7 … … 3196 3196 3197 3197 def test_DifferentialEvolutionSolver2_COG(self): # Default for this solver 3198 from mystic. differential_evolutionimport DifferentialEvolutionSolver23198 from mystic.solvers import DifferentialEvolutionSolver2 3199 3199 from mystic.termination import ChangeOverGeneration as COG 3200 3200 tol = 1e-7 … … 3206 3206 3207 3207 def test_DifferentialEvolutionSolver2_NCOG(self): 3208 from mystic. differential_evolutionimport DifferentialEvolutionSolver23208 from mystic.solvers import DifferentialEvolutionSolver2 3209 3209 from mystic.termination import NormalizedChangeOverGeneration as NCOG 3210 3210 tol = 1e-7 … … 3216 3216 3217 3217 def test_DifferentialEvolutionSolver2_CRT(self): 3218 from mystic. differential_evolutionimport DifferentialEvolutionSolver23218 from mystic.solvers import DifferentialEvolutionSolver2 3219 3219 from mystic.termination import CandidateRelativeTolerance as CRT 3220 3220 tol = 1e-7 … … 3228 3228 3229 3229 def test_NelderMeadSimplexSolver_CRT(self): # Default for this solver 3230 from mystic.s cipy_optimizeimport NelderMeadSimplexSolver3230 from mystic.solvers import NelderMeadSimplexSolver 3231 3231 from mystic.termination import CandidateRelativeTolerance as CRT 3232 3232 tol = 1e-7 … … 3236 3236 3237 3237 def test_NelderMeadSimplexSolver_VTR(self): 3238 from mystic.s cipy_optimizeimport NelderMeadSimplexSolver3238 from mystic.solvers import NelderMeadSimplexSolver 3239 3239 from mystic.termination import VTR 3240 3240 tol = 1e-7 … … 3244 3244 3245 3245 def test_NelderMeadSimplexSolver_COG(self): 3246 from mystic.s cipy_optimizeimport NelderMeadSimplexSolver3246 from mystic.solvers import NelderMeadSimplexSolver 3247 3247 from mystic.termination import ChangeOverGeneration as COG 3248 3248 tol = 1e-7 … … 3252 3252 3253 3253 def test_NelderMeadSimplexSolver_NCOG(self): 3254 from mystic.s cipy_optimizeimport NelderMeadSimplexSolver3254 from mystic.solvers import NelderMeadSimplexSolver 3255 3255 from mystic.termination import NormalizedChangeOverGeneration as NCOG 3256 3256 tol = 1e-7 … … 3262 3262 3263 3263 def test_PowellDirectionalSolver_NCOG(self): # Default for this solver 3264 from mystic.s cipy_optimizeimport PowellDirectionalSolver3264 from mystic.solvers import PowellDirectionalSolver 3265 3265 from mystic.termination import NormalizedChangeOverGeneration as NCOG 3266 3266 tol = 1e-7 … … 3270 3270 3271 3271 def test_PowellDirectionalSolver_COG(self): 3272 from mystic.s cipy_optimizeimport PowellDirectionalSolver3272 from mystic.solvers import PowellDirectionalSolver 3273 3273 from mystic.termination import ChangeOverGeneration as COG 3274 3274 tol = 1e-7 … … 3278 3278 3279 3279 def test_PowellDirectionalSolver_VTR(self): 3280 from mystic.s cipy_optimizeimport PowellDirectionalSolver3280 from mystic.solvers import PowellDirectionalSolver 3281 3281 from mystic.termination import VTR 3282 3282 tol = 1e-7 … … 3286 3286 3287 3287 def test_PowellDirectionalSolver_CRT(self): 3288 from mystic.s cipy_optimizeimport PowellDirectionalSolver3288 from mystic.solvers import PowellDirectionalSolver 3289 3289 from mystic.termination import CandidateRelativeTolerance as CRT 3290 3290 tol = 1e-7 … … 3325 3325 3326 3326 def _run_solver(self, iter_limit=False, **kwds): 3327 from mystic import Sow3327 from mystic.tools import Sow 3328 3328 import numpy 3329 3329 from mystic.tools import random_seed … … 3359 3359 3360 3360 def test_DifferentialEvolutionSolver_VTR(self): 3361 from mystic. differential_evolutionimport DifferentialEvolutionSolver3361 from mystic.solvers import DifferentialEvolutionSolver 3362 3362 from mystic.termination import VTR 3363 3363 tol = 1e-7 … … 3369 3369 3370 3370 def test_DifferentialEvolutionSolver_COG(self): # Default for this solver 3371 from mystic. differential_evolutionimport DifferentialEvolutionSolver3371 from mystic.solvers import DifferentialEvolutionSolver 3372 3372 from mystic.termination import ChangeOverGeneration as COG 3373 3373 tol = 1e-7 … … 3379 3379 3380 3380 def test_DifferentialEvolutionSolver_NCOG(self): 3381 from mystic. differential_evolutionimport DifferentialEvolutionSolver3381 from mystic.solvers import DifferentialEvolutionSolver 3382 3382 from mystic.termination import NormalizedChangeOverGeneration as NCOG 3383 3383 tol = 1e-7 … … 3389 3389 3390 3390 def test_DifferentialEvolutionSolver_CRT(self): 3391 from mystic. differential_evolutionimport DifferentialEvolutionSolver3391 from mystic.solvers import DifferentialEvolutionSolver 3392 3392 from mystic.termination import CandidateRelativeTolerance as CRT 3393 3393 tol = 1e-7 … … 3401 3401 3402 3402 def test_DifferentialEvolutionSolver2_VTR(self): 3403 from mystic. differential_evolutionimport DifferentialEvolutionSolver23403 from mystic.solvers import DifferentialEvolutionSolver2 3404 3404 from mystic.termination import VTR 3405 3405 tol = 1e-7 … … 3411 3411 3412 3412 def test_DifferentialEvolutionSolver2_COG(self): # Default for this solver 3413 from mystic. differential_evolutionimport DifferentialEvolutionSolver23413 from mystic.solvers import DifferentialEvolutionSolver2 3414 3414 from mystic.termination import ChangeOverGeneration as COG 3415 3415 tol = 1e-7 … … 3421 3421 3422 3422 def test_DifferentialEvolutionSolver2_NCOG(self): 3423 from mystic. differential_evolutionimport DifferentialEvolutionSolver23423 from mystic.solvers import DifferentialEvolutionSolver2 3424 3424 from mystic.termination import NormalizedChangeOverGeneration as NCOG 3425 3425 tol = 1e-7 … … 3431 3431 3432 3432 def test_DifferentialEvolutionSolver2_CRT(self): 3433 from mystic. differential_evolutionimport DifferentialEvolutionSolver23433 from mystic.solvers import DifferentialEvolutionSolver2 3434 3434 from mystic.termination import CandidateRelativeTolerance as CRT 3435 3435 tol = 1e-7 … … 3443 3443 3444 3444 def test_NelderMeadSimplexSolver_CRT(self): # Default for this solver 3445 from mystic.s cipy_optimizeimport NelderMeadSimplexSolver3445 from mystic.solvers import NelderMeadSimplexSolver 3446 3446 from mystic.termination import CandidateRelativeTolerance as CRT 3447 3447 tol = 1e-7 … … 3451 3451 3452 3452 def test_NelderMeadSimplexSolver_VTR(self): 3453 from mystic.s cipy_optimizeimport NelderMeadSimplexSolver3453 from mystic.solvers import NelderMeadSimplexSolver 3454 3454 from mystic.termination import VTR 3455 3455 tol = 1e-7 … … 3459 3459 3460 3460 def test_NelderMeadSimplexSolver_COG(self): 3461 from mystic.s cipy_optimizeimport NelderMeadSimplexSolver3461 from mystic.solvers import NelderMeadSimplexSolver 3462 3462 from mystic.termination import ChangeOverGeneration as COG 3463 3463 tol = 1e-7 … … 3467 3467 3468 3468 def test_NelderMeadSimplexSolver_NCOG(self): 3469 from mystic.s cipy_optimizeimport NelderMeadSimplexSolver3469 from mystic.solvers import NelderMeadSimplexSolver 3470 3470 from mystic.termination import NormalizedChangeOverGeneration as NCOG 3471 3471 tol = 1e-7 … … 3477 3477 3478 3478 def test_PowellDirectionalSolver_NCOG(self): # Default for this solver 3479 from mystic.s cipy_optimizeimport PowellDirectionalSolver3479 from mystic.solvers import PowellDirectionalSolver 3480 3480 from mystic.termination import NormalizedChangeOverGeneration as NCOG 3481 3481 tol = 1e-7 … … 3485 3485 3486 3486 def test_PowellDirectionalSolver_COG(self): 3487 from mystic.s cipy_optimizeimport PowellDirectionalSolver3487 from mystic.solvers import PowellDirectionalSolver 3488 3488 from mystic.termination import ChangeOverGeneration as COG 3489 3489 tol = 1e-7 … … 3493 3493 3494 3494 def test_PowellDirectionalSolver_VTR(self): 3495 from mystic.s cipy_optimizeimport PowellDirectionalSolver3495 from mystic.solvers import PowellDirectionalSolver 3496 3496 from mystic.termination import VTR 3497 3497 tol = 1e-7 … … 3501 3501 3502 3502 def test_PowellDirectionalSolver_CRT(self): 3503 from mystic.s cipy_optimizeimport PowellDirectionalSolver3503 from mystic.solvers import PowellDirectionalSolver 3504 3504 from mystic.termination import CandidateRelativeTolerance as CRT 3505 3505 tol = 1e-7 -
mystic/tests/test_SOW.py
r372 r465 47 47 def test2(monitor, diffenv=None): 48 48 if diffenv == True: 49 #from mystic. differential_evolutionimport DifferentialEvolutionSolver as DE50 from mystic. differential_evolutionimport DifferentialEvolutionSolver2 as DE49 #from mystic.solvers import DifferentialEvolutionSolver as DE 50 from mystic.solvers import DifferentialEvolutionSolver2 as DE 51 51 elif diffenv == False: 52 from mystic.s cipy_optimizeimport NelderMeadSimplexSolver as noDE52 from mystic.solvers import NelderMeadSimplexSolver as noDE 53 53 else: 54 from mystic.s cipy_optimizeimport PowellDirectionalSolver as noDE54 from mystic.solvers import PowellDirectionalSolver as noDE 55 55 from mystic.termination import ChangeOverGeneration as COG 56 from mystic import getch, random_seed56 from mystic.tools import getch, random_seed 57 57 58 58 random_seed(123) … … 92 92 if __name__ == '__main__': 93 93 94 from mystic import Sow, VerboseSow, LoggingSow94 from mystic.tools import Sow, VerboseSow, LoggingSow 95 95 #monitor = Sow() 96 96 #monitor = Sow(all=True) -
mystic/tests/test_constraints_basic.py
r435 r465 24 24 npop = 25 25 25 26 from mystic. differential_evolutionimport DifferentialEvolutionSolver27 from mystic.s cipy_optimizeimport NelderMeadSimplexSolver26 from mystic.solvers import DifferentialEvolutionSolver 27 from mystic.solvers import NelderMeadSimplexSolver 28 28 from mystic.termination import VTR 29 29 #solver = DifferentialEvolutionSolver(ndim, npop) … … 48 48 (x1-10.)**2 + (x2+1.)**2 < 50. 49 49 """ 50 from mystic. differential_evolutionimport DifferentialEvolutionSolver51 from mystic.s cipy_optimizeimport NelderMeadSimplexSolver50 from mystic.solvers import DifferentialEvolutionSolver 51 from mystic.solvers import NelderMeadSimplexSolver 52 52 from mystic.termination import VTR 53 53 #solver = DifferentialEvolutionSolver(ndim, npop) -
mystic/tests/test_termination.py
r424 r465 50 50 51 51 def test01(terminate, func=lambda x:x[0], debug=False): 52 from mystic. differential_evolutionimport DifferentialEvolutionSolver2 as DE252 from mystic.solvers import DifferentialEvolutionSolver2 as DE2 53 53 solver = DE2(3,5) 54 54 solver.SetRandomInitialPoints() … … 59 59 60 60 def test02(terminate, func=lambda x:x[0], debug=False): 61 from mystic. differential_evolutionimport DifferentialEvolutionSolver2 as DE261 from mystic.solvers import DifferentialEvolutionSolver2 as DE2 62 62 #solver = DE2(3,1) #Solver throws ValueError "sample larger than population" 63 63 #solver = DE2(1,1) #Solver throws ValueError "sample larger than population" … … 70 70 71 71 def test03(terminate, func=lambda x:x[0], debug=False): 72 from mystic. differential_evolutionimport DifferentialEvolutionSolver as DE72 from mystic.solvers import DifferentialEvolutionSolver as DE 73 73 solver = DE(3,5) 74 74 solver.SetRandomInitialPoints() … … 79 79 80 80 def test04(terminate, func=lambda x:x[0], debug=False): 81 from mystic. differential_evolutionimport DifferentialEvolutionSolver as DE81 from mystic.solvers import DifferentialEvolutionSolver as DE 82 82 solver = DE(1,5) 83 83 solver.SetRandomInitialPoints() … … 88 88 89 89 def test05(terminate, func=lambda x:x[0], debug=False): 90 from mystic.s cipy_optimizeimport NelderMeadSimplexSolver as NM90 from mystic.solvers import NelderMeadSimplexSolver as NM 91 91 solver = NM(3) 92 92 solver.SetRandomInitialPoints() … … 97 97 98 98 def test06(terminate, func=lambda x:x[0], debug=False): 99 from mystic.s cipy_optimizeimport NelderMeadSimplexSolver as NM99 from mystic.solvers import NelderMeadSimplexSolver as NM 100 100 solver = NM(1) 101 101 solver.SetRandomInitialPoints() … … 106 106 107 107 def test07(terminate, func=lambda x:x[0], debug=False): 108 from mystic.s cipy_optimizeimport PowellDirectionalSolver as PDS108 from mystic.solvers import PowellDirectionalSolver as PDS 109 109 solver = PDS(3) 110 110 solver.SetRandomInitialPoints() … … 115 115 116 116 def test08(terminate, func=lambda x:x[0], debug=False): 117 from mystic.s cipy_optimizeimport PowellDirectionalSolver as PDS117 from mystic.solvers import PowellDirectionalSolver as PDS 118 118 solver = PDS(1) 119 119 solver.SetRandomInitialPoints() -
mystic/tests/testsolvers_pyre.py
r335 r465 21 21 from pyre.applications.Script import Script 22 22 from mystic.helputil import paginate 23 from mystic.differential_evolution import * 24 from mystic.scipy_optimize import * 23 from mystic.solvers import * 25 24 from mystic.termination import * 26 25 import logging
Note: See TracChangeset
for help on using the changeset viewer.