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

조회 수: 2 (최근 30일)
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

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile 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!

Translated by