How to solve the LP problem in MATLAB using linprog?

2 ビュー (過去 30 日間)
Ashwini
Ashwini 2017 年 6 月 7 日
コメント済み: Ashwini 2017 年 6 月 9 日
To Solve the LP problem, min 1'.r s.t y=F.r, r>=0, using linprog function i used linprog(f,[],[],F,y,LB,UB), where f is a unit vector, LB is a vector of values equal to 0 and UB is a vector of values equal to infinity. I got the correct solution as well. But I do not know how to solve the problem, min 1'.r s.t y=F.r, M.r>=0. What parameters should in give in linprog function to solve this problem?.

採用された回答

Torsten
Torsten 2017 年 6 月 7 日
f is not a unit vector, f is the vector with all elements equal to 1.
For the condition M*r>=0 set A=-M, b=0.
Best wishes
Torsten.
  1 件のコメント
Ashwini
Ashwini 2017 年 6 月 9 日
Thanks for the reply....I will try this....

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSolver Outputs and Iterative Display についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by