My cplex script does not work on python with no error

139 views Asked by At

I have been using Cplex and docplex (on python) on my PC for a long time and it was working fine. But lately when I run my script it starts the engine but it sticks at the beginning for a very long time (24 hours maybe) and then it terminates the process with no solutions and no error. When I use conflict_refiner same thing happens, it sticks on checking conflicts, it does not finish checking conflicts and it does not return any conflicts. I tested my script on other device and it was working fine. I can not understand the problem. Here are my device info:

Windows: 10
python (anaconda): 3.6.9
Spyder: 3.6
Cplex studio: 12.10.0
docplex :2.15.194

Edit: Current model log_output freezes here:

       Nodes                                         Cuts/
   Node  Left     Objective  IInf  Best Integer    Best Bound    ItCnt     Gap

      0     0        0.0000 72605                      0.0000        7         
1

There are 1 answers

5
Philippe Couronne On

So, you are saying that your Python program started behaving differently, all things being equal?

It is not possible to answer without knowing what exactly is your program doing? It is solving a model? If so did you turn on logging by passing log_output=True, if this is the case, does the log differ?

If your problem has no solution, the conflict refiner may sometimes take very long time. I suggest you try the docplex.mp.Relaxer class, which implements a relaxation algorithm. It usually runs faster, but does not answer the same question. Relaxer tries to minimize slack to make the problem feasible, and shows you which constraints had to be relaxed, and by how much slack.