A simple error minimization (optimization) problem

조회 수: 6 (최근 30일)
Ravi Challa
Ravi Challa 2022년 5월 16일
댓글: Ravi Challa 2022년 5월 16일
I am trying to minimize the error between the calculated force from three different sensors and expected force from them.
The expected force data is given. The calculated force is well, calculated, and I have that data too.
Calculated force data:
P1, P2, and P3 are calculated force vectors (400x1 Double) who values I calculated from my code.
Expected force data:
L1, L2, and L3 are expected force vectors (400 x 1 double) whose values are provided.
Problem:
Ideally, the total calculated force (P1 + P2 + P3) should be equal to (L1 + L2 + L3).
In an ideal world that is not possible, so my goal is to minimize the error by identifying multiplication factors for P1, P2, and P3 so that the error can stay as minimum as possible.
Meaning, if we formulate a function F as ((C1*P1 + C2*P2 + C3*P3) - (L1 + L2 + L3)), how do I go about minimizing this difference by theoptimization technique? This problem might fall under the category of a simple linear optimization (?).
Note: C1, C2, and C3 are those multiplication factors that the optimization should provide (as an output) so as to keep the error as minimum as possible.
Goal:
Minimize the error F: ((C1*P1 + C2*P2 + C3*P3) - (L1 + L2 + L3)) <= 0 by figuring out C1, C2, and C3 as the output.
Any advice on which linear optimization tool to use would be an immense help and how to go about setting it up would be useful.
Thanks!

채택된 답변

Torsten
Torsten 2022년 5월 16일
편집: Torsten 2022년 5월 16일
A = [C1,C2,C3];
b = L1+L2+L3;
C = A\b;
C1 = C(1)
C2 = C(2)
C3 = C(3)
  댓글 수: 3
Torsten
Torsten 2022년 5월 16일
You meant A = [P1,P2,P3] correct?
Correct.
Ravi Challa
Ravi Challa 2022년 5월 16일
Thanks!

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Nonlinear Optimization에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by