PulpSolverError: Error while executing cbc.exe

2,205 views
Skip to first unread message

Aleksandra Firkowska

unread,
Jul 8, 2018, 7:25:26 PM7/8/18
to pulp-or-discuss
Hello,

I am quite new to programming and I have been trying to use PULP for an inventory stock optimisation. I have however hit a wall.
The model is working and I am getting an optimal solution for a relatively small dataset, however when I try to run this model for a larger dataset I it not working and I am getting an error in actualSolve:
return self.solve_CBC(lp, **kwargs)

getting an error while executing the cbc.exe

I have tried and I can actually run it manually once I go into the folder.

I have also tried using model.solve(pulp.GLPK()) but this is coming up with similar error but when executing glpsol.exe

I really do not know what to do anymore as I do not have much programming/computing background and I do not understand how it works for smaller dataset but not a larger one.

Is someone able to help?
Thank you in advance!

Stuart Mitchell

unread,
Jul 8, 2018, 7:27:05 PM7/8/18
to pulp-or...@googlegroups.com
Have you looked at the amount of memory used by your computer while solving?

Stu

Stuart Mitchell
PhD Engineering Science
Extraordinary Freelance Programmer and Optimisation Guru

--
You received this message because you are subscribed to the Google Groups "pulp-or-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pulp-or-discuss+unsubscribe@googlegroups.com.
To post to this group, send email to pulp-or-discuss@googlegroups.com.
Visit this group at https://groups.google.com/group/pulp-or-discuss.
For more options, visit https://groups.google.com/d/optout.

Aleksandra Firkowska

unread,
Jul 9, 2018, 4:32:38 AM7/9/18
to pulp-or-discuss
Hi Stu, 

the memory seems to not be a big problem I do not think, as the CPU goes up to about 5%, where as the memory it uses is at 20%, still have 4.4 GB available.

Thanks


On Monday, July 9, 2018 at 12:27:05 AM UTC+1, Stuart Mitchell wrote:
Have you looked at the amount of memory used by your computer while solving?

Stu

Stuart Mitchell
PhD Engineering Science
Extraordinary Freelance Programmer and Optimisation Guru

On Sat, Jul 7, 2018 at 1:50 AM, Aleksandra Firkowska <ola.fi...@gmail.com> wrote:
Hello,

I am quite new to programming and I have been trying to use PULP for an inventory stock optimisation. I have however hit a wall.
The model is working and I am getting an optimal solution for a relatively small dataset, however when I try to run this model for a larger dataset I it not working and I am getting an error in actualSolve:
return self.solve_CBC(lp, **kwargs)

getting an error while executing the cbc.exe

I have tried and I can actually run it manually once I go into the folder.

I have also tried using model.solve(pulp.GLPK()) but this is coming up with similar error but when executing glpsol.exe

I really do not know what to do anymore as I do not have much programming/computing background and I do not understand how it works for smaller dataset but not a larger one.

Is someone able to help?
Thank you in advance!

--
You received this message because you are subscribed to the Google Groups "pulp-or-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pulp-or-discu...@googlegroups.com.
To post to this group, send email to pulp-or...@googlegroups.com.
Message has been deleted

Aleksandra Firkowska

unread,
Jul 9, 2018, 9:18:09 AM7/9/18
to pulp-or-discuss
after checking everything, I have realised one small issue that seemed to be causing the error- NaN values in datasets! Thank you for all the help

Miguel Quintero

unread,
Jun 2, 2020, 9:20:38 AM6/2/20
to pulp-or-discuss
Hi everyone, 
Aleksandra in overview means that the cbc. exe is not executing due to NaN values while it is runing right ?. Actuaaly I'm presenting the same issue right now 'pulp.solvers.PulpSolverError: Pulp: Error while trying to execute: ..... : \site-packages\pulp\solverdir\cbc\win\64\cbc.exe'
Reply all
Reply to author
Forward
0 new messages