Emma Innocente
- 合計アクティビティ 24
- 前回のアクティビティ
- メンバー登録日
- フォロー 0ユーザー
- フォロワー 0ユーザー
- 投票 0
- サブスクリプション 4
コメント
Emma Innocenteによる最近のアクティビティ-
Each tuple in R corresponds to a driver, with the first element in each tuple being the origin of the driver and the second element being the destination of the driver. Each tuple in L corresponds...
-
Thank you very much ! This is clearer ! I followed your advice and proceeded as follows : RL = [(r, l) for r in R for l in L]with gp.Env() as env, gp.Model(env=env) as model: x = model.addVars(le...
-
Thank you for your answer. The only issue I have is that I won't be able to refer to my variables using the tuples but I would have to use the 15th elemnt for example. In order to refer to my vari...
-
Hi Ronald, Could you give me an example ? Suppose I have two lists of tuples : R = [('e', 'e'), ('e', 'e'), ('a', 'a'), ('e', 'e'), ('d', 'd')]L = [('d', 'd'), ('e', 'e'), ('d', 'd'), ('c', 'c')...
-
Thank you very much for your answer ! Would this be the correct way to do it ? for r in R: x = model.addVar(r, vtype=gp.GRB.BINARY)
-
Hi Ronald, Thanks a lot for your answer. I realize I wasn't very clear in my previous message. I have a list of tuples : R = [('b', 'b', 2), ('b', 'b', 2), ('e', 'e', 2), ('d', 'd', 2), ('c', '...