The problem is solved by updating “GalacticOptim” to the latest version (3.4.0) and changing the keyarg: “cb” → callback.
The next code works as expected.
result1 = GalacticOptim.solve(optprob1, ADAM(0.01), callback=callback, maxiters=10)
The problem is solved by updating “GalacticOptim” to the latest version (3.4.0) and changing the keyarg: “cb” → callback.
The next code works as expected.
result1 = GalacticOptim.solve(optprob1, ADAM(0.01), callback=callback, maxiters=10)