I need to modelize with a Linear Integer Program the following problem :
We need to carry n different products from a factory to a warehouse. Each product has its own weight (the element i has a weight wi<W). We are using trucks with a maximum weight capacity of W, the objective is to minimize the number of truck used.
I tried different way but I always have trouble to modelize the number of truck in the objective function.
I used a variable Yij which equals 1 if the truck i carries the item j, 0 otherwise and managed to write the different constraints. But I can't find how to count the number of trucks used with that variable.
If anyone has any suggestion it would be very helpful.
Thanks