MHB Newton Rhapson Failure Analysis

Click For Summary
Hari is using the Newton-Raphson method for solving a system of non-linear equations in the context of inverse kinematics for robots, but encounters convergence issues at certain points along a trajectory. The method works for 90% of the points, but fails near closely spaced points where the initial conditions are derived from previous solutions. Suggestions include considering the Levenberg-Marquardt algorithm for potentially better convergence, although execution speed is a concern for real-time applications. The discussion highlights the importance of understanding the conditions under which the Newton-Raphson method may fail, with alternative approaches proposed to improve convergence. Overall, the thread emphasizes the challenges of numerical methods in real-time robotic applications.
hariharan82
Messages
3
Reaction score
0
Hi,

My name is Hari and i am new to this forum. I am currently working on a research problem using Newton rhapson method to find solution for a system of non-linear functions. The precise application is Inverse Kinematics of manipulators. However, i have three non linear equations function of three variables. the equations represent location of a point in a robot. i need to find the three variables that will satisfy the given location of the point.

I have a certain trajectory for the point in the robot. i need to solve for the variables at every point in the trajectory using the NR method. the NR works for 90% of the points but has some spots where it fails. These points are generated very close to each other. So the initial condition for the NR is the solution from the previous point. i am not able to understand why the NR method fails at certain spots and not everywhere else. I would like some help with regards to this as i have spent significant amount of time with no solution. Please let me know if you need any other information to make this as clear as possible. I am sure the problem is vague now.

thanks
Hari
 
Mathematics news on Phys.org
hariharan82 said:
Hi,

My name is Hari and i am new to this forum. I am currently working on a research problem using Newton rhapson method to find solution for a system of non-linear functions. The precise application is Inverse Kinematics of manipulators. However, i have three non linear equations function of three variables. the equations represent location of a point in a robot. i need to find the three variables that will satisfy the given location of the point.

I have a certain trajectory for the point in the robot. i need to solve for the variables at every point in the trajectory using the NR method. the NR works for 90% of the points but has some spots where it fails. These points are generated very close to each other. So the initial condition for the NR is the solution from the previous point. i am not able to understand why the NR method fails at certain spots and not everywhere else. I would like some help with regards to this as i have spent significant amount of time with no solution. Please let me know if you need any other information to make this as clear as possible. I am sure the problem is vague now.

thanks
Hari

Welcome to MHB, Hari! :)

Most numerical algorithms fail for badly conditioned problems.
I would suggest to use the Levenberg-Marquardt algorithm instead.
It finds the optimal solution, and if there is no unique solution, it finds the solution closest to the initial guess.
 
Hi,

thanks for you reply. there is one reason why i am not using LM method, it is the time of execution. i am pressing on real-time aspect of the execution. i know a solution exist but for some reason the NR method does not converge. i also checked the condition number of the NR jacobian. it looks fine, similar to points it converges.

Hari
 
hariharan82 said:
Hi,

thanks for you reply. there is one reason why i am not using LM method, it is the time of execution. i am pressing on real-time aspect of the execution. i know a solution exist but for some reason the NR method does not converge. i also checked the condition number of the NR jacobian. it looks fine, similar to points it converges.

Hari

Here are the common reasons why NR would fail or be slow to converge.

Btw, what's your reason to think that NR is faster than LM?
For multidimensional problems, NR is usually not the best choice, certainly not for speed of convergence.
 
Admin,
thanks once again for the prompt reply. i will give LM a shot and compare the execution times.

Hari
 
hariharan82 said:
Hi,

My name is Hari and i am new to this forum. I am currently working on a research problem using Newton rhapson method to find solution for a system of non-linear functions. The precise application is Inverse Kinematics of manipulators. However, i have three non linear equations function of three variables. the equations represent location of a point in a robot. i need to find the three variables that will satisfy the given location of the point.

I have a certain trajectory for the point in the robot. i need to solve for the variables at every point in the trajectory using the NR method. the NR works for 90% of the points but has some spots where it fails. These points are generated very close to each other. So the initial condition for the NR is the solution from the previous point. i am not able to understand why the NR method fails at certain spots and not everywhere else. I would like some help with regards to this as i have spent significant amount of time with no solution. Please let me know if you need any other information to make this as clear as possible. I am sure the problem is vague now.

thanks
Hari

A precise condition of convergence of the NRM is reported here...

http://mathhelpboards.com/discrete-mathematics-set-theory-logic-15/difference-equation-tutorial-draft-part-i-426.html#post2492

In most cases of non convergence the following alternative recursive equation...

$\displaystyle x_{n+1} = x_{n} - a\ \frac{f(x_{n})}{f^{\ '}(x_{n})}\ (1)$

... where 0< a< 1 is an appropriate constant can overcome the problem...

Kind regards

$\chi$ $\sigma$
 
Thread 'Erroneously  finding discrepancy in transpose rule'
Obviously, there is something elementary I am missing here. To form the transpose of a matrix, one exchanges rows and columns, so the transpose of a scalar, considered as (or isomorphic to) a one-entry matrix, should stay the same, including if the scalar is a complex number. On the other hand, in the isomorphism between the complex plane and the real plane, a complex number a+bi corresponds to a matrix in the real plane; taking the transpose we get which then corresponds to a-bi...

Similar threads

Replies
16
Views
4K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 15 ·
Replies
15
Views
4K
Replies
8
Views
2K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K