polish

Undocumented in source.

Members

Functions

polish
c_int polish(OSQPWorkspace* work)
Undocumented in source. Be warned that the author may not have intended to support it.

Static functions

form_Ared
c_int form_Ared(OSQPWorkspace* work)

Form reduced matrix A that contains only rows that are active at the solution. Ared = vstack[Alow, Aupp] Active constraints are guessed from the primal and dual solution returned by the ADMM. @param work Workspace @return Number of rows in Ared, negative if error

form_rhs_red
void form_rhs_red(OSQPWorkspace* work, c_float* rhs)

Form reduced right-hand side rhs_red = vstack[-q, l_low, u_upp] @param work Workspace @param rhs right-hand-side @return reduced rhs

get_ypol_from_yred
void get_ypol_from_yred(OSQPWorkspace* work, c_float* yred)

Compute dual variable y from yred @param work Workspace @param yred Dual variables associated to active constraints

iterative_refinement
c_int iterative_refinement(OSQPWorkspace* work, LinSysSolver* p, c_float* z, c_float* b)

Perform iterative refinement on the polished solution: (repeat) 1. (K + dK) * dz = b - K*z 2. z <- z + dz @param work Solver workspace @param p Private variable for solving linear system @param z Initial z value @param b RHS of the linear system @return Exitflag

Meta