Closed th1991-01 closed 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.
def set(self, field, stage, value)
void d_ocp_qp_sol_set(char *field, int stage, double *vec, struct d_ocp_qp_sol *qp_sol)
It looks good, thanks for the contribution!
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 imitatingvoid 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.