Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add from_mps_file function for building CQMs #1228

Open
vgoliber opened this issue Jul 19, 2022 · 4 comments
Open

Add from_mps_file function for building CQMs #1228

vgoliber opened this issue Jul 19, 2022 · 4 comments
Labels
feature-request/enhancement New feature or request

Comments

@vgoliber
Copy link
Member

Application
We have a function from_lp_file. Would be good to add one as from_mps_file, as some databases provide problems in this format. Users are currently using 3rd party tools to do this conversion, and some have bugs.

@arcondello arcondello added the feature-request/enhancement New feature or request label Jul 19, 2022
@arcondello
Copy link
Member

Agree, we should have one.

@arcondello
Copy link
Member

arcondello commented Jul 19, 2022

Do we have an official recommendation in the mean time? AFAIK python-mip works pretty well.

import dimod
import mip

model = mip.Model()
model.read('example.mps')
model.write('example.lp')

cqm = dimod.lp.load(open('example.lp', 'r'))

Though of course doing it directly with Ocean would be preferable.

@vgoliber
Copy link
Member Author

I don't know which existing packages work well and which have bugs to be honest!

@krobbinsgit
Copy link

I have also been seeing requests for mps file readers from several customers and prospects.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request/enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants