1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
|
#!/usr/bin/env python
#
# Author: Alta Fang (altafang @caltech and alta @princeton)
# Author: Mike McKerns (mmckerns @caltech and @uqfoundation)
# Copyright (c) 1997-2016 California Institute of Technology.
# Copyright (c) 2016-2024 The Uncertainty Quantification Foundation.
# License: 3-clause BSD. The full license text is available at:
# - https://github.com/uqfoundation/mystic/blob/master/LICENSE
"""
chebyshevinputs.py -- cost function container module for NelderMeadSimplexSolver
and PowellDirectionalSolver for testsolvers_pyre.py
"""
from mystic.models.poly import chebyshev8cost as cost
from mystic.models.poly import chebyshev8coeffs
from mystic.termination import *
ND = 9
maxiter = 999
from numpy import inf
import random
from mystic.tools import random_seed
random_seed(123)
x0 = [random.uniform(-5,5) + chebyshev8coeffs[i] for i in range(ND)]
# used with SetStrictRanges
min_bounds = [ 0,-1,-300,-1, 0,-1,-100,-inf,-inf]
max_bounds = [200, 1, 0, 1,200, 1, 0, inf, inf]
termination = CandidateRelativeTolerance()
#termination = VTR()
#termination = ChangeOverGeneration()
#termination = NormalizedChangeOverGeneration()
# End of file
|