I am using Jump/Julia to solve an optimization problem. It is a transportation problem with some source locations and some destinations. Additionally, I have different product types so sending one kind of product from source i to destination j is not same for other kind of product. Usually when the products are homogeneous, I can write a cost matrix in this way
tr =[0 2.82 4.24 5.83 4.12 0;
2.82 0 1.41 3.16 2.23 2.82;
4.24 1.41 0 2 2.23 4.24;
5.83 3.16 2 0 2.23 5.83;
4.12 2.23 2.23 2.23 0 4.12;
0 2.82 4.24 5.83 4.12 0]
It simply means cost of sending one product from i to j. I am trying to find a way to modify the cost matrix when cost of the movement also depends on the type of product. Example c[1,2,3] would mean cost of moving product type 1 from source 2 to destination 3. Thank you.