def _evaluate_mismatch(self, Ybus, V, Sbus, pq, pvpq):
        """ Evaluates the mismatch.
        """
        mis = (multiply(V, conj(Ybus * V)) - Sbus) / abs(V)

        P = mis[pvpq].real
        Q = mis[pq].imag

        return P, Q
Evaluates the mismatch.