Posts by Fernanda • 11 points
2 posts
-
1
votes0
answers40
viewsQ: How to declare objective function in Python containing the same variable but for different ranges?
I have a binary variable x[i][j][t] defined in the range for i in dat.I for j in dat.I if i != j for t in range(len(dat.H[0]) + 1) I need such a variable to be multiplied by a -Lambda[i][t]…
-
0
votes0
answers70
viewsQ: Parameter and variable multiplication with different index numbers
Good night, I’m doing an implementation of a mathematical model of optimization in Python 3.4. I need to multiply a parameter "Lambda" indexed in i,j,tt and a variable "x" indexed in i,t. The…