|
Main Program
Instantiating our Objects
Here we'll instantiate our Tabu Search objects. We'll go over the details later, but for now it's important to see that we're simply creating the components that are necessary to create a org.coinor.opents.TabuSearch object. import org.coinor.opents.*; public class Main { public static void main( String[] args ) { // Initialize our objects After setting the number of customers we wish to solve for, just 20 for now, we create a 20x2 matrix with random x and y coordinates in the range [0,200). By creating a random number generator with a set seed, we get predictable random numbers (an oxymoron at best) that will help with the inevitable debugging. Now that we've made our objects (don't worry, we'll look at what these are exactly in just a bit), we need to create an OpenTS Tabu Search object. That's up next... |
||