Monte Carlo algorithms
Monte Carlo algorithms are
based on stochastic simulation
and averages are calculated as ensemble average:
The algorithm is as follows:
- Start in a configuration
.
- Create a new configuration,
.
- Calculate the transition probability,
- Generate a random number, u, uniform
in 0
u
1.
- If
< u,
is
, else
is
.
If

then

i.e the ensemble average is calculated as a straightforward
arithmetic average over the configurations generated in the
simulation.
- Monte Carlo algorithms
- Implementation of Metropolis
Back
Author
Per Stoltze
stoltze@fysik.dtu.dk