<div>John,</div><div>š</div><div>I am cbc-user only. I don't know compile options. And Išafraidšto change them.</div><div>In my opinion flush should be switched on by default. And it can be switched off by cbc.exe command.</div><div>š</div><div>There is a second issue with standalone solver. It's output accuracity in messages (filešCoinMessage.cpp).</div><div>My application parse redirected output of cbc.exe and show record / distance_to_possible_optimum to user. Mathematical model is pure integer and optimum of problem is big.šRuntimešand final results can be different because there is rounds in output. Users are some confused.š</div><div>š</div><div>So, I always modify 2 files of distributed code. Today it is simplest way to me.</div><div>š</div><div>š</div><div>03.10.2015, 20:36, "John Forrest" <john.forrest@fastercoin.com>:</div><blockquote type="cite"><div bgcolor="#FFFFFF"><div>So that you don't have to modify distributed code, I could add<br /> <br /> #ifdef FLUSH_PRINT_BUFFER<br /> šš fflush(fp_);<br /> #endif<br /> <br /> and then it would be a configure option. <br /> <br /> What do people think?<br /> <br /> John Forrest<br /> <br /> On 03/10/15 15:51, <a href="mailto:design@np-soft.ru">design@np-soft.ru</a> wrote:</div><blockquote cite="mid:593241443883872@web19m.yandex.ru" type="cite"><div>I have the same problem with cbc.exe.</div><div>š</div><div>You can add follow row to thešCoinMessageHandler::print() in the filešCoinMessageHandler.cpp:</div><div>š fflush(fp_);š</div><div>This row must be inserted before return 0;</div><div>š</div><div>03.10.2015, 17:15, "Jack Dunn" <a href="mailto:jack.dunn.nz@gmail.com"><jack.dunn.nz@gmail.com></a>:</div><blockquote type="cite"><div>Hi,<div>š</div><div>I'm running Cbc in a pipe to capture stdout/stderr, and I want to display the solve process in real-time. It seems like Cbc switches to using a 4K buffer rather than line-buffered writes when it detects it isn't running interactively. Is there a way to force Cbc's writes to be line-buffered? I want to avoid having to run the command through a pseudo tty if possible.</div><div>š</div><div>Thanks,</div><div>Jack</div></div>,<p>_______________________________________________<br /> Cbc mailing list<br /> <a href="mailto:Cbc@list.coin-or.org">Cbc@list.coin-or.org</a><br /> <a href="http://list.coin-or.org/mailman/listinfo/cbc">http://list.coin-or.org/mailman/listinfo/cbc</a></p></blockquote><br /> <br /><pre>_______________________________________________
Cbc mailing list
<a href="mailto:Cbc@list.coin-or.org">Cbc@list.coin-or.org</a>
<a href="http://list.coin-or.org/mailman/listinfo/cbc">http://list.coin-or.org/mailman/listinfo/cbc</a>
</pre></blockquote></div>,<p>_______________________________________________<br />Cbc mailing list<br /><a href="mailto:Cbc@list.coin-or.org">Cbc@list.coin-or.org</a><br /><a href="http://list.coin-or.org/mailman/listinfo/cbc">http://list.coin-or.org/mailman/listinfo/cbc</a></p></blockquote>