How can I write this problem in matlab? What function should I use?

1 次查看(过去 30 天)

There are 4 trucks that deliver milk to 5 different customers. Each truck's daily operation cost and capacity info are in the table below. each customers demand should be met by only one truck, but one truck make delivery more than one customer. The customer's demands are 100,200,300,500, and 800 lt of milk. Show the min cost of delivery for all customers' demand in Matlab with lp model. Can you help me about this problem? I did the modelling part but I don't know how to write them in matlab. For instance I have variables like Xij and I don't know how this variable should be shown in matlab.

edit: sorry I forgot to add the table. Here's my solution and the table

<<

>>

  1 个评论
Image Analyst
Image Analyst 2018-3-16
Xij would probably be X(i, j) where i is the row and j is the column. Show your modeling part and table for more help. You can even attach an image you took with your mobile phone if you just have handwritten things.

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Modeling 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by