Skip to content

Integrate cuopt QP and SOCP#3983

Open
Iroy30 wants to merge 3 commits into
Pyomo:mainfrom
Iroy30:integrate_cuopt_qp_socp
Open

Integrate cuopt QP and SOCP#3983
Iroy30 wants to merge 3 commits into
Pyomo:mainfrom
Iroy30:integrate_cuopt_qp_socp

Conversation

@Iroy30

@Iroy30 Iroy30 commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

Fixes # .

Summary/Motivation:

The cuOpt direct solver plugin (cuopt_direct.py) previously supported linear and MIP models only. cuOpt 26.06 exposes APIs for quadratic objectives and second-order cone constraints expressed as quadratic inequalities. This PR extends the Pyomo cuOpt interface so users can solve QP/SOCP models through SolverFactory('cuopt').

Changes proposed in this PR:

  • cuopt_direct.py: Add quadratic objective support (_set_objective, _build_quadratic_objective_csr); add quadratic constraint support (_add_cuopt_quadratic_constraint, COO helpers)
  • test_cuopt_direct.py: Add tests for quadratic objective matrix layout, SOC constraint build + solve
  • test_qp.py: Add cuOpt to the cross-solver QP regression suite (test_qp_objective_cuopt_model
  • solvers.py: Register quadratic_objective and conditional quadratic_constraint in the cuOpt test case capabilities.

AI-Use Disclosure

  • AI tools were NOT used during the preparation of this PR

or

  • AI tools contributed to the development of this PR

    • AI tools generated documentation (including the PR description/comments, code comments, and/or Sphinx documentation)
    • AI tools generated tests (baselines, examples, and/or code)
    • AI tools generated code (apart from tests)

    Review process (select ONE):

    • Rewritten: All AI-generated content was rewritten by me before being committed.
    • Reviewed/verified: I retained AI-generated content and verified it before committing. Verification included (as applicable):
      • Ran the code and fixed issues
      • Added and ran tests
      • Checked correctness/logic of code and tests
      • Checked for alignment with the contribution guide
      • Considered security implications
    • As-is: AI-generated content was commited directly to the repository

Notes for reviewers (optional):

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:

  1. I agree my contributions are submitted under the BSD license.
  2. I represent I am authorized to make the contributions and grant the license. If my employer has rights to intellectual property that includes these contributions, I represent that I have received permission to make contributions and grant the required license on behalf of that employer.

@Iroy30 Iroy30 changed the title Integrate cuopt qp socp Integrate cuopt QP and SOCP Jun 22, 2026
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