Class LogisticFunction
java.lang.Object
solvers.queueingnet.montecarloLogistic.numericalIntegration.SafeFunction
solvers.queueingnet.montecarloLogistic.solver.LogisticFunctionBase
solvers.queueingnet.montecarloLogistic.solver.LogisticFunction
- All Implemented Interfaces:
Function
- Direct Known Subclasses:
LogisticFunctionMult
Extends the SafeFunction abstract class. This is the logistic function under
the additive transform without any delay
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected cern.colt.matrix.linalg.Algebraprotected cern.colt.matrix.DoubleMatrix2Dprotected cern.colt.matrix.DoubleMatrix2Dprotected cern.colt.matrix.DoubleMatrix1Dprotected doubleprotected doubleprotected intprotected MathContextprotected intprotected cern.colt.matrix.DoubleMatrix1Dprotected intFields inherited from class LogisticFunctionBase
hess_stat, u_stat, v_stat, x_statFields inherited from class SafeFunction
ndim -
Constructor Summary
ConstructorsConstructorDescriptionLogisticFunction(int ndim, int[] population, double[][] demands, double epsilon) LogisticFunction(int ndim, int[] population, double[][] demands, double epsilon, MathContext MC) LogisticFunction(int ndim, cern.colt.matrix.DoubleMatrix1D population, cern.colt.matrix.DoubleMatrix2D demands, double epsilon, MathContext MC) -
Method Summary
Modifier and TypeMethodDescriptionvoidStationary point Hessian calculations for single server networksvoidIterative stationary point calculations for single server networksprotected voidcheckInDomain(double[] point) Function that checks point in within the domain of the functioncopy()Implements the copy() function specified in base classprotected BigDecimalsafeEvaluate(double[] point) Implements the safeEvaluate abstract method.Methods inherited from class LogisticFunctionBase
getHess_stat, getU_stat, getV_stat, getX_statMethods inherited from class SafeFunction
checkPoint, evaluate
-
Field Details
-
N
protected int N -
R
protected int R -
K
protected int K -
eta
protected double eta -
epsilon
protected double epsilon -
demands
protected cern.colt.matrix.DoubleMatrix2D demands -
demands_k
protected cern.colt.matrix.DoubleMatrix2D demands_k -
demands_K
protected cern.colt.matrix.DoubleMatrix1D demands_K -
pop
protected cern.colt.matrix.DoubleMatrix1D pop -
A
protected cern.colt.matrix.linalg.Algebra A -
MC
-
-
Constructor Details
-
LogisticFunction
public LogisticFunction(int ndim, int[] population, double[][] demands, double epsilon) throws InternalErrorException - Throws:
InternalErrorException
-
LogisticFunction
public LogisticFunction(int ndim, cern.colt.matrix.DoubleMatrix1D population, cern.colt.matrix.DoubleMatrix2D demands, double epsilon, MathContext MC) throws InternalErrorException - Throws:
InternalErrorException
-
LogisticFunction
public LogisticFunction(int ndim, int[] population, double[][] demands, double epsilon, MathContext MC) throws InternalErrorException - Throws:
InternalErrorException
-
LogisticFunction
- Throws:
InternalErrorException
-
-
Method Details
-
safeEvaluate
Implements the safeEvaluate abstract method. Computes the logistic additive function at the point given by point- Specified by:
safeEvaluatein classSafeFunction- Parameters:
point- Array representing point to be evaluated- Returns:
- BigDecimal equal to the function value at that point
- Throws:
InternalErrorException- if the operation cannot be completed
-
checkInDomain
Description copied from class:SafeFunctionFunction that checks point in within the domain of the function- Specified by:
checkInDomainin classSafeFunction- Parameters:
point- Point to be checked- Throws:
InternalErrorException- When point is invalid
-
copy
Implements the copy() function specified in base class- Returns:
- copy of this function interface
- Throws:
InternalErrorException
-
calculate_stationary_point
public void calculate_stationary_point()Iterative stationary point calculations for single server networks- Specified by:
calculate_stationary_pointin classLogisticFunctionBase
-
calculate_hessian
public void calculate_hessian()Stationary point Hessian calculations for single server networks- Specified by:
calculate_hessianin classLogisticFunctionBase
-