double[] lambda = new double[2];
lambda[0] = 0.05;
lambda[1] = 0.05;
SolverMultiOpen mOpen = new SolverMultiOpen(2, 3, lambda);
String[] name = { "Delay", "Disk1", "CPU" };
int[] type = { Solver.DELAY, Solver.LI, Solver.LI, };
double[][][] servt = new double[3][2][1];
//station 1
servt[0][0][0] = 5;
servt[0][1][0] = 5;
//station 2
servt[1][0][0] = 0.005;
servt[1][1][0] = 0.002;
//station 3
servt[2][0][0] = 0.015;
servt[2][1][0] = 0.012;
double[][] visits = new double[3][2];
//station 1
visits[0][0] = 1;
visits[0][1] = 1;
//station 2
visits[1][0] = 70;
visits[1][1] = 120;
//station 3
visits[2][0] = 35;
visits[2][1] = 20;
if (mOpen.input(name, type, servt, visits)) {
if (mOpen.hasSufficientProcessingCapacity()) {
mOpen.solve();
System.out.println(mOpen);
System.out.println("End Multi LI");
long stop = System.currentTimeMillis();
System.out.print("Tempo trascorso: " + (stop - start));
System.out.println();