Class MonteCarloLogisticSolver
java.lang.Object
solvers.queueingnet.QNSolver
solvers.queueingnet.montecarloLogistic.solver.MonteCarloLogisticSolver
- All Implemented Interfaces:
QNSolverInterface
Monte Carlo logistic regression solver of JMVA, used for large models where the exact algorithms become too expensive.
-
Field Summary
Fields inherited from class QNSolver
G, memUsage, qnm, totalTimer -
Constructor Summary
ConstructorsConstructorDescriptionMonteCarloLogisticSolver(QNModel qnm, double epsilon, int max_samples, int precision, int nthread) -
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.double[]voidPrints the time needed for the solver object to evaluate the network.voidPrints a short welcome message that says which solver is used.Methods inherited from class QNSolver
getNormalisingConstant, printMemUsage
-
Constructor Details
-
MonteCarloLogisticSolver
public MonteCarloLogisticSolver(QNModel qnm, double epsilon, int max_samples, int precision, int nthread) throws InternalErrorException - Throws:
InternalErrorException
-
MonteCarloLogisticSolver
- Throws:
InternalErrorException
-
-
Method Details
-
printWelcome
public void printWelcome()Description copied from class:QNSolverPrints a short welcome message that says which solver is used.- Specified by:
printWelcomein interfaceQNSolverInterface- Overrides:
printWelcomein classQNSolver
-
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.
-
getNormalisingConstantAsBigDecimal
- Throws:
InternalErrorException
-
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
-
getStatPoint
public double[] getStatPoint() -
printTimeStatistics
public void printTimeStatistics()Description copied from class:QNSolverPrints the time needed for the solver object to evaluate the network.- Specified by:
printTimeStatisticsin interfaceQNSolverInterface- Overrides:
printTimeStatisticsin classQNSolver
-