Skip to content

Commit

Permalink
Update docs/src/tutorials/algorithms/benders_decomposition.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
odow authored Oct 5, 2023
1 parent 8d2d4eb commit 2243ada
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/src/tutorials/algorithms/benders_decomposition.jl
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ function my_callback(cb_data)
end
x_k = callback_value.(cb_data, x)
θ_k = callback_value(cb_data, θ)
number_of_subproblem_solves += 1
global number_of_subproblem_solves += 1
ret = solve_subproblem(x_k)
if θ_k < (ret.obj - 1e-6)
## Only add the constraint if θ_k violates the constraint
Expand Down

0 comments on commit 2243ada

Please sign in to comment.