<?xml version='1.0'?>
<?xml-stylesheet type='text/xsl' href='pmathml.xsl'?>
<html xmlns='http://www.w3.org/1999/xhtml'>
<head>
<title>Neos Clp Input and Output For Equation 2.1</title>
<meta name="description" id="description" content="Neos Clp Input and Output For Equation 2.1"/>
<meta name="keywords" id="keywords" content=" Equation 2.1 example Neos Clp "/>
<style type='text/css'>
BODY { color : black }
BODY { background-color : white }
</style>
<script type='text/javascript' language='JavaScript' src='_equation2_1_xml.js'>
</script>
</head>
<body>
<table><tr>
<td>
<select onchange='choose_across0(this)'>
<option>Index-&gt;</option>
<option>contents</option>
<option>reference</option>
<option>index</option>
<option>search</option>
</select>
</td>
<td><a href="clpcommand.xml" target="_top">Prev</a>
</td><td><a href="pivot.xml" target="_top">Next</a>
</td><td><a href="home.xml" target="_top">Top</a>
</td><td>
<select onchange='choose_down3(this)'>
<option>home-&gt;</option>
<option>Chapter1</option>
<option>Chapter2</option>
<option>Software</option>
<option>Chapter3</option>
<option>Chapter5</option>
<option>Part2</option>
<option>Test</option>
<option>Bib</option>
</select>
</td>
<td>
<select onchange='choose_down2(this)'>
<option>Software-&gt;</option>
<option>NeosClp</option>
<option>Pivot</option>
</select>
</td>
<td>
<select onchange='choose_down1(this)'>
<option>NeosClp-&gt;</option>
<option>MpsInputFile</option>
<option>ClpCommand</option>
<option>Equation2_1</option>
</select>
</td>
<td>Equation2_1</td>
<td>
<select onchange='choose_current0(this)'>
<option>Headings-&gt;</option>
<option>Input</option>
<option>Output</option>
</select>
</td>
</tr></table><br/>




<center><b><big><big>Neos Clp Input and Output For Equation 2.1</big></big></b></center>
<br/>
<b><big><a name="Input" id="Input">Input</a></big></b>
<br/>
You may find that, for this input example,
<a href="equation2_1.htm" target="_top"><span style='white-space: nowrap'>equation2_1.htm</span></a>
 gives better
copy and paste results than <a href="equation2_1.xml" target="_top"><span style='white-space: nowrap'>equation2_1.xml</span></a>
:
<code><font color="blue">
<span style='white-space: nowrap'><br/>
&lt;document&gt;<br/>
<br/>
&lt;category&gt;lp&lt;/category&gt;<br/>
&lt;solver&gt;Clp&lt;/solver&gt;<br/>
&lt;inputMethod&gt;MPS&lt;/inputMethod&gt;<br/>
<br/>
&lt;comments&gt;&lt;![CDATA[<br/>
Equation&#xA0;2.1&#xA0;in&#xA0;Vasek&#xA0;Chvatal's&#xA0;book:&#xA0;Linear&#xA0;Programming<br/>
maximize&#xA0;&#xA0;&#xA0;&#xA0;5*x1&#xA0;+&#xA0;4*x2&#xA0;+&#xA0;3*x3<br/>
subject&#xA0;to&#xA0;&#xA0;2*x1&#xA0;+&#xA0;3*x2&#xA0;+&#xA0;&#xA0;&#xA0;x3&#xA0;&lt;=&#xA0;5<br/>
&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;4*x1&#xA0;+&#xA0;&#xA0;&#xA0;x2&#xA0;+&#xA0;2*x3&#xA0;&lt;=&#xA0;11<br/>
&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;3*x1&#xA0;+&#xA0;4*x2&#xA0;+&#xA0;2*x3&#xA0;&lt;=&#xA0;8<br/>
&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;x1&#xA0;,&#xA0;&#xA0;&#xA0;x2&#xA0;,&#xA0;&#xA0;&#xA0;x3&#xA0;&gt;=&#xA0;0<br/>
The&#xA0;solution&#xA0;is&#xA0;x1&#xA0;=&#xA0;2,&#xA0;x2&#xA0;=&#xA0;0,&#xA0;x3&#xA0;=&#xA0;1<br/>
The&#xA0;residuals&#xA0;are&#xA0;0=s1=5-r1,&#xA0;1=s2=11-r2,&#xA0;0=s3=8-r3<br/>
]]&gt;&lt;/comments&gt;<br/>
<br/>
&lt;MPS&gt;&lt;![CDATA[*<br/>
*Op&#xA0;Name0---&#xA0;&#xA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0;r1&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;5<br/>
&#xA0;&#xA0;&#xA0;&#xA0;b&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;r2&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;11<br/>
&#xA0;&#xA0;&#xA0;&#xA0;b&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;r3&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;8<br/>
ENDATA<br/>
*]]&gt;&lt;/MPS&gt;<br/>
<br/>
&lt;param&gt;&lt;![CDATA[<br/>
maximize<br/>
primalSimplex<br/>
solution&#xA0;-<br/>
]]&gt;&lt;/param&gt;<br/>
<br/>
&lt;/document&gt;<br/>
</span>
</font></code>
<br/>
<b><big><a name="Output" id="Output">Output</a></big></b>

