Add support for bound type MI
in pulp.LpProblem.fromMPS
#792
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Adds support for
MI
bounded variables in thepulp.LpProblem.fromMPS
method .This addresses Issue #791.
Changes
Added an additional clause to
readMPSSetBounds
inpulp.mps_lp
.Added a test to
BaseSolverTest.PuLPTest
calledtest_importMPF_MI_bound
, which is similar in form to the existingtest_importMPS_PL_bound
method. An additional global variable is created, calledEXAMPLE_MPS_MI_BOUNDS
which is similar in form to the existingEXAMPLE_MPS_PL_BOUNDS
variable.Tests pass on Windows 11, with the
PULP_CBC_CMD
solver. Additional testing with more solvers is requested.Documentation was re-built, but no changes are present.
isort
also cleaned up the order of imports in each of the changed files. Let me know if this was inappropriate.Next Steps
Testing with additional solvers should be considered by those more familiar with the project. I do not have licensing for most of the supported solvers so that testing was not done on my part. However, this change doesn't touch any of the library related to the solver APIs.