{ } Raw JSON

bundles / scipy latest / scipy / optimize / _basinhopping / Metropolis / accept_reject

function

scipy.optimize._basinhopping:Metropolis.accept_reject

source: /scipy/optimize/_basinhopping.py :321

Signature

def   accept_reject ( self res_new res_old )

Summary

Assuming the local search underlying res_new was successful: If new energy is lower than old, it will always be accepted. If new is higher than old, there is a chance it will be accepted, less likely for larger differences.

Aliases

  • scipy.optimize._basinhopping.Metropolis.accept_reject