boptimal_cost: Optimal Test Plans with Minimum Expected Overall Costs in...

Description Usage Arguments Value See Also Examples

View source: R/boptimal_cost.R

Description

Define the optimal function to find the optimal test plans with minimum expected overall costs (for binomial RDT).

Usage

1
boptimal_cost(Cf, Cv, G, Cw, N, Rvec, cvec, pi, thres_CR)

Arguments

Cf

Fixed costs of RDT

Cv

Variable unit costs of RDT

G

Reliabilty growth cost

Cw

Average cost per warranty claim

N

Sales volume

Rvec

Vector of lower level reliability requirements

cvec

Vector of maximum allowable failures

pi

Failure probability

thres_CR

Threshold (acceptable level) of consumer's risk

Value

Vector of optimal test plan parameters, acceptance probabiltiy and cost

See Also

boptimal_n for getting the optial test sample size; bdata_generator for generating optimal test plans dataset;

Examples

1
2
3
4
5
Rvec <- seq(0.8, 0.85, 0.01)
cvec <- seq(0, 2, 1)
pi <- pi_MCSim_beta(M = 5000, seed = 10, a = 1, b = 1)
boptimal_cost(Cf = 10, Cv = 10, G = 100, Cw = 10,
N = 100, Rvec = Rvec, cvec = cvec, pi = pi, thres_CR = 0.5);

BRDT documentation built on July 1, 2020, 9:35 p.m.