ghada ouerfelli
- Total activity 30
- Last activity
- Member since
- Following 0 users
- Followed by 0 users
- Votes 0
- Subscriptions 8
Comments
Recent activity by ghada ouerfelli-
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
-
My Model is infeasble import gurobipy as gpfrom gurobipy import GRBm=gp.Model("Log")weeks = range(0,4)#weeks = [0,1,2,3,4]products=range(1,2)#products=[1,2]L=10k=2a=[[0,0,10,0,0],[0,20,0,0,0],]l=[[...
-
I will send you the model to understand the default it will better
-
S1[1,0]=1S1[2,0]=2S2[1,0]=3S2[2,0]=4it is my initial stock in two warehouses in week zero
-
thanks but I didn'i find the same result with CPLEX the right solution is // solution (optimal) with objective 106 l2 = [[0 0 0 0 0] [0 0 0 0 0]];l3 = [[0 1 0 2 0] ...
-
I have an other error : m.addConstrs((S1('*',t) for t in weeks) <=L)TypeError: '<=' not supported between instances of 'generator' and 'int' import gurobipy as gpfrom gurobipy import GRBm=gp.Mode...