Added methods `complementarityMatrix` and `boundaryValues`