The properties of a production system working under stochastic processing conditions are investigated. The production
system consists of batch units of an input subsystem and a continuously operated deterministic output one which are
coupled by an intermediate storage system. The randomness of operation is caused by the uncertainties of batch sizes and
the time intervals of arrival to the storage. Taking into account the expenses and the income arising from the production
the expectation of the profit is defined and investigated. An integral equation is presented for the expected profit, and is
solved using Monte Carlo method. The optimal initial amount of material to be processed, storage volume and
withdrawing rate are determined by simulation