optimisation algorithm for mUBQP-like problems