Minimize the cost of a quality control system
2 ビュー (過去 30 日間)
古いコメントを表示
Hi. I would like to minimize the cost of a function and i have these variables and restrictions. c<=2 n=1-1000 0<=p<=0.025
and the cost function is in the picture.
Also, i would like to know for what n,c this cost is minimized.
Thanks in advance.
4 件のコメント
Varun Garg
2018 年 6 月 5 日
It's okay not to be used to MATLAB. Try out some nice tutorials or try searching the Official documentation for the functions you might need. Your question sounds like a college/school assignment. This is a knowledge sharing forum with people trying to help you if you are stuck somewhere but not do custom coding for you. It's always better to tell how you tried to code and you need some help with the error or some direction. Don't expect someone to solve your assignment for you. Cheers!
採用された回答
Varun Garg
2018 年 6 月 5 日
I think you should go through the following functions which should get your work done.
integral
This will help you define your function. Now comes the minimizing the cost part, try working with
fmincon
These two combined should probably solve the problem you are working on. Try it out, code it. If you face any errors post a question about it or comment here. Hope this helps.
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Get Started with MATLAB についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!