ghada ouerfelli

  • Gurobi-versary
  • Curious
  • Conversationalist
  • Total activity 30
  • Last activity
  • Member since
  • Following 0 users
  • Followed by 0 users
  • Votes 0
  • Subscriptions 8

Comments

Recent activity by ghada ouerfelli Recent activity Votes
  • Hello, the problem in my model is how to convert the database  S1 and S2 of week zero into   S1[1,0].ub and S1[2,0].lb , the same for S2 , I sent the excel files by email  S1 and S2 are variables f...

  • hello by Initial stock I wanna say the S1 in my week zero , it is my initial stock , like this but i have a lot of products that is why I need an excel database  S1[1,0].lb=1S1[1,0].ub=1S1[2,0].lb=...

  • Thanks a lot for your support 

  • Sorry but I still have the same problem import gurobipy as gpfrom gurobipy import GRBm=gp.Model("Log")weeks = [0,1,2,3,4]products=[1,2]L=10k=2a=[[0,0,10,0,0],[0,20,0,0,0],]l=[[0,2,3,1,2], [...

  •  File "C:\Users\Ghada\PycharmProjects\Logistika Program\Logistika Program.py", line 55, in <genexpr>    m.addConstrs(S[p,weeks[weeks.index(t)-1]]+a[p][t] == l[p][t]+S[p][t] for p in products for t ...

  • Yes I m a beginner in python and optimization , I will try to improve my self import gurobipy as gpfrom gurobipy import GRBm=gp.Model("Log")#weeks = range(0,5)weeks = [0,1,2,3,4]#products=range(0,2...

  • When I change range by a list , I found some errors like  S1[0,0].lb=1KeyError: (0, 0) what should I do  weeks = range(0,5)byweeks = [0,1,2,3,4] and products=range(0,2)byproducts=[1,2]

  • thanks a lot

  • thanks a lot a lot Sir your guide  but there is something I wanna ask for it : when I write print (l2) print (l3)  the program shows only l2 in double  Warning: variables 40 and 50 have the same na...

  • sorry  for this type of error but I still have another result different from Cplex