Class SolverMultiClosedMoM

java.lang.Object
solvers.SolverMulti
solvers.SolverMultiClosedMoM

public class SolverMultiClosedMoM extends SolverMulti
Solves a multiclass closed model with the exact MoM (Method of Moments) algorithm [Cas06][Cas11], one of the exact solution techniques available in JMVA for closed product form queueing networks.

This class implements the API to allow use by other applications. One can define the queueing network model details, call the solvers transparently and, afterwards, read the results.

Author:
Michail Makaronidis, 2010
  • Field Details

    • population

      protected int[] population
      Array containing population for each class
    • scale

      protected Integer scale
    • qnm

      protected QNModel qnm
      Contains the queueing network model
    • nThreads

      protected int nThreads
      Number of threads that the MoMSolver should use
  • Constructor Details

    • SolverMultiClosedMoM

      public SolverMultiClosedMoM(int classes, int stations, int[] population)
      Creates new MoMSolverDispatcher
      Parameters:
      classes - number of classes
      stations - number of service centers
      population - array of class populations
  • Method Details

    • input

      public boolean input(int[] t, double[][][] s, double[][] v, int nThr)
      Initializes the solver with the system parameters. It must be called before trying to solve the model.
      Parameters:
      t - array of the types (LD or LI) of service centers
      s - matrix of service times of the service centers
      v - array of visits to the service centers
      nThr - The number of threads the solver should use
      Returns:
      True if the operation is completed with success
    • solve

      public void solve()
      Solves the system through the MoM algorithm. input(...) must have been called first.
      Specified by:
      solve in class SolverMulti
    • hasSufficientProcessingCapacity

      public boolean hasSufficientProcessingCapacity()
      Description copied from class: SolverMulti
      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 classes.
      Must be implemented to create a multi class model solver.
      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