Solve least square error optimization
이전 댓글 표시
Dear all,
I've got the following optimization problem:
D1 = F1 (d1), D2 = F2(d2), D3 = F3(d3) are seperate functions for three different measurements
d1=ds1*x; d2=ds2*x; d3=ds3*x; ds123 is the sample measurement, and the x is the correction of the error.
To find the optimal correction value x, the following should be minimized:
min( (D1-D2)^2 + (D2-D3)^2 + (D3-D1)^2 , x)
This might be done using an optimization routine but becomes very slow if the number of measurements increases (in case of an image).
Is there a straight forward way to perfom, which is considerably faster?
many thanks in advance.
all the best,
Kees
댓글 수: 5
Adam Danz
2019년 12월 2일
Which functions have you tried that you consider to be slow? What optional inputs have you tried that may constrain the problem?
Kees de Kapper
2019년 12월 3일
편집: Kees de Kapper
2019년 12월 3일
Catalytic
2019년 12월 3일
It's not fmincon that is slow, it is your coding of the objective function. You should show that so that we can recommend how to optimize its execution time. Also, please clarify the dimension of the various quantities involved. Is x a scalar? You have only a single unknown? Similarly, are d1,2,3 array-valued or scalar-valued?
Kees de Kapper
2019년 12월 3일
Adam Danz
2019년 12월 3일
Any chance you could attach a mat file with all the variables needed to run the code? It's just a lot faster for us mortals if we can step through the code rather than imagining it.
답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Choose a Solver에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
