facebookresearch / theseus

A library for differentiable nonlinear optimization
MIT License
1.69k stars 120 forks source link

The positive-definite question #647

Open gzspkgypt opened 2 months ago

gzspkgypt commented 2 months ago

Hello, thank you very much for the resources you provided. I am using this library to write the quadratic optimization part, and now I have encountered a problem, the console information——RuntimeWarning: There was an error while running the linear optimizer. Original error message: linalg.cholesky: (Batch element 0): The factorization could not be completed because the input is not positive-definite (the leading minor of order 1 is not positive-definite)..warnings.warn(msg, RuntimeWarning).I would like to ask how positive definiteness is determined and how my input matrix is decomposed.

Carlo9013 commented 2 months ago

I'm having this trouble as well. Looking forward to the feedback from the developers' side.

gzspkgypt commented 2 months ago

@Carlo9013 I have already solved this problem.

Carlo9013 commented 2 months ago

Oh, I would be very grateful if you can explain me how you solved that issue.

tyhuang98 commented 1 month ago

@gzspkgypt Also looking forward to your solution! I met this problem too.