Class SolverMultiClosedRGF

java.lang.Object
solvers.SolverMulti
solvers.multiSolverAlgorithms.SolverMultiClosedRGF

public class SolverMultiClosedRGF extends SolverMulti
Solves a multiclass closed model with the RGF (Recursive Gaussian Filter) algorithm, an exact solution technique available in JMVA for closed product form queueing networks.
  • Field Details

    • population

      protected int[] population
    • 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

    • SolverMultiClosedRGF

      public SolverMultiClosedRGF(int classes, int stations, int[] population)
      Creates new SolverMultiClosedRGF
      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 RGF 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