How can i use simplex algorithm for optimization of linear eqautions using linprog in MATLAB 2007b?

I am trying to use simplex algorithm to optimize a linear equation depending upon one inequality constraint and an equality constraint using options as mentioned in MATLAB help as below
options=optimset('Largescale','off','Simplex','on');
f=(A,b,aeq,beq,options);
where A is the matrix of coefficients(fc)=[-1 0.1 fc fc.^2]
b=-0.3
aeq=[0 1 1 1;0 1 0 0]
beq=[1;0]
The problem optimizes without using simplex algorithm while using Simplex algorithm as mentioned above MATLAB shows an error that linprog accepts only input arguments of type 'double'.As mentioned in workspace all input arguments are of type double except 'options' which is of type struct.How can I solve the above problem? Please reply Thanks

Answers (2)

What so you mean by "optimize a linear equation" ? Find a feasible point ?
Best wishes
Torsten.
Yes I mean to find a feasible point.As the values of 'f' without using simplex algorithm are as follows: 0.3000, -0.0000, 0.0000, 1.0000 I want to have the values of f by using Simplex algorithm . Thanks

1 Comment

So you try to find a point (a,b,c,d) that satisfies
-a+0.1*b+(fc)*c+(fc^2)*d <= -0.3
b+c+d=1
b=0
?
Choose a=fc^2+0.3,b=0,c=0,d=1.
Best wishes
Torsten.

Sign in to comment.

Categories

Asked:

on 30 Mar 2015

Commented:

on 30 Mar 2015

Community Treasure Hunt

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

Start Hunting!