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

MethodError on 32-bit linux

Open odow opened this issue 2 years ago • 0 comments

See https://discourse.julialang.org/t/how-to-write-conditional-expression-using-jump/83106

The trace is

MethodError: no method matching get_branching_disc_idx!(::Juniper.JuniperProblem, ::Juniper.StepObj, ::Juniper.SolverOptions, ::Vector{Int64}, ::Juniper.GainObj, ::Int32)
Closest candidates are:
 get_branching_disc_idx!(::Any, ::Any, ::Any, ::Any, ::Any) at ~/.julia/packages/Juniper/0Z1vO/src/BnBTree.jl:14
 get_branching_disc_idx!(::Any, ::Any, ::Any, ::Any, ::Any, ::Int64) at ~/.julia/packages/Juniper/0Z1vO/src/BnBTree.jl:14

Stacktrace:
 [1] one_branch_step!(m1::Juniper.JuniperProblem, incumbent::Juniper.Incumbent, opts::Juniper.SolverOptions, step_obj::Juniper.StepObj, disc2var_idx::Vector{Int64}, gains::Juniper.GainObj, counter::Int32)
   @ Juniper ~/.julia/packages/Juniper/0Z1vO/src/BnBTree.jl:367
 [2] solve_sequential(tree::Juniper.BnBTreeObj, last_table_arr::Vector{Any}, time_bnb_solve_start::Float64, fields::Vector{Symbol}, field_chars::Vector{Int32}, time_obj::Juniper.TimeObj)
   @ Juniper ~/.julia/packages/Juniper/0Z1vO/src/BnBTree.jl:468
 [3] solvemip(tree::Juniper.BnBTreeObj)
   @ Juniper ~/.julia/packages/Juniper/0Z1vO/src/BnBTree.jl:743
 [4] optimize!(model::Juniper.Optimizer)
   @ Juniper ~/.julia/packages/Juniper/0Z1vO/src/MOI_wrapper/MOI_wrapper.jl:358
 [5] optimize!
   @ ~/.julia/packages/MathOptInterface/RuRWI/src/Bridges/bridge_optimizer.jl:354 [inlined]
 [6] optimize!
   @ ~/.julia/packages/MathOptInterface/RuRWI/src/MathOptInterface.jl:87 [inlined]
 [7] optimize!(m::MathOptInterface.Utilities.CachingOptimizer{MathOptInterface.Bridges.LazyBridgeOptimizer{Juniper.Optimizer}, MathOptInterface.Utilities.UniversalFallback{MathOptInterface.Utilities.Model{Float64}}})
   @ MathOptInterface.Utilities ~/.julia/packages/MathOptInterface/RuRWI/src/Utilities/cachingoptimizer.jl:316
 [8] optimize!(model::Model; ignore_optimize_hook::Bool, kwargs::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
   @ JuMP ~/.julia/packages/JuMP/Psd1J/src/optimizer_interface.jl:161
 [9] optimize!(model::Model)
   @ JuMP ~/.julia/packages/JuMP/Psd1J/src/optimizer_interface.jl:143
[10] top-level scope
   @ In[186]:189
[11] eval

Note the counter::Int32, but: https://github.com/lanl-ansi/Juniper.jl/blob/053661ebc023ff4534210207f9ca40c0ff42fca0/src/BnBTree.jl#L20

odow avatar Jun 23 '22 03:06 odow