Closed LebedevRI closed 5 months ago
Here's a simpler reproducible example.
julia> using JuMP
julia> import HiGHS
julia> import MiniZinc
julia> model = Model(() -> MiniZinc.Optimizer{Float64}("highs"))
A JuMP Model
Feasibility problem with:
Variables: 0
Model mode: AUTOMATIC
CachingOptimizer state: EMPTY_OPTIMIZER
Solver name: MiniZinc
julia> @variable(model, x, Bin)
x
julia> optimize!(model)
ERROR: InexactError: trunc(Int64, -Inf)
Stacktrace:
[1] trunc
@ ./float.jl:905 [inlined]
[2] ceil
@ ./float.jl:384 [inlined]
[3] _variable_info(model::MathOptInterface.Utilities.GenericModel{…}, x::MathOptInterface.VariableIndex)
@ MiniZinc ~/.julia/packages/MiniZinc/S9TPM/src/write.jl:38
[4] (::MiniZinc.var"#3#4"{MathOptInterface.Utilities.GenericModel{…}})(x::MathOptInterface.VariableIndex)
@ MiniZinc ./none:0
[5] iterate
@ ./generator.jl:47 [inlined]
I'll push a fix.
@odow thank you for taking a look!
See #68
@odow thank you!
This is julia 1.10.3 + up-to-date packages.
This does not happen with HiGHS. I suspect the reproducer can be trimmed significantly.