For the function \( y = f(x) + ax + b \), the condition for a relative minimum at \( x = 0 \) is that the derivative of the function at that point should be zero.
This implies \( a = 0 \), and \( b \) can take any value.
Therefore, the correct answer is (2).