Next: Matrix G and vector
Up: Broyden Solver
Previous: Improved initial guess
The modified Broyden algorithm discussed in class is:
- Trial step --
- Form trial step
- Prediction step --
- Form matrix
- Form vector
- Solve
- Form final prediction
Important note: This formulation of the algorithm uses
Rho
and g
in two different ways: to store the trial
step and residual (which we called Rho' and g' in lecture) and
to store the final prediction step. This becomes important for coding
only at the stage where we form the final Rho
. At the final
step, you should first multiply the contents of Rho
by
b
, and then loop over all of the preceding Rho
,
multiplying by b
and accumulating the final result into
Rho
.
Beginning with your code ``test_it'', make a new program
``broyden'' with the modifications below.
Tomas Arias
Mon Apr 2 13:24:52 EDT 2001