MATLAB Answers

Minimize the cost of a quality control system

3 views (last 30 days)
Stam Kavid
Stam Kavid on 5 Jun 2018
Commented: Stam Kavid on 5 Jun 2018
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 Comments

Show 1 older comment
Stam Kavid
Stam Kavid on 5 Jun 2018
I tried, but I am not used to Matlab and I don't know how to integral or find the n,c that minCost
Varun Garg
Varun Garg on 5 Jun 2018
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!
Stam Kavid
Stam Kavid on 5 Jun 2018
It's for personal use, but I understand and respect your opinion! I will try to make it on my own. Thanks again for your time.

Sign in to comment.

Accepted Answer

Varun Garg
Varun Garg on 5 Jun 2018
I think you should go through the following functions which should get your work done.
integral
You can find the related documentation here .
This will help you define your function. Now comes the minimizing the cost part, try working with
fmincon
You can find the related documentation here .
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.

  1 Comment

Sign in to comment.

More Answers (0)

Sign in to answer this question.

Tags

No tags entered yet.

Products


Release

R2017a

Translated by