I am learning branch-and-bound methods from this course: https://stanford.edu/class/ee364b/lectures.html and running the python file utilizing python 3.5. However, I face with one problem which, I guess, is at the following commands:
min_mat = matrix(0, (n,n), tc='d')
min_mat[range(0, n**2, n+1)] = matrix(mins)
max_mat = matrix(0, (n,n), tc='d')
max_mat[range(0, n**2, n+1)] = matrix(maxes)
The error is that:
min_mat[range(0, n**2, n+1)] = matrix(mins)
TypeError: invalid index arguments
Could you please help me fix this problem?
Thank you very much!