Remove wrong exception of unsupported QCQP#1493
Conversation
|
/ok to test d789f4e |
| user_problem.var_types.assign(n, variable_type_t::CONTINUOUS); | ||
|
|
||
| // Rotated SOC: x^2 - 2*t*u <= 0 | ||
| // Q COO: (0,0,1) for x^2, (1,2,-2) for -2*t*u (canonical form: single cross term) |
There was a problem hiding this comment.
Try specifying the problem using the lp reader? I can't visually verify the correctness of the hardcoded matrix inputs.
CI Test Summary3 failed · 28 passed · 0 skipped
|
|
/ok to test ae2fea1 |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (2)
💤 Files with no reviewable changes (1)
📝 WalkthroughWalkthroughRemoves a validation guard in the rotated-SOC conversion path that previously rejected problems containing quadratic objective terms, allowing rotated SOC lifting to proceed regardless of ChangesRotated SOC with quadratic objective support
Estimated code review effort: 3 (Moderate) | ~20 minutes Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
| ASSERT_EQ(problem.get_quadratic_constraints().size(), 1u); | ||
|
|
||
| pdlp_solver_settings_t<i_t, f_t> settings; | ||
| auto solution = solve_lp(&handle, problem, settings); |
There was a problem hiding this comment.
Mind leaving a TODO to redo all the other tests in this form?
Description
We were wrongly throwing an exception when the rotated cones and quadratic objectives were present.
Issue
Checklist