Some extensions of the discrete lotsizing and scheduling problem