Access variables in vector using Symbols

You need model[:a][1]. model[:a] fetches the vector of variables.

See also variable_by_name: Variables · JuMP

3 Likes