Skip to content

Fix sum_squares_lin canonicalization#4

Open
haozhu10015 wants to merge 3 commits intocvxpy:mainfrom
haozhu10015:fix-sum-squares
Open

Fix sum_squares_lin canonicalization#4
haozhu10015 wants to merge 3 commits intocvxpy:mainfrom
haozhu10015:fix-sum-squares

Conversation

@haozhu10015
Copy link
Contributor

This PR fixes sum_squares canonicalization for affine expressions in objective.

The old sum_squares_lin only handles the trivial case $|x|_2^2$ in the objective as a QP. Everything else fell through to the SOC epigraph reformulation, which causes the solver to actually minimize $|Ax + c|_2$ instead of $|Ax + c|_2^2$ for such expressions. This fix generalizes the QP path to handle the full affine case $|Ax + c|_2^2$ by expanding it analytically.

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.

1 participant