unstructured indication matrix
unsm.Rdunsm creates a square matrix with ones in the diagonals and 2's in the off-diagonals to quickly specify an unstructured constraint in the Gtc argument of the vsm function.
Details
unsm2 creates a matrix with ones on the diagonal, 2's above the diagonal, and 0's below the diagonal. Unlike unsm, it does not set both off-diagonal triangles to 2.
Value
- $res
a matrix or a list of matrices with the constraints to be provided in the Gtc argument of the
vsmfunction.