Class ClosedMultiToSingleSolverWrapper

java.lang.Object
solvers.Solver
solvers.dispatchers.wrappers.ClosedMultiToSingleSolverWrapper
Direct Known Subclasses:
IterativeClosedMultiToSingleSolverWrapper

public class ClosedMultiToSingleSolverWrapper extends Solver
Wrapper class for single-class queueing models Uses multi-class algorithm classes for solving the models For iterative algorithms use IterativeClosedMultiToSingleSolverWrapper
Author:
Abhimanyu Chugh Modified by Ben Pahnke
  • Field Details

    • algorithm

      protected SolverAlgorithm algorithm
    • solver

      protected SolverMulti solver
    • DEBUG

      public static final boolean DEBUG
      See Also:
    • customers

      protected int customers
    • serviceTimes

      protected double[][][] serviceTimes
    • custVisits

      protected double[][] custVisits
  • Constructor Details

  • Method Details

    • input

      public boolean input(String[] n, int[] t, double[][] s, double[] v)
      Description copied from class: Solver
      Initializes the solver with the model parameters. It must be called before trying to solve the model.
      Overrides:
      input in class Solver
      Parameters:
      n - array of n of service centers.
      t - array of the types (LD or LI) of service centers.
      s - matrix of service time 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: Solver
      Must be implemented to create a single class model solver.
      Specified by:
      solve in class Solver
    • hasSufficientProcessingCapacity

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