The condition to get a partially ideal solution on mixing is that the volume of the resulting mixture V to equal double the volume V of each solution mixed in equal volumes due to the additivity of volumes. The resulting volume can be found from the mass balance equation involving densities of the mixed and resulting solutions and equalising it to 2:
implies
Of course for real solutions inequalities appear instead of the last equality.