Changeset 465 for mystic/tests
- Timestamp:
- 07/01/11 23:05:59 (5 years ago)
- Location:
- mystic/tests
- Files:
-
- 4 edited
- 2 moved
-
solver_test_best_performance.py (moved) (moved from mystic/tests/mystic_test_best_performance.py) (6 diffs)
-
solver_test_suite.py (moved) (moved from mystic/tests/mystic_test_suite.py) (289 diffs)
-
test_SOW.py (modified) (2 diffs)
-
test_constraints_basic.py (modified) (2 diffs)
-
test_termination.py (modified) (8 diffs)
-
testsolvers_pyre.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
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.


Shader Bust tutorial in Blender 2.8
by Caasper ARTCaasperART writes:
Hey, in this video tutorial i will show how iam setup node from My cyberPunk character in blender 2.8,
This tutorial will give the whole of process to shading bust Hope can learning somethink from this video :)


The powerful dual energy capability of our photon counting detectors coupled with market leading sensitivity and image resolution, brings new levels to material differentiation in X-ray imaging. This capability helps our food production customers in the identification of foreign objects during processing. With the XCounter detector performance and the configurations of our software, materials can be seen, measured and identified through software mechanisms such as subtraction imaging. Reliable and repeatable data enables solutions to be hardwired into the process line.
The dual energy capability of XCounter group detectors are used in wide range of food applications such as fish bone fileting. And our photon counting detectors exceed many other detectors in the market in their ability to discern difficult materials such as olive stones and olives. Our fast speed products with frame rates of up to 20,000fps and our adaptable geometry configurations giving detector lengths of up to 0.5m make XCounter detectors ideal for conveyor belt based inspection. With the highest quality standards demanded by the food industry, our detectors are manufactured in our ISO13485 accredited facilities ensuring all of our detector solutions meet the most stringent of quality assessment during production. Our detectors then deliver consistent unparalleled performance.
The direct conversion CdTe CMOS technology at the heart of our detectors mean that you will not suffer from the ghosting, lag issues or blurring at high energies that some ordinary TFT based flat panel detectors can sometimes be prone to. All of our detector range have market leading performance achieving Detector Quantum Efficiency (DQE) of 85% @ RQA5 spectra and a Modulation Transfer Function (MTF) of >80% @ 2lp/mm. And our Hydra product range, with its ultrafast frame rates of up to 20,000fps set a new standard in X-ray imaging, bringing high performance X-ray imaging to production lines that are constantly looking to increase volume throughput.
Beyond our market leading detector capability, our proprietary software of CSC (Charge Sharing Correction) enhances the performance of our detectors to levels of resolution and sensitivity that cannot be achieved in any other technology. And our RTC (Real-time Temperature Correction) software creates stable and reliable detectors with longevity.
The Dual energy configuration of our detectors mean that they can be calibrated to “look” for specific materials in your production line such as pips. This tuning enables automated inspection processes to be established. Explore our Gallery for examples of our image performance.
XCounter has a solid foundation in both integrating and photon counting state of the art x-ray detector technology.
The basic component in our detectors are a conversion material, which converts the x-rays into electrical signals, and a CMOS (ASIC) which transforms the electric signals into a datastream of either the integrated electric charge or the number of photons which has entered each pixel. This data is then used to create a digital image which is either two- or threedimensional, depending on the scan geometry.
Our solid state detector uses CdTe which is a direct conversion material. When an x-ray photon enters the material it is converted directly to an electric signal which is captured, measured and finally processed into an image. This provides significantly better MTF (Modulation Transfer Function) and DQE (Detection Quantum Efficiency) compared to scintillation detectors due to the high sensitivity and very good stopping power for high energy photons. By combining the CdTe conversion layer with our custom ASICs (CMOS) we can supply detectors that support integrating as well as photon counting modes, fast readout and low power consumption.


| Valuation | Fixed Income Analytics | Greeks and Sensitivity | |
|---|---|---|---|
Price (Clean Price) |
Accrued Interest |
Delta |
|
Value (Dirty Price) |
Yield |
Domestic Rho |
|
Exposure |
Macaulay Duration |
Gamma |
|
Adjusted Duration |
Theta |
||
Effective Duration |
Vega |
||
Spread Duration |
|||
Effective Convexity |
Rebalance an investment portfolio based on a wide range of objectives and investor preferences such as avoiding sin stocks, focusing on socially responsible investments, or limiting contribution to asset classes, all while minimizing the overall volatility with respect to a benchmark.
Project the potential impact to your portfolio based on the result of a macroeconomic shock and its resulting, correlated effects on the rest of the market.
Import a new portfolio from your personal brokerage using Quovo.
| a | b | c | d | e | f |


