Skip to content
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

add more tests (in particular from MathProgBase) #73

Merged
merged 20 commits into from
Oct 24, 2018
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: explicit broadcast (.-)
  • Loading branch information
rschwarz committed Oct 24, 2018
commit fc14e01d374d1b2710ee4bbb789618e69e3aaf83
4 changes: 2 additions & 2 deletions src/mpb_interface.jl
Original file line number Diff line number Diff line change
Expand Up @@ -246,13 +246,13 @@ MathProgBase.getnodecount(m::SCIPLinearQuadraticModel) = error("Not implemented

function MathProgBase.addsos1!(m::SCIPLinearQuadraticModel, idx, weight)
nidx = Cint(length(idx))
cidx = convert(Vector{Cint}, idx - 1)
cidx = convert(Vector{Cint}, idx .- 1)
_addSOS1(m, nidx, cidx, weight, Ptr{Cint}(C_NULL))
end

function MathProgBase.addsos2!(m::SCIPLinearQuadraticModel, idx, weight)
nidx = Cint(length(idx))
cidx = convert(Vector{Cint}, idx - 1)
cidx = convert(Vector{Cint}, idx .- 1)
_addSOS2(m, nidx, cidx, weight, Ptr{Cint}(C_NULL))
end

Expand Down