How to solve for the root of this function?
2 ビュー (過去 30 日間)
古いコメントを表示
Let beta=0.95 cv = 0.25 u = 800
I need to solve for x-hat in order to find Q. I used the fzero function but it is not giving me the correct answer.
The code I created is: q=fzero('0.25*(normpdf(x,800,200)-(1-normcdf(x,800,200))*((x-800)/200))-1+0.95',1)

A worked example is shown below:

Any help would be very much appreciated!
The article is titled: "On Computing Order Quantities for Perishable Inventory Control with Non-stationary Demand" by Alejandro G. Alcoba et al. (2015)
2 件のコメント
Stephen23
2017 年 2 月 3 日
編集済み: Stephen23
2017 年 2 月 3 日
@Marc Santos: please edit your question and upload the code you have been trying by clicking the paperclip button. You write that you have "used the fzero function", so you have some code already, and it should be much easier for us to fix your code than to type out that whole equation again.
採用された回答
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Matrix Computations についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!