Is there any way to define a loss function in optimization problems?

조회 수: 1 (최근 30일)
Philipp Glira
Philipp Glira 2021년 3월 10일
편집: Walter Roberson 2021년 3월 10일
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:

답변 (1개)

Matt J
Matt J 2021년 3월 10일
Yes, absolutely. Without a function to optimize, it's not an optimization problem.
  댓글 수: 2
Philipp Glira
Philipp Glira 2021년 3월 10일
My questions was regarding loss functions.
The main purpose of a loss function is the detection of outliers. In other words, it makes the optimization robust against gross observation errors (=outliers).
I don't see any possibility in the documentation of the optimization toolbox to define such a loss function, but maybe I have just overlooked that part.
To clarify:
1) non-robust optimization, i.e. without loss function:
(see the 3 outliers with large y values)
2) robust optimization, i.e. with loss function:
(the 3 outliers are detected as outliers and thus have no influence on the estimated unknowns)
Matt J
Matt J 2021년 3월 10일
편집: Matt J 2021년 3월 10일
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,

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Get Started with Optimization Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by