Skip to content

Commit 8790829

Browse files
authored
Merge pull request #15 from JuliaOpt/bl/moi0.4
Updates for MOI v0.4
2 parents 83caa30 + 742e79c commit 8790829

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ os:
55
- osx
66
julia:
77
- 0.6
8-
- nightly
8+
- 0.7
99
notifications:
1010
email: false
1111
git:

REQUIRE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
julia 0.6
2-
MathOptInterface 0.3 0.4
2+
MathOptInterface 0.4 0.5

src/constraint.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ end
2626

2727
nconstraints(f::Union{SVF, SAF}, s) = 1
2828
nconstraints(f::VVF, s) = length(f.variables)
29-
nconstraints(f::VAF, s) = MOIU.moilength(f)
29+
nconstraints(f::VAF, s) = MOI.output_dimension(f)
3030

3131
MOIU.canallocateconstraint(::SOItoMOIBridge{T}, f::Type{<:Union{VF, AF{T}}}, ::Type{<:SupportedSets}) where T = true
3232
function _allocateconstraint!(m::SOItoMOIBridge, f, s)
@@ -84,7 +84,7 @@ function loadcoefficients!(m::SOItoMOIBridge, cs::UnitRange, f::AF, s)
8484
end
8585
end
8686
end
87-
for j in 1:MOIU.moilength(f)
87+
for j in 1:MOI.output_dimension(f)
8888
c = cs[j]
8989
setconstraintconstant!(m.sdoptimizer, rhs[j], c)
9090
end

0 commit comments

Comments
 (0)