diff --git a/examples/contraction/JuMP.jl b/examples/contraction/JuMP.jl index 71bccefd3..5d78b28d6 100644 --- a/examples/contraction/JuMP.jl +++ b/examples/contraction/JuMP.jl @@ -105,7 +105,7 @@ function get_lagrange_polys(pts::Matrix{T}, deg::Int) where {T <: Real} end # returns the multivariate Chebyshev polynomials in x up to degree deg -function get_chebyshev_polys(x::Vector{DP.PolyVar{true}}, deg::Int) +function get_chebyshev_polys(x::Vector{DP.Variable{true}}, deg::Int) if deg > 8 @warn("get_chebyshev_polys is not numerically stable for large degree") end @@ -124,7 +124,7 @@ function get_chebyshev_polys(x::Vector{DP.PolyVar{true}}, deg::Int) return V end -function get_chebyshev_univ(monovec::Vector{DP.PolyVar{true}}, deg::Int) +function get_chebyshev_univ(monovec::Vector{DP.Variable{true}}, deg::Int) if deg > 8 @warn("get_chebyshev_univ is not numerically stable for large degree") end diff --git a/examples/semidefinitepoly/JuMP.jl b/examples/semidefinitepoly/JuMP.jl index 92bd1567c..ed8e8e202 100644 --- a/examples/semidefinitepoly/JuMP.jl +++ b/examples/semidefinitepoly/JuMP.jl @@ -15,7 +15,7 @@ import SumOfSquares import PolyJuMP struct SemidefinitePolyJuMP{T <: Real} <: ExampleInstanceJuMP{T} - x::Vector{<:DP.PolyVar} + x::Vector{<:DP.Variable} H::Matrix{<:DP.Polynomial} is_feas::Bool # whether model should be primal-dual feasible; only for testing use_wsosmatrix::Bool # use wsosinterppossemideftri cone, else PSD formulation @@ -23,7 +23,7 @@ struct SemidefinitePolyJuMP{T <: Real} <: ExampleInstanceJuMP{T} end function SemidefinitePolyJuMP{Float64}( - x::Vector{DP.PolyVar{true}}, + x::Vector{DP.Variable{true}}, poly::DP.Polynomial, args..., )