.mps and .sol imports for python wrapper #4652
Unanswered
silvioba
asked this question in
CP-SAT questions
Replies: 2 comments 1 reply
-
|
you can import MPS with model_builder. Using the CP-SAT api is not recommended as it mostly does not support floating point except for coefficient objectives. |
Beta Was this translation helpful? Give feedback.
1 reply
-
|
ParseSolFile is implemented in C++ but it is not wrapped in python or any non C++ language. |
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 language and solver does this apply to?
Python, C++ / CP-SAT
Describe the problem you are trying to solve.
It would be very handy to be able to import mps (.mps) files and a solution hint (.sol) files into the python wrapper
Describe the solution you'd like
I am thinking about a new method for the class CpModel (or maybe a constructur) which takes a filepath for a .mps file and optionally a filepath for a .sol file
Describe alternatives you've considered
Currently I just launch the cpp program directly (from within python) with these flags, but then have to import the solution again, which is suboptimal.
Beta Was this translation helpful? Give feedback.
All reactions