E0114 05:57:50.428779 13422 trust_region_minimizer.cc:73] Terminating: Residual and Jacobian evaluation failed.
solve time cost = 0.000165258seconds.
Ceres Solver Report: Iterations: 0, Initial cost: -1.000000e+00, Final cost: -1.000000e+00, Termination: FAILURE
estimated a,b,c=2 -1 5
查阅csdn帖子:介绍如下:确认operator() 中每个if条件都有residuals输出,有返回值,且返回值是true而不是false
但是我的就是true依旧报错,于是我修改true为1,问题解决。