Hi!

I use the version JuMP v0.21.4 and Julia v1.4.2 and I optimizing with Ipopt

I ve been working in a non-linear optimization model. Sorry for not presenting a MWE but my code is full of things.

I have a problems with an exponential expression that I would like to use afterwards in an `@NLconstraint`

. In the following piece of code *S* is my array of variables.

I originally created this code without the `convert(Array{Any}...`

but I got an error and I coudn’t even calculate the array *Sd*. Now the problem is that when including *Sd* in a non-linear expression I get the error copied at the end. I also tried to build this into an `@NLexpression`

but that didn’t work either.

```
for e in 1:E
for i in 2:K*T
Sd[i,1,e]=S[i,1,e]-S[i-1,1,e]
end
end
Sd
exp(ϵ*Sd)/(1+exp(ϵ*Sd))```
MethodError: no method matching exp(::Array{Any,3})
Closest candidates are:
exp(!Matched::Float16) at math.jl:1114
exp(!Matched::Complex{Float16}) at math.jl:1115
exp(!Matched::Missing) at math.jl:1167
```