Package jmt.analytical

Examples of jmt.analytical.SolverSingleClosedMVA.solve()


    double[][] servt = { { 15 }, { 0.03 }, { 0.005 }, { 0.027 } };
    double[] visit = { 1, 70, 121, 50 };

    if (mva.input(name, type, servt, visit)) {
      //mva.solve();
      mva.solve(true);
    }
    //System.out.println(mva);
    System.out.println(mva.toString());
    System.out.println("End LI");
    long stop = System.currentTimeMillis();
View Full Code Here


    int[] type = { Solver.DELAY, Solver.LI, Solver.LI, Solver.LI, };
    double[][] servt = { { 15 }, { 0.03 }, { 0.005 }, { 0.027 } };
    double[] visit = { 1, 70, 121, 50 };

    if (mva.input(name, type, servt, visit)) {
      mva.solve();
    }
    System.out.println(mva);
    System.out.println("End LI");
    System.out.print("Tempo trascorso: " + (System.currentTimeMillis() - start) / 1000);
View Full Code Here

    //double[][] servt = {{15}, {0.03}, {0.005}, {0.027}};
    double[][] servt = { { 0.03 }, { 0.03 }, { 0.2 }, { 0.2 } };
    double[] visit = { 1, 1, 1, 1 };

    if (mva.input(name, type, servt, visit)) {
      mva.solve();
    }
    System.out.println(mva);
    System.out.println("End LI");
    System.out.print("Tempo trascorso: ");
    long elapsed = (System.currentTimeMillis() - start);
View Full Code Here

    double[][] servt = { { 15 }, { 0.005 }, { 0.03 }, { 0.027 } };
    double[] visit = { 1, 121, 70, 50 };

    if (mva.input(name, type, servt, visit)) {
      //mva.solve();
      mva.solve(true);
      System.out.println(mva.toString());
      //mva.solve(false);
      //System.out.println(mva.toString());
    }
View Full Code Here

      double[][] servt = { { 15 }, { 0.005 }, { 0.03 }, { 0.027 } };
      double[] visit = { 1, 121, 70, 50 };

      if (mva.input(name, type, servt, visit)) {
        //mva.solve();
        mva.solve(true);
      }
      System.out.println(mva);
      //System.out.println(mva.intermediateToString());
      System.out.println("End LI");
      long stop = System.currentTimeMillis();
View Full Code Here

    double[][] servt = { { 15 }, { 0, 0.03, 0.03, 0.03 }, { 0.005 }, { 0, 0.027, 0.027, 0.027 } };
    double[] visit = { 1, 70, 121, 50 };

    if (mva.input(name, type, servt, visit)) {
      long start = System.currentTimeMillis();
      mva.solve(false);
      long stop = System.currentTimeMillis();

      long elapsed = stop - start;
      System.out.println("Tempo trascorso...");
      System.out.println(Long.toString(elapsed));
View Full Code Here

    int[] type = { Solver.LD, Solver.DELAY, Solver.LI, Solver.LD };
    double[][] servt = { { 0, 0.03, 0.03, 0.03 }, { 15 }, { 0.005 }, { 0, 0.027, 0.027, 0.027 } };
    double[] visit = { 70, 1, 121, 50 };

    if (mva.input(name, type, servt, visit)) {
      mva.solve(false);
    }

    System.out.println(mva);
    System.out.println("End LD");
View Full Code Here

    int[] type = { Solver.DELAY, Solver.LD, Solver.LI, Solver.LD };
    double[][] servt = { { 15 }, { 0, 0.03 }, { 0.005 }, { 0, 0.027 } };
    double[] visit = { 1, 70, 121, 50 };

    if (mva.input(name, type, servt, visit)) {
      mva.solve(false);
    }

    System.out.println(mva);

    System.out.println("Customers: 2");
View Full Code Here

    int[] type2 = { Solver.DELAY, Solver.LD, Solver.LI, Solver.LD };
    double[][] servt2 = { { 15 }, { 0, 0.03, 0.03 }, { 0.005 }, { 0, 0.027, 0.027 } };
    double[] visit2 = { 1, 70, 121, 50 };

    if (mva.input(name2, type2, servt2, visit2)) {
      mva.solve(false);
    }

    System.out.println(mva);

    System.out.println("Customers: 3");
View Full Code Here

    int[] type3 = { Solver.DELAY, Solver.LD, Solver.LI, Solver.LD };
    double[][] servt3 = { { 15 }, { 0, 0.03, 0.03, 0.03 }, { 0.005 }, { 0, 0.027, 0.027, 0.027 } };
    double[] visit3 = { 1, 70, 121, 50 };

    if (mva.input(name3, type3, servt3, visit3)) {
      mva.solve(false);
    }

    System.out.println(mva);
    System.out.println("End LD");
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.