multi objective linear programming in matlab

2 views (last 30 days)
fatema saba
fatema saba on 21 Jun 2014
Edited: Matt J on 21 Jun 2014
Hello I'm new in linear programming and Matlab software. I hope somebody help me in my problem. My problem is allocation problem. I have one 3D matrix (i, j, k) that (i=10, j=10 and k=3). The value in this matrix shows the cost of allocation to special resources (k refers to special resources). I want to allocate special cells to every resource based on their costs. I decomposite my 3D matrix to 3 2D matrices 10*10 as cost matrices. Ok, I want to (minimize ∑(k=1to3)∑(i=1to10)∑(j=1to10)cijk xijk subject to ∑(k=1to3)xijk=1) And also summation of cells dedicated for every matrix is special. And my question. How can I define coefficient matrix of cost for doing linear programming in Matlab. Is there anybody to help me please?

Answers (1)

Matt J
Matt J on 21 Jun 2014
Edited: Matt J on 21 Jun 2014
f=c(:);
Aeq=kron([1 1 1], speye(100));
beq=ones(size(Aeq,1),1);
x=linprog(f,[],[],Aeq,beq);
x=reshape(x,10,10,3);

Categories

Find more on Numeric Types 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!