Calculates voter transitions comparing two elections, using the function solve.QP() in package 'quadprog'.