Package jmt.analytical

Examples of jmt.analytical.SolverMultiClosedMVA.input()


      System.out.println("Wrong input!!");
    }
   
    solver = new SolverMultiClosedChow(classes, stations, pop);
    algorithm = "Chow";
    if (solver.input(name, type, servt, visits)) {
      long start = System.currentTimeMillis();
      solver.solve();
      System.out.print(algorithm+",");
      System.out.print(maxDiff(pop, solver.getQueueLen(), mvaQueueLen)+",");
      //System.out.println(algorithm);
View Full Code Here


      System.out.println("Wrong input!!");
    }

    solver = new SolverMultiClosedBardSchweitzer(classes, stations, pop);
    algorithm = "Bard-Schweitzer";
    if (solver.input(name, type, servt, visits)) {
      long start = System.currentTimeMillis();
      solver.solve();
      System.out.print(algorithm+",");
      System.out.print(maxDiff(pop, solver.getQueueLen(), mvaQueueLen)+",");
      //System.out.println(algorithm);
View Full Code Here

      System.out.println("Wrong input!!");
    }

    solver = new SolverMultiClosedAQL(classes, stations, pop);
    algorithm = "AQL";
    if (solver.input(name, type, servt, visits)) {
      long start = System.currentTimeMillis();
      solver.solve();
      System.out.print(algorithm+",");
      System.out.print(maxDiff(pop, solver.getQueueLen(), mvaQueueLen)+",");
      //System.out.println(algorithm);
View Full Code Here

      System.out.println("Wrong input!!");
    }

    solver = new SolverMultiClosedLinearizer(classes, stations, pop, false);
    algorithm = "Linearizer";
    if (solver.input(name, type, servt, visits)) {
      long start = System.currentTimeMillis();
      solver.solve();
      System.out.print(algorithm+",");
      System.out.print(maxDiff(pop, solver.getQueueLen(), mvaQueueLen)+",");
      //System.out.println(algorithm);
View Full Code Here

      System.out.println("Wrong input!!");
    }

    solver = new SolverMultiClosedLinearizer(classes, stations, pop, true);
    algorithm = "DeSouza-Muntz Linearizer";
    if (solver.input(name, type, servt, visits)) {
      long start = System.currentTimeMillis();
      solver.solve();
      System.out.print(algorithm+",");
      System.out.print(maxDiff(pop, solver.getQueueLen(), mvaQueueLen)+",");
      //System.out.println(algorithm);
View Full Code Here

   
    int stations = 2;
    int classes = 3;
   
    SolverMultiClosedMVA mClosedMVA = new SolverMultiClosedMVA(classes, stations);
    if (mClosedMVA.input(name, type, servt, visits, pop)) {
      String algorithm = "MVA";
      mClosedMVA.solve();
      models.put(algorithm, mClosedMVA);
      long stop = System.currentTimeMillis();
      elapsedTimes.put(algorithm, ((stop - start)/(double)1000));
View Full Code Here

   
    int stations = 2;
    int classes = 2;
   
    SolverMultiClosedMVA mClosedMVA = new SolverMultiClosedMVA(classes, stations);
    if (mClosedMVA.input(name, type, servt, visits, pop)) {
      String algorithm = "MVA";
      mClosedMVA.solve();
      models.put(algorithm, mClosedMVA);
      long stop = System.currentTimeMillis();
      elapsedTimes.put(algorithm, ((stop - start)/(double)1000));
View Full Code Here

   
    int stations = 2;
    int classes = 4;
   
    SolverMultiClosedMVA mClosedMVA = new SolverMultiClosedMVA(classes, stations);
    if (mClosedMVA.input(name, type, servt, visits, pop)) {
      String algorithm = "MVA";
      mClosedMVA.solve();
      models.put(algorithm, mClosedMVA);
      long stop = System.currentTimeMillis();
      elapsedTimes.put(algorithm, ((stop - start)/(double)1000));
View Full Code Here

   
    int stations = 2;
    int classes = 2;
   
    SolverMultiClosedMVA mClosedMVA = new SolverMultiClosedMVA(classes, stations);
    if (mClosedMVA.input(name, type, servt, visits, pop)) {
      String algorithm = "MVA";
      mClosedMVA.solve();
      models.put(algorithm, mClosedMVA);
      long stop = System.currentTimeMillis();
      elapsedTimes.put(algorithm, ((stop - start)/(double)1000));
View Full Code Here

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

    if (mClosed.input(name, type, servt, visits, pop)) {
      mClosed.solve();
      System.out.println(mClosed);
      System.out.println("End Multi Closed LI");
      long stop = System.currentTimeMillis();
      System.out.print("Tempo trascorso: " + (stop - start));
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.