<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hi John,<br>
    <br>
    there is demand for continuous solution output so I am trying this.
    Looks like I need a method to obtain the PreProcess object during
    solving (because it is created in CbcMain1). BTW you say postsolve
    deletes data but the 2nd parameter could be used to avoid this?<br>
    <br>
    What is the usage of the callback function opposed to the event
    handler? I don't see how I can use the callback because in
    interrupt.cpp the MyEventHandler3 class is used to print a solution.<br>
    <br>
    Gleb<br>
    <div class="moz-cite-prefix"><br>
    </div>
    <blockquote cite="mid:56CBDE2D.9000703@monash.edu" type="cite"><br>
      <pre>Gleb,

On 08/10/15 05:56, Gleb Belov wrote:
><i> Hi, what is currently good way to have a solution callback in Cbc? the 
</i>><i> interrupt example shows 2 ways, don't know which is right.
</i>><i>
</i>
It is the event handling code you would be using.
><i> Moreover, it says that the solution would be given for the 
</i>><i> preprocessed model. Is it possible to produce one for the original? 
</i>
At present no.  In principle not difficult.  First the callback function 
would have to be modified to get passed the CglPreProcess object - 
easy.  Then in event handler you could make a copy of object and 
postsolve (you need a copy as postsolve deletes data).
><i> Is it possible to call other functions from inside, such as number of 
</i>><i> nodes, dual bound?
</i>
Yes - you have CbcModel * model_ so things like that are available (or 
could easily be made available)

><i>
</i>><i> Thanks
</i>><i>
</i>
John Forrest
</pre>
      <br>
    </blockquote>
    <br>
  </body>
</html>