| % Initialization | | maxGrad = ; maxIter = 100; maxTau = ; = 4; = 0; | | = 1; = ; = −; | | % Iterations | | while ( > maxGrad and < maxIter and > maxTau){ | | %Linear search | | min = (); opt = 0; = −; | | while ( <= s){ | | ; | | if (( + Δ) < min){min = ( + Δ); opt = ; } | | ; } | | = opt; | | = ; = (); = ; | | = − + ; | | = + 1; } |
|