The problem of planning a job complex with the use of resources of various types - renewable (performers who can differ with the productivity) and several types of non-renewable is considered. We allow interruptions, and switching from one performer to another and performing one work simultaneously by several performers. The available number of performers at different times is not constant, and their productivity may vary. A developed algorithm finds the optimal allocation of resources and builds the optimal schedule of jobs. The algorithm based on building a flow network model and modifying the packing procedure