[Cbc] CLI-like solve with API
John Forrest
john.forrest at fastercoin.com
Sat Jul 26 14:45:02 EDT 2014
Matthew,
Look at driver4.cpp in Cbc/examples. 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 list
> Cbc at list.coin-or.org
> http://list.coin-or.org/mailman/listinfo/cbc
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.coin-or.org/pipermail/cbc/attachments/20140726/5cf1b62b/attachment.html>
More information about the Cbc
mailing list