Skip to content

Commit

Permalink
Add a callback function that runs each iteration of the solver
Browse files Browse the repository at this point in the history
  • Loading branch information
timothy-nunn committed Aug 16, 2023
1 parent 3517758 commit ce63941
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pyvmcon/vmcon.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def solve(
epsilon: float = 1e-8,
qsp_options: Optional[Dict[str, Any]] = None,
initial_B: Optional[np.ndarray] = None,
callback: Optional[Callable[[int, np.ndarray, Result], None]],
callback: Optional[Callable[[int, np.ndarray, Result], None]] = None,
):
"""The main solving loop of the VMCON non-linear constrained optimiser.
Expand Down

0 comments on commit ce63941

Please sign in to comment.