Info

この質問は閉じられています。 編集または回答するには再度開いてください。

Use (linprog) to formulate this objective function?

5 ビュー (過去 30 日間)
Sherif Shokry
Sherif Shokry 2018 年 2 月 9 日
コメント済み: Sherif Shokry 2018 年 2 月 10 日
y1 = sum(a1+b(1)+c1-d1+(n1/S));
y2 = sum(a1+b(1)+c1-d2+(n2/S));
y3 = sum(a1+b(1)+c1-d3+(n3/S));
y4 = sum(a1+b(1)+c1-d4+(n4/S));
y5 = sum(a1+b(1)+c1-d5+(n5/S));
X = 2 * (y1 + y2+ y3+ y4+ y5);
y6 = sum(a2+b(2)+c2-d6+(n6/S));
y7 = sum(a2+b(2)+c2-d7+(n7/S));
y8 = sum(a2+b(2)+c2-d8+(n8/S));
y9 = sum(a2+b(2)+c2-d9+(n9/S));
Y= 1 * (y6 + y7+ y8+ y9);
y = X + Y;
How can I put this objective function to fit (linprog) formula?
  8 件のコメント
John D'Errico
John D'Errico 2018 年 2 月 10 日
編集済み: John D'Errico 2018 年 2 月 10 日
Your problem is linear. Changing the optimizer changes nothing about the problem. There was never any need to use an optimizer, ANY optimizer, to solve the problem in the first place. That was pointed out at least twice to you.
Finding another way to solve a trivially solved problem is silly. Sorry, but it is.
Suppose you brought your car to a mechanic to solve a problem. They fix it, using a screwdriver. Without understanding that the problem was solved, or even asking for help in understanding why it was solved, would you now take your car to a different garage, and ask them to solve the now fixed problem using a hammer?
When you get an answer. Look at what was said. Think about it. If you don't understand the answer, say that, then ask a followup question in the comments. Don't just blindly ask the question again with no thought applied. That insults the person who spent time in answering your question the first time, telling them they wasted their time in answering your question. It also wastes the time of the next person who might answer your question.
And as for my business, I'll tell you that you don't know my business any more than I care about yours.
Sherif Shokry
Sherif Shokry 2018 年 2 月 10 日
Thanks Sir

回答 (0 件)

この質問は閉じられています。

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by