Optimization : linprog function problem !!!

1 view (last 30 days)
Hello!!! I'm writing a program to optimize an object function :
clc
f = [750 600 1400 1000 0 0 0 0 0 0]; % Object function
Aeq = [0 0 0 0 -1 0 0 -5 5 0; 0 0 0 0 0 -1 0 0 -10 10; 0 0 0 0 0 0 -1 -5 0 5 ; -1 -1 0 0 0 0 0 -10 5 5; 0 0 -1 0 0 0 0 5 -15 10; 0 0 0 -1 0 0 0 5 10 -15];
beq = [0;0;0;0.5;0.6;3];
LB = [0 0 0 0 -1.26 -1.30 -2.50 -pi -pi -pi];
UB = [1.40 2.85 .90 .85 1.26 1.30 2.50 pi pi pi];
[X,FVAL,EXITFLAG,OUTPUT,LAMBDA]=linprog(f,[],[],Aeq,beq,LB,UB)
THE RESULT I RECEIVE IS :
Exiting: One or more of the residuals, duality gap, or total relative error
has stalled:
the primal appears to be infeasible (and the dual unbounded).
(The dual residual < TolFun=1.00e-008.)
X =
0.1856
0.0017
0.0717
0.0000
0.5254
-0.6682
0.0678
1.1334
1.0669
0.9517
FVAL =
240.5804
EXITFLAG =
-2
OUTPUT =
iterations: 7
algorithm: 'large-scale: interior point'
cgiterations: 0
message: [1x209 char]
LAMBDA =
ineqlin: [0x1 double]
eqlin: [6x1 double]
upper: [10x1 double]
lower: [10x1 double]
It's not my hope, What is the error ??? and please tell me the solution for it.
Thank you very much

Accepted Answer

Torsten
Torsten on 2 Mar 2015
Seems your constraints are such that your problem does not have a feasible point.
Best wishes
Torsten.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!