Class SolverMultiClosedMonteCarloLogistic

java.lang.Object
solvers.SolverMulti
solvers.multiSolverAlgorithms.SolverMultiClosedMonteCarloLogistic

public class SolverMultiClosedMonteCarloLogistic extends SolverMulti
Solves a multiclass closed model, using Monte Carlo Logistic algorithm.
Author:
Ong Wai Hong
  • Field Details

    • DEFAULT_MAX_SAMPLES

      public static final int DEFAULT_MAX_SAMPLES
      See Also:
    • DEFAULT_PRECISION

      public static final int DEFAULT_PRECISION
      See Also:
    • maxSamples

      protected int maxSamples
    • precision

      protected int precision
    • isLD

      protected boolean isLD
    • qnm

      public QNModel qnm
    • population

      protected int[] population
    • servNum

      protected int[] servNum
  • Constructor Details

    • SolverMultiClosedMonteCarloLogistic

      public SolverMultiClosedMonteCarloLogistic(int classes, int stations, int[] population)
      Creates new SolverMultiClosedMonteCarlo
      Parameters:
      classes - number of classes
      stations - number of service centers
      population - array of class populations
    • SolverMultiClosedMonteCarloLogistic

      public SolverMultiClosedMonteCarloLogistic(int classes, int stations, int[] population, int max_samples, int precision) throws InternalErrorException
      Throws:
      InternalErrorException
  • 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
    • 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
    • validateMaxSamples

      public static Integer validateMaxSamples(String maxSamples)
    • validatePrecision

      public static Integer validatePrecision(String precision)
    • 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