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

Performance - omit 1.0000 when writing out LP file #112

Closed
willu47 opened this issue Apr 19, 2023 · 3 comments
Closed

Performance - omit 1.0000 when writing out LP file #112

willu47 opened this issue Apr 19, 2023 · 3 comments

Comments

@willu47
Copy link

willu47 commented Apr 19, 2023

linopy LP files are created with lots of extra characters when the coefficients are 1:

c2:
-1.000000 x6
+1.000000 x8
=
0.000000

These can be omitted:

c2:
- x6 + x8 = 0.00000
@FabianHofmann
Copy link
Collaborator

Sound reasonable! Do you happen to know whether that is a general format, i.e. can we expect all solvers to be able to read this?

@willu47
Copy link
Author

willu47 commented Apr 19, 2023

I've tested with Gurobi, GLPK and CBC and those seem fine. I don't have access to other solvers at the moment.

@FabianHofmann
Copy link
Collaborator

closed by #114

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