how to use simplex method from matlab toolbox to min objective function with Ax>=b

2 ビュー (過去 30 日間)
nadia nadi
nadia nadi 2015 年 9 月 16 日
コメント済み: nadia nadi 2015 年 9 月 17 日
Dear,
I want to use simplex method from matlab toolbox and is for the constraints Ax<=b. but I have Ax>=b. Is there any suggestions please.
regards,
Nadia

採用された回答

Matt J
Matt J 2015 年 9 月 16 日
編集済み: Matt J 2015 年 9 月 16 日
Note that Ax>=b is equivalent to -A*x<=-b, so call linprog as
opts=optimoptions(@linprog,'Algorithm','simplex',...);
linprog(f,-A,-b,...,opts)
  2 件のコメント
nadia nadi
nadia nadi 2015 年 9 月 16 日
Dear Matt,
Thanks for replying, I thought I can't do that, that's great I will try it and see what I'm going to get.
Thanks again,
Nadia
nadia nadi
nadia nadi 2015 年 9 月 17 日
Dear Matt,
It works well thanks.
Nadia

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

その他の回答 (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