private void changeVehicles(float[] demand) { for (int i = 0; i < demand.Length; i++) { if (demand[i] < 0) { tt.ChangeValue(i, demand[i]); } else { tt.ChangeValue(i, 0); //tt.Remove(i); } } }