Sample Runs


Let's now look at a couple of sample runs of the ant algorithm for TSP.

The first run provides a solution for a 30-city TSP (see Figure 4.7). The parameters for this problem were ± = 1.0, ² = 5.0, = 0.5, and Q = 100.

click to expand
Figure 4.7: Sample solution for the 30-city TSP.

The second run presents a 50-city TSP solution (see Figure 4.8). The parameters used for this solution were identical to the 30-city TSP.

click to expand
Figure 4.8: Sample solution for the 50-city TSP.

Each of these solutions was found in less than five tours . The number of ants in each run was equal to the number of cities.




Visual Basic Developer
Visual Basic Developers Guide to ASP and IIS: Build Powerful Server-Side Web Applications with Visual Basic. (Visual Basic Developers Guides)
ISBN: 0782125573
EAN: 2147483647
Year: 1999
Pages: 175

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net