How I can solve this problem?
I just have started to use it, So I would like some advise.
The error is
Traceback (most recent call last):
File "C:/Users/proje201/Desktop/python/test3", line 39, in <module>
m.addConstr(y[i,j]*d[i,j]<=30,"Limit_distance_%s_%s"%(i,j))
TypeError: list indices must be integers, not tuple
May be have some problem with parameter "d"
that I input
d = [[10,20,30],
[20,30,10],
[30,10,20],
[10,40,30],
[40,10,20]]
Please recommend and solve this problem for me
I have attached file in this email too.
best regards