S (selector) matrix creation for constraint