Skip to content

Adding penalty terms to the error variable in LeastSquaresAlgorithm class #12

@Mechazo11

Description

@Mechazo11

Hello @Rookfighter,

I am opening this thread to inquire about a separate feature relevant to the problem we are discussing in the other thread.

Is it possible to add additional terms to the error method found in the minimize method in the LeastSquaresAlgorithm class? This penalty term is a function of the current estimate of x_val.

For example the library current uses error = fval.squaredNorm() / 2;. Can I add a penalty term fpenalty s.t $fpenalty = f(x_{val})$ i.e. enforce orthonormal constraint when optimizing one of the direction vectors of a rotation matrix.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions