Skip to content

Lower matrix dot fix#6

Merged
chrhansk merged 2 commits intochrhansk:mainfrom
Zvmcevap:LowerMatrix-dot-fix
Dec 21, 2025
Merged

Lower matrix dot fix#6
chrhansk merged 2 commits intochrhansk:mainfrom
Zvmcevap:LowerMatrix-dot-fix

Conversation

@Zvmcevap
Copy link
Copy Markdown
Contributor

Fix for LowerMatrix.dot function as it does not give a proper result for QPLIB provided solutions.
The way it is handled atm is equivalent to 1/2 $x^\top (Q + Q^\top) x$ instead of 1/2 $x^\top Q x$ as shown here.

Note with this fix, Problem.eval function returns the correct result when QPLIB instances solution is used for x.

I have also removed the ".qplib" extension check in file reading, as the qplib format is just a text file and should not be forced to have the qplib extension to be valid, imo.

I thank you for this package and your time

@chrhansk chrhansk merged commit 92c075d into chrhansk:main Dec 21, 2025
0 of 4 checks passed
@chrhansk
Copy link
Copy Markdown
Owner

Thanks you for the contribution, should by up on PyPI now (as version 0.1.6). Happy holidays :)

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

Successfully merging this pull request may close these issues.

2 participants