<p dir="ltr">Probably because the model is pre processed and some variables just were removed. </p>
<p dir="ltr">The originaLcolumns vector in the osi interface will give the connection with the old variables.</p>
<p dir="ltr">Cheers</p>
<div class="gmail_quote">Em 20/06/2013 15:10, &quot;Alexis Guigue&quot; &lt;<a href="mailto:aguigue@softree.com">aguigue@softree.com</a>&gt; escreveu:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi<br>
<br>
I have reused the class CbcEventHandler in my code. I am facing some issues trying to use the pointer model_.<br>
<br>
In the function event, at the end of each node (i.e. whichEvent==node), I need to retrieve:<br>
- the  current best objective. I do it using model_-&gt;<u></u>getMinimizationObjValue(). This seems ok.<br>
- the best possible objective. I do it using model_-&gt;<u></u>getBestPossibleObjValue(). This seems ok.<br>
- the value of a particular variable, say &quot;DUMMY&quot;. I have stored the column index of &quot;DUMMY&quot;<br>
when I created the model.  I want to get the value of this variable for the best solution.<br>
So I do, double *argmin = model_-&gt;bestSolution() and then argmin[INDEXDUMMY].<br>
It just does not work. I am sure about that, because in the instance I have been testing,<br>
it happens that I have the constraints DUMMY = 0 (DUMMY is a continuous variable<br>
by the way)<br>
<br>
Any idea????<br>
<br>
Thanks in advance<br>
<br>
-- <br>
Alexis Guigue, E.I.T., B.Eng., <a href="http://M.A.Sc" target="_blank">M.A.Sc</a>., Ph.D.<br>
Software Engineer/Research Engineer<br>
<a href="mailto:aguigue@softree.com" target="_blank">aguigue@softree.com</a><br>
<a href="tel:604-519-6222%2C%20ext.%203" value="+16045196222" target="_blank">604-519-6222, ext. 3</a><br>
<br>
Softree Technical Systems Inc.<br>
Engineering an Easier Way<br>
<a href="http://www.softree.com" target="_blank">www.softree.com</a><br>
<br>
______________________________<u></u>_________________<br>
Cbc mailing list<br>
<a href="mailto:Cbc@list.coin-or.org" target="_blank">Cbc@list.coin-or.org</a><br>
<a href="http://list.coin-or.org/mailman/listinfo/cbc" target="_blank">http://list.coin-or.org/<u></u>mailman/listinfo/cbc</a><br>
</blockquote></div>