Closed
Description
I'm trying to find multiple feasible solutions in the attached problem. However, I am running into the following road blocks:
- If I use MiniZinc/HiGHS, adding
SolutionLimit
results in an error. - If I use MiniZinc/HiGHS and don't add the
SolutionLimit
line, 1 solution is successfully found.
Can HiGHS be used with MiniZinc to find multiple solutions?
using JuMP, MiniZinc
model = read_from_file("feasibility.mof.json")
set_optimizer(model, () -> MiniZinc.Optimizer{Float64}("highs"))
set_optimizer_attribute(model, MOI.SolutionLimit(), 5)
optimize!(model)
Dict(v => value(v) for v in all_variables(model))
ERROR: Result index of attribute MathOptInterface.VariablePrimal(1) out of bounds. There are currently 0 solution(s) in the model.
Metadata
Metadata
Assignees
Labels
No labels