Skip to content

Error removing constraints #1

@sfleuren

Description

@sfleuren

Been using this package with pleasure.

However, I may have detected an error. When removing a constraint I got the following error:

File "/usr/local/lib/python3.7/site-packages/mip/cbc.py", line 767, in remove_constrs
cbclib.Cbc_deleteRows(self._model, idx)
TypeError: 'void(*)(void *, int, int *)' expects 3 arguments, got 2

If the interface from the link below is used, then indeed three arguments are expected:
https://www.coin-or.org/Doxygen/CoinAll/_cbc___c___interface_8h.html#a769db426ae492baea43be8c2d459924

I suspect the same holds for removing a variable.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions