Skip to content

Commit

Permalink
Update Travis with JuMP release
Browse files Browse the repository at this point in the history
  • Loading branch information
blegat committed Aug 27, 2019
1 parent fe809a7 commit 70d5aec
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 0 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,5 @@ julia:
- 1.0
- 1.1
- 1.2
before_script:
- julia -e 'using Pkg; Pkg.add(PackageSpec(name="JuMP", rev="master"))'
notifications:
email: false
7 changes: 7 additions & 0 deletions src/attributes.jl
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,10 @@ MomentsAttribute() = MomentsAttribute(1)
function MOI.is_set_by_optimize(::MomentsAttribute)
return true
end

# This is type piracy but we tolerate it.
const ObjectWithoutIndex = Union{AbstractMonomial, AbstractTerm{<:MOI.Utilities.ObjectWithoutIndex}, AbstractPolynomial{<:MOI.Utilities.ObjectWithoutIndex}}
const ObjectOrTupleWithoutIndex = Union{ObjectWithoutIndex, Tuple{Vararg{ObjectWithoutIndex}}}
const ObjectOrTupleOrArrayWithoutIndex = Union{ObjectOrTupleWithoutIndex, AbstractArray{<:ObjectOrTupleWithoutIndex}}
MOI.Utilities.map_indices(::Function, x::ObjectOrTupleOrArrayWithoutIndex) = x
MOI.Utilities.substitute_variables(::Function, x::ObjectOrTupleOrArrayWithoutIndex) = x

0 comments on commit 70d5aec

Please sign in to comment.