multi objective linear programming in matlab

6 Ansichten (letzte 30 Tage)
fatema saba
fatema saba am 21 Jun. 2014
Bearbeitet: Matt J am 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?

Antworten (1)

Matt J
Matt J am 21 Jun. 2014
Bearbeitet: Matt J am 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);

Kategorien

Mehr zu Creating and Concatenating Matrices 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