|
Eigenvalue |
Top Previous Next |
|
EIGENVALUE is a utility that calculates the eigenvalues of a symmetric positive-definite matrix. It is used by using $Call or Execute on the command eigenvalue inputgdxfile indexofmatrix matrixtofindeigen outputgdxfile resultanteigenvalues Where the parameters in this line are
Example eigenexample.gms Set index /i1*i2/; Table a(index,index) matrix to find eigenvalues for i1 i2 i1 2 1 i2 1 3; parameter eigenvalues(index) vector of eigenvalues of A; execute_unload 'gdxforutility.gdx' index,A; execute 'eigenvalue gdxforutility.gdx index A gdxfromutility.gdx eigenvalues'; execute_load 'gdxfromutility.gdx' , eigenvalues; display a, eifenvalues;
|