See here: https://github.com/jbusecke/xMIP/blob/108266e72d01c173e15cdf4ca00612a0d4f0a8ca/xmip/preprocessing.py#L369-L370