Skip to content

.mps and .sol imports for python wrapper #4650

@silvioba

Description

@silvioba

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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions