[Cgl] Re: [Coin-discuss] generateCpp()
John J Forrest
jjforre at us.ibm.com
Mon Oct 2 22:21:34 EDT 2006
Whom else!
If a cut generator (or heuristic etc) is modified from its default
constructor and then this is called a series of lines of code is output
which changes the default generator to the current state.
I wrote it when feeling in need of light entertainment, however it has a
serious purpose. If you use the stand-alone cbc (or any other solver)
then your commands may change the behavior of the cut generators. When
you like the result you add -cpp 1 (other numbers create more output) and
lo and behold a driver is created which mimics those actions.
John Forrest
fmargot at andrew.cmu.edu
Sent by: coin-discuss-bounces at list.coin-or.org
10/02/2006 07:00 PM
Please respond to
Discussions about open source software for Operations Research
<coin-discuss at list.coin-or.org>
To
cgl <cgl at list.coin-or.org>
cc
Subject
[Coin-discuss] generateCpp()
Who did add the following method to CglCutGenerator.hpp:
// Create C++ lines to get to current state
virtual std::string generateCpp( FILE * fp) {return "";};
This is reimplemented in several (all?) generators and generate
some mysterious C++ code. What is the use of this method? Why is
it there?
Please post answers to the cgl mailing list.
Francois
_______________________________________________
Coin-discuss mailing list
Coin-discuss at list.coin-or.org
http://list.coin-or.org/mailman/listinfo/coin-discuss
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://list.coin-or.org/pipermail/cgl/attachments/20061002/2797a08a/attachment.html
More information about the Cgl
mailing list