Hi,
I am using a LP variable dict which should have 2 dimensions. The second dimension does not have the same depth for all elements. For example, if I call X that variable, X[0][] may have four elements X[0][0], ... , X[0][3], while X[1][] only has 2 X[1][0] and X[1][1]. The reason for this is due to my problem structure where the second dimension represents a number that is intrinsic to what the first dimension represents.
I have modelled this by using tuple indices so my variable X has the following structure: X_(0,_0), X_(0,_1),X_(0,_2), X_(0,_3), X_(1,_0) and X_(1,_1).
I would like instead to use a nested dict for X so I can use the notation X[0][0], X[1][0], ... to access the elements in X. But I haven't figured out how to define such an X in PuLP.
Does anyone know how to do this?