Emma Innocente
 Total activity 22
 Last activity
 Member since
 Following 0 users
 Followed by 0 users
 Votes 0
 Subscriptions 3
Activity overview
Latest activity by Emma Innocente
Emma Innocente commented,
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...

Emma Innocente commented,
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...

Emma Innocente commented,
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...

Emma Innocente commented,
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')...

Emma Innocente commented,
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)

Emma Innocente commented,
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', '...

Emma Innocente created a post,
Gurobipy  Model.addVars()
AnsweredHi, Modeling with gurobipy, is there a way to create variables with the same keys (multiple variables with the same indexes) ? Thank you for your answer ! Emma

Emma Innocente commented,
Hi Riley ! Thank you very much for your help ! I managed to prevent memory issues by paying attention to how I recorded data ! I would like to model the following (modeled using PULP) constraint ...

Emma Innocente created a post,
Modelling with gurobipy
Awaiting user inputHi, I would like to model the following constraint with gurobipy : time_R = [2 for i in full_R]time_L = [(0,2) for i in full_L] w_L = [[0, 1, 2, 3], [4, 5, 6, 7], [8, 9, 10, 11], [12, 13, 14, 15]...

Emma Innocente commented,
The dimensions are 100x10x100x100 and currently, the values are not overwritten.