Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Matrix op problem #559

Closed
IainNZ opened this issue Aug 31, 2015 · 1 comment
Closed

Matrix op problem #559

IainNZ opened this issue Aug 31, 2015 · 1 comment

Comments

@IainNZ
Copy link
Collaborator

IainNZ commented Aug 31, 2015

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
@IainNZ
Copy link
Collaborator Author

IainNZ commented Aug 31, 2015

JuliaLang/julia#12894

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant