Emma Innocente

Gurobi-versary
Conversationalist
First Question
  • Total activity 24
  • Last activity
  • Member since
  • Following 0 users
  • Followed by 0 users
  • Votes 0
  • Subscriptions 4

Comments

Recent activity by Emma Innocente Recent activity Votes
  • 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', '...

  • 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 ...

  • The dimensions are 100x10x100x100 and currently, the values are not overwritten.

  • Hi Riley,  Thank you for your answer, I will try it immediately and keep you posted !  Do you think I could have a similar issue with  v = np.zeros((K, T, len(full_R), len(full_L))) Do you think it...

  • Hi Riley,  My data file is just a 100 by 100 matrix of randomly generated numbers between 0 and 10000 (=randbetween(0;10000) on Excel).  If you still want it, can you tell me how to send it to you?...