A simple error minimization (optimization) problem

8 ビュー (過去 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 Center および File ExchangeSimulink Design Optimization についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by