Class MonteCarloSolver
java.lang.Object
solvers.queueingnet.QNSolver
solvers.queueingnet.MonteCarloSolver
- All Implemented Interfaces:
QNSolverInterface
Monte Carlo solution algorithm of JMVA, used by the exact solvers to reduce the complexity of large models.
-
Field Summary
Fields inherited from class QNSolver
G, memUsage, qnm, totalTimer -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidComputes the normalising constant for the specified QNModel.voidComputes and stores the performance measures (mean throughputs and mean queue lengths for the current model.Methods inherited from class QNSolver
getNormalisingConstant, printMemUsage, printTimeStatistics, printWelcome
-
Constructor Details
-
MonteCarloSolver
public MonteCarloSolver(QNModel qnm, double tolerance, int maxSamples) throws InternalErrorException - Throws:
InternalErrorException
-
-
Method Details
-
computeNormalisingConstant
Description copied from class:QNSolverComputes the normalising constant for the specified QNModel.- Specified by:
computeNormalisingConstantin interfaceQNSolverInterface- Overrides:
computeNormalisingConstantin classQNSolver- Throws:
InternalErrorException- * @throws InternalErrorException An exception is thrown if any internal error is encountered during computations.
-
computePerformanceMeasures
Description copied from class:QNSolverComputes and stores the performance measures (mean throughputs and mean queue lengths for the current model.- Specified by:
computePerformanceMeasuresin interfaceQNSolverInterface- Overrides:
computePerformanceMeasuresin classQNSolver- Throws:
InternalErrorException- Thrown when any computation fails
-