1
<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
2
<!DOCTYPE MAN SYSTEM "../../manrev.dtd">
4
<LANGUAGE>eng</LANGUAGE>
5
<TITLE>mps2linpro</TITLE>
6
<TYPE>Scilab Function</TYPE>
8
<SHORT_DESCRIPTION name="mps2linpro"> convert lp problem given in MPS format to linpro format</SHORT_DESCRIPTION>
10
<CALLING_SEQUENCE_ITEM>lp = mps2linpro(mps) </CALLING_SEQUENCE_ITEM>
11
<CALLING_SEQUENCE_ITEM>[p,C,b,ci,cs,mi] = mps2linpro(mps) </CALLING_SEQUENCE_ITEM>
16
<PARAM_NAME>mps</PARAM_NAME>
18
<SP>: either a character string, path of the MPS file, or an mps data structure returned by <VERB>readmps</VERB></SP>
22
<PARAM_NAME>lp</PARAM_NAME>
24
<SP>: a linpro data tlist with following fields:</SP>
27
<PARAM_NAME>p</PARAM_NAME>
29
<SP>: real (column) vector (dimension <VERB> n</VERB>)</SP>
33
<PARAM_NAME>C</PARAM_NAME>
35
<SP>: real matrix (dimension <VERB> (mi + md) x n</VERB>) (If no constraints are given, you can set <VERB>C = []</VERB>)</SP>
39
<PARAM_NAME>b</PARAM_NAME>
41
<SP>: RHS vector (dimension <VERB>1 x (mi + md)</VERB>)</SP>
45
<PARAM_NAME>ci</PARAM_NAME>
47
<SP>: (column) vector of lower-bounds (dimension <VERB> n</VERB>). If there are no lower bound constraints, put <VERB>ci = []</VERB>. If some components of <VERB>x</VERB> are bounded from below, set the other (unconstrained) values of <VERB>ci</VERB> to a very large negative number (e.g. <VERB>ci(j) = -(% eps)^(-1)</VERB>.</SP>
51
<PARAM_NAME>cs</PARAM_NAME>
53
<SP>: (column) vector of upper-bounds. (Same remarks as above).</SP>
57
<PARAM_NAME>mi</PARAM_NAME>
59
<SP>: number of equality constraints (i.e. <VERB>C(1:mi,:)*x = b(1:mi)</VERB>)</SP>
69
mps2linpro forms Linear programing data compatible with linpro out of