<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Thanks for this answer. I will dig into
this.<br>
<br>
What is interesting is that in my main code, it does not seem to
be the case, i.e.,<br>
<br>
double *argmin = cbcModel.bestSolution(); <br>
<br>
where cbcModel is my main CbcModel object provides the ''full''
original<br>
set of variables<br>
<br>
On 2013-06-20 4:37 PM, Haroldo Santos wrote:<br>
</div>
<blockquote
cite="mid:CACO7Fp1TbMFEe7jr8FXjg2ssyDMooY9hv6stKTSc=dGwRajeQw@mail.gmail.com"
type="cite">
<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, "Alexis Guigue" <<a
moz-do-not-send="true" href="mailto:aguigue@softree.com">aguigue@softree.com</a>>
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_->getMinimizationObjValue().
This seems ok.<br>
- the best possible objective. I do it using model_->getBestPossibleObjValue().
This seems ok.<br>
- the value of a particular variable, say "DUMMY". I have
stored the column index of "DUMMY"<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_->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 moz-do-not-send="true"
href="http://M.A.Sc" target="_blank">M.A.Sc</a>., Ph.D.<br>
Software Engineer/Research Engineer<br>
<a moz-do-not-send="true" href="mailto:aguigue@softree.com"
target="_blank">aguigue@softree.com</a><br>
<a moz-do-not-send="true"
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 moz-do-not-send="true" href="http://www.softree.com"
target="_blank">www.softree.com</a><br>
<br>
_______________________________________________<br>
Cbc mailing list<br>
<a moz-do-not-send="true" href="mailto:Cbc@list.coin-or.org"
target="_blank">Cbc@list.coin-or.org</a><br>
<a moz-do-not-send="true"
href="http://list.coin-or.org/mailman/listinfo/cbc"
target="_blank">http://list.coin-or.org/mailman/listinfo/cbc</a><br>
</blockquote>
</div>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
Alexis Guigue, E.I.T., B.Eng., M.A.Sc., Ph.D.
Software Engineer/Research Engineer
<a class="moz-txt-link-abbreviated" href="mailto:aguigue@softree.com">aguigue@softree.com</a>
604-519-6222, ext. 3
Softree Technical Systems Inc.
Engineering an Easier Way
<a class="moz-txt-link-abbreviated" href="http://www.softree.com">www.softree.com</a>
</pre>
</body>
</html>