Creating a JuMP variable using @variable macro in JuMP:
@variable(model, x[1:87, 1:5, 1:3])
trying to set its name using JuMP.set_name method.
Problem:
able to set the name of one variable in this multi-dimensional variable set using:
JuMP.set_name(x[2,1,4], “multiD decision variable”)
but not set this same name for all the variables in this variable set:
JuMP.set_name(x, “multiD decision variable”)
error message:
MethodError: no method matching set_name(::Array{VariableRed,3}, ::String)
How can this (setting a name for the whole Julia variable x which is bound to all the JuMP variable in the container) be accomplished?