coin-or / pulp

A python Linear Programming API

Home Page:http://coin-or.github.io/pulp/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PulpSolverError: ('Pulp: Error while executing', '/Applications/HiGHSstatic.v1.5.3.aarch64-apple-darwin/bin/highs') for HiGHS

yahyamert opened this issue · comments

Hey everyone,

I'm trying to run HiGHS on my Mac using PuLP interface. As advised on other entries, I have downloaded pre-compiled binaries from the https://github.com/JuliaBinaryWrappers/HiGHSstatic_jll.jl/releases.

I've extracted .tar file and then in my code I've given the path to the .exec file. I don't really know where I'm missing.

Screenshot 2023-12-31 at 02 30 48

@samiit and @odow I would really appreciate your help.

Do you have an M1 or M2 Mac? What is the full error? Do you have a reproducible example?

Hello odow,

I use M2 MacBook Air. I do this steps:

I download binaries: https://github.com/JuliaBinaryWrappers/HiGHSstatic_jll.jl/releases/download/HiGHSstatic-v1.6.0%2B0/HiGHSstatic-logs.v1.6.0.x86_64-apple-darwin.tar.gz

Then I move .tar file to users and extract the folder there.

Then I try to run executable file but it gives this error:

Screenshot 2024-01-02 at 10 41 12

I have tried to run from PuLP. When I do this I get this error:

Screenshot 2024-01-02 at 10 43 38

Since it hasn't worked. I've downloaded HiGHS from Conda with the command:

conda install -c conda-forge highs

Now I don't even need to show path. I can directly run HiGHS through: model.solve(HiGHS_CMD) which I'm not sure how it works.

For now problem has been solved for me but I would love to deep dive if someone else faces the same issue.

HiGHS_CMD works without the path because you've added the path to the solver to your system PATH environment variable when you installed with conda.

You probably had a bad version of HiGHS installed previously.

I'm closing as is not related to pulp.