Thread Subject: optimization------linprog doesn't accept equality constraints

Subject: optimization------linprog doesn't accept equality constraints

From: Jun Li

Date: 2 May, 2008 09:35:03

Message: 1 of 1

hi, all:

i use linprog solving a linear problem. however, looking
into the solution, it seems like the linprog algorithm
ignored the equality constraints. a part code of the
problem is as following:

[p,N] = size(Y);
ue = eye(p,p);
A = kron(Y',ue);
sigma = -ones(p*N,1);
A = [A,sigma];
sigma1 = zeros(1,p*p);
sigma1 = [sigma1,1];
A = -[A;sigma1];
b = zeros(p*N+1,1);

u1 = ones(1,p);
Aeq = kron(ue,u1);
sigma0 = zeros(p,1);
Aeq = [Aeq,sigma0];
beq = Wm;

f = zeros(p*p,1);
f = [f;1];

[Q,fval] = linprog(f,A,b,Aeq,beq);

where p is 3,4,5..... and N = 1000,10000... and Y>0

if N is very small, like less than 10, it's OK.
however, if N is great than 100, or even big,
then it seems like the `linprog` algorithm doesn't take the
equality constraints into consider.

could anyone give me some help?
thank you.

Jun

Tags for this Thread

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

rssFeed for this Thread

Public Submission Policy

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Disclaimer prior to use.

Contact us at files@mathworks.com