solving a linear program

How can I solve a Linear programming problem with 3 varibles with matlab? how about more than 3?

Answers (1)

Fangjun Jiang
Fangjun Jiang on 3 Nov 2011

0 votes

What is the problem? Can you show an example? I would think it can be solved. For 3 variables, maybe even without the Optimization Toolbox. http://www.mathworks.com/products/optimization/?s_cid=global_nav

2 Comments

I have many simple linear programming problems like this:
Max u6-u7
1.5u1+u2+u3+u6-u7=0
2u1+2u2+u4+u6-u7=0
4u1+3u2+u5+u6-u7=0
v1+v2+v3+v4=1
u1-v1=0
u2-v2=0
u1,u2,u3..u7>=0
v1,v2,..,v4>=0
I want to find all optimal extreme points.
Would you please help me?
The Optimization Toolbox can definitely do that. See http://www.mathworks.com/help/toolbox/optim/ug/bsmt5ib.html

This question is closed.

Asked:

on 3 Nov 2011

Closed:

on 20 Aug 2021

Community Treasure Hunt

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

Start Hunting!