coin-or / pulp

A python Linear Programming API
http://coin-or.github.io/pulp/
Other
2.06k stars 383 forks source link

Highs object has no attribute 'setLogCallback' #748

Open Cristian-Mattace opened 5 months ago

Cristian-Mattace commented 5 months ago

Hi everyone, I have PuLP v2.8.0 with HiGHS solver v1.7.1.dev1, but when I want to solve my problem, this error occurs:

env/lib/python3.12/site-packages/pulp/apis/highs_api.py", line 329, in createAndConfigureSolver
    lp.solverModel.setLogCallback(*callbackTuple)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'Highs' object has no attribute 'setLogCallback'. Did you mean: 'setCallback'?

In the file _highsapi.py if you comment the line 329, the solver works, but without logFile.

Anyone solved this problem?