1
$\begingroup$

How to save log file from pulp , log including algorithms used by the solver ?

while this is printed in the python IDE console, looking to save it as a txt file .

$\endgroup$

1 Answer 1

3
$\begingroup$

You can use the logPath argument:

prob.solve(pulp.PULP_CBC_CMD(msg=1,logPath="info.log")

More information can be found here:

https://coin-or.github.io/pulp/technical/solvers.html#pulp.apis.COIN_CMD

$\endgroup$
1
  • $\begingroup$ Any idea wat it could be for xpress pulp interface? $\endgroup$
    – 21vs
    Jan 17 at 5:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.