<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"Comic Sans MS";
        panose-1:3 15 7 2 3 3 2 2 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Comic Sans MS";
        color:black;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Comic Sans MS";
        color:black;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=NL link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><span lang=EN-US>Hi,<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span lang=EN-US>I would like the user to decide to stop the
mip-optimization based on some characteristics of the best integer solution so far.<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US>Often solutions obtained in an early stage
of the optimization are already quite acceptable for the user.<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span lang=EN-US>What I do now is </span><span lang=EN-US>in
</span><span lang=EN-GB style='color:windowtext'>CbcCompareUser::test:<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-GB style='color:windowtext'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span lang=EN-GB style='color:windowtext'>// Test function
key PF3 <o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-GB style='color:windowtext'>If pressed: model-&gt;setMaximumSeconds(0.001);<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-GB style='color:windowtext'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span lang=EN-GB style='color:windowtext'>And the optimization
stops gracefully.<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-GB style='color:windowtext'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span lang=EN-GB style='color:windowtext'>However if lots of
cuts and heuristics are used the test function is not called frequently and pressing
PF3 is not noticed by the program.<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-GB style='color:windowtext'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span lang=EN-GB style='color:windowtext'>Is it possible to
define a frequently called hook in Coin where you can ask for the best solution
so far and can specify that the optimization should be ended with the best
solution?<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-GB style='color:windowtext'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span lang=EN-GB style='color:windowtext'>Regards<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-GB style='color:windowtext'>Rolf Steenge</span><span
lang=EN-US><o:p></o:p></span></p>

</div>

</body>

</html>