multi objective linear programming in matlab

4 ビュー (過去 30 日間)
fatema saba
fatema saba 2014 年 6 月 21 日
編集済み: Matt J 2014 年 6 月 21 日
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 Center および File ExchangeCreating and Concatenating Matrices についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by