17.11.2012 Views

Numerical recipes

Numerical recipes

Numerical recipes

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

(a)<br />

(b)<br />

(c)<br />

1<br />

.5<br />

0<br />

1<br />

.5<br />

0<br />

1<br />

.5<br />

0<br />

10.9 Simulated Annealing Methods 447<br />

0 .5 1<br />

0 .5 1<br />

0 .5 1<br />

Figure 10.9.1. Traveling salesman problem solved by simulated annealing. The (nearly) shortest path<br />

among 100 randomly positioned cities is shown in (a). The dotted line is a river, but there is no penalty in<br />

crossing. In (b) the river-crossing penalty is made large, and the solution restricts itself to the minimum<br />

number of crossings, two. In (c) the penalty has been made negative: the salesman is actually a smuggler<br />

who crosses the river on the flimsiest excuse!<br />

Sample page from NUMERICAL RECIPES IN C: THE ART OF SCIENTIFIC COMPUTING (ISBN 0-521-43108-5)<br />

Copyright (C) 1988-1992 by Cambridge University Press. Programs Copyright (C) 1988-1992 by <strong>Numerical</strong> Recipes Software.<br />

Permission is granted for internet users to make one paper copy for their own personal use. Further reproduction, or any copying of machinereadable<br />

files (including this one) to any server computer, is strictly prohibited. To order <strong>Numerical</strong> Recipes books or CDROMs, visit website<br />

http://www.nr.com or call 1-800-872-7423 (North America only), or send email to directcustserv@cambridge.org (outside North America).

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!