Skip to content

Commit

Permalink
Damp initial iterations of Broyden's method used in ID parameter control
Browse files Browse the repository at this point in the history
  • Loading branch information
iago-mendes committed Nov 15, 2024
1 parent a0a5f64 commit e5291b3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion support/Pipelines/Bbh/ControlId.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,8 @@ def Residual(u):
F = Residual(u)

# Update the Jacobian using Broyden's method
J += np.outer(F, Delta_u) / np.dot(Delta_u, Delta_u)
damping_factor = 1.0 - np.exp(-0.5 * iteration)
J += np.outer(F, Delta_u) / np.dot(Delta_u, Delta_u) * damping_factor

data_file.close()

Expand Down

0 comments on commit e5291b3

Please sign in to comment.