<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Matthew,<br>
      <br>
      Your approach is reasonable.  If you look at driver4.cpp you will
      see that it checks for heuristicSolution as well as solution.<br>
      <br>
      If you are using this to check whether to stop you may also wish
      to check when event is treeStatus - and then pick up 
      getBestPossibleObjValue() so that you can look at gap.<br>
      <br>
      John Forrest<br>
      On 30/07/14 21:43, Matthew Gidden wrote:<br>
    </div>
    <blockquote
cite="mid:CAHRdPFwmhtthN5nsB0VO4KfPi9fwLq7vCpknT4NZuMYAaT9wqA@mail.gmail.com"
      type="cite">
      <div dir="ltr">Hi all,
        <div><br>
        </div>
        <div>I'd like to determine the time a cbc solve takes to pass a
          given objective value threshold. My approach is to implement a
          custom event handler, and I wanted to double check that this
          is reasonable.</div>
        <div><br>
        </div>
        <div>I have a gist up here: <a moz-do-not-send="true"
            href="https://gist.github.com/gidden/ffb6e4321c74025bf526">https://gist.github.com/gidden/ffb6e4321c74025bf526</a>,
          and I pass in the custom event handler to the model before
          trying to solve it (using CbcMain0/1).</div>
        <div><br>
        </div>
        <div>I'm curious if <span class=""
            style="color:rgb(51,51,51);font-family:Consolas,'Liberation
Mono',Menlo,Courier,monospace;font-size:12px;line-height:16.799999237060547px;white-space:pre">CbcEventHandler</span><span
            class=""
            style="font-weight:bold;color:rgb(51,51,51);font-family:Consolas,'Liberation
Mono',Menlo,Courier,monospace;font-size:12px;line-height:16.799999237060547px;white-space:pre">::</span><span
            class=""
            style="color:rgb(51,51,51);font-family:Consolas,'Liberation
Mono',Menlo,Courier,monospace;font-size:12px;line-height:16.799999237060547px;white-space:pre">solution
          </span>is the right event to check for. I currently have a
          instance going that is listening for events (I have a simple
          stdout print when it occurs) that has yet to report. Is there
          a better way to do this?<br clear="all">
          <div><br>
          </div>
          <div>Thanks,</div>
          <div><br>
          </div>
          -- <br>
          <div dir="ltr">Matthew Gidden<br>
            Ph.D. Candidate, Nuclear Engineering
            <div>The University of Wisconsin -- Madison<br>
              Ph. 225.892.3192<br>
            </div>
          </div>
        </div>
      </div>
      <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>