Skip to content

Commit

Permalink
Fix setwarmstart (#71)
Browse files Browse the repository at this point in the history
And a deprecation fix.
  • Loading branch information
mlubin authored Sep 22, 2018
1 parent 1d6eacb commit a9db9ba
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/CbcCInterface.jl
Original file line number Diff line number Diff line change
Expand Up @@ -296,8 +296,8 @@ function addSOS(prob::CbcModel, numRows::Integer, rowStarts::Vector{Cint},

@cbc_ccall(addSOS,Cvoid,(Ptr{Cvoid}, Cint, Ptr{Cint}, Ptr{Cint},
Ptr{Float64}, Cint),prob.p,numRows,
rowStarts-convert(Cint,1),
colIndices-convert(Cint,1),
rowStarts .- convert(Cint,1),
colIndices .- convert(Cint,1),
weights, typ)

end
Expand Down
2 changes: 1 addition & 1 deletion src/CbcSolverInterface.jl
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ function MPB.setwarmstart!(m::CbcMathProgModel, v)
end
lb = getRowLower(m.inner)
ub = getRowUpper(m.inner)
A = getconstrmatrix(m)
A = MPB.getconstrmatrix(m)
rowval = A*v
for i in 1:MPB.numconstr(m)
if !(lb[i] - 1e-6 <= rowval[i] <= ub[i] + 1e-6)
Expand Down

0 comments on commit a9db9ba

Please sign in to comment.