Change maximisation to minimisation in QP