--
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/6bd9509b-66e1-4339-8ec7-45800ce195f5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/ceres-solver/7c5f90f6-14ac-46f9-baaf-518501982fcd%40googlegroups.com.
A cheap trick you can use is to have a scalar residual function which always return, but false if your determinant is negative.. this will restrict ceres step to inside the positive definite cone. I am not sure of the solution quality though.
Dear Sameer,
suppose I'd use the inverse barrier:f(x) + 1/det(A)This would translate in ceres tof(x) + 1/2 (1/det^2(A))which is still a barrier function. Does this mean that barriers (of some sorts) are conceptually possible to implement with ceres?
A cheap trick you can use is to have a scalar residual function which always return, but false if your determinant is negative.. this will restrict ceres step to inside the positive definite cone. I am not sure of the solution quality though.
I'm not quite sure how ceres manipulates the CostFunction.operator(). If I do 'if(det(A)<0) return false;' in the operator() method, how does this affect the automatic differentiation framework? Am I not restricting det'(A) to be nonnegative as well?
To view this discussion on the web visit https://groups.google.com/d/msgid/ceres-solver/54e079db-e28e-4e65-95ee-4d4b618e75b3%40googlegroups.com.