scipopt / PySCIPOpt

Python interface for the SCIP Optimization Suite
https://scipopt.github.io/PySCIPOpt
MIT License
802 stars 251 forks source link

If compile SCIP with option of TPI=tny while using whole SCIPsuite tarball, seems it makes crash #887

Open adover134 opened 1 month ago

adover134 commented 1 month ago

Describe the bug There are two environments I tried. Both used python version 3.10.

First one is Windows server 2012 R2. I used anaconda environment, and installed most recent pyscipopt with anaconda. Also I could not pre-compile with tarball since the OS does not supports the WSL. This means, I used scip which automatically installed with pyscipopt. In this case, every models I tried, even with almost 20k constraints, was optimized with showing output normally. The output was shown per every 3 to 5 minutes. I was using model.setParam("display/freq", 20000), and there was no problem in windows environment.

Second one is Ubuntu 20.04 LTS. I used miniconda environment. I downloaded the tarball of full SCIPsuite, and only replaced scip folder inside with main branch of scip. I compiled full SCIPsuite with replaced scip with option TPI=tny. Then added the installed folder as environment variable. Also I installed pyscipopt with master branch using pip. In this case, it does not showed any output - but seems it was solving since the computer made really big noise. However, when noise was stopped, jupyter kernel had timed out, and no results came out.

To Reproduce I cannot upload the experienced model, but I think if you make a model with constraints more than 10k and make similar environment as I wrote, then it can be reproduced.

Expected behavior The output table must be shown.

Screenshots Screenshot from 2024-09-05 09-49-05

Sorry that I needed to hide the codes; but as you can see, the cell which is optimizing was started almost half of day ago. However, the CPU spec of linux environment is as this: Screenshot from 2024-09-05 09-53-40 And memory spec is as this: Screenshot from 2024-09-05 09-55-32 This is almost same with windows environment which shows output very well.

System Skip this because already explained on question.

Additional context These are my theories. First, as I mentioned, I used whole SCIPsuite when compiled. Maybe I needed to compile only scip. Second, it can be a problem which happens only on Ubuntu 20.04. Third, it might be a crash from optional libraries; some optional ones were essential in reality.

adover134 commented 1 month ago

I forgot to mention; it seems this is not a segfault problem.

adover134 commented 1 month ago

https://github.com/scipopt/scip/issues/106#issue-2506886900

Seems first theory was right; rather I should say, SCIP itself has a problem.