Class Pfqn_mci
-
Method Summary
Modifier and TypeMethodDescriptionstatic Ret.pfqnNcMonte Carlo integration for the normalizing constant.static Ret.pfqnNcMonte Carlo integration for the normalizing constant from a fixed seed, so that a fixed seed reproduces the estimate exactly (the SolverNC path passes options.seed).static Ret.pfqnNcMonte Carlo integration for the normalizing constant drawing from the caller's generator, which the call advances.
-
Method Details
-
pfqn_mci
Monte Carlo integration for the normalizing constant.Variants:
mci,imci(improved),amci,lhsmciandrm(repairman).amciandlhsmciuse theimcitilt and differ only in how the uniforms are drawn.amcidraws ANTITHETIC pairs (u, 1-u). This does NOT reliably reduce variance here: the tilted integrand is not monotone in the exponential draws (the tilt term -(1-gamma)V decreases while the N log(VD+Z) term increases), so the pair correlation is not systematically negative; measured variance ratios againstimcirange from 0.54 to 1.6 across models. It is kept because it is the Ross-Wang construction, not because it is the better default.lhsmcistratifies each coordinate by Latin hypercube sampling, which IS reliably variance-reducing on the same models (ratios 0.0 to 0.48, exact quadrature in the limit of one station) at O(I log I) extra cost.- Parameters:
D- service demand matrix (M x R)N- population vector (1 x R)Z- think time vector (1 x R)I- number of samplesvariant- sampling variant- Returns:
- the normalizing constant and its logarithm
-
pfqn_mci
Monte Carlo integration for the normalizing constant from a fixed seed, so that a fixed seed reproduces the estimate exactly (the SolverNC path passes options.seed).- Parameters:
D- service demand matrix (M x R)N- population vector (1 x R)Z- think time vector (1 x R)I- number of samplesvariant- sampling variantseed- seed of the generator the draws are taken from- Returns:
- the normalizing constant and its logarithm
-
pfqn_mci
Monte Carlo integration for the normalizing constant drawing from the caller's generator, which the call advances.- Parameters:
D- service demand matrix (M x R)N- population vector (1 x R)Z- think time vector (1 x R)I- number of samplesvariant- sampling variantrand- generator the uniforms are drawn from- Returns:
- the normalizing constant and its logarithm
-