Path: news.mathworks.com!not-for-mail
From: "Bruno Luong" <b.luong@fogale.fr>
Newsgroups: comp.soft-sys.matlab
Subject: Re: export to MPS file
Date: Wed, 16 Apr 2008 23:29:01 +0000 (UTC)
Organization: FOGALE nanotech
Lines: 17
Message-ID: <fu623t$8n3$1@fred.mathworks.com>
References: <fs33vs$kka$1@fred.mathworks.com> <fs5d02$9ac$1@fred.mathworks.com> <fu6126$821$1@fred.mathworks.com>
Reply-To: "Bruno Luong" <b.luong@fogale.fr>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1208388541 8931 172.30.248.37 (16 Apr 2008 23:29:01 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 16 Apr 2008 23:29:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 390839
Xref: news.mathworks.com comp.soft-sys.matlab:463462


Example:

Bruno

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

A=[1  1 0; -1 0 -1]
b=[5; -10]
L=[0; -1; 0]
U=[4; +1; +inf]
Aeq=[0 -1 1]
beq=7
cost=[1 4 9]

Contain=BuildMPS(A, b, Aeq, beq, cost, L, U)
OK=SaveMPS('Pbtest.mps', Contain)