필터 지우기
필터 지우기

Solve a Set of Equations with Constraints and Interchangeable Varaibles

조회 수: 2 (최근 30일)
MarshallSc
MarshallSc 2021년 6월 10일
편집: Adam Danz 2021년 6월 24일
Hello, is there any way to solve the equations below using interchangeability algorithm (function of X in 4 dimensions-i,j,k,l)? I’m not a computer science guy and apparently interchangeability algorithm can solve the equations and render multiple solutions with the constraints that are within the equations (The Rs and Hs are known).
R_i-(X_l*X_j) * H_k=0;
R_j-(X_k*X_i) * H_l=0;
R_k-(X_j*X_l) * H_i=0;
R_l-(X_i*X_k) * H_j=0;
The (I ; j) pair and (k ; l) pair are interchangeable.
Each equation apparently is quadratic (I don’t understand this part about it, but the Xs correspond to each other).
I would really appreciate if someone can at least make a suggestion or give their opinion as to what approach can be used.
  댓글 수: 2
Adam Danz
Adam Danz 2021년 6월 23일
편집: Adam Danz 2021년 6월 24일
@MarshallSc, regarding your flag, "I am the creator of this post and I want to remove it as the question and the answers are wrong and irrelevant and might be misleading to members", the problem is, multiple volunteers have already invested considerable time into answering the existing question so removing it also removes their work. It may not answer the question you intended to ask but it does address the question you asked. If you have a better answer to this quesiton you could add it so that the thread is more valuable to the community.
This highlights the importance of investigating the question before investigating the answer. Often times the process of dissecting and clearly framing a question leads to the answer before the question is even asked. Unfortunately, it's common that the real problem, and therefore, the solution, is found at the end of a windy, loopy trail bounded by investigations in the wrong directions.
“If I had only one hour to save the world, I would spend fifty-five minutes defining the problem, and only five minutes finding the solution.”
-Albert Einstein
Rik
Rik 2021년 6월 24일
I fully agree with Adam. That is also the reasons why Mathworks decided to hide the delete button when an answer has been posted. (and editing away your question is both rude and pointless, as there is now a capture of this thread)

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

답변 (1개)

John D'Errico
John D'Errico 2021년 6월 10일
I think you are worrying about some magic algorithm, when simple linear algebra will suffice. Yes. LINEAR algebra.
Each equation is of the same form
Ri = X_i*X_j*H_k
TAKE THE LOG. Then you have
log(R_i) - log(H_k) = log(X_i) + log(X_j)
So your equations are LINEAR in the log of the unknowns. Solve the linear system for the unknowns. Again, this is linear algebra.
You will find the linear system is singular, at least as you wrote the equations, so no solution will exist unless something rare happens with the constant terms. And if that does happen, then infinitely many solutions will eist.
  댓글 수: 8
Walter Roberson
Walter Roberson 2021년 6월 11일
The equations divide by Li*Lj so for stability analysis, it is nice to know that the result is "about 2" instead of having to worry about covering many order of magnitudes. It means the code does not have to be as careful as might otherwise be the case.
However, beyond that, I do not think it helps much.
(My tracking number: T0098914 )
MarshallSc
MarshallSc 2021년 6월 12일
Thanks a lot again Walter, really appreicate your kind responses. I still haven't figured out how I can solve the equations and what method I can use. I guess that's the beauty of research. But I appreciate you very much.

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

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by