Thank You...
Yes I know about the temperature change. I have not done the f(x) functions for along time and have forgotten how they work and how to implement them and the connection between the temperature and the graph. It needs to be coded in Java to find the optimal point.
Regards
You have to come up with a value x' for a given value x. if f(x') > f(x) you've found
a better approximation so you accept it.
If deltaE = f(x)-f(x') > 0 then you only accept the worse step x' over x iff p*exp(deltaE/T)
is smaller than a pseudo random value q in [0,1]. Note that p is in [0,1]
as well and represents the probability of taking an 'uphill' step at T == infinite.
This is basically the
metropolis algorithm.
For the java source code check the API documentation for the Math class and
its static functions. We don't hand out boiler plate Java source code; we are
willing to help you to solve your problem(s) though but you have to give it a try first.
kind regards,
Jos