Solve a problem with the SCIP_CMD solver, with options=["set presolving emphasis aggressive", "set heuristics emphasis aggressive"].
What did you expect to see?
The options are added as CLI parameters to the SCIP call.
What did you see instead?
status = solver.actualSolve(self, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/tim/.cache/pypoetry/virtualenvs/optimizer--RycKOkC-py3.11/lib/python3.11/site-packages/pulp/apis/scip_api.py", line 151, in actualSolve
if option.starts_with("-"):
^^^^^^^^^^^^^^^^^^
AttributeError: 'str' object has no attribute 'starts_with'. Did you mean: 'startswith'?
Details for the issue
What did you do?
Solve a problem with the
SCIP_CMD
solver, withoptions=["set presolving emphasis aggressive", "set heuristics emphasis aggressive"]
.What did you expect to see?
The options are added as CLI parameters to the SCIP call.
What did you see instead?
Looks like we just have to replace
starts_with
withstartswith
in this line: https://github.com/coin-or/pulp/blob/006753076be18ee857339d333a5db11e599f21a2/pulp/apis/scip_api.py#L151Useful extra information
The info below often helps, please fill it out if you're able to. :)
What operating system are you using?
I'm using python version:
I installed PuLP via:
rev="006753076be18ee857339d333a5db11e599f21a2"
Did you also