Replies: 2 comments
-
|
No pre-defined function. But PuLP generates an MPS file to communicate to solvers. I'm sure the MPS format is close to your definition of matrix. And maybe you can find a tool that converts an MPS file into the simplex matrix. https://en.wikipedia.org/wiki/MPS_(format) |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
As we've just been discussing in #802, one way to potentially do this would be to grab the MPS file written out by PuLP (not sure how one would do this part), then use CyLP to read in the MPS file and create a model, which would be in terms of numpy matrices and vectors. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
What is the correct way to "recover" c, A, lb, and ub variables as
np.ndarraysmatrices from an already definedLpProblem? I need to translate a codebase that is usingpulp.LpProbleminto a codebase relying onscipy.optimize.milp. I've tried the following function, but this seems incorrect as scipy and pulp give different solutions:The specific model I'm working for is a 0/1 integer program.
Is there a pre-defined function that can facilitate this transition from PuLP into c,A,lb,ub arrays?
Beta Was this translation helpful? Give feedback.
All reactions