Add C code generation for implicit parametric DAQP solver#33
Draft
Copilot wants to merge 6 commits intodouble-sidedfrom
Draft
Add C code generation for implicit parametric DAQP solver#33Copilot wants to merge 6 commits intodouble-sidedfrom
Copilot wants to merge 6 commits intodouble-sidedfrom
Conversation
* Improve plotting recipes * Bump version
* Improve AVI
Co-authored-by: darnstrom <55484604+darnstrom@users.noreply.github.com> Agent-Logs-Url: https://github.com/darnstrom/ParametricDAQP.jl/sessions/11f0c470-8a34-462f-a2da-24f8e48827cf
Copilot
AI
changed the title
[WIP] Add C code generation for DAQP solver from mpQP
Add C code generation for implicit parametric DAQP solver
Mar 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implements the missing C code generation needed to deploy a compiled parametric QP solver using DAQP, given an mpQP defined via a JuMP/MOI model.
Changes
Merged
double-sidedbranch foundationpreprocess.jl: equality elimination and double-sided → single-sided conversionMathOptInterfaceExt.jl:moi2mpqpextracts a double-sided mpQP from a MOI model;get_mppexposes this to usersJuMPExt.jl: forwardsget_mppand updatedmpsolveto JuMP modelsImplemented C code generation in
render_pdaqp_workspaceThree C functions are now emitted by
codegen_implicit:pdaqp_update_qp— updates DAQP's LDP bounds for a given parameter vector:pdaqp_get_solution— affine back-transform from the DAQP QP solution to the nominal variable:pdaqp_compute_solution— top-level entry point: updates bounds, resets workspace (skipped ifwarm_start=true), callsdaqp_ldp+ldp2qp_solution, then applies the back-transform.Header generation fixes
PDAQP_N_CONSTRAINTSandPDAQP_N_DECISION#definessize(mpldp.HinvF, 2)(respectsout_varsselection)#include "daqp.h"in the generated source for DAQP workspace accessWarning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
pkg.julialang.org/usr/bin/julia julia --project -e import Pkg; Pkg.status() -j ACCEPT(dns block)If you need me to access, download, or install something from one of these locations, you can either:
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.