Skip to content

Finding multiple feasible solutions using MiniZinc/HiGHS fails #95

Closed
@hdavid16

Description

@hdavid16

I'm trying to find multiple feasible solutions in the attached problem. However, I am running into the following road blocks:

  1. If I use MiniZinc/HiGHS, adding SolutionLimit results in an error.
  2. 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?

feasibility.mof.json

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions