Package jmt.analytical

Examples of jmt.analytical.SolverMultiMixed


    double[] classData = new double[2];
    classData[0] = 0.005;
    classData[1] = 10;

    SolverMultiMixed multiMixed = new SolverMultiMixed(2, 2);

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

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

    //station 2
    servt[1][0][0] = 0.003;
    servt[1][1][0] = 0.004;

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

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

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

    if (multiMixed.input(name, type, servt, visits, classData, classTypes)) {

      multiMixed.solve();
      System.out.println(multiMixed);
      System.out.println("End Multi mixed");
      long stop = System.currentTimeMillis();
      long elapsed = stop - start;
      double totTime = elapsed / 1000;
View Full Code Here


    double[] classData = new double[2];
    classData[0] = 5;
    classData[1] = 10;

    SolverMultiMixed multiMixed = new SolverMultiMixed(2, 2);

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

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

    //station 2
    servt[1][0][0] = 0.003;
    servt[1][1][0] = 0.004;

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

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

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

    if (multiMixed.input(name, type, servt, visits, classData, classTypes)) {

      multiMixed.solve();
      System.out.println(multiMixed);
      System.out.println("End Multi mixed");
      long stop = System.currentTimeMillis();
      long elapsed = stop - start;
      double totTime = elapsed / 1000;
View Full Code Here

    double[] classData = new double[2];
    classData[0] = 5;
    classData[1] = 0.04;

    SolverMultiMixed multiMixed = new SolverMultiMixed(2, 2);

    String[] name = { "Station1", "Station2" };
    int[] type = { Solver.DELAY, Solver.DELAY };
    double[][][] servt = new double[2][2][1];

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

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

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

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

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

    if (multiMixed.input(name, type, servt, visits, classData, classTypes)) {

      multiMixed.solve();
      System.out.println(multiMixed);
      System.out.println("End Multi mixed");
      long stop = System.currentTimeMillis();
      long elapsed = stop - start;
      double totTime = elapsed / 1000;
View Full Code Here

    classData[0] = 0.005;
    classData[1] = 0.008;
    classData[2] = 20;
    classData[3] = 10;

    SolverMultiMixed multiMixed = new SolverMultiMixed(4, 2);

    String[] name = { "Station1", "Station2" };
    int[] type = { Solver.LI, Solver.LI };
    double[][][] servt = new double[2][4][1];

    //station 1
    servt[0][0][0] = 5;
    servt[0][1][0] = 10;
    servt[0][2][0] = 10;
    servt[0][3][0] = 3;

    //station 2
    servt[1][0][0] = 4;
    servt[1][1][0] = 3;
    servt[1][2][0] = 5;
    servt[1][3][0] = 6;

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

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

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

    if (multiMixed.input(name, type, servt, visits, classData, classTypes)) {

      multiMixed.solve();
      System.out.println(multiMixed);
      System.out.println("End Multi mixed");
      long stop = System.currentTimeMillis();
      long elapsed = stop - start;
      double totTime = elapsed / 1000;
View Full Code Here

TOP

Related Classes of jmt.analytical.SolverMultiMixed

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.