Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/source/vmcon.rst
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ The definition of :math:`\vec{\eta}` ensures :math:`\mathbf{B}` remains positive
We can then perform the BFGS update:

.. math::
\mathbf{B_{NEW}} = \mathbf{B} - \frac{\mathbf{B}\vec{\xi}\vec{\xi}^T\mathbf{B}}{\vec{\xi}^T\mathbf{B}\vec{\xi}} + \frac{ \vec{\eta} \vec{\eta}^T}{\vec{\xi}^T\vec{\eta}}
\mathbf{B_{NEW}} = \mathbf{B} - \frac{\mathbf{B}\vec{\xi}\vec{\xi}^T\mathbf{B}^T}{\vec{\xi}^T\mathbf{B}\vec{\xi}} + \frac{ \vec{\eta} \vec{\eta}^T}{\vec{\xi}^T\vec{\eta}}


The VMCON Algorithm
Expand Down
2 changes: 1 addition & 1 deletion src/pyvmcon/vmcon.py
Original file line number Diff line number Diff line change
Expand Up @@ -544,7 +544,7 @@ def calculate_new_B(

# eqn 8
B_ksi = B @ ksi
B += (gamma @ gamma.T) / (ksi.T @ gamma) - ((B_ksi @ ksi.T @ B) / (ksi.T @ B_ksi))
B += (gamma @ gamma.T) / (ksi.T @ gamma) - ((B_ksi @ ksi.T @ B.T) / (ksi.T @ B_ksi))

return B

Expand Down