필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

How do you model this problem in Matlab

조회 수: 1 (최근 30일)
john canry
john canry 2018년 2월 20일
댓글: john canry 2018년 2월 20일

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