I am really struggling with programming this model in Python. Firstly, objective function with natural logarithms is not acceptable in Gurobi, addGenConstrLog should be used i can understand that but i couldnt do it. Secondly, in the first constraint i write the code below, is this okay ?
Thanks for your help
for i in range(3):
for j in range(3):
if i != j:
model.addConstr(gp.quicksum(WL[i] for i in range(3)) + gp.quicksum(WR[j] for j in range(3) if i != j) >= 1)
Please sign in to leave a comment.