Path: news.mathworks.com!not-for-mail
From: "H A" <cositsjunk@yahoo.com>
Newsgroups: comp.soft-sys.matlab
Subject: linprog: displaying all solutions
Date: Tue, 13 May 2008 22:53:02 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 32
Message-ID: <g0d64e$97i$1@fred.mathworks.com>
Reply-To: "H A" <cositsjunk@yahoo.com>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1210719182 9458 172.30.248.35 (13 May 2008 22:53:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Tue, 13 May 2008 22:53:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1385352
Xref: news.mathworks.com comp.soft-sys.matlab:468259



Hi,

I am using linprog to solve a linear programming problem 
with the following call:

options=optimset
('LargeScale', 'off', 'Simplex', 'on', 'Diagnostics', 'on', 
'Display', 'iter', 'MaxIter', 10000, 'TolFun', 10e-8);

[d,fval,exitflag]=linprog(fM,AM,bM,[],[],0,1,[],options)

I'd like to see all intermediate solutions of fval and d 
(my variable set) that the program generates, while it is 
converging. Is there a way of doing this? Setting the 
display option to iter lets me see the objective function 
values, but I haven't been able to find a way to see the d 
(solution set) values. 

The reason I am trying to see all intermediate values is 
that I suspect that my problem has multiple optimal 
solutions. So I'm just trying to see all the solutions that 
linprog was able to generate... Is there an alternative way 
of doing this?

I also have another related question: When I set display 
to "iter", what do the "Dual Infeasibility" values that are 
displayed imply? 

Thanks a bunch for all your help!
h