Optim: MethodError: no method matching zero

Please don’t post screenshots, and include an MWE.