Difference in the behavior of getp
and getu(::BatchedInterface)
for scalars mized with vectors
#97
Labels
bug
Something isn't working
Describe the bug 🐞
Using
getp
with mixed scalar and array variables leads to aVector{Any}
of both scalar and vector values, whilegetu(::BatchedInterface)
scalarizes the array variables.Expected behavior
I think they should behave the same.
Minimal Reproducible Example 👇
Considering
we get
julia> getp(ref_prob, tp)(ref_prob) 2-element Vector{Any}: [1.0, 3.0] 1.5
and
Environment (please complete the following information):
using Pkg; Pkg.status()
using Pkg; Pkg.status(; mode = PKGMODE_MANIFEST)
versioninfo()
Additional context
I can reproduce this behavior on older versions of MTK&SII, I tried up until [email protected]
The text was updated successfully, but these errors were encountered: