Package jmt.analytical

Examples of jmt.analytical.SolverMultiOpen


    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();
View Full Code Here


    double[] lambda = new double[3];
    lambda[0] = 0.05;
    lambda[1] = 0.05;
    lambda[2] = 0.05;

    SolverMultiOpen mOpen = new SolverMultiOpen(3, 2, lambda);

    String[] name = { "Disk1", "CPU" };
    int[] type = { Solver.LI, Solver.LI, };
    double[][][] servt = new double[2][3][1];

    //station 1
    servt[0][0][0] = 0.005;
    servt[0][1][0] = 0.005;
    servt[0][2][0] = 0.005;

    //station 2
    servt[1][0][0] = 0.005;
    servt[1][1][0] = 0.002;
    servt[1][2][0] = 0.002;

    double[][] visits = new double[2][3];

    //station 1
    visits[0][0] = 1;
    visits[0][1] = 1;
    visits[0][2] = 1;

    //station 2
    visits[1][0] = 70;
    visits[1][1] = 120;
    visits[1][2] = 120;

    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();
View Full Code Here

TOP

Related Classes of jmt.analytical.SolverMultiOpen

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.