We consider BMAP/SM/1 type queueing system with finite buffer of size N. Th
e system has two operation modes, which are characterized by the matrix gen
erating function of BMAP-input, the kernel of the semi-Markovian service pr
ocess, and utilization cost. An algorithm for determining the optimal hyste
resis strategy is presented.