Class SolverMultiMixed
java.lang.Object
solvers.SolverMulti
solvers.multiSolverAlgorithms.SolverMultiMixed
Solves a multiclass mixed model, with both open and closed customer classes,
combining the open model algorithms and the exact MVA algorithm as described
in the JMVA chapter of the JMT user manual.
- Author:
- Federico Granata, Stefano Omini
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected int[]array with class types (0 for open, 1 for closed)protected double[][]matrix with service demandsprotected double[]array describing the classes: each element can be either an arrival rate (for open classes) or a population (for closed ones), according to the class typeFields inherited from class SolverMulti
classes, CLOSED_CLASS, clsNumJobs, clsRespTime, clsThroughput, DELAY, HOL, LD, LI, name, OPEN_CLASS, priorities, PRS, pw, queueLen, residenceTime, scQueueLen, scResidTime, scThroughput, scUtilization, servers, servTime, stations, sysNumJobs, sysResponseTime, sysThroughput, throughput, type, utilization, visits -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanA system is said to have sufficient capacity to process a given loadlambdaif no service center is saturated as a result of the combined loads of all the open classes.booleaninitializes the Multi class solver with the system parameters.voidsetServTime(double[][][] servTime) voidsolve()Must be implemented to create a multi class model solver.voidsolveLD()voidsolveLI()Solves the system.Methods inherited from class SolverMulti
getAggrQueueLen, getAggrQueueLen, getAggrResTime, getAggrResTime, getAggrThroughput, getAggrThroughput, getAggrUtilization, getAggrUtilization, getClsResTime, getClsResTime, getClsThroughput, getClsThroughput, getQueueLen, getQueueLen, getResTime, getResTime, getThroughput, getThroughput, getTotResTime, getTotThroughput, getUtilization, getUtilization, getVisits, input, input, printIndices, toString
-
Field Details
-
classType
protected int[] classTypearray with class types (0 for open, 1 for closed) -
demand
protected double[][] demandmatrix with service demands -
popPar
protected double[] popPararray describing the classes: each element can be either an arrival rate (for open classes) or a population (for closed ones), according to the class type
-
-
Constructor Details
-
SolverMultiMixed
public SolverMultiMixed(int classes, int stations) Constructor- Parameters:
classes- number of classesstations- number of stations
-
-
Method Details
-
input
public boolean input(String[] n, int[] t, double[][][] s, double[][] v, double[] popPar, int[] classType) initializes the Multi class solver with the system parameters.- Parameters:
n- array of names of service centers.t- array of the types (LD or LI) of service centers.s- matrix of service time of the service centers.v- matrix of visits to the service centers.popPar- array describing the classes: each element can be either an arrival rate (for open classes) or a population (for closed ones), according to the class typeclassType- array of class types (open or closed)- Returns:
- true if the operation has been completed with success
-
solve
public void solve()Description copied from class:SolverMultiMust be implemented to create a multi class model solver.- Specified by:
solvein classSolverMulti
-
solveLD
public void solveLD() -
solveLI
public void solveLI()Solves the system.
See:
E.D. Lazowska, J. Zahorjan, G.S. Graham, K. Sevcik
Quantitative System Performance,
Prentice Hall, 1984
-
setServTime
public void setServTime(double[][][] servTime) - Overrides:
setServTimein classSolverMulti
-
hasSufficientProcessingCapacity
public boolean hasSufficientProcessingCapacity()A system is said to have sufficient capacity to process a given loadlambdaif no service center is saturated as a result of the combined loads of all the open classes.
WARNING: This method should be called before solving the system.- Specified by:
hasSufficientProcessingCapacityin classSolverMulti- Returns:
- true if sufficient capacity exists for the given workload, false otherwise
-