We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3422b87 commit df3da2aCopy full SHA for df3da2a
src/constraint.jl
@@ -31,7 +31,9 @@ nconstraints(f::VAF, s) = MOI.output_dimension(f)
31
function _allocateconstraint!(m::SOItoMOIBridge, f, s)
32
ci = CI{typeof(f), typeof(s)}(m.nconstrs)
33
n = nconstraints(f, s)
34
- m.constrmap[ci] = m.nconstrs .+ (1:n)
+ # Fails on Julia v0.6
35
+ #m.constrmap[ci] = m.nconstrs .+ (1:n)
36
+ m.constrmap[ci] = (m.nconstrs + 1):(m.nconstrs + n)
37
m.nconstrs += n
38
resize!(m.slackmap, m.nconstrs)
39
createslack!(m, ci, f, s)
0 commit comments