I want to solve a simple newsvendor problem for general Demand Probability Distribution with maple code.
) follows pdf
Decision varible is quantity
So cost function is
TC := piecewise(q-D >= 0, c[o]*(q-D), q-D < 0, c[u]*(-q+D));
piecewise(0 <= q - D, c[o] (q - D), q - D < 0, c[u] (-q + D))
After taking expectation of TC and derivating it w.r.t q we will get
* as critical fractile i.e.
q*= F^(-1) (
c[u] + c[o]
) i.e. F inverse (
Can someone please help me how to find q* in MAPLE using solve() or any other function?
Thanks in Advance!