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

[FileFormats.LP] fix reading off-diagonals of quadratic functions #2182

Merged
merged 1 commit into from May 31, 2023

Conversation

odow
Copy link
Member

@odow odow commented May 30, 2023

Closes #2181.

This was my fault in #1974. I guess I didn't understand the convention well enough.

It's literally the coefficients as written multiplied by 0.5. Not what MOI does and assume that you're passing one of the off-diagonals. (This is another motivation for changing the definition of ScalarQuadraticFunction in MOI v2 #2180)

Docs: https://www.ibm.com/docs/en/icos/12.8.0.0?topic=representation-quadratic-terms-in-lp-file-format

@odow
Copy link
Member Author

odow commented May 30, 2023

I think the x86 failure is unrelated. I've opened an issue: #2183

@odow odow merged commit 207b153 into master May 31, 2023
12 checks passed
@odow odow deleted the od/fix-quadratic-read branch May 31, 2023 08:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

FileFormats/LP: read_from_file returns incorrect quadratic terms
1 participant