affine-mpc