// // Anaalyse problem instances: // // for n - number of instances with matchings // - min, mean, median, max number of matchings // import java.util.*; import java.io.*; public class AnalyseInstance { private static void show(long[]x){ int n = x.length; for (int i=0;i 0) matched++; matchings[count] = solutions; sc.close(); count++; } System.out.println(n +" "+ matched +" "+ average(matchings) +" "+ min(matchings) +" "+ median(matchings) +" "+ max(matchings)); //System.out.format("%d %.2f %.2f",n,((float)p)/100.0,average(timeRatio)); //System.out.println(); } } public static void main(String[] args) throws IOException { String alg = args[0]; int nlo = Integer.parseInt(args[1]); // number of agents int nhi = Integer.parseInt(args[2]); // number of agents int inc = Integer.parseInt(args[3]); int lwb = Integer.parseInt(args[4]); // index of 1st results file int upb = Integer.parseInt(args[5]); // index of last results file stats(alg,nlo,nhi,inc,lwb,upb); } }