Function to be optimized. args can be passed as an optional item in the dict minimizer_kwargsx0 : ndarray
Initial guess.niter : integer, optional
The number of basin hopping iterationsT : float, optional
The “temperature” parameter for the accept or reject criterion. Higher “temperatures” mean that larger jumps in function value will be accepted. For best results T should be comparable to the separation (in function value) between local minima.stepsize : float, optional
initial step size for use in the random displacement.minimizer_kwargs : dict, optional
Extra keyword arguments to be passed to the minimizer scipy.optimize.minimize() Some important options could be:take_step : callable take_step(x), optional
method : str
The minimization method (e.g. "L-BFGS-B")
args : tuple
Extra arguments passed to the objective function (func) and its derivatives (Jacobian, Hessian).
Replace the default step taking routine with this routine. The default step taking routine is a random displacement of the coordinates, but other step taking algorithms may be better for some systems.take_step can optionally have the attribute take_step.stepsize. If this attribute exists, thenbasinhopping will adjust take_step.stepsize in order to try to optimize the global minimum search.accept_test : callable, accept_test(f_new=f_new, x_new=x_new, f_old=fold,x_old=x_old), optional
Define a test which will be used to judge whether or not to accept the step. This will be used in addition to the Metropolis test based on “temperature” T. The acceptable return values are True,False, or "force accept". If the latter, then this will override any other tests in order to accept the step. This can be used, for example, to forcefully escape from a local minimum thatbasinhopping is trapped in.callback : callable, callback(x, f, accept), optional
A callback function which will be called for all minimum found. x and f are the coordinates and function value of the trial minima, and accept is whether or not that minima was accepted. This can be used, for example, to save the lowest N minima found. Also, callback can be used to specify a user defined stop criterion by optionally returning True to stop the basinhoppingroutine.interval : integer, optional
interval for how often to update the stepsizedisp : bool, optional
Set to True to print status messagesniter_success : integer, optional
Stop the run if the global minimum candidate remains the same for this number of iterations.Returns :
The optimization result represented as a Result object. Important attributes are: x the solution array, fun the value of the function at the solution, and message which describes the cause of the termination. See Result for a description of other attributes.
Function to be optimized. args can be passed as an optional item in the dict minimizer_kwargsx0 : ndarray
Initial guess.niter : integer, optional
The number of basin hopping iterationsT : float, optional
The “temperature” parameter for the accept or reject criterion. Higher “temperatures” mean that larger jumps in function value will be accepted. For best results T should be comparable to the separation (in function value) between local minima.stepsize : float, optional
initial step size for use in the random displacement.minimizer_kwargs : dict, optional
Extra keyword arguments to be passed to the minimizer scipy.optimize.minimize() Some important options could be:take_step : callable take_step(x), optional
method : str
The minimization method (e.g. "L-BFGS-B")
args : tuple
Extra arguments passed to the objective function (func) and its derivatives (Jacobian, Hessian).
Replace the default step taking routine with this routine. The default step taking routine is a random displacement of the coordinates, but other step taking algorithms may be better for some systems.take_step can optionally have the attribute take_step.stepsize. If this attribute exists, thenbasinhopping will adjust take_step.stepsize in order to try to optimize the global minimum search.accept_test : callable, accept_test(f_new=f_new, x_new=x_new, f_old=fold,x_old=x_old), optional
Define a test which will be used to judge whether or not to accept the step. This will be used in addition to the Metropolis test based on “temperature” T. The acceptable return values are True,False, or "force accept". If the latter, then this will override any other tests in order to accept the step. This can be used, for example, to forcefully escape from a local minimum thatbasinhopping is trapped in.callback : callable, callback(x, f, accept), optional
A callback function which will be called for all minimum found. x and f are the coordinates and function value of the trial minima, and accept is whether or not that minima was accepted. This can be used, for example, to save the lowest N minima found. Also, callback can be used to specify a user defined stop criterion by optionally returning True to stop the basinhoppingroutine.interval : integer, optional
interval for how often to update the stepsizedisp : bool, optional
Set to True to print status messagesniter_success : integer, optional
Stop the run if the global minimum candidate remains the same for this number of iterations.Returns :
The optimization result represented as a Result object. Important attributes are: x the solution array, fun the value of the function at the solution, and message which describes the cause of the termination. See Result for a description of other attributes.
Function to be optimized. args can be passed as an optional item in the dict minimizer_kwargsx0 : ndarray
Initial guess.niter : integer, optional
The number of basin hopping iterationsT : float, optional
The “temperature” parameter for the accept or reject criterion. Higher “temperatures” mean that larger jumps in function value will be accepted. For best results T should be comparable to the separation (in function value) between local minima.stepsize : float, optional
initial step size for use in the random displacement.minimizer_kwargs : dict, optional
Extra keyword arguments to be passed to the minimizer scipy.optimize.minimize() Some important options could be:take_step : callable take_step(x), optional
method : str
The minimization method (e.g. "L-BFGS-B")
args : tuple
Extra arguments passed to the objective function (func) and its derivatives (Jacobian, Hessian).
Replace the default step taking routine with this routine. The default step taking routine is a random displacement of the coordinates, but other step taking algorithms may be better for some systems.take_step can optionally have the attribute take_step.stepsize. If this attribute exists, thenbasinhopping will adjust take_step.stepsize in order to try to optimize the global minimum search.accept_test : callable, accept_test(f_new=f_new, x_new=x_new, f_old=fold,x_old=x_old), optional
Define a test which will be used to judge whether or not to accept the step. This will be used in addition to the Metropolis test based on “temperature” T. The acceptable return values are True,False, or "force accept". If the latter, then this will override any other tests in order to accept the step. This can be used, for example, to forcefully escape from a local minimum thatbasinhopping is trapped in.callback : callable, callback(x, f, accept), optional
A callback function which will be called for all minimum found. x and f are the coordinates and function value of the trial minima, and accept is whether or not that minima was accepted. This can be used, for example, to save the lowest N minima found. Also, callback can be used to specify a user defined stop criterion by optionally returning True to stop the basinhoppingroutine.interval : integer, optional
interval for how often to update the stepsizedisp : bool, optional
Set to True to print status messagesniter_success : integer, optional
Stop the run if the global minimum candidate remains the same for this number of iterations.Returns :
The optimization result represented as a Result object. Important attributes are: x the solution array, fun the value of the function at the solution, and message which describes the cause of the termination. See Result for a description of other attributes.