Is there any way to define a loss function in optimization problems?
Ältere Kommentare anzeigen
Is there any way to define a loss function when setting up an optimization problem using the optimization toolbox?
Main purpose: outlier detection.
Examples for loss functions in other optimization libraries:
- Ceres solver: http://ceres-solver.org/nnls_modeling.html?highlight=loss#lossfunction
- scipy.optimize.least_squares: https://docs.scipy.org/doc/scipy/reference/generated/scipy.optimize.least_squares.html
Antworten (1)
Matt J
am 10 Mär. 2021
0 Stimmen
Yes, absolutely. Without a function to optimize, it's not an optimization problem.
2 Kommentare
Philipp Glira
am 10 Mär. 2021
No, there are no outlier rejection utilities in the Optimization Toolbox solvers. The Computer Vision Toolbox, however, does have a RANSAC routine,
You could also try removing outliers with rmoutliers,
Kategorien
Mehr zu Nonlinear Optimization finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

