coin-or / coin-or/pulp

Can't use options file with HiGHS_CMD solver

Open
#648 1 comment 1 reaction 0 assignees View on GitHub
HiGHs
Dominant language
Python
Stars
2.5k
Forks
432
PR merge metrics
No merged PRs in 30d

Description

In the official documentation: [https://coin-or.github.io/pulp/technical/solvers.html#pulp.apis.HiGHS_CMD](url)
it is said that it is possible to pass a list of additional options to be used by `HiGHS_CMD` solver, using the parameter `options`
Checking `highs --help` you can see the list of parameters available
In case that you want to pass the option '--options_file', the following error appears: Multiple options files not implemented.

The reason why this is happening is because highs_api.py, inside the function actualSolve uses by default that option, so the user can't use this option because pulp already does.

Contributor guide

Open the contributing guide

Research direction

Start in highs_api.py at the actualSolve function and trace how the default options file is passed to HiGHS_CMD. Reproduce the error with the documented options parameter and an --options_file value, then verify that user-provided options files work without the multiple-options-file error.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.