When in doubt take the derivative using the product property.
P'(x)=0 when (0.001x+0.999)=0
Solving for x =-999. This is the only critical points, but it is not possible to make -999 items.
We also have to check x=0 and x=2000
` `The solution is to produce 2000 items.