see https://github.com/acado/acado/commit/3da3e2452450d935d32366aa529a8539f60dc7ce#commitcomment-3106650