multi objective linear programming in matlab

6 vues (au cours des 30 derniers jours)
fatema saba
fatema saba le 21 Juin 2014
Modifié(e) : Matt J le 21 Juin 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?

Réponses (1)

Matt J
Matt J le 21 Juin 2014
Modifié(e) : Matt J le 21 Juin 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);

Catégories

En savoir plus sur Creating and Concatenating Matrices dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by