Skip to content

Commit a8ad8cd

Browse files
committed
fix optimize hook
1 parent 53e4e41 commit a8ad8cd

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/model.jl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,13 @@ end
4141
# See https://github.com/jump-dev/JuMP.jl/blob/9ea1df38fd320f864ab4c93c78631d0f15939c0b/src/JuMP.jl#L718-L745
4242
function _optimize_hook(
4343
model::JuMP.AbstractModel;
44-
method::AbstractSolutionMethod
44+
method::AbstractSolutionMethod,
45+
kwargs...
4546
) # can add more kwargs if wanted
4647
if !_ready_to_optimize(model) || _solution_method(model) != method
4748
reformulate_model(model, method)
4849
end
49-
return optimize!(model; ignore_optimize_hook = true)
50+
return optimize!(model; ignore_optimize_hook = true, kwargs...)
5051
end
5152

5253
################################################################################

0 commit comments

Comments
 (0)