Problem with python code and cvxopt

78 views
Skip to first unread message

Ha Thanh Minh

unread,
Oct 29, 2017, 2:04:16 AM10/29/17
to CVXOPT
I am learning branch-and-bound methods from this course: https://stanford.edu/class/ee364b/lectures.html
and running the python file (bb30.py) 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!



Reply all
Reply to author
Forward
0 new messages