<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Probably easiest to use Cbc/examples/driver4.cpp which acts like the
standard executable. If you look for ::event, you will see that
that prints solution every time. As it is, it has a drawback if
preprocessing has been done.<br>
<br>
driver4.cpp prints variables in preprocessed model. To fix that you
need to use originalColumns() from the CglPreProcess object which
did preprocessing. Normally this will be the global variable
cbcPreProcessPointer.<br>
<br>
John Forrest<br>
<br>
<br>
<br>
On 27/02/12 19:13, <a class="moz-txt-link-abbreviated" href="mailto:acw@ascent.com">acw@ascent.com</a> wrote:
<blockquote
cite="mid:OF61BE4FCB.C980EC20-ON852579B1.0068EFB9-852579B1.0069AAEE@ascent.com"
type="cite"><font face="sans-serif" size="2">Is there a
command-line option to make
the standard Cbc executable log intermediate solutions as they
are found?
Using default settings, the _fact_ that a solution has been
found
is logged, but we would like it to log the solution itself
(printing the
values of all nonzero variables).</font>
<br>
<br>
<font face="sans-serif" size="2">The reason we want this is that
we have
a different sort of solver running in parallel with Cbc, and we
would like
to be able to feed it "hints" as the solution process proceeds.</font>
<br>
<br>
<font face="sans-serif" size="2">Our solution so far has been to
actually
modify the Cbc main driver loop, in the source, to log store
each solution
as it is found. But it is risky and inconvenient having to
repeat
this source-surgery every time a new and improved version of Cbc
appears.
It would be a stabler solution to just interact with Cbc
through
the command-line interface.</font>
<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>