Optimisation Practical
[Practical 10 of 11]


This practical is going to guide you through linking an optimisation algorithm to the spatial interaction model you have built. We will adapt our GUI to allow us to run the model or calibrate the model and we will make a few small changes to how the model operates.

First you need to download two libraries containing the genetic algorithm and goodness of fit statistics. Right click on each of the links and save the links as Algorithm.jar and Statistics.jar respectively.

Add these files to the Spatial-Interaction-Model project by right clicking on the Libraries folder and selecting Add Jar/Folder... and then navigating to there location.

You Libraries folder should now look like the one in Figure 1.

The library imports
Figure 1

Continue to the practical