Skip to content

Commit

Permalink
make iter global
Browse files Browse the repository at this point in the history
  • Loading branch information
Vaibhavdixit02 committed Oct 5, 2023
1 parent debf150 commit cb304de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/OptimizationMOI/test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ end

optprob = OptimizationFunction((x, p) -> -rosenbrock(x, p), Optimization.AutoZygote())
prob = OptimizationProblem(optprob, x0, _p; sense = Optimization.MaxSense)
iter = 0
global iter = 0
callback = function (p, l)
global iter
iter += 1
Expand Down

0 comments on commit cb304de

Please sign in to comment.