solve Max[-1, -u * (1 - d