Fix how QUADOBJ section written to MPS files#3609
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. |
jsiirola
left a comment
There was a problem hiding this comment.
Sorry it took so long to get to this -- this looks good! I went through all the documentation (after swapping the MPS writer back into core), and I believe that this is the correct fix.
Fixes: #2122
_print_model_MPSfunction ofProblemWrite_mpsclass 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.baselineandpyomo/repn/tests/mps/no_column_ordering_quadratic.mps.baselinefiles.Summary/Motivation:
Example to reproduce error:
Changes proposed in this PR:
_print_model_MPSfunc, 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.baselineandpyomo/repn/tests/mps/no_column_ordering_quadratic.mps.baselinefiles.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: