Which is the equivalent of status=solve(model); if status == :Optimal
in JuMP >= 0.19 ?
optimize!(model); if termination_status(model) == ????
Which is the equivalent of status=solve(model); if status == :Optimal
in JuMP >= 0.19 ?
optimize!(model); if termination_status(model) == ????
got it:
termination_status(model) == MOI.OPTIMAL
a bit more complicated
Here are the relevant docs: Query Solutions · JuMP