Skip to content

Commit

Permalink
fix another off-by-one in qconstr
Browse files Browse the repository at this point in the history
  • Loading branch information
mlubin committed Sep 22, 2013
1 parent 9ad94d4 commit b9a9448
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/grb_model.jl
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,7 @@ function add_qconstr!(model::Model, lind::Vector{Cint}, lval::Vector{Float64}, q
Float64, # rhs
Ptr{Uint8} # name
),
model, lnnz, lind-1, lval-1, qnnz, qr-1, qc-1, qv, rel, rhs, C_NULL)
model, lnnz, lind-1, lval, qnnz, qr-1, qc-1, qv, rel, rhs, C_NULL)

if ret != 0
throw(GurobiError(model.env, ret))
Expand Down

0 comments on commit b9a9448

Please sign in to comment.