Select the north-west corner of the matrix and assign as many units as possible (min(50,20))
In this case total transportation cost is = 20*5 + 30*1 + 5*2 + 35*4 + 5*1 + 85*6 = 795
You can watch this video for further information Transportation problems
You should return assignment matrix and total cost
Solution Stats
Problem Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers83
Suggested Problems
-
Project Euler: Problem 2, Sum of even Fibonacci
2915 Solvers
-
Compute a dot product of two vectors x and y
1057 Solvers
-
Return the first and last characters of a character array
12424 Solvers
-
Count consecutive 0's in between values of 1
542 Solvers
-
Find the sides of an isosceles triangle when given its area and height from its base to apex
2240 Solvers
More from this Author92
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!