Let's say I have this dictionary :
cars = ["car1","car2","car3","car4","car5"]
x = LpVariable.dicts("car",cars, cat='Integer', lowBound=0, upBound=800)
Is there any way to add different lowBound and upBounds to each car, please?
Note
The easy code version looks like this :
car1 = LpVariable("car1", 0, 40)
car2 = LpVariable("car2", 0, 1000)
Please notice that the car1 upBound is 40 and the car 2 upBound is 1000.