From: "Bruno Luong" <b.luong@fogale.findmycountry>
Newsgroups: comp.soft-sys.matlab
Subject: Re: linear equation with restrictions
Date: Mon, 28 Jul 2008 19:47:01 +0000 (UTC)
Organization: FOGALE nanotech
Lines: 30
Message-ID: <g6l7nl$hpr$>
References: <g5sgla$b7r$> <g5sjfa$fbg$> <g5td8a$s9q$> <g5tep3$g7r$> <g5thqi$h7d$> <g5tj02$rj4$> <g5tleq$siu$> <g5ujb2$7c1$> <g5v5rm$iav$> <g60239$srl$> <g62uv6$r2k$> <g68au9$b8u$> <g6iaid$rrr$> <g6ic71$jqt$> <g6l6lu$40r$>
Reply-To: "Bruno Luong" <b.luong@fogale.findmycountry>
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: 1217274421 18235 (28 Jul 2008 19:47:01 GMT)
NNTP-Posting-Date: Mon, 28 Jul 2008 19:47:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 390839
Xref: comp.soft-sys.matlab:482289

"Leon galushko" <> wrote in
message <g6l6lu$40r$>...

> '% Beware, his is Bruno's linprog, not MATLAB one in
> optimization
>     % tool box, the result may be different.
>     sol = linprog([], [], a', b, cost, L, U);'
> Wouldn't run it with some Stadard- MatLab of mine?
> Leon

I don't know. I do not have MATLAB linprog and I try to
simulate it with my own LP solver obviously without succeed.

What I want to solve is this continue pb
  minimize cost * x with constraints
     L <= x <= U and a'*x = b

I'm not sure what is the correct syntax of MATLAB linprog to
ignore linear-inequality constraint, I put empty matrix but
MATLAB obviously doesn't like. Hope someone can help.

Otherwise could you try to replace with the following line
with a dummy inequality matrix:

sol = linprog(zeros(size(a')), 1, a', b, cost, L, U);