Need to find eigenvector that corresponds to max eigenvalue

Click For Summary
SUMMARY

This discussion focuses on finding the eigenvector corresponding to the maximum eigenvalue of a 15x15 matrix in the context of Analytic Hierarchy Process (AHP) calculations using Java. The user has already computed the eigenvalues and eigenvectors but is confused about identifying the largest real eigenvalue among potentially complex eigenvalues. The recommendation is to disregard complex eigenvalues and focus solely on real eigenvalues, which simplifies the process of determining the maximum eigenvalue. The QR algorithm and Lanczos algorithm are suggested as methods for finding eigenvalues, with links provided for further reading.

PREREQUISITES
  • Understanding of eigenvalues and eigenvectors in linear algebra
  • Familiarity with the QR algorithm for eigenvalue computation
  • Knowledge of complex numbers and their properties
  • Proficiency in Java programming for implementing AHP calculations
NEXT STEPS
  • Research the QR algorithm for finding eigenvalues in detail
  • Study the Lanczos algorithm for efficient eigenvalue computation
  • Learn how to handle complex numbers in eigenvalue problems
  • Explore Java libraries for linear algebra, such as Apache Commons Math
USEFUL FOR

Mathematicians, data scientists, and software developers involved in linear algebra computations, particularly those implementing AHP in Java.

jpildave
Messages
5
Reaction score
0
To give you some background, I am trying to perform an AHP calculation using Java code. I have a 15x15 matrix and I need to find its eigenvector. I want the eigenvector that corresponds to the greatest eigenvalue.

Let's say I already have some method that gives me all the eigenvectors and all the eigenvalues. Let's call the eigenvector matrix V (15x15) and the eigenvalues matrix D (15x15 block diagonal).

I'm confused because some of my eigenvalues are complex and so I don't exactly know how to find the maximum one. I believe I have to do something like a^2 + b^2, but this is where I need help. Do I do this per column in D? (I need the exact steps in calculating and then also find the maximum one.)

Thank you.
 
Physics news on Phys.org
HallsofIvy,

Thanks for your response. I wanted to follow-up on something you mentioned... You said that you think I should be looking for the largest real eigenvalue. I didn't know that I should only be limiting the search to the largest _real_ eigenvalue. I think this will simplify things for me, but can you explain why I only need to be concerned with the _real_ eigenvalues? (Sorry, if this is a stupid question.)

Since I already have the eigenvalues and and the eigenvectors, I do not need to code the QR algorithm myself, however, I have an additional question.

In the 15x15 matrix that contains the eigenvalues, does the following logic make sense to you to find the largest real eigenvalue...?

Look at each column in the matrix. If there are 2 non-zero values in the column, then this is an eigenvalue that is complex. Therefore, don't worry about it and go to the next one. But, if you come find a column that only has one non-zero value, this represents an eigenvalue that is real. Therefore, take note of this value and proceed.

Sound good?
 

Similar threads

  • · Replies 33 ·
2
Replies
33
Views
3K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 12 ·
Replies
12
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 3 ·
Replies
3
Views
4K
  • · Replies 5 ·
Replies
5
Views
5K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 6 ·
Replies
6
Views
11K