You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to run and optimization problem using Gurobi with JuMP 0.18. However the model fails with the following error:
Assertion error: rowub[i]< posinf
in solve at JuMP\I7whV\src\solvers.jl:150
in #solve#105 at JuMP\I7whV\src\solvers.jl:168
in #build at base\none
in #build#108 at JuMP\I7whV\src\solvers.jl:373
in loadproblem! at Gurobi\TX8tY\srcMPB_wrapper.jl:161
I have been trying to find the cause behind this error without any success. The error is being triggered in the following script:
rangeconstrs =sum((rowlb .!= rowub) .& (rowlb .> neginf) .& (rowub .< posinf))
if rangeconstrs >0@warn("Julia Gurobi interface doesn't properly support range "*"(two-sided) constraints. See Gurobi.jl issue #14")
add_rangeconstrs!(m.inner, float(A), float(rowlb), float(rowub))
# A work around for the additional slack variables introduced and the# reformulation bug warningappend!(obj, zeros(rangeconstrs))
else
b =Array{Float64}(undef, length(rowlb))
senses =Array{Cchar}(undef, length(rowlb))
for i in1:length(rowlb)
if rowlb[i] == rowub[i]
senses[i] ='='
b[i] = rowlb[i]
elseif rowlb[i] > neginf
senses[i] ='>'
b[i] = rowlb[i]
else@assert rowub[i] < posinf
senses[i] ='<'
b[i] = rowub[i]
endendadd_constrs!(m.inner, float(A), senses, b)
end
Thank you
Edit(odow): formatting
The text was updated successfully, but these errors were encountered:
I am trying to run and optimization problem using Gurobi with JuMP 0.18. However the model fails with the following error:
I have been trying to find the cause behind this error without any success. The error is being triggered in the following script:
Thank you
Edit(odow): formatting
The text was updated successfully, but these errors were encountered: