Is it possible to set different types of integrality constraints?
- Dominant language
- Linear Programming
- Stars
- 600
- Forks
- 108
- PR merge metrics
- No merged PRs in 30d
Description
Dear MIP Team,
thank you for the package! I am familiarizing myself with it and unfortunately I was not able to find the answer in the documentation.
Is it possible to set various integrality constraints modes in MIP? (like e.g. in [milp from scipy](https://scipy.github.io/devdocs/reference/generated/scipy.optimize.milp.html)):
> **integrality** 1D array_like, optional
Indicates the type of integrality constraint on each decision variable.
0 : Continuous variable; no integrality constraint.
1 : Integer variable; decision variable must be an integer within bounds.
2 : Semi-continuous variable; decision variable must be within bounds or take value 0.
3 : Semi-integer variable; decision variable must be an integer within bounds or take value 0.
I found only the _relax_ parameter of the _optimize_ function, but this is not enough for my problem (I actually want to implement the case 3 of the listed above)
Many thanks!
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.