<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman,new york,times,serif;font-size:12pt"><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><div><br></div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">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 = "Initialisation";<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 = "obj";<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] = {"c1", "c2", "c3", "c4", "c5", "c6", "c7", "c8","c9"};<br>&nbsp;&nbsp;&nbsp; char *rowNames[3] = {"r1", "r2", "r3"};<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);<br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><div><br></div></div><br>



      </div></div></div><br>



      </div></div></div></div><br>



      <hr size="1"> 
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></body></html>