--- layout: archive title: Zulip Chat Archive permalink: /stream/113488-general/topic/subtype.2E*.20diamonds.html ---
With current definitions Lean fails to unify group.to_monoid subtype.group
with subtype.monoid group.to_monoid
. This diff makes it work:
diff --git a/src/group_theory/subgroup.lean b/src/group_theory/subgroup.lean index d54cd8eba..ac0b1dbcb 100644 --- a/src/group_theory/subgroup.lean +++ b/src/group_theory/subgroup.lean @@ -50,11 +50,13 @@ theorem multiplicative.is_subgroup_iff @[to_additive add_group] instance subtype.group {s : set α} [is_subgroup s] : group s := -by subtype_instance +{ inv := λ x, ⟨(x:α)⁻¹, is_subgroup.inv_mem x.2⟩, + mul_left_inv := λ x, subtype.eq $ mul_left_inv x.1, + .. subtype.monoid } @[to_additive add_comm_group] instance subtype.comm_group {α : Type*} [comm_group α] {s : set α} [is_subgroup s] : comm_group s := -by subtype_instance +{ .. subtype.group, .. subtype.comm_monoid } @[simp, to_additive] lemma is_subgroup.coe_inv {s : set α} [is_subgroup s] (a : s) : ((a⁻¹ : s) : α) = a⁻¹ := rfl diff --git a/src/group_theory/submonoid.lean b/src/group_theory/submonoid.lean index e9fa5895e..c644e06d9 100644 --- a/src/group_theory/submonoid.lean +++ b/src/group_theory/submonoid.lean @@ -221,12 +221,17 @@ end is_submonoid /-- Submonoids are themselves monoids. -/ @[to_additive add_monoid "An `add_submonoid` is itself an `add_monoid`."] instance subtype.monoid {s : set α} [is_submonoid s] : monoid s := -by subtype_instance +{ one := ⟨1, is_submonoid.one_mem s⟩, + mul := λ x y, ⟨x * y, is_submonoid.mul_mem x.2 y.2⟩, + mul_one := λ x, subtype.eq $ mul_one x.1, + one_mul := λ x, subtype.eq $ one_mul x.1, + mul_assoc := λ x y z, subtype.eq $ mul_assoc x.1 y.1 z.1 } /-- Submonoids of commutative monoids are themselves commutative monoids. -/ @[to_additive add_comm_monoid "An `add_submonoid` of a commutative `add_monoid` is itself a commutative `add_monoid`. "] instance subtype.comm_monoid {α} [comm_monoid α] {s : set α} [is_submonoid s] : comm_monoid s := -by subtype_instance +{ mul_comm := λ x y, subtype.eq $ mul_comm x.1 y.1, + .. subtype.monoid } /-- Submonoids inherit the 1 of the monoid. -/ @[simp, to_additive "An `add_submonoid` inherits the 0 of the `add_monoid`. "]
However I understand that a proper fix should modify the subtype_instance
tactic, and I fail to understand how it works.
Motivated by https://leanprover.zulipchat.com/#narrow/stream/113489-new-members/topic/action.20of.20subgroup.20inference.20issues
Header says that subtype_instance
was written by @Simon Hudon . Simon, could you please explain how it works (or even better fix it)?
E.g., I see that subtype.monoid
has some rewrite on a rfl
in the definition of one
and I can't understand where it comes from.
I don't know that there's a simple solution to make those instances commute. You maybe have to prove that they are equal
But Yury gave a diff that makes them defeq, right?
The following code works with definition from the diff:
import group_theory.group_action variables {M G α : Type} [monoid M] [group G] instance subset_has_scalar [has_scalar M α] (s : set M) : has_scalar s α := ⟨λ s b, s.1 • b⟩ instance submonoid_mul_action [mul_action M α] (s : set M) [is_submonoid s] : mul_action s α := ⟨λ x, (one_smul M x : (1 : s).1 • x = x), λ x y, @mul_smul M _ _ _ x.1 y.1⟩ variables [mul_action G α] (s : set G) [is_subgroup s] #check mul_action.orbit_rel s α
It fails with current definitions, and proving equality wouldn't help.
Sorry, it's not straightforward and I won't have time to look into it in the near future
You may have to go with your version until someone can adapt the tactics
OK.
Last updated: Apr 24 2020 at 19:02 UTC


CodeFoster was founded in 2014 with the aim of increasing coding culture in college and provide a strong peer group to those interested in coding. We have been working since then to improve the logical, coding and problem solving skills.We believe in mutual learning by conducting events to enhance the programming capabilities of students and to make an open and collaborative ecosystems for promotion of Competitive Programming, Development Skills and Open Source Contributions among students.Club members also have meetups where they teach each other latest skills required in the industry.
The club conducts a long competitive programming challenge event in college’s annual festival Aaayaam.Club conducts a massive annual workshop to introduce young students with Introductory programming, Competitive Programming and Web skills.
Codefoster is the official central coding club of SGSITS. CodeFoster is the campus chapter of CodeChef and the only Raspberry Jam of central India.It is also affiliated to CoderDojo.We aim to promote coding by organizing various events for competitive coding and workshops on latest tech along with annual events held during Aayam.