Skip to main content

adjust_complementarity_diagonal

Function adjust_complementarity_diagonal 

Source
pub fn adjust_complementarity_diagonal(
    jac: &mut [Vec<f64>],
    h: &[f64],
    n: usize,
)
Expand description

Adjust the complementarity diagonal block with the rhs h.

Call after compute_kkt_jacobian to set diag(Gx - h) correctly.