Cannot assign a value to variable workspace

I am using Ipopt optimizer in a problem, I have created a variable name inside the model in an array form, for instance, (k,p[1:2]), after running the specific cell, it is giving me the error, that cannot assign a value to variable workspace142.p from module workspace159,

Could anybody suggest to me, how to get rid of this problem? Thanking you in advance!

JuMP doesn’t work in pluto because pluto doesn’t understand macros or mutation of structs.

Edit: here are the relevant issues: https://github.com/fonsp/Pluto.jl/issues/196, https://github.com/fonsp/Pluto.jl/issues/564

3 Likes