[go: nahoru, domu]

Skip to content

Timelimit and MipGap using CyLP interface for CBC #127

Answered by tkralphs
marcobonelli asked this question in Q&A
Discussion options

You must be logged in to vote

This is a good question. I poked around a bit and I could not see a way to pass in arbitrary parameters (I'm not the original author of CyLP). I'm kind of surprised that these particular parameters don't seem to be supported, though. It shouldn't be that hard to hack something up if you're comfortable modifying the source code of CyLP. This is where the parameters would get passed:

const char* argv[] = {"ICbcModel", "-solve","-quit"};
CbcMain0(*this);
this->setLogLevel(logLevel);
return CbcMain1(3, argv, *this);

Right now, they're hard-coded, but it would not be hard to make the solve() call of CyCbcMod…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@marcobonelli
Comment options

@tkralphs
Comment options

Answer selected by marcobonelli
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants