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

2 visualizaciones (últimos 30 días)
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

Respuesta aceptada

Matt J
Matt J el 16 de Sept. de 2015
Editada: Matt J el 16 de Sept. de 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 comentarios
nadia nadi
nadia nadi el 16 de Sept. de 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

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Linear Programming and Mixed-Integer Linear Programming en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by