Class SolverMultiClosedTreeMVA

java.lang.Object
solvers.SolverMulti
solvers.multiSolverAlgorithms.SolverMultiClosedTreeMVA

public class SolverMultiClosedTreeMVA extends SolverMulti
Solves a multiclass closed model with the exact TreeMVA algorithm [TS85], the tree based version of the Mean Value Analysis, which reduces the time and space requirements of the exact solution for models with large dimensions.
Author:
gcasale
  • Field Details

    • population

      protected int[] population
    • qnm

      protected QNModel qnm
      Contains the queueing network model
  • Constructor Details

    • SolverMultiClosedTreeMVA

      public SolverMultiClosedTreeMVA(int classes, int stations, int[] population)
      Creates new SolverMultiClosedMonteCarlo
      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)
      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
      Returns:
      True if the operation is completed with success
    • input

      public boolean input(String[] n, int[] t, double[][][] s, double[][] v)
      Overrides:
      input in class SolverMulti
    • solve

      public void solve()
      Solves the system through the TreeMVA 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