Class SolverSingleClosedCoMoM

java.lang.Object
solvers.Solver
solvers.SolverSingleClosedCoMoM

public class SolverSingleClosedCoMoM extends Solver
Solves a single class closed model, using Monte Carlo Logistic algorithm.
Author:
Ong Wai Hong
  • Field Details

    • solver

      public SolverMultiClosedCoMoM 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

    • 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
    • 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