YAPC

About
YAPC (Yet Another Pad Calculator)
Version: 1.0
Author: Jose L. Cuevas
Email:jose@uprm.edu

A PAD Calculator build on top of Javascript.
Math Functions

abs, acos, asin, atan, atan2, ceil, cos, exp, floor, log, max, min, pow, random, round, sin, tan,log2e, log10e, pi
sfact(x), poisson(x), psr(t,u), sround(num, dec), mm1(n), mmk(k,n), tc(cw,cs,k), psf(pf,ps,pfs)
L = Arrival Rate
u = Service Rate
String Functions
substr(start,[length]), charat(pos), pos(find), split(del), tolower(), toupper(), asc(pos), print(string)




SR = exponential distribution
AR = randomly independently = poisson

Decision W Sample P of end node is P(S1|F)
P(S1|F) = P(S1) * P(F|S1)/P(F)
P(F>S1) "join" = P(S1) * P(F|S1)
P(F|S1) = (P(S1|F) * P(F))/P(S1)

Inv Simulation
Net Profit = Gross Profit - Holding Cost, if D<=Q
Net Profit = Gross Profit - Storage Cost, if D>Q
Gross = Price - cost
Inv Leftover = Q-D ... if D<=Q
Inv Leftover = D-Q ... if D>Q
Holding = HoldingC * Inv Leftover ,if D<=Q
Shortage = ShortageC * Inv Leftover ,if D<=Q
Q = inventory level requires, beginning inv, ex 100
i = i + 1 loop here
Di = sales or demand, Normal Prod Dist, NORMINV(r,mean,std)
Salesi = min(Q,D);
Grossi = Price * Salesi
Holdingi = if Di<=Q...(Q - Salesi) * HoldingC
Shortagei = if Di>Q...(D - Q) * ShortageC
NetProfiti = Grossi - (Holdingi+Shortagei)
do next iv

Line Simulation
i=0, ARi=0, Completioni=0
Customer = 1 = i+1, loop here
Intervali T = tlow + r(tup - tlow)
ARi = AR(i-1) + Intervali
Starti = max(ARi, Completion(i-1))
Waiting Time,WQ = Starti - ARi
SRi =NORMINV(r, mean, std)
Completioni = Starti + SRi
System Time, W = Completioni - ARi
do next i


Evaluate Clear

Music Search

Cancel Search