You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#Only the necessary variables are instanciatedvariables= []
foriinI:
forjinI:
if (s[j] >=t[i] ands[j] <=t[i]+2) or (i==0andj!=0 )or ( i!=0andj==0) : # j in forward of iforkinK:
ifh[i] <=l[k] andh[j] <=l[k] andq[k]>=t[i] -s[i] +t[j] -s[j]: # k is able to do both i and jvariables.append((i,j,k))
X=m.addVars(variables, vtype=GRB.BINARY, name="x") #route variablesdf=pd.DataFrame(variables, columns= ['I', 'J', 'K'])
Here creating the variables, iterate j over the entire set I , however only under the conditions the variable is created.
is this correct?
for j in I?
in theory it is j belongs to FS(i).
The text was updated successfully, but these errors were encountered: