20.08.2015 Views

“ANÁLISIS DE SISTEMAS DE DISTRIBUCIÓN DE GAS POR ... - inicio

“ANÁLISIS DE SISTEMAS DE DISTRIBUCIÓN DE GAS POR ... - inicio

“ANÁLISIS DE SISTEMAS DE DISTRIBUCIÓN DE GAS POR ... - inicio

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

If FUN returns a vector F of m components when X has length n, then J is an m-by-nmatrix where J(i,j) is the partial derivative of F(i) with respect to x(j). (Note that theJacobian J is the transpose of the gradient of F.)ANEXO 4. MATLAB. FUNCIONES AVANZADAS <strong>DE</strong> <strong>SISTEMAS</strong> NO LINEALES.[X,RESNORM]=LSQNONLIN(FUN,X0,...) returns the value of the squared 2-norm ofthe residual at X: sum(FUN(X).^2).[X,RESNORM,RESIDUAL]=LSQNONLIN(FUN,X0,...) returns the value of theresidual at the solution X: RESIDUAL = FUN(X).[X,RESNORM,RESIDUAL,EXITFLAG]=LSQNONLIN(FUN,X0,...) returns anEXITFLAG that describes the exit condition of LSQNONLIN.Possible values of EXITFLAG and the corresponding exit conditions are1 LSQNONLIN converged to a solution X.2 Change in X smaller than the specified tolerance.3 Change in the residual smaller than the specified tolerance.4 Magnitude search direction smaller than the specified tolerance.0 Maximum number of function evaluations or of iterations reached.-1 Algorithm terminated by the output function.-2 Bounds are inconsistent.-4 Line search cannot sufficiently decrease the residual along thecurrent search direction.[X,RESNORM,RESIDUAL,EXITFLAG,OUTPUT]=LSQNONLIN(FUN,X0,...) returns astructure OUTPUT with the number of iterations taken in OUTPUT.iterations, thenumber of function evaluations in OUTPUT.funcCount, the algorithm used inOUTPUT.algorithm, the number of CG iterations (if used) in OUTPUT.cgiterations,the first-order optimality (if used) in OUTPUT.firstorderopt, and the exit message inOUTPUT.message.

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

Saved successfully!

Ooh no, something went wrong!