Class SolverMultiClosedMonteCarloLogistic
java.lang.Object
solvers.SolverMulti
solvers.multiSolverAlgorithms.SolverMultiClosedMonteCarloLogistic
Solves a multiclass closed model, using Monte Carlo Logistic algorithm.
- Author:
- Ong Wai Hong
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intprotected booleanprotected intprotected int[]protected intprotected int[]Fields 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
ConstructorsConstructorDescriptionSolverMultiClosedMonteCarloLogistic(int classes, int stations, int[] population) Creates new SolverMultiClosedMonteCarloSolverMultiClosedMonteCarloLogistic(int classes, int stations, int[] population, int max_samples, int precision) -
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 classes.booleaninput(int[] t, double[][][] s, double[][] v) Initializes the solver with the system parameters.voidsolve()Must be implemented to create a multi class model solver.static IntegervalidateMaxSamples(String maxSamples) static IntegervalidatePrecision(String precision) 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, setServTime, toString
-
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
-
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 classesstations- number of service centerspopulation- 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 centerss- matrix of service times of the service centersv- array of visits to the service centers- Returns:
- True if the operation is 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
-
validateMaxSamples
-
validatePrecision
-
hasSufficientProcessingCapacity
public boolean hasSufficientProcessingCapacity()Description copied from class:SolverMultiA 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 classes.
Must be implemented to create a multi class model solver.
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
-