Skip to content
This repository was archived by the owner on May 5, 2026. It is now read-only.

Commit 61abd85

Browse files
authored
Add files via upload
- minor change
1 parent 00ac094 commit 61abd85

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

multioptpy/Optimizer/block_hessian_update.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -267,8 +267,7 @@ def _block_CFD_FSB_update(self, B, S, Y):
267267
c_list.append(c)
268268

269269
c_mean = float(np.mean(c_list)) if len(c_list) > 0 else 0.0
270-
# Use sqrt weighting as in single-step FSB
271-
w = np.sqrt(c_mean)
270+
w = c_mean
272271
Bp = B + w * B_sr1 + (1.0 - w) * B_bfgs
273272
return symm(Bp)
274273

0 commit comments

Comments
 (0)