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

Model size before/after presolve #18

Open
ronaldvdv opened this issue Jan 11, 2022 · 3 comments
Open

Model size before/after presolve #18

ronaldvdv opened this issue Jan 11, 2022 · 3 comments

Comments

@ronaldvdv
Copy link

ronaldvdv commented Jan 11, 2022

In 912-glass4-0.log we have the following:

Optimize a model with 396 rows, 322 columns and 1815 nonzeros
Model fingerprint: 0x0a9d9037
Variable types: 20 continuous, 302 integer (0 binary)
Coefficient statistics:
...
Presolve removed 6 rows and 6 columns
Presolve time: 0.00s
Presolved: 390 rows, 316 columns, 1803 nonzeros
Variable types: 19 continuous, 297 integer (297 binary)

We extract the following information:

  • NumConstrs = 396
  • NumVars = 322
  • NumNZs = 1815
  • PresolvedNumConVars = 19
  • PresolvedNumIntVars = 297
  • PresolvedNumBinVars = 297

Should we also extract the third line above, e.g. the detailed model size before presolve (20 continuous, 302 integer, 0 binary variables)?

@mattmilten
Copy link
Member

Sure! Why not?

@ronaldvdv
Copy link
Author

Also noticed that there are output lines of the form Presolved model has 7931 second-order cone constraints which we ignore right now

@Z-Haoruo
Copy link

Hi, thank you for developing this tool! I was wondering if the NumBinVars, NumConVars and NumIntVars before presolving could be extracted. I would appreciate it if this feature were implemented. Thank you!

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

3 participants