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

How to obtain the model after decomposition? #30

Open
haoyangliu123 opened this issue Mar 14, 2024 · 2 comments
Open

How to obtain the model after decomposition? #30

haoyangliu123 opened this issue Mar 14, 2024 · 2 comments

Comments

@haoyangliu123
Copy link

Dear support team,

I use pygcgopt 0.2.1 to decompose a MILP model and I want to obtain the decomposed model in the lp or mps format. But I can only find the dec format or the visualization results of the decomposed model.
I wonder whether there are some APIs to get the lp or mps format.

All the best
Regards

@jurgen-lentz
Copy link
Collaborator

Dear user,

You can use the same function writeProblem() as for the dec files but the parameter string should end with lp or mps (Note: Neither the lp nor the mps format can save information about the decomposition. The only format that can do this is the dec format, as of today.)

Best wishes,
Jurgen

@haoyangliu123
Copy link
Author

Dear @jurgen-lentz,

Thanks so much for your reply! I still have a problem: I want to save a collection of the visualization results in the .png or .jpg format. I want to perform this procedure in a .py file. Could you please provide some useful advice?

Best regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants