The function to optimize in JuMP

I just want to be sure I really understand this error because I’ve seen it in another context now. Use of println(typeof(.)) statements tell me that each element of y is float64 after it is modified as well as the initial vector being Array{Float64,2}. So I’m not really assigning the same name to data of different types the way you warn me about, right? It’s the dual numbers required for autodiff that make those elements of y into a different type that somehow could not be converted back to Float64 and caused a conversion error.

Is that because Julia needs to convert the vector y to have the same number of dimensions as the scalars alpha and beta for the autodiff?