Did I find the right examples for you? yes no

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)

src/s/c/scipy-0.13.3/scipy/optimize/tests/test__basinhopping.py   scipy(Download)
 
from scipy.optimize import basinhopping, minimize
from scipy.optimize._basinhopping import Storage, RandomDisplacement, \
    Metropolis, AdaptiveStepsize
 
    def setUp(self):
        self.stepsize = 1.
        self.ts = RandomDisplacement(stepsize=self.stepsize)
        self.target_accept_rate = 0.5
        self.takestep = AdaptiveStepsize(takestep=self.ts, verbose=False,