A problem with JuMP Tutorial-linear problem-cannery problem

Hi,very thanks for replying,i think the problem is that the P and M are a keysets,so x[p,:] makes a error, i find a method ,change the code P = keys(data[“plants”]) to P = collect(keys(data[“plants”])), so the problem addressed.