Thanks!<br><br>1) Yes it works!<br><br>2) I do preprocessing passing arguments to CbcMain1 like in driver4.cpp but I will start experimenting on this.<br><br><div class="gmail_quote">On Wed, Mar 25, 2009 at 4:38 AM, John J Forrest <span dir="ltr">&lt;<a href="mailto:jjforre@us.ibm.com">jjforre@us.ibm.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div>
<p>1) Setting CbcModel::setSpecialOptions(32|specialOptions()) should make CbcModel keep names.  Not sure if it still works.<br>
<br>
2)  If you do preprocessing outside CbcModel::branchAndBound and pass in CglPreProcess xxxxxx into MyHeuristic before adding MyHeuristic to CbcModel then you can use xxxxxx.originalColumns() to see which ones were kept.  You could also access xxxxxx.originalModel() to get at names, which may be a cleaner method than 1).<br>

<br>
John Forrest <br>
<br>
<img alt="Inactive hide details for Robinson ---03/20/2009 04:11:08 PM---Hello everyone!" width="16" border="0" height="16"><font color="#424282">Robinson ---03/20/2009 04:11:08 PM---Hello everyone!</font><br>
<br>

</p><table width="100%" border="0" cellpadding="0" cellspacing="0">
<tbody><tr valign="top"><td width="1%"><img alt="" width="96" border="0" height="1"><br>
<font size="2" color="#5f5f5f">From:</font></td><td width="100%"><img alt="" width="1" border="0" height="1"><br>
<font size="2">Robinson &lt;<a href="mailto:robmnk@gmail.com" target="_blank">robmnk@gmail.com</a>&gt;</font></td></tr>

<tr valign="top"><td width="1%"><img alt="" width="96" border="0" height="1"><br>
<font size="2" color="#5f5f5f">To:</font></td><td width="100%"><img alt="" width="1" border="0" height="1"><br>
<font size="2"><a href="mailto:cbc@list.coin-or.org" target="_blank">cbc@list.coin-or.org</a></font></td></tr>

<tr valign="top"><td width="1%"><img alt="" width="96" border="0" height="1"><br>
<font size="2" color="#5f5f5f">Date:</font></td><td width="100%"><img alt="" width="1" border="0" height="1"><br>
<font size="2">03/20/2009 04:11 PM</font></td></tr>

<tr valign="top"><td width="1%"><img alt="" width="96" border="0" height="1"><br>
<font size="2" color="#5f5f5f">Subject:</font></td><td width="100%"><img alt="" width="1" border="0" height="1"><br>
<font size="2">[Cbc] Variables Names and Preprocess</font></td></tr>
</tbody></table>
<hr style="color: rgb(128, 145, 165);" size="2" width="100%" align="left" noshade><br>
<br>
<br>
<font size="4"><div><div></div><div class="h5">Hello everyone!<br>
I&#39;m having some troubles (2 in fact) and I hope someone could guide me.<br>
<br>
1) Suppose I&#39;ve created a class MyHeuristic extended from CbcHeuristic. Now, would I be able to recover the variables names from inside MyHeuristic::solution(...) method? I&#39;ve wrote my code based on driver4.cpp.  Even setting osidiscipline to 2 it won&#39;t work. It prints the default names only (from solution(...) method). <br>

<br>
2) There is a way(inside Cbc) to know which columns were dropped after the preprocess?<br>
<br>
Thanks!<br>
<br>
-- <br>
<br></div></div>
robinson minali nakamura</font><tt>_______________________________________________<br>
Cbc mailing list<br>
<a href="mailto:Cbc@list.coin-or.org" target="_blank">Cbc@list.coin-or.org</a><br>
</tt><tt><a href="http://list.coin-or.org/mailman/listinfo/cbc" target="_blank">http://list.coin-or.org/mailman/listinfo/cbc</a></tt><tt><br>
</tt><br>
<br>
</div>
<br>_______________________________________________<br>
Cbc mailing list<br>
<a href="mailto:Cbc@list.coin-or.org">Cbc@list.coin-or.org</a><br>
<a href="http://list.coin-or.org/mailman/listinfo/cbc" target="_blank">http://list.coin-or.org/mailman/listinfo/cbc</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br><br>robinson minali nakamura<br>