Can JuMP.jl create a sparse array variable that can be used as a full matrix?

Thank you very much for your reply! The code you provided is very helpful.

On the basis of the solution you provided, I raised a new question. If you have time, I’d like to ask you for help!