giaf / hpipm

High-performance interior-point-method QP and QCQP solvers
Other
553 stars 130 forks source link

warm_start in ocp_qp and ocp_qcqp Python interfaces #173

Closed th1991-01 closed 1 week ago

th1991-01 commented 1 week ago

Inspired by https://github.com/giaf/hpipm/pull/140, this PR adds the warm_start option in the ocp_qp and ocp_qcqp Python interfaces.

In https://github.com/th1991-01/hpipm/commit/5f23ba3756fe212ee126009b585cbc7c0447826a, I define def set(self, field, stage, value) in Python by imitating void d_ocp_qp_sol_set(char *field, int stage, double *vec, struct d_ocp_qp_sol *qp_sol) in C. If another function definition is better, I will change it.

giaf commented 1 week ago

It looks good, thanks for the contribution!