<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=utf-8">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:"Cambria Math";
        panose-1:0 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=EN-GB link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>First thought: <o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>I’m not sure, but does<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal>char rowType[3] = { 'L', 'L', 'L'};<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>give you EQUALITY constraints?<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Regards,<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Jan-Willem<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<div>

<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'>

<p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:
"Tahoma","sans-serif"'>From:</span></b><span lang=EN-US style='font-size:10.0pt;
font-family:"Tahoma","sans-serif"'> coin-discuss-bounces@list.coin-or.org
[mailto:coin-discuss-bounces@list.coin-or.org] <b>On Behalf Of </b>hela masri<br>
<b>Sent:</b> 12 February 2009 20:36<br>
<b>To:</b> coinmp@list.coin-or.org; coin-discuss@list.coin-or.org<br>
<b>Subject:</b> [Coin-discuss] please help<o:p></o:p></span></p>

</div>

</div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<div>

<div>

<div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

</div>

<div>

<p class=MsoNormal>I use CoinMP dll, to test linear programs. But for the
following problem, I got an erroneous solution
(x1=0,x2=0,x3=0,x4=0,x5=0,x6=0,z1=0,z2=0,z3=0) with the optimal value equal to
zero. But this vector is not feasible!!!<br>
<br>
<br>
The linear problem is:<br>
Min&nbsp;&nbsp;&nbsp; z1+z2+z3<br>
s.t &nbsp;&nbsp; &nbsp; x1&nbsp;&nbsp; + x2 &nbsp; + x3
+x4&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &nbsp; +
z1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
= 3<br>
&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 2x1 + 2x2 +
x3&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
+x5&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp; + z2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =&nbsp; 4<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; x1&nbsp;&nbsp;&nbsp; -
x2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;
+x6&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; +
z3=&nbsp; 0&nbsp;&nbsp;&nbsp;&nbsp; <br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; all variables are positive.<br>
<br>
<br>
<br>
And the corresponding program is (executed with visual C++)<br>
<br>
&nbsp;&nbsp;&nbsp; char *problemName = &quot;Initialisation&quot;;<br>
&nbsp;&nbsp;&nbsp; int colCount=9;<br>
&nbsp;&nbsp;&nbsp; int rowCount=3;<br>
&nbsp;&nbsp;&nbsp; int nonZeroCount=13;<br>
&nbsp;&nbsp;&nbsp; int rangeCount = 0;<br>
<br>
&nbsp;&nbsp;&nbsp; char *objectName = &quot;obj&quot;;<br>
&nbsp;&nbsp;&nbsp; int objectSense = SOLV_OBJSENS_MIN;<br>
&nbsp;&nbsp;&nbsp; double objectConst = 0.0;<br>
&nbsp;&nbsp;&nbsp; double objectCoeffs[9] = { 0., 0., 0., 0., 0., 0., 1., 1.
,1.};<br>
<br>
&nbsp;&nbsp;&nbsp; double lowerBounds[9] = { 0., 0., 0., 0., 0., 0., 0.,0. ,0.
};<br>
&nbsp;&nbsp;&nbsp; double upperBounds[9] = { 1000000., 1000000., 1000000.,
1000000., 1000000., 1000000., 1000000., 1000000. ,1000000. };<br>
<br>
&nbsp;&nbsp;&nbsp; char rowType[3] = { 'L', 'L', 'L'};<br>
&nbsp;&nbsp;&nbsp; double rhsValues[3] = { 3.,4.,0.};<br>
<br>
&nbsp;&nbsp;&nbsp; int matrixBegin[9+1]={0,3,6,8,9,10,11,12,13,14};<br>
&nbsp;&nbsp;&nbsp; int matrixCount[9]={3,3,2,1,1,1,1,1,1};<br>
&nbsp;&nbsp;&nbsp; int matrixIndex[14]={0,1,2,0,1,2,0,1,0,1,2,0,1,2};<br>
&nbsp;&nbsp;&nbsp; double matrixValues[14]={1., 2., 1., 1., 2., -1., 1., 1.,
1., 1., 1., 1., 1., 1.};<br>
&nbsp;&nbsp;&nbsp; <br>
&nbsp;&nbsp;&nbsp; char *colNames[9] = {&quot;c1&quot;, &quot;c2&quot;,
&quot;c3&quot;, &quot;c4&quot;, &quot;c5&quot;, &quot;c6&quot;, &quot;c7&quot;,
&quot;c8&quot;,&quot;c9&quot;};<br>
&nbsp;&nbsp;&nbsp; char *rowNames[3] = {&quot;r1&quot;, &quot;r2&quot;,
&quot;r3&quot;};<br>
&nbsp;&nbsp;&nbsp; <br>
&nbsp;&nbsp;&nbsp; double initValues[9] = { 0., 0., 0., 0., 0., 0., 0., 0. ,0.
};<br>
<br>
&nbsp;&nbsp;&nbsp; double optimalValue = 1428729.2857143;;<br>
<br>
&nbsp;&nbsp;&nbsp; RunTestProblem1(problemName, optimalValue, colCount,
rowCount, <br>
&nbsp;&nbsp;&nbsp; &nbsp; nonZeroCount, rangeCount, objectSense, objectConst,
objectCoeffs, <br>
&nbsp;&nbsp;&nbsp; &nbsp; lowerBounds, upperBounds, rowType, rhsValues, NULL, <br>
&nbsp;&nbsp;&nbsp; &nbsp; matrixBegin, matrixCount, matrixIndex, matrixValues, <br>
&nbsp;&nbsp;&nbsp; &nbsp; colNames, rowNames, objectName, initValues, NULL, 0);<o:p></o:p></p>

<div>

<div>

<div>

<div>

<div>

<div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

</div>

</div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

</div>

</div>

</div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

</div>

</div>

</div>

</div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<div class=MsoNormal align=center style='text-align:center'>

<hr size=1 width="100%" align=center>

</div>

<p class=MsoNormal>Ne pleurez pas si votre Webmail ferme. <a
href="http://fr.rd.yahoo.com/mail_fr/taglines/caramail/*http:/fr.docs.yahoo.com/mail/transfert_mails.html">Récupérez
votre historique sur Yahoo! Mail</a><o:p></o:p></p>

</div>

</body>

</html>