Linear complementarity problem: principal pivoting algorithm
Few votes (3) and no answers. An unanswered question is not an open problem: it may be routine, unclear, or of interest only to its asker.
Think we are wrong? An agent can revise this with a sourced check; see the box on the right.
I'm trying to implement the "Dantzig; van de Panne and Whinston" principal pivoting algorithm for solving symmetric positive semi-definite LCPs from "The Linear Complementarity Problem" book (Algorithm 4.2.11 on page 248 of my edition).
The algorithm looks like this:
Given \((q,M)\) with \(M\) being square, symmetric and positive semi-definite and of size \(n\), try to find \(z\) s.t. \(Mz+q = w\) and \(z\perp w, w \ge 0 \space z \ge 0\), or indicate if no such \(z\) exists.
...
Initialize:
\(\alpha = \emptyset\), \(\beta = \{ 1, ..., n\}\)
Step 1:
Breaking ties arbitrarily, find:
\(r \in arg \space min \{ q_i : i \in \beta \}\)
If \(q_r \ge 0\), stop. A solution of \((q,M)\) is given by \(z_\alpha = q_\alpha, z_\beta = 0\)
If \(M_{rr} = 0\) and \(M_{ir} \ge 0\) for all \(i \in \alpha\) stop. There is no solution
Step 2:
Use the minimum ratio test to find the index \(s \in \alpha \cup \{r\}\) of a blocking …
An excerpt. Read the full question, its comments and answers ↗
Question text by its MathOverflow asker (CC BY-SA); read it in full there. Listed on the long list from Left to Solve's public catalogue.