Gurobi.jl icon indicating copy to clipboard operation
Gurobi.jl copied to clipboard

Attributes should define is_set_by_optimize

Open odow opened this issue 4 years ago • 2 comments

See the discussions here: https://github.com/jump-dev/JuMP.jl/issues/2587 https://github.com/jump-dev/JuMP.jl/pull/2784

odow avatar Nov 01 '21 20:11 odow

Does https://github.com/jump-dev/JuMP.jl/issues/2587#issuecomment-834065020 solve the problem? Based on fix of JuMP side above, should we define the following code here to solve this problem?

MOI.is_set_by_optimize(::ModelAttribute) = true
MOI.is_set_by_optimize(::VariableAttribute) = true
MOI.is_set_by_optimize(::ConstraintAttribute) = true

metab0t avatar Nov 12 '21 17:11 metab0t

Yes, I think that's sufficient for now.

odow avatar Nov 12 '21 22:11 odow