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; } }
public TspDisplay() { InitializeComponent(); tsp = new TSP(true); energyHistory = new double [200]; }
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; } }