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

Gurobi.jl doesn't support `MOI.set(model, MOI.SolutionLimit(), nr_solutions)`

Open langestefan opened this issue 1 year ago • 1 comments

I am trying to set a solution limit like this:

model = Model(Gurobi.Optimizer)
MOI.set(model, MOI.SolutionLimit(), 4)

Which returns:

MathOptInterface.UnsupportedAttribute{MathOptInterface.SolutionLimit}: Attribute MathOptInterface.SolutionLimit() is not supported by the model.

I believe Gurobi should support this feature?

langestefan avatar Oct 22 '24 19:10 langestefan

This was only added to MathOptInterface v1.21.0. No one has added support for it to Gurobi.jl yet. PRs accepted.

odow avatar Oct 22 '24 19:10 odow