<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hi Forrest,<br>
    <br>
    Yes, to inherit from CbcBranchDynamicDecision and to override
    betterBranch makes it work !<br>
    <br>
    Perhaps an updated example should be included in the CBC
    distribution (e.g. the one you send-me).<br>
    <br>
    The example which is included now (CbcBranchUser.cpp) inherits from
    CbcBranchDecision and overrides bestBranch - could not make it work
    this way.<br>
    <br>
    Thanks and Merry Christmas.<br>
    <br>
    Haroldo<br>
    <br>
    <br>
    <br>
    On 23-12-2011 08:29, John Forrest wrote:
    <blockquote cite="mid:4EF45826.9020906@fastercoin.com" type="cite">Haroldo,
      <br>
      <br>
      Maybe you have to derive from CbcBranchDynamicDecision - anyway
      that works - see attached.
      <br>
      <br>
      John Forrest
      <br>
      <br>
      On 22/12/11 21:57, Haroldo Gambini Santos wrote:
      <br>
      <blockquote type="cite">Hi Forrest,
        <br>
        <br>
        Put a printf inside betterBranch&nbsp; and&nbsp; bestBranch&nbsp; in my class
        derived
        <br>
        from CbcBranchDecision&nbsp;&nbsp; and&nbsp;&nbsp; set&nbsp;&nbsp; cbcMode-&gt;setBranching
        method for an
        <br>
        object of this class but after solving (many nodes processes) it
        appears
        <br>
        that this was never called since I got no output from the
        expected
        <br>
        messages. What I am missing ?
        <br>
        <br>
        <br>
        On 21-12-2011 06:20, John Forrest wrote:
        <br>
        <blockquote type="cite">Haroldo,
          <br>
          <br>
          <br>
          You want betterBranch.&nbsp; bestBranch was older and is only
          called if there are no dynamic pseudo costs etc etc.
          <br>
          <br>
          You may also want to derive from
          CbcSimpleIntegerDynamicPseudoCost to give yourself even more
          control.
          <br>
          <br>
          John
          <br>
          <br>
          On 20/12/11 19:06, Haroldo Gambini Santos wrote:
          <br>
          <blockquote type="cite">Dear All,
            <br>
            <br>
            I would like to insert a code in my solver (built using cbc)
            to decide which variable to branch and the direction.
            <br>
            <br>
            What should I do ? Write a callback ? To specialize some
            class ?
            <br>
            <br>
            Tried to create a class derived from
            <br>
            CbcBranchDecision, override the method&nbsp; bestBranch&nbsp; and call
            cbcModel-&gt;cbcBranchingMethod for this class but
            apparently this method was not even called (put a printf
            inside to check).
            <br>
            <br>
            Regards,
            <br>
            <br>
            Haroldo
            <br>
            <br>
            <br>
            _______________________________________________
            <br>
            Cbc mailing list
            <br>
            <a class="moz-txt-link-abbreviated" href="mailto:Cbc@list.coin-or.org">Cbc@list.coin-or.org</a>
            <br>
            <a class="moz-txt-link-freetext" href="http://list.coin-or.org/mailman/listinfo/cbc">http://list.coin-or.org/mailman/listinfo/cbc</a>
            <br>
            <br>
            <br>
          </blockquote>
          <br>
          _______________________________________________
          <br>
          Cbc mailing list
          <br>
          <a class="moz-txt-link-abbreviated" href="mailto:Cbc@list.coin-or.org">Cbc@list.coin-or.org</a>
          <br>
          <a class="moz-txt-link-freetext" href="http://list.coin-or.org/mailman/listinfo/cbc">http://list.coin-or.org/mailman/listinfo/cbc</a>
          <br>
        </blockquote>
        <br>
        <br>
        <br>
      </blockquote>
      <br>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Cbc mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Cbc@list.coin-or.org">Cbc@list.coin-or.org</a>
<a class="moz-txt-link-freetext" href="http://list.coin-or.org/mailman/listinfo/cbc">http://list.coin-or.org/mailman/listinfo/cbc</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>