Commit c6bab97a authored by Miroslav Kratochvil's avatar Miroslav Kratochvil
Browse files

document `optimize_objective`

parent bc215ecf
Pipeline #44924 passed with stages
in 17 minutes and 8 seconds
......@@ -59,6 +59,12 @@ function is_solved(optmodel)
false
end
"""
optimize_objective(optmodel)::Union{Float64,Nothing}
Shortcut for running JuMP `optimize!` on a model and returning the objective
value, if solved.
"""
function optimize_objective(optmodel)::Union{Float64,Nothing}
optimize!(optmodel)
if is_solved(optmodel)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment