public class MakeSRIJob { public static void makeJob(int n,double p,int m){ int p100 = (int)(p*100); for (int i=0;i9) fname = fname + n +"-0"+ p100 +"-"+ i +".txt"; else fname = fname + n +"-0"+ p100 +"-0"+ i +".txt"; System.out.println("java SRNary ../trimbleData/"+ fname +" count > ../trimbleResults/"+ fname +" "); } } public static void main(String[] args) { int n = Integer.parseInt(args[0]); // number of agents double pLo = Double.parseDouble(args[1]); // starting probability of acceptable double pHi = Double.parseDouble(args[2]); // ending probability of acceptable double pInc = Double.parseDouble(args[3]); // p increment int m = Integer.parseInt(args[4]); // number of instances at each setting double p = pLo; for (int i=0;p<=pHi+(pInc/2.0);i++){ makeJob(n,p,m); p = p + pInc; } } }