Simulated annealing: Difference between revisions

Content added Content deleted
Line 93: Line 93:


For your platform you might have to modify parts, such as the call to getentropy(3).
For your platform you might have to modify parts, such as the call to getentropy(3).

You can also easily change the kind of floating point used. I apologize for false precision in printouts using the default single precision floating point.



<lang c>#include <math.h>
<lang c>#include <math.h>
Line 399: Line 402:
Final E(s): 102.24265
Final E(s): 102.24265
</pre>
</pre>




=={{header|C++}}==
=={{header|C++}}==