-
Notifications
You must be signed in to change notification settings - Fork 545
Fix how QUADOBJ section written to MPS files #3609
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
base: main
Are you sure you want to change the base?
Conversation
@mrmundt It seems the tests are failing because the |
…j' into fix_writemps_quadobj
@mrmundt this is ready for review now, with updated |
@dansplain we're working on resolving a few broken tests stemming from one of our optional dependencies. Once our testing infrastructure is passing again, we should be able to get this reviewed and merged. |
Fixes: #2122
_print_model_MPS
function ofProblemWrite_mps
class to correctly output only the non-zero elements of the upper (or lower) triangle of the symmetric Q matrix.pyomo/repn/tests/mps/column_ordering_quadratic.mps.baseline
andpyomo/repn/tests/mps/no_column_ordering_quadratic.mps.baseline
files.Summary/Motivation:
Example to reproduce error:
Changes proposed in this PR:
_print_model_MPS
func, such that each line only outputs a single non-zero value in the upper triangle of the symmetric Q matrix.pyomo/repn/tests/mps/column_ordering_quadratic.mps.baseline
andpyomo/repn/tests/mps/no_column_ordering_quadratic.mps.baseline
files.Legal Acknowledgement
By contributing to this software project, I have read the contribution guide and agree to the following terms and conditions for my contribution: