Info
Cette question est clôturée. Rouvrir pour modifier ou répondre.
How do you model this problem in Matlab
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 commentaires
Réponses (0)
Cette question est clôturée.
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!