[Cbc] CLI-like solve with API

Matthew Gidden gidden at wisc.edu
Sun Jul 27 11:02:42 EDT 2014


Hi John,




On Sat, Jul 26, 2014 at 1:45 PM, John Forrest <john.forrest at fastercoin.com>
wrote:

>  Matthew,
>
> Look at driver4.cpp in Cbc/examples.
>
I'm playing around with this right now. Just using CbcMain0 and CbcMain1
get's within an order of magnitude of the CLI execution. I'll keep at it.
Thanks for the input!

> You could easily turn some of that into your SolveModelLikeCli (with
> optional string of parameters).
>
> John Forrest
>
>
> On 26/07/14 00:06, Matthew Gidden wrote:
>
> Hi all,
>
>  I've discovered that the cbc CLI does a pretty good job at solving my
> class of problems.  In short, I'm curious if there's a way to get that rich
> functionality at the API level. Ideally, I'd like to do something like the
> following:
>
>  model = ConstructModel();
>> SolveModelLikeCLI(model);
>
>
>  It looks like the implementation is one long function (cbcMain1 is 8k+
> lines) and would be incredibly difficult to cherry-pick implementation from
> it. I've scoured the API docs and haven't found anything that looks
> promising. Alternatively, is there a listing of all the heuristics, cuts,
> branching strategies, etc., used by the default CLI?
>
>  Sorry if this is an obvious question; I was hoping to leverage the
> features already implemented before reimplementing something myself.
>
>  --
> Matthew Gidden
> Ph.D. Candidate, Nuclear Engineering
> The University of Wisconsin -- Madison
> Ph. 225.892.3192
>
>
> _______________________________________________
> Cbc mailing listCbc at list.coin-or.orghttp://list.coin-or.org/mailman/listinfo/cbc
>
>
>
> _______________________________________________
> Cbc mailing list
> Cbc at list.coin-or.org
> http://list.coin-or.org/mailman/listinfo/cbc
>
>


-- 
Matthew Gidden
Ph.D. Candidate, Nuclear Engineering
The University of Wisconsin -- Madison
Ph. 225.892.3192
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.coin-or.org/pipermail/cbc/attachments/20140727/502a7bb5/attachment.html>


More information about the Cbc mailing list