Clear Filters
Clear Filters

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

1 view (last 30 days)

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 Comment
Image Analyst
Image Analyst on 16 Mar 2018
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.

Sign in to comment.

Answers (0)

Categories

Find more on MATLAB in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!