F-Droid献祭一道新的AI测试数学题 中发帖

已知 a\neq 0,函数 f(x)=a\cos 2x+\sqrt{3}a\sin 2x-2a+b, x\in [0, \frac{\pi}{2}],若函数值域为 [-5, 1],则 a+b 的值为 ____.