import java.util.*; import java.io.*; public class ModelTest { private static void makeJob(String model,int n,double p,int lwb,int upb,long nodeLimit){ int p100 = (int)(p*100.0); String fname =""; String s = ""; if (p100 < 10) s = s + "0" + p100; else s = s + p100; for (int i=lwb;i<=upb;i++){ if (i>9) fname = "" + n +"-"+ s +"-"+ i +".txt"; else fname = "" + n +"-"+ s +"-0"+ i +".txt"; System.out.println("java "+ model + " ../data/" + fname +" "+ nodeLimit +" "+ "> ../results"+ model +"/" + fname); } } public static void main(String[] args) { String model = args[0]; int n = Integer.parseInt(args[1]); // vertices in a graph double pLo = Double.parseDouble(args[2]); // starting probability double pHi = Double.parseDouble(args[3]); // ending probability double pInc = Double.parseDouble(args[4]); // p increment int lwb = Integer.parseInt(args[5]); // index of 1st results file int upb = Integer.parseInt(args[6]); // index of last results file long nodeLimit = (long)Integer.parseInt(args[7]); double p = pLo; for (int i=0;p<=pHi+(pInc/2.0);i++){ makeJob(model,n,p,lwb,upb,nodeLimit); p = p + pInc; } } }