multi objective linear programming in matlab

2 次查看(过去 30 天)
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?

回答(1 个)

Matt J
Matt J 2014-6-21
编辑:Matt J 2014-6-21
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);

类别

Help CenterFile Exchange 中查找有关 Numeric Types 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by