Filter löschen
Filter löschen

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

1 Ansicht (letzte 30 Tage)
ilyada
ilyada am 16 Mär. 2018
Bearbeitet: ilyada am 16 Mär. 2018

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 Kommentar
Image Analyst
Image Analyst am 16 Mär. 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.

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu MATLAB finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by