<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> </o:p></span></p>
<p class=MsoNormal>char rowType[3] = { 'L', 'L', 'L'};<o:p></o:p></p>
<p class=MsoNormal><o:p> </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> </o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </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> </o:p></p>
<div>
<div>
<div>
<p class=MsoNormal><o:p> </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 z1+z2+z3<br>
s.t x1 + x2 + x3
+x4 +
z1
= 3<br>
2x1 + 2x2 +
x3
+x5
+ z2 = 4<br>
x1 -
x2
+x6 +
z3= 0 <br>
all variables are positive.<br>
<br>
<br>
<br>
And the corresponding program is (executed with visual C++)<br>
<br>
char *problemName = "Initialisation";<br>
int colCount=9;<br>
int rowCount=3;<br>
int nonZeroCount=13;<br>
int rangeCount = 0;<br>
<br>
char *objectName = "obj";<br>
int objectSense = SOLV_OBJSENS_MIN;<br>
double objectConst = 0.0;<br>
double objectCoeffs[9] = { 0., 0., 0., 0., 0., 0., 1., 1.
,1.};<br>
<br>
double lowerBounds[9] = { 0., 0., 0., 0., 0., 0., 0.,0. ,0.
};<br>
double upperBounds[9] = { 1000000., 1000000., 1000000.,
1000000., 1000000., 1000000., 1000000., 1000000. ,1000000. };<br>
<br>
char rowType[3] = { 'L', 'L', 'L'};<br>
double rhsValues[3] = { 3.,4.,0.};<br>
<br>
int matrixBegin[9+1]={0,3,6,8,9,10,11,12,13,14};<br>
int matrixCount[9]={3,3,2,1,1,1,1,1,1};<br>
int matrixIndex[14]={0,1,2,0,1,2,0,1,0,1,2,0,1,2};<br>
double matrixValues[14]={1., 2., 1., 1., 2., -1., 1., 1.,
1., 1., 1., 1., 1., 1.};<br>
<br>
char *colNames[9] = {"c1", "c2",
"c3", "c4", "c5", "c6", "c7",
"c8","c9"};<br>
char *rowNames[3] = {"r1", "r2",
"r3"};<br>
<br>
double initValues[9] = { 0., 0., 0., 0., 0., 0., 0., 0. ,0.
};<br>
<br>
double optimalValue = 1428729.2857143;;<br>
<br>
RunTestProblem1(problemName, optimalValue, colCount,
rowCount, <br>
nonZeroCount, rangeCount, objectSense, objectConst,
objectCoeffs, <br>
lowerBounds, upperBounds, rowType, rhsValues, NULL, <br>
matrixBegin, matrixCount, matrixIndex, matrixValues, <br>
colNames, rowNames, objectName, initValues, NULL, 0);<o:p></o:p></p>
<div>
<div>
<div>
<div>
<div>
<div>
<p class=MsoNormal><o:p> </o:p></p>
</div>
</div>
<p class=MsoNormal><o:p> </o:p></p>
</div>
</div>
</div>
<p class=MsoNormal><o:p> </o:p></p>
</div>
</div>
</div>
</div>
<p class=MsoNormal><o:p> </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>