Linear solvers for Levenberg-Marquardt

229 views
Skip to first unread message

徐维鹏

unread,
May 26, 2015, 7:55:16 PM5/26/15
to ceres-...@googlegroups.com
Hi,

I'm using the Levenberg-Marquardt method to solve a nonlinear optimization problem. When I used SPARSE_NORMAL_CHOLESKY as the linear solver, I got this error: "Intel MKL ERROR: Parameter 4 was incorrect on entry to DPOTRF." But it's all right if I use CGNR. I also tried SPARSE_NORMAL_CHOLESKY with less parameter blocks, and it worked fine. So is this error due to that the problem is too large? If so, what is the limitation for SPARSE_NORMAL_CHOLESKY? Does CGNR yield the same accuracy as SPARSE_NORMAL_CHOLESKY?
Thanks.

Weipeng

Sameer Agarwal

unread,
May 27, 2015, 12:47:12 AM5/27/15
to ceres-...@googlegroups.com
Weipeng,
what sized problems are you solving?
Sameer


--
You received this message because you are subscribed to the Google Groups "Ceres Solver" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ceres-solver...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ceres-solver/65cfc8fc-daad-4593-bbc3-5ac43d434535%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Message has been deleted

徐维鹏

unread,
May 28, 2015, 2:22:33 AM5/28/15
to ceres-...@googlegroups.com
Hi Sameer,
I have 7k parameter blocks and 6k residual blocks. Here's the summary for reference.

Solver Summary (v 1.10.0-eigen-(3.2.0)-lapack-suitesparse-(4.2.1)-openmp)

                                     Original                  Reduced
Parameter blocks                         7068                     7068
Parameters                               7068                     7068
Residual blocks                          5890                     5890
Residual                                 8246                     8246

Minimizer                        TRUST_REGION
Trust region strategy     LEVENBERG_MARQUARDT

                                        Given                     Used
Linear solver                            CGNR                     CGNR
Preconditioner                         JACOBI                   JACOBI
Threads                                     8                        8
Linear solver threads                       8                        8

Cost:
Initial                          2.257673e+06
Final                            1.024263e+05
Change                           2.155247e+06

Minimizer iterations                       61
Successful steps                           61
Unsuccessful steps                          0

Time (in seconds):
Preprocessor                           0.0118

  Residual evaluation                  0.1117
    Line search cost evaluation        0.0000
  Jacobian evaluation                  0.8170
    Line search gradient evaluation    0.4995
  Linear solver                        1.0929
  Line search polynomial minimization  0.0007
Minimizer                              2.2211

Postprocessor                          0.0005
Total                                  2.2334

Termination:                      CONVERGENCE (Function tolerance reached. |cost_change|/cost: 7.715802e-07 <= 1.000000e-06)
>> 

在 2015年5月27日星期三 UTC+10下午2:47:12,Sameer Agarwal写道:
Reply all
Reply to author
Forward
0 new messages