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!