public static void randomTestSIMDEN() { System.Random RandNum = new System.Random(); SIMDEN instance = new SIMDEN(); instance.print(); int SoilCode; int FarmType; decimal FertiliserN; decimal ManureNincorp; decimal ManureNspread; decimal NFixation; for (int i = 0; i < 10000; i++) { SoilCode = RandNum.Next(1, 12); FarmType = RandNum.Next(1, 3); FertiliserN = (decimal)RandNum.NextDouble() * (250); ManureNincorp = (decimal)RandNum.NextDouble() * (350); ManureNspread = (decimal)RandNum.NextDouble() * (350); NFixation = (decimal)RandNum.NextDouble() * (200); instance.init(SoilCode, FarmType, FertiliserN, ManureNincorp, ManureNspread, NFixation); } instance.close(); }
public static void systematicTestSIMDEN() { SIMDEN instance = new SIMDEN(); instance.print(); for (int i = 1; i <= 12; i++) { instance.init(i, 2, 125m, 175m, 175m, 100m); } instance.print(); for (int i = 1; i <= 3; i++) { instance.init(6, i, 125m, 175m, 175m, 100m); } instance.print(); decimal FertiliserN = 0; for (int i = 0; i <= 100; i = i + 1) { instance.init(6, 2, FertiliserN, 175m, 175m, 100m); FertiliserN += 2.5m; } instance.print(); for (int i = 0; i <= 300; i = i + 3) { instance.init(6, 2, 125m, i, 175m, 100m); } instance.print(); for (int i = 0; i <= 300; i = i + 3) { instance.init(6, 2, 125m, 175m, i, 100m); } instance.print(); for (int i = 0; i <= 100; i += 1) { instance.init(6, 2, 125m, 175m, 175m, i); } instance.close(); }