public class MakeSMJob { public static void makeJob(int n,double p1,double p2,int m,int pEdge100,int p100) { //int p100 = (int)(p*100.0); String sEdge = "-"; if (pEdge100 < 10) sEdge = "-0"; String sForbidden = "-"; if (p100 < 10) sForbidden = "-0"; for (int i=0;i9) fname = fname + n + sEdge + pEdge100 + sForbidden + p100 +"-"+ i +".txt"; else fname = fname + n + sEdge + pEdge100 + sForbidden + p100 +"-0"+ i +".txt"; System.out.println("java SRForbidden ../smData/"+ fname +" > ../smResults/"+ fname +" "); } } public static void main(String[] args) { int n = Integer.parseInt(args[0]); // number of agents double pEdge = Double.parseDouble(args[1]); // edge probability double pLo = Double.parseDouble(args[2]); // starting probability of forbidden double pHi = Double.parseDouble(args[3]); // ending probability of forbidden double pInc = Double.parseDouble(args[4]); // p increment int m = Integer.parseInt(args[5]); // number of instances at each setting double p = pLo; int p100 = (int)(p*100.0); int pInc100 = (int)(pInc*100.0); int pEdge100 = (int)(pEdge*100.0); for (int i=0;p<=pHi+(pInc/2.0);i++){ makeJob(n,pEdge,p,m,pEdge100,p100); p = p + pInc; p100 = p100 + pInc100; } } }