A demonstration of Simulated Annealing
You can use this form to build your own simulated annealing demo.
Note: Be sure to FLUSH THE IMAGE CACHE between each submission,
or you will just get the same picture each time!
1-D Function, called func to find minimum of (in ANSI
: func ( -- ) ( F: x -- z ) \ lots of local minima
\ f[x] = cos(14.5 x - 0.3 )
\ + (x + 0.2) * x
FDUP 14.5E0 F* 0.3E0 F- FCOS
FDUP 0.2E0 F+ F*
You are encouraged to try your own function!
X Range, from:
Initial X location:
Maximum number of iterations:
(There will be a small delay while the calculation is running).
Note: I am still working on this page. The detection of syntax
errors in your program is not as robust as it could be. If you get
a message like "(Uknown)" on the OK page, then you probably had
a syntax error in your code.
About this Demo
Back to Simulated Annealing page.