You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
julia> using JuMP
julia> m=Model()
Feasibility problem with:
* 0 linear constraints
* 0 variables
Solver set to Default
julia> @defVar(m, X[1:3,1:3])
3x3 Array{JuMP.Variable,2}:
X[1,1] X[1,2] X[1,3]
X[2,1] X[2,2] X[2,3]
X[3,1] X[3,2] X[3,3]
julia> X.*X
ERROR: MethodError: `convert` has no method matching convert(::Type{JuMP.Variable}, ::JuMP.GenericQuadExpr{Float64,JuMP.Variable})
This may have arisen from a call to the constructor JuMP.Variable(...),
since type constructors fall back to convert methods.
Closest candidates are:
JuMP.Variable(::Any, ::Any)
call{T}(::Type{T}, ::Any)
convert{T}(::Type{T}, ::T)
...
in _F_ at broadcast.jl:97
in broadcast! at broadcast.jl:228
in .* at sparse/sparsematrix.jl:906
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: