Skip to main content

solve

Function solve 

Source
pub fn solve(m: &[Vec<f64>], q: &[f64]) -> Result<Solution, LcpError>
Expand description

Solve w = M z + q, w, z >= 0, w . z = 0 via Lemke’s algorithm.

M must be n x n (row-major, M[row][col]), q length n. Uses the all-ones covering vector d, the standard choice unless a problem-specific covering vector is known to do better.