Thank you so much for your quick answer.
I believe my program takes a significant time in computing jacobian evaluation using auto-diff. I am copy&pasting one of the FullSummary reports. I would appreciate if could give any comment. The report is from Mac (Intel 3.2Ghz core i5) without open-mp (single thread only). The problem is, simply speaking, optimising photometric errors for image alignment.
iter cost cost_change |gradient| |step| tr_ratio tr_radius ls_iter iter_time total_time
0 2.679188e-06 0.00e+00 1.50e-03 0.00e+00 0.00e+00 1.00e+04 0 2.19e-01 2.28e-01
1 2.606526e-06 7.27e-08 1.56e-03 1.66e-02 7.29e-01 1.11e+04 1 4.64e-01 6.93e-01
2 2.606526e-06 -1.41e-08 0.00e+00 6.62e-04 -1.59e+00 5.53e+03 1 1.29e+00 1.99e+00
3 2.606526e-06 -1.42e-08 0.00e+00 6.55e-04 -1.60e+00 1.38e+03 1 1.29e+00 3.27e+00
4 2.606526e-06 -1.48e-08 0.00e+00 6.20e-04 -1.68e+00 1.73e+02 1 1.29e+00 4.57e+00
5 2.606526e-06 -1.73e-08 0.00e+00 5.02e-04 -2.10e+00 1.08e+01 1 1.07e+00 5.64e+00
6 2.606526e-06 -1.67e-08 0.00e+00 3.07e-04 -2.45e+00 3.37e-01 1 1.10e+00 6.74e+00
7 2.606526e-06 -5.74e-09 0.00e+00 2.27e-05 -2.66e+00 5.27e-03 1 8.66e-01 7.61e+00
Solver Summary (v 1.11.0-eigen-(3.2.6)-lapack-suitesparse-(4.4.4)-cxsparse-(3.1.4)-no_openmp)
Original Reduced
Parameter blocks 7437 7437
Parameters 7448 7448
Residual blocks 7436 7436
Residual 14872 14872
Minimizer TRUST_REGION
Sparse linear algebra library SUITE_SPARSE
Trust region strategy LEVENBERG_MARQUARDT
Given Used
Linear solver SPARSE_NORMAL_CHOLESKY SPARSE_NORMAL_CHOLESKY
Threads 24 1
Linear solver threads 24 1
Cost:
Initial 2.679188e-06
Final 2.606526e-06
Change 7.266241e-08
Minimizer iterations 7
Successful steps 1
Unsuccessful steps 6
Time (in seconds):
Preprocessor 0.0091
Residual evaluation 0.1763
Line search cost evaluation 0.0000
Jacobian evaluation 7.7850
Line search gradient evaluation 7.3511
Linear solver 0.0593
Line search polynomial minimization 0.0006
Minimizer 8.0463
Postprocessor 0.0016
Total 8.0570
Termination: CONVERGENCE (Parameter tolerance reached. Relative step_norm: 6.290270e-09 <= 1.000000e-08.)
Parameter tolerance reached. Relative step_norm: 6.290270e-09 <= 1.000000e-08.