<code><font color="blue">
<span style='white-space: nowrap'><br/>
%%%%%%%%%%%%%%%%%%%%&#xA0;CLP&#xA0;Results&#xA0;%%%%%%%%%%%%%%%%%%%%<br/>
<br/>
Load&#xA0;Avg:&#xA0;(&#xA0;0.08&#xA0;,&#xA0;0.03&#xA0;,&#xA0;0.14&#xA0;)<br/>
Coin&#xA0;LP&#xA0;version&#xA0;1.02.02,&#xA0;build&#xA0;Mar&#xA0;20&#xA0;2006<br/>
command&#xA0;line&#xA0;-&#xA0;/home/neos/neos-bin/clp&#xA0;clp.mps&#xA0;-&#xA0;<br/>
At&#xA0;line&#xA0;4&#xA0;NAME&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;CE-2.1<br/>
At&#xA0;line&#xA0;5&#xA0;ROWS<br/>
At&#xA0;line&#xA0;10&#xA0;COLUMNS<br/>
At&#xA0;line&#xA0;19&#xA0;RHS<br/>
At&#xA0;line&#xA0;23&#xA0;ENDATA<br/>
Problem&#xA0;CE-2.1&#xA0;has&#xA0;3&#xA0;rows,&#xA0;3&#xA0;columns&#xA0;and&#xA0;9&#xA0;elements<br/>
Model&#xA0;was&#xA0;imported&#xA0;from&#xA0;./clp.mps&#xA0;in&#xA0;0&#xA0;seconds<br/>
Switching&#xA0;to&#xA0;line&#xA0;mode<br/>
Clp:Clp:Clp:Presolve&#xA0;3&#xA0;(0)&#xA0;rows,&#xA0;3&#xA0;(0)&#xA0;columns&#xA0;and&#xA0;9&#xA0;(0)&#xA0;elements<br/>
0&#xA0;&#xA0;Obj&#xA0;-0&#xA0;Dual&#xA0;inf&#xA0;7.47056&#xA0;(3)<br/>
4&#xA0;&#xA0;Obj&#xA0;13<br/>
Optimal&#xA0;-&#xA0;objective&#xA0;value&#xA0;13<br/>
Optimal&#xA0;objective&#xA0;13&#xA0;-&#xA0;4&#xA0;iterations&#xA0;time&#xA0;0.002<br/>
Clp:<br/>
&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;0&#xA0;x1&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;2&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;-2.8223853e-16<br/>
&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;1&#xA0;x2&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;0&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;-3<br/>
&#xA0;&#xA0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