Skip to content

Commit

Permalink
Merge pull request #27 from JuliaOpt/bl/j1updates
Browse files Browse the repository at this point in the history
Updates variabletype -> variable_type
  • Loading branch information
blegat committed Sep 28, 2018
2 parents c54ebcd + ce0b455 commit 3766d27
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,7 @@ julia:
notifications:
email: false
before_script:
- julia -e 'Pkg.add("JuMP")'
- julia -e 'Pkg.checkout("JuMP")'
before_script:
- julia -e 'if VERSION >= v"0.7.0-DEV.5183" using Pkg end; Pkg.clone("JuMP")'
- julia -e 'if VERSION >= v"0.7-"; using Pkg; Pkg.add(PackageSpec(name="JuMP", rev="master")); else Pkg.add("JuMP"); Pkg.checkout("JuMP"); end'
after_success:
# push coverage results to Coveralls
- julia -e 'cd(Pkg.dir("PolyJuMP")); Pkg.add("Coverage"); using Coverage; Coveralls.submit(Coveralls.process_folder())'
Expand Down
2 changes: 1 addition & 1 deletion src/default_methods.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Free polynomial
JuMP.variabletype(m::JuMP.Model, p::Poly) = polytype(m, p, p.polynomial_basis)
JuMP.variable_type(m::JuMP.Model, p::Poly) = polytype(m, p, p.polynomial_basis)
function polytype(m::JuMP.Model, ::Poly, pb::AbstractPolynomialBasis)
MultivariatePolynomials.polynomialtype(pb, JuMP.VariableRef)
end
Expand Down

0 comments on commit 3766d27

Please sign in to comment.