Converting a maximizing problem into a minimizing program using linprog
古いコメントを表示
Hi guys,
i have a question about the function linprog.
I want to use this function, and according to the matlab database the function linprog can be applied so that it solves for:

In my case i want to maximize the vector x. Can Anyone help me and tell me how to convert it? What effects will it have on the A matrix and the upper / lower bounds?
Thanks a lot!
Kev
採用された回答
その他の回答 (1 件)
Alan Stevens
2020 年 9 月 5 日
0 投票
Minimize -x. The maximum of x will then be the negative of this.
2 件のコメント
Kevin Wang
2020 年 9 月 5 日
Alan Stevens
2020 年 9 月 5 日
Unfortunately, I don't have linprog available to check, but have a look at https://uk.mathworks.com/help/optim/examples/maximize-long-term-investments-using-linear-programming.html where there is a maximizing problem that uses linprog.
カテゴリ
ヘルプ センター および File Exchange で Solver Outputs and Iterative Display についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!