I am trying to solve the following generalized assignment problem in Gurobi. I managed to solve the problem when bij is =1 which is a simple assignment problem. Now I am trying to solve the generalized assignment problem when bij (capacity consumption values) has different values, but I got stuck in adding this bij parameter into the constraints. I think, I should firstly define bij (but not quite sure how to), then put into the Resource1 and Resource2 constraints, something like that, but it did not work.
Resource1 = m.addConstrs((x.sum('Resource1', '*')*b(i,j) for i in I for j in J<=5 ), 'Resource1')
Please sign in to leave a comment.