Class SolverMultiMixed

java.lang.Object
solvers.SolverMulti
solvers.multiSolverAlgorithms.SolverMultiMixed

public class SolverMultiMixed extends SolverMulti
Solves a multiclass mixed model, with both open and closed customer classes, combining the open model algorithms and the exact MVA algorithm as described in the JMVA chapter of the JMT user manual.
Author:
Federico Granata, Stefano Omini
  • Field Details

    • classType

      protected int[] classType
      array with class types (0 for open, 1 for closed)
    • demand

      protected double[][] demand
      matrix with service demands
    • popPar

      protected double[] popPar
      array describing the classes: each element can be either an arrival rate (for open classes) or a population (for closed ones), according to the class type
  • Constructor Details

    • SolverMultiMixed

      public SolverMultiMixed(int classes, int stations)
      Constructor
      Parameters:
      classes - number of classes
      stations - number of stations
  • Method Details

    • input

      public boolean input(String[] n, int[] t, double[][][] s, double[][] v, double[] popPar, int[] classType)
      initializes the Multi class solver with the system parameters.
      Parameters:
      n - array of names of service centers.
      t - array of the types (LD or LI) of service centers.
      s - matrix of service time of the service centers.
      v - matrix of visits to the service centers.
      popPar - array describing the classes: each element can be either an arrival rate (for open classes) or a population (for closed ones), according to the class type
      classType - array of class types (open or closed)
      Returns:
      true if the operation has been completed with success
    • solve

      public void solve()
      Description copied from class: SolverMulti
      Must be implemented to create a multi class model solver.
      Specified by:
      solve in class SolverMulti
    • solveLD

      public void solveLD()
    • solveLI

      public void solveLI()
      Solves the system.

      See:
      E.D. Lazowska, J. Zahorjan, G.S. Graham, K. Sevcik
      Quantitative System Performance,
      Prentice Hall, 1984
    • setServTime

      public void setServTime(double[][][] servTime)
      Overrides:
      setServTime in class SolverMulti
    • hasSufficientProcessingCapacity

      public boolean hasSufficientProcessingCapacity()
      A system is said to have sufficient capacity to process a given load lambda if no service center is saturated as a result of the combined loads of all the open classes.
      WARNING: This method should be called before solving the system.
      Specified by:
      hasSufficientProcessingCapacity in class SolverMulti
      Returns:
      true if sufficient capacity exists for the given workload, false otherwise