Effacer les filtres
Effacer les filtres

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

3 vues (au cours des 30 derniers jours)
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

Réponse acceptée

Matt J
Matt J le 16 Sep 2015
Modifié(e) : Matt J le 16 Sep 2015
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 commentaires
nadia nadi
nadia nadi le 16 Sep 2015
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 le 17 Sep 2015
Dear Matt,
It works well thanks.
Nadia

Connectez-vous pour commenter.

Plus de réponses (0)

Community Treasure Hunt

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

Start Hunting!

Translated by