<br><font size=2 face="sans-serif">If someone uses OsiSolverInterface::readLp()
to read a problem instance in CPLEX LP format and subsequently solve the
problem. How to extract the variable names from the solutions?</font>
<br>
<br><font size=2 face="sans-serif">------------------------------------</font>
<br>
<br><font size=2 face="sans-serif">si=OsiSolverInterface;</font>
<br><font size=2 face="sans-serif">si= new OsiClpSolverInterface; </font>
<br><font size=2 face="sans-serif">si-&gt;readLp(&quot;t1.lp&quot;);</font>
<br>
<br><font size=2 face="sans-serif">// solve the problem</font>
<br>
<br><font size=2 face="sans-serif">int n=si-&gt;getNumcols();</font>
<br><font size=2 face="sans-serif">solution =si-&gt;getColsolution();</font>
<br><font size=2 face="sans-serif">for(int i=0;i&lt;n, i++){</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;string
name=si-&gt;?????? (what function to call?)</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; cout&lt;&lt;name&lt;&lt;&quot;
= &quot;&lt;&lt;solution[i]&lt;&lt;endl;</font>
<br><font size=2 face="sans-serif">}</font>
<br><font size=2 face="sans-serif">-------------------------------------</font>
<br>
<br><font size=2 face="sans-serif">I tried OsiSolverInterface::getColName(),
but it returns names like &quot;C000001&quot;, not the original variable
names in the LP file. </font>
<br>
<br><font size=2 face="sans-serif">Cheers</font>
<br><font size=2 face="sans-serif">Paul Huang</font>