code: def obfn_cns(self):
          r
  
          return np.linalg.norm((self.Pcn(self.obfn_gvar()) - self.obfn_gvar()))
docs: r"""Compute constraint violation measure :math:`\| P(\mathbf{y}) -
          \mathbf{y}\|_2`.