Example #1
0
 private void buttonStart_Click(object sender, System.EventArgs e)
 {
     tsp           = new TSP(radioButtonRandom.Checked);
     numIterations = 0;
     maxLength     = 0.0;
     minLength     = 1000.0;
     converged     = false;
     for (int i = 0; i < 100; i++)
     {
         energyHistory[i] = 0.0;
     }
 }
Example #2
0
 public TspDisplay()
 {
     InitializeComponent();
     tsp = new TSP(true);
     energyHistory = new double [200];
 }
Example #3
0
 public TspDisplay()
 {
     InitializeComponent();
     tsp           = new TSP(true);
     energyHistory = new double [200];
 }
Example #4
0
 private void buttonStart_Click(object sender, System.EventArgs e)
 {
     tsp = new TSP(radioButtonRandom.Checked);
     numIterations = 0;
     maxLength = 0.0;
     minLength = 1000.0;
     converged=false;
     for (int i=0; i<100; i++)
     {
         energyHistory[i]=0.0;
     }
 }