--- myst: html_meta: "description": "Guide to the Basin Hopping global optimization method in eOn for exploring potential energy surfaces." "keywords": "eOn Basin Hopping, global optimization, Monte Carlo, potential energy surface" --- # Basin hopping Basin hopping is a Monte Carlo method in which the energy of each configuration is taken to be the energy of a local minimum {cite:p}`bh-walesGlobalOptimizationBasinHopping1997`. The driver stores `bh.log` and `lockfile` in the results directory. A second driver in that directory logs `Couldn't get lock` and exits. See {doc}`communicator` for how the lock is taken. Registering results and recording a new state both create their directory when that path is already present. At each basin hopping step the client will print out: - the current energy (`current`), - the trial energy (`trial`), - the lowest energy found (`global min`), - the number of force calls needed to minimize the structure (`fc`), - the acceptance ratio (`ar`), - and the current max displacement (`md`). ## Acceptance The client minimizes each trial before the test. `de` is the quenched energy difference between that minimum and the current minimum. During `steps`, an uphill hop is accepted with probability `exp(-de/(kB*temperature))` when `temperature` and `kB` are positive. `kB` is in eV/K, and `temperature` is in kelvin. A temperature or `kB` that is not positive rejects the uphill hop. Other hops are accepted. `quenching_steps` reject an uphill hop and skip the factor. ## Reactant pool The server stores each accepted minimum. When `initial_state_pool_size` is positive, the next reactant is drawn from that many lowest-energy minima. A pool size of 1 always restarts from the lowest energy stored so far. A pool size of 0 keeps using the original `pos.con`. ## Notes - `eOn` defaults to letting displacements occur from minimized structures as per the method of {cite:t}`bh-whiteInvestigationTwoApproaches1998`, which is controlled by {any}`siginificant_structure ` - The occasional jumping variant of {cite:t}`bh-iwamatsuBasinHoppingOccasional2004` is also implemented, and is controlled by {any}`jump_max `. The default is 10 consecutive rejections, the same count the client uses when the key is omitted. - The displacement algorithm key is `displacement_algorithm`. The default is `standard`. - The reactant drawn from the stored minima follows `random_seed` on the numpy generator. The same seed repeats the same draw. ## Configuration ```{code-block} ini [Basin Hopping] ``` ```{eval-rst} .. autopydantic_model:: eon.schema.BasinHoppingConfig ``` ## Work-unit id `wuid.dat` is stored in the results directory, next to `bh.log`. The file is replaced in one step, so a killed rewrite leaves the previous id in place. Reset removes that same file. ## References ```{bibliography} --- style: alpha filter: docname in docnames labelprefix: BH_ keyprefix: bh- --- ```