I use the COIN-OR CBC solver to solve some problems of numerical optimization. I am structuring the optimization problem in Python through PuLP.
I noticed that solvers like GUROBI and CPLEX create log files, but I cannot figure out how to get CBC to create a log file (as opposed to printing optimizer progress on screen).
Does anyone know of an option in CBC to install a log file? Re-redirecting all stdout to a file does not work for me, since I solve a bunch of problems in parallel and want their log files to be split.
Here is an example of what I call a solver. This works great and prints progress on the terminal.
prob.solve(pulp.COIN_CMD(msg=1, options=['DivingVectorlength on','DivingSome on']))
This is how I think the solution should be structured (although, obviously, LogFileName is not a valid CBC option).
prob.solve(pulp.COIN_CMD(msg=1, options=['DivingVectorlength on', 'DivingSome on', 'LogFileName stats.log']))
Any help on this would be greatly appreciated. I spend over the Internet, documents, and an interactive CBC session for hours trying to figure this out.
source
share