10.07.2015 Views

Numerical Methods Library for OCTAVE

Numerical Methods Library for OCTAVE

Numerical Methods Library for OCTAVE

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

3.6.4 Orthogonal iteration[LAMBDA, V, NBIT] = EIG_ORTHO(A, X0, ITMAX, TOL) computes P=size(X0,2) eigenvaluesand associated eigenvectors of A with orthogonal iteration method. If EIG_ORTHOfails to converge after the maximum number of iterations or halts <strong>for</strong> anyreason, a message is displayed.ParametersA a square matrix.X0 arbitrary N x P matrix of rank P, contains X0(1),X0(2),...X0(P)linearly independant.ITMAX maximal number of iterations.TOL maximum relative error.ReturnsLAMBDA P-vector containing eigenvalues of A.V P eigenvectors.NBIT number of iteration to the solution.3.6.5 QR iteration[LAMBDA, V, NBIT] = EIG_QR(A, ITMAX, TOL) computes N (=size(A)) eigenvaluesand associated eigenvectors of A with orthogonal iteration method. If EIG_QRfails to converge after the maximum number of iterations or halts <strong>for</strong> anyreason, a message is displayed.ParametersA (N*N) matrixITMAX maximal number of iterations.TOL maximum relative error.ReturnsLAMBDA N-vector containing eigenvalues of A.V N associated eigenvectors.NBIT number of iteration to the solution.3.7 OptimizationWe now turn to the problem of determining extreme values, or optimum values (maxima orminima), that a given function has on a given domain. More <strong>for</strong>mally, given a function f :R n → R, and a set S ⊆ R n , we seek x ∈ S such that f attains a minimum on S at x, i.e.,f (x) ≤ f (y) <strong>for</strong> all y ∈ S. Such a point x is called a minimizer , or simply a minimum, of f. Since a maximum of f is a minimum of f , it suffices to consider only minimization. Theobjective function, f , may be linear or nonlinear, and it is usually assumed to be differentiable.The constraint set S is usually defined by a system of equations or inequalities, or both, thatmay be linear or nonlinear. A point x ∈ S that satisfies the constraints is called a feasible point.If S = R n , then the problem is unconstrained . General continuous optimization problems have17

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!