-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
InexactError: trunc(Int64, -Inf)
in _variable_info
#67
Comments
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! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is julia 1.10.3 + up-to-date packages.
This does not happen with HiGHS. I suspect the reproducer can be trimmed significantly.
The text was updated successfully, but these errors were encountered: