Any help would be appreciated with this problem:
using NLopt
using JuMP
m=Model(solver=NLoptSolver(algorithm=:DIRECT))
R_=diagm([R0,R1])
R=flipdim(R_,2)
Q=diagm([Q0,Q1])
T=kron(Q,Diagonal(ones(2)))+kron(Diagonal(ones(2)),conj(Q))+kron(R,conj(R))
@variable(m,R0)
@variable(m,R1)
@variable(m,Q0)
@variable(m,Q1)
W=e^(T)
@NLobjective(m,Min,W)
status=solve(m)
Error:
MethodError: no method matching ^(::Irrational{:e}, ::Array{JuMP.GenericQuadExpr{Float64,JuMP.Variable},2})
Closest candidates are:
^(::Irrational{:e}, ::Irrational) at irrationals.jl:219
^(::Irrational{:e}, ::Rational) at irrationals.jl:219
^(::Irrational{:e}, ::Integer) at irrationals.jl:219
I have omitted some details and shortened functions for privacy but I could include more if necessary.