Info

此问题已关闭。 请重新打开它进行编辑或回答。

How do you model this problem in Matlab

1 次查看(过去 30 天)

Please how do you convert this into Matlab code?

A company is capable of making three types of clothing: shirts, shorts, and pants. The manufacture of each type of clothing requires that the company have the appropriate type of machinery available. The machinery needed to manufacture each type of clothing must be rented at the following rates: shirt machinery, $200 per week; shorts machinery, $150 per week; pants machinery, $100 per week. The manufacture of each type of clothing also requires the amounts of cloth and labor shown below. Each week, 150 hours of labor and 160 square yard cloth are available. Formulate an IP to maximize the weekly profit. ◆ Each product has a sales price No Product Sales PRICE Fixed Variable cost Labour(h) Cloth(m2) 1 Shirt 12 200 6 3 4 2 Shorts 8 150 4 2 3 3 Pants 15 100 8 6 4

if true
  % code
max 6x1 + 4x2 + 7x3 − 200y1 − 150y2 − 100y3
s.t. 3x1 + 2x2 + 6x3 ≤ 150
4x1 + 3x2 + 4x3 ≤ 160
x1 ≤ 40y1
x2 ≤ 53y2
x3 ≤ 25y3
y1, y2, y3 ∈ {0, 1}
x1, x2, x3 ≥ 0 and integer.
end
  2 个评论
john canry
john canry 2018-2-20
No I am doing a fixed costs analysis on my business and this is the closest example I could find to my problem. Matlab doesnt have any documentation for for fixed charge Perhaps it isnt worth spending money on it.

回答(0 个)

此问题已关闭。

标签

Community Treasure Hunt

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

Start Hunting!

Translated by