We considered the problem of strategic planning of the production in the factory. There is a set of orders to be performed in the planning horizon. For each order the set of items, due date (or deadline) and penalty function for delay are defined. For each item type a structure of production parts, a set of needed resources (workers, materials, equipment), number of items in a stock and a size of production batch are defined. We developed three models (two integer programming, one heuristics) to solve this problem for different objective function. Presented approaches were implemented and tested on real data.