I have the following decision variables in JuMP: @variable(model, x[j in positions, k in orders, i in machines], Bin) @variable(model, D[i in machines, j in positions] >=0)
The functions “getvalue” or “JuMP.value” are not collecting the values of decision variables after the CPLEX finds the global optimal solution. If the variable is a scalar, “getvalue” or “JuMP.value” are returning the value correctly. Is there another function for multi-dimensional variables?
Dear Mik, thank you very much for your attention. Unfortunately,
x_vals = getvalue( model[:x] ) returns LoadError: MethodError: no method matching in my Julia.