Evaluates nonlinear constraints and their Jacobian for OPF.

def _consfcn(self, x):
        """ Evaluates nonlinear constraints and their Jacobian for OPF.
        """
        h, g = self._gh(x)
        dh, dg = self._dgh(x)

        return h, g, dh, dg