While migrating the core of PuLP to Rust, I got an interesting error that I'm now sharing.
In windows all tests pass and everything looks reasonable. However, when I try to run the same code on Linux, I get a segmentation fault only when I try to use HiGHS as a solver through the python API (highspy). So PuLP in Rust + Linux + HiGHS python API = segmentation fault. It fails at the first test, any test.
Some expensive LLM agent finally managed to "solve it" in pulp, or more accurately find a workaround.It's possible to look for the esoteric fix here: https://github.com/coin-or/pulp/blob/rust_core/pulp/__init__.py. I have no idea if the fix makes sense. Do any of you?
While migrating the core of PuLP to Rust, I got an interesting error that I'm now sharing.
In windows all tests pass and everything looks reasonable. However, when I try to run the same code on Linux, I get a segmentation fault only when I try to use HiGHS as a solver through the python API (highspy). So PuLP in Rust + Linux + HiGHS python API = segmentation fault. It fails at the first test, any test.
Some expensive LLM agent finally managed to "solve it" in pulp, or more accurately find a workaround.It's possible to look for the esoteric fix here: https://github.com/coin-or/pulp/blob/rust_core/pulp/__init__.py. I have no idea if the fix makes sense. Do any of you?