Skip to content

Use MOI.Nonlinear.ModelWithQuad instead of QPBlockData - #238

Merged
blegat merged 4 commits into
bl/qp_block_datafrom
bl/model_with_quad
Aug 21, 2026
Merged

Use MOI.Nonlinear.ModelWithQuad instead of QPBlockData#238
blegat merged 4 commits into
bl/qp_block_datafrom
bl/model_with_quad

Conversation

@blegat

@blegat blegat commented Aug 19, 2026

Copy link
Copy Markdown
Collaborator

blegat added 3 commits August 15, 2026 14:21
Store the parsed quadratic constraints in a MOI.Nonlinear.ModelWithQuad and
evaluate them through the corresponding MOI.Nonlinear.EvaluatorWithQuad,
instead of using the QPBlockData and its private helpers directly. The
per-constraint methods (jth_hess_coord!, jth_hprod! and ghjvprod!) evaluate
the Hessian of the Lagrangian of the block with a basis multiplier vector,
which removes the per-constraint Hessian offsets. The products of the
evaluator overwrite their output, so the Jacobian-transpose and Hessian
products go through a new hv workspace before being accumulated.
MOI.Nonlinear.ModelWithQuad now owns the variables of the model, so the
parser adds them and the evaluator no longer takes ordered_variables.
@github-actions

github-actions Bot commented Aug 19, 2026

Copy link
Copy Markdown
Contributor
Package name latest stable
JSOSuite
NLSProblems
PartiallySeparableNLPModels
PartiallySeparableSolvers

@blegat
blegat merged commit 28ebe16 into bl/qp_block_data Aug 21, 2026
24 checks passed
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