SU1099316A1 - Device for simulating queueing systems - Google Patents
Device for simulating queueing systems Download PDFInfo
- Publication number
- SU1099316A1 SU1099316A1 SU833563109A SU3563109A SU1099316A1 SU 1099316 A1 SU1099316 A1 SU 1099316A1 SU 833563109 A SU833563109 A SU 833563109A SU 3563109 A SU3563109 A SU 3563109A SU 1099316 A1 SU1099316 A1 SU 1099316A1
- Authority
- SU
- USSR - Soviet Union
- Prior art keywords
- input
- output
- group
- inputs
- elements
- Prior art date
Links
- 230000002441 reversible effect Effects 0.000 claims abstract description 33
- 238000012423 maintenance Methods 0.000 claims description 4
- 230000001934 delay Effects 0.000 abstract 1
- 238000010586 diagram Methods 0.000 description 3
- 230000001629 suppression Effects 0.000 description 2
- 108010002386 Interleukin-3 Proteins 0.000 description 1
- 238000012443 analytical study Methods 0.000 description 1
- 230000015572 biosynthetic process Effects 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000004088 simulation Methods 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
Landscapes
- Logic Circuits (AREA)
Abstract
1. УСТРОЙСТВО ДЛЯ МОДЕЛИРОВАНИЯ СИСТЕМ МАССОВОГО ОБСЛУЖИВАНИЯ, содержащее первый канал обслуживани за вок,состо щий из реверсивного счетчика, разр дные выходы которого соединены соответственно с входами первого элемента И и первого элемента ИЛИ, выход которого соединен с входом запуска блока обслуживани , второй элемент И, блок регистрации , отличающеес тем, что, с цепью .расширени функциональных во:зможностей путем модели.ровани ухода за вок из канала обслуживани с заданной веро тностью, оно дополнительно содержит коммутатор импульсов, второй канал обслуживани за вок, состо щий из последовательно соединенных реверсивного счетчика , элемента ИЛИ и блока обслуживани , и блок анализа ситуации, сост ТОЯ1ЦИЙ из генератора импульсов, генератора случайных импульсов, регистра сдвига, элемента И, двух элементов ИЛИ, двух элементов задержки, груп- пы элементов И, выход генератора импульсов соединен с сдвигающим входом регистра сдвига и входом первого элемента задержки, разр дные выходы реверсивного счетчика подключены соответственно к входам первого элемента ИЛИ, выход которого подключен к входу генератора случайных импульсов , выход которого соединен с вычитающим выходом реверсивного счетчика и входом второго элемента задержки, выход которого подключен к первому входу элемента И, второй вход которого соединен с выходом второго элемента ИЛИ, разр дные выходы регистра сдвига подключены.соответственно к первым входам элементов И группы, второй вход первого элемента И группы подключен к выходу третьего элемента И группы, вто§ рые входы К-го и (K+D-ro элементов, группы объединены и соединены с &} выходом (К+3)-го элемента И группы (, П-1), вторые входы п -го и (П+1)-го элементов И группы соединены с выходом генератора случайных импульсов, второй вход (П+2)го элемента И группы подключен к выходу первого элемента задержки, СО входы второго элемента ИЛИ соедине;о : ны с соответствунмцими выходами элементов И группы, разр дные входы гаS шени сигнала регистра сдвигд соединены с выходами соответствук цихэлементов И группы, выход элемента И блока анализа ситуации подключен к первому информационному входу коммутатора импульсов и первому вычитающему входу реверсивного счетчи ка, второй вычитающий вход которого соединен с первым выходом блока обслуткивани первого канала обслуживани и первым входом блока регистрации , второй вход которого соединен С выходом последнего элемента И группы блока анализа ситуации, треть1. DEVICE FOR SIMULATING OF MASS SERVICE SYSTEMS, containing the first service channel of the application, consisting of a reversible counter, the discharge outputs of which are connected respectively to the inputs of the first AND element and the first OR element, the output of which is connected to the start input of the service unit, the second AND element , a registration unit, characterized in that, with an extension chain of functional capabilities: by simulating a departure from a service channel with a given probability, it additionally contains a switch op pulse, the second service channel of the order, consisting of a series-connected reversing counter, an OR element and a service unit, and a situation analysis unit consisting of a pulse generator, a random pulse generator, a shift register, an AND element, two OR elements, two elements delays, groups of elements And, the output of the pulse generator is connected to the shift input of the shift register and the input of the first delay element, the discharge outputs of the reversible counter are connected respectively to the inputs of the first element and OR, the output of which is connected to the input of a random pulse generator, the output of which is connected to the subtractive output of the reversible counter and the input of the second delay element, the output of which is connected to the first input of the AND element, the second input of which is connected to the output of the second OR element, bit outputs of the shift register connected, respectively, to the first inputs of elements AND groups, the second input of the first element AND groups connected to the output of the third element AND groups, the second inputs of the K-th and (K + D-ro elements, the groups are combined and yens with &} output (K + 3) -th element AND group (, P-1), the second inputs of the n-th and (P + 1) -th elements And group are connected to the output of the random generator, the second input The (P + 2) element of the AND group is connected to the output of the first delay element, the CO inputs of the second element OR are connected; o: they are with the corresponding outputs of the AND elements of the group, the bit inputs of the S shift register signal are connected to the outputs of the corresponding cell elements AND group, the output element And the situation analysis unit is connected to the first information input of the switch impulse in the first subtractive input of the reversing counter, the second subtractive input of which is connected to the first output of the first service channel interception unit and the first input of the registration unit, the second input of which is connected to the output of the last element And group of the situation analysis unit, third
Description
им вычитающим входом реверсивного счетчика и первым суммирующим входом реверсивного счетчика второго канала обслуживани , второй суммирующий вхо которого подключен к выходу второго элемента И устройства, выход блока обслуживани второго канала обслуживани подключен к второму информационному входу коммутатора импульсовтретий информационный вход которого вл етс входом устройства, первый выход коммутатора импульсов соединен с суммирующим входом реверсивного счетчика первого канала обслуживани и первым взводом блока обслуживани первого канала обслуживани , второй выход которого подключен к суммирующему входу реверсивного счетчика и входу первого разр да регистра сдвига блока анализа ситуации, второй выход коммутатора импульсов подключе к первому входу второго элемента И, второй вход которого соединен с управл ющим входом коммутатора импульсов и выходом первого элемента И.By the subtracting input of the reversible counter and the first summing input of the reversing counter of the second service channel, the second summing input of which is connected to the output of the second element AND of the device, the output of the service unit of the second service channel is connected to the second information input of the pulse switch, the third information input of which is the device input, the first output the pulse switch is connected to the summing input of the reversing counter of the first service channel and the first platoon of the service unit neither the first service channel, the second output of which is connected to the summing input of the reversible counter and the input of the first bit of the shift register of the situation analysis unit, the second output of the pulse switch connected to the first input of the second element I, the second input of which is connected to the control input of the pulse switch and the output of the first element I.
2. Устройство по п. 1, отличаю щ с тем, что блок обслуживани содержит генератор импуль сов, генератор случайных импульсов, регистр сдвига, группуэлементов И, элемент ИЛИ, элемент И, два элемента задержки, выход генератора им ,пульсов соединен с входом пербого2. The device according to claim 1, characterized in that the service unit comprises a pulse generator, a random pulse generator, a shift register, a group of AND elements, an OR element, an AND element, two delay elements, an oscillator output for them, pulses connected to the front input
элемента задержки и сдвигающим входом регистра сдвига, информационный вход первого разр да регистра сдвига вл етс первым входом блока , вторым входом которого вл етс вход генератора случайных импульсов, выход которого соединен с входом второго элемента задержки, выход которого подключен к первому входу элемента И, второй вход которого соединен с выходом элемента ИЛИ, выход элемента И вл етс первым выходом блока, вторым выходом которого вл етс выход последнего элемента И группы, входы элемента ИЛИ подключены к выходам соответствующих элементов И группы, первые.входы кторых соединены с разр дными выходами регистра сдвига, входы гашени сигнала каждого разр да регистра сдвига подключены к выходам соответствующего элемента И группы, второй вход первого элемента И группы подключен к выходу третьего элемента И.группы, вторые входы К-го и ()-гo элемента И группы объединены и соединены с выходом (К+3)-го элемента И группы (, П-1), второй вход последнего элемента И группы подключен к выходу первого элемента задержки, а выход генератора случайных импульсов соединен с вторыми входами i1 -го и (П-ь1)-го элементов труппы.the delay element and the shift input of the shift register, the information input of the first bit of the shift register is the first input of the block, the second input of which is the input of the random pulse generator, the output of which is connected to the input of the second delay element whose output is connected to the first input of the And element, the second the input of which is connected to the output of the OR element, the output of the AND element is the first output of the block, the second output of which is the output of the last AND element of the group, the inputs of the OR element are connected to the outputs of the corresponding elements of the group, the first. Inputs are connected to the bit outputs of the shift register, the blanking inputs of the signal of each bit of the shift register are connected to the outputs of the corresponding element AND of the group, the second input of the first element And of the group is connected to the output of the third element I. And the second inputs K-th and () -th element AND group are combined and connected to the output of (K + 3) -th element AND group (, P-1), the second input of the last element And group connected to the output of the first delay element, and the output of the random generator pulses connected to watts the first inputs of the i1 st and (n-1) th elements of the troupe.
Изобретение относитс к вычислительной технике, предназначено дл моделировани процессов образовани и регулировани очередей и может быть использовано при исследовании сложных систем.The invention relates to computing, is intended to simulate the formation and control of queues and can be used in the study of complex systems.
Известно устройство дл моделировани очереди, содержащее генератор за вок, блок обслуживани за вок, регистр сдвига и реверсивный счет чик l .A device for simulating a queue is known comprising a generator of a quotation, a unit of servicing the quotation, a shift register, and a reversible counter l.
Недостатком данного устройства вл етс невозможность моделировани систем с очередью, в которой за вка не покидала бы ее до тех пор, пока не получит обслуживание.The disadvantage of this device is the impossibility of modeling systems with a queue in which the application would not leave it until it is serviced.
Наиболее близким по технической сущности и достигаемому результату к предлагаемому вл етс устройство дл моделировани очереди, содержа-The closest in technical essence and the achieved result to the proposed is a device for simulating a queue containing
щее реверсивный счетчик, перва группа выходов которого соединена с соответствующими входами блока имитации длины очереди, втора группа выходов - с соответствующими входами задатчика ограничени очереди, выход которого соединен с первым входом блока вы влени переполнени очереди, выход которого подключен к первому входу второго канала обелуживани . Данное устройство поэвoл Jeт моделировать системы массового обслуживани (СМО) с переменной длиной очереди 2j . Однако при переполнении очереди за вки получают отказ и далее не рассматриваютс . В реальных же СМО например, в больших магазинах, у касс на вокзалах и т .д., возможны ситуации, когда клиент, получивший отказ в обслуживании, оценивает создайшуюс ситуацию и с веро тностью о остаетс в прежней СМО и сверо тностью 1-(J. уходит в другую СМО с новыми характеристиками. Уче такие ситуации при аналитическом .исследовании сложных СМО чрезвычай но трудно. Наиболее удобно моделир вать такие ситуации в СМО с помощь предлагаемого устройства. Цель изобретени - расширение функциональных возможностей устройства путем моделировани ухода за вок из канала обслуживани .с заданной веро тностью. Поставленна цель достигаетс тем, что в уст ойство дл моделиро вани систем массового обслуживани , содержащее первый канал обслу живани за вок, состо щий из ревер сивного счетчика, разр дные выходы которого соединены соответственно с входами первого элемента И и пер вого злемента ИЛИ, выход которого соединен с входом запуска блока об служивани , второй элемент И, блок регистрации, введены коммутатор импульсов, второй канал обслуживани за вок, состо щий из последовательно соединенных реверсивного счетчика, элемента ШШ и блока обслуживани , и блок анализа ситуации состо щий из генератора импульсов, генератора случайных импульсов, регистра сдвига, злемента И, двзгх элементов ИЛИ, двух элементов задержки , группы элементов И, выход генератора импульсов соединен с сдвигающим входом регистра сдвига и входом первого элемента задержки, р;азр дные выходы реверсивного счётчика подключены соответственно к вх дам первого элемента ИЛИ, выход которого подключен к входу генератора случайных импульсов, выход которого соединен с вычитающим выхо дом реверсивного счетчика и входом второго элемента задержки, выход которого подключен к первому входу элемента И, второй вход которого 164 соединен с выходом второго элемен-. та ИЛИ, разр дные выходы регистра сдвига подключены соответственно к первым входам элементов И группы, второй вход первого элемента И группы подключены к выходу третьего элемента И группы, вторые входы К-го и (К+1)-го элементов группы объединены и соединены с выходом (К+3)-го элемента И группы (, п-1), вторые входы и (М+1)-го элементов И группы соединены с выходом генератора случайных импульсов второй вход (f} + 2)-ro элемента И группы подключен к выходу первого элемента задержки, входы второго элемента ИЛИ соединены с соответствуюпщми выходами элементов И группы, разр дные входы гашени сигнала регистра сдвига соединены с выходами соответствующих элементов И группы, выход элемента И блока анализа ситуации подключен к первому информационному входу коммутатора импульсов и первому вычитающему входу реверсивного счетчика, второй вычитающий вход которого соединен с первым выходом блока обслуживани первого канала обслуживани и первым входом блока регистрации, .второй вход которого соединен с выходом последнего элемента И группы блока анализа ситуации третьим вычитающим входом реверсивного счетчика и первым суммирующим входом реверсивного счетчика второго канала обслуживани , второй суммирующий вход которого подключен к выходу второго элемента И устройства, выход блока обслуживани второго канала обслуживани подключен к второму информационному входу коммутатора импульсов , третий информационный вход которого вл етс входом устройства, первый вход коммутатора импульсов соединен с суммирующим входом реверсивного счетчика первого канала обслуживани и первым входом блока обслужи-: вани первого канала обслуживани , второй выход которого соединен с суммирующим входом реверсивного счетчика входом первого разр да регистра сдвига блока анализа ситуации, второй выход коммутатора импульсов подключен к первому входу второго элемента И, второй вход которого соеди- нен с управл ющим входом коммутатора мпульсов и выходом первого элемента И. Блок обслуживани содержит генератор импульсов, генератор случайных импульсов, регистр сдвига, группу элементов И, элемент ИЛИ, элемент И два элемента задержки, выход генератора импульсов соединен с входом первого элемента задержки и сдвигающим входом регистра сдвига, информационный вход парного разр да регис ра .сдвига вл етс первым входом блока, вторым входом которого вл ет с вход генератора случайньж импульсов , выход которого соединен с входом второго элемента задержки, выход которого подключен к первому входу элемента И, второй вход которого сое динен с выходом элемента ИЛИ, выход элемента И вл етс первым выходом блока, вторым выходом которого вл етс вькод последнего элемента И группы, входы элемента ИЛИ подключены к выходам соответствующих элементов И группы, первые входы которых соединены с разр дными выходами регистра , сдвига, входы гашени сиг нала каждого разр да регистра сдвиг подключ.ены к выходам соответствующего элемента И группы, второй вход первого элемента И группы подключен к выходу третьего элемента И группы, вторые входы К-го и (К+1)-го элементов И группы объединены и соединены с выходом (К+3)-го элемента И группы (, Ц-1), второй вход последнего элемента И группы подключен к выходу первого элемента задержки, а выход генератора случайных импульсов соединен с вторыми входами Vi-ro и (п+1)-го элементов И группы. На фиг. 1 приведена структурна схема устройства; на фиг. 2 - схема коммутатора импульсов; на фиг. 3 схема блока обслуживани ; на фиг.4 схема блока анализа ситуации. Устройство содержит реверсивный счетчик 1, блок,2 анализа ситуации, элемент ИЛИ 3, коммутатор 4 импульсов , первый элемент И 5, блок 6 обслуживани , второй элемент И 7, блок 8 регистрации, вход 9 устройства . Коммутатор 4 импульсов содержит элементы ИЛИ 10-12, элементы И 13-1 элементы 17-19 задержки, элемент 20 запрета, входы 21-23, выходы 24 и 25. . Блок 6 обслуживани содержит первый 2-6 и второй 27 элементы задержки , элемент И 28, элемент ИЛИ 29, группу элементов И 30, генератор 31 импульсов, генератор 32 случайных импульсов, регистр 33 сдвига, выходы 34 и 35. Блок 2 анализа ситуации содержит выходы 36 и 37, второй элемент ИЛИ 38, элемент И 39, первый элемент ИЛИ 40, первьй 41 и второй 42 элементы задержки,- реверсивный счетчик 43, генератор 44 импульсов, генератор 45 случайных импульсов, регистр 46 сдвига, группу элементов И 47. Устройство работает следующим образом. На вход 9 поступают импульсы, имитирующие поток за вок. В случае отсутстви очереди определенной в первом канале обслуживани сигнал о поступлении за вки с выхода 25 поступает на суммирующий вход реверсивного счетчика 1 и на первый вход блока 6 обслуживани , где он по данному входу используетс как вспомогательный сигнал. При наличии очереди определенной длины за вки из счетчика 4 поступают с выхода 24 на первый вход вторЬго элемента И 7 Поступающие на входы коммутатора 4 (фиг. 2) за вки (вход 9 - входной поток, вход 21 - из второго канала обслуживани , вход 22 - с выхода блока анализа ситуации) вначале попадают на элемент ИЛИ 11. В блоке предусмотрено устройство, не позвол ющее потер ть за вки, если они приход т одновременно по двум или трем входам. Если за вки проход т одновременно по двум из трех входов, то нар ду с сигналом, зафиксированным через элемент ИЛИ 11, происходит также фиксаци сигнала одним из,элементов И 14-16 и через элемент ИЛИ 12 и элемент 19 задержки второй сигнал поступает на один из выходов. Таким образом, в реверсивном счетчике 1 фиксируетс поступление двух за вок. Если же за вки поступают одновременно по трем входам 9, 21 и 22, то фиксируетс поступление трех за вок: первой - через элемент ИЛИ 11, второй - через один из элементов И 14-16, элемент ИЛИ 12 и элемент 19 задержки, третьей через элемент И 13 и элементы 17 и 18 задержки. За вки уход т из коммутатора 4 или через элемент 20 запрета при отсутствии очереди определенной длины, или непосредственно с выхода элемента ИЛИ 10 при наличии очереди. В последнем случае на управл ющий вход элемента 20 запрета подаетс сигнал с выхода задатчика ограничени очереди (элемента И 5), который фиксирует определенную длину очеред на. реверсивном счетчике 1. При срабатывании элемента И 5 сигнал с его выхода поступает на вход элемента 2 запрета дл переключени выходов ком мутатора А и одновременно подаетс на первый вход элемента И. 7, подготавлива его к открытию. В этом случае за вки с выхода 24 коммутатора 4 поступают на второй вход элемента И 7 и далее с его выхода на первый вход второго канала обслуживани . Во втором канале обслуживани , построенном аналогично первому за вки проход т обслуживание. Необслуженна по каким-либо причинам во втором канале за вка возвращаетс в первый канал по входу 21 коммутатора 4. Если очередь, зафиксированна в реверсивном счетчике 1, меньше установленной предельной величины, элемент И 7 закрыт, а эле мент 20 открыт и за вки поступают на выход 25.. Наличие очереди фиксируетс элементом ИЛИ 3 (фиг. 3). Если в очере имеетс хотг бы одна за вка, то сигнал оЬ этом с выхода элемента ИЛ 3 подаетс в блок 6 обслуживани , где происходит включение генератора 32, имитирующего случайное врем об служивани за вки. Пока на выходе элемента ИЛИ 3 есть сигнал, генератор 32 включен. Врем между случайными импульсами с генератора 32 принимаетс эа врем обслуживани о редной за вки. Кроме генератора 32, имитирующего врем обслуживани за вки , основными элементами блока 6 обслуживани вл ютс также генератор 31 тактовых импульсов (ГТИ), УРС и элемент ИЛИ 29. ГТИ и УРС служат дл запоминани на врем ttgf, за вки, поступившей в блок 6 обслужи вани . Это врем устанавливаетс пу тем продвижени вспомогательного си нала по УРС импульсами сдвига от ГТИ, поступающими на вход Q регист ра 33. Вспомогательный сигнал в УРС блока 6 поступает с выхода 25 коммутатора 4. Если за врем сдо с генератора 32 поступает сигнал о завершении обслуживани очередной за вки, то она считаетс обслуженной и сигнал об этом проходит на выходе 35 блока 6 обслуживани . Врем сдоп определ етс разр дностью регистра 33 и частотой тактовых импульсов ГТИ 31. Дл обеспечени прохождени сигнала об обслуживании за вки на выход 35 блока 6 с выхода генератора 32 в УРС поступает импульс, который используетс дл селективного гаше- ни вспомогательного сигнала, поступившего с выхода 25 коммутатора и продвигаемого по УРС. Гашение вспомогательного сигнала в УРС происходит следующим образом. Если в единичном состо нии находитс и -и разр д регистра 33, то на первом входе соответствующего элемента И группы 30 присутствует разрешающий потенциал с выхода этого разр да. Тогда при по влении импульса с генератора 32при втором входе этого элемента И он проходит на нулевой вход h то разр да регистра 33 и через элемент ИЛИ 29 - на первый вход элемента И 28. На второй вход элемента И 28 поступает тот же импульс с генератора 32 через элемент 27 задержки. Если к моменту по влени сигнала с генератора 32п-и разр д регистра 33находитс в нулевом состо нии, то разрешающий сигнал имеетс на инверсном выходе этого разр да и импульс с генератора 32 проходит на соответствующие два элемента И группы 30 (г|-1)-го разр да. Если (И-1)-й разр д регистра 33 бьш в единичном состо нии, то он обнул ет с . В противном случае сигнал с генератора 32 передаетс на следующий ( П-2)-й разр д, т.е. поиск ближайшего разр да регистра 33 с единичньм состо нием продолжаетс . С выхода 35 блока 6 обслуживани сигнал о конце обслуживани за вки за врем , меньшее или равное , подаетс на вычитающий вход реверсивного счетчика 1 дл сн ти за вки с учета из системы обслуживани и на суммирующий вход реверсивного счетчика блока 8 регистрации. Если за врем Ндд , в УРС не поступает импульс с генератора 32, то за вка считаетс не обслуженной. В этом случае сигнал об отказе в обслуживании поступает сA reversive counter, the first group of outputs of which is connected to the corresponding inputs of the queue length simulation unit, the second group of outputs with the corresponding inputs of the set queue limiter, the output of which is connected to the first input of the queue overflow detection unit, the output of which is connected to the first input of the second obeluzhan channel. This device is designed to simulate a queuing system (QS) with a variable queue length of 2j. However, in case of overflow, the queues for applications are rejected and are not considered further. In real SMOs, for example, in large stores, at cash desks at railway stations, etc., situations are possible when a denied service customer assesses the created situation and most likely remains in the previous QS and with a accuracy of 1- (J It is extremely difficult to simulate such situations in an analytical study of complex QS systems. It is most convenient to simulate such situations in the QS using the proposed device. The purpose of the invention is to expand the functionality of the device by simulating the ear. and a request from a service channel with a predetermined probability. The goal is achieved by the fact that a device for simulating a queuing system, containing the first service channel of the application, consisting of a reverse counter, whose bit outputs are connected respectively to the inputs of the first element AND the first element OR, the output of which is connected to the start-up input of the service unit, the second element AND, the registration unit, are introduced a pulse switch, the second service channel of the request consisting of a unified reversible counter, a SHS element and a service unit, and a situation analysis unit consisting of a pulse generator, random pulse generator, shift register, element AND, two OR elements, two delay elements, group of elements AND, the output of the pulse generator is connected to the shift input of the register shift and the input of the first delay element, p; the output outputs of the reversible counter are connected respectively to the inputs of the first OR element, the output of which is connected to the input of a random pulse generator, the output of which oedinen a subtractor vyho house down counter and the input of the second delay element whose output is connected to the first input of the AND, the second input of which is connected to the output 164 of the second elements. This OR, bit outputs of the shift register are connected respectively to the first inputs of elements AND of a group, the second input of the first element AND of a group is connected to the output of the third element AND of a group, the second inputs of the K-th and (K + 1) -th elements of the group are combined and connected to output (K + 3) -th element And group (, n-1), the second inputs and (M + 1) -th element And group connected to the output of the random pulse generator, the second input (f} + 2) -ro element And group connected to the output of the first delay element, the inputs of the second element OR are connected to the corresponding outputs elem The groups AND, bit inputs of the shift register signal are connected to the outputs of the corresponding elements AND groups, the output of the situation analysis block AND element is connected to the first information input of the pulse switch and the first subtractive input of the reversible counter, the second subtractive input of which is connected to the first output of the first service block service channel and the first input of the registration unit, the second input of which is connected to the output of the last element AND of the group of the situation analysis block by the third subtractive input The reversible counter one and the first summing input of the reversible counter of the second service channel, the second summing input of which is connected to the output of the second element AND device, the output of the service unit of the second service channel is connected to the second information input of the pulse switch, the third information input of which is the device input, the first input the pulse switch is connected to the summing input of the reversing counter of the first service channel and the first input of the service unit: The service analog, the second output of which is connected to the summing input of the reversible counter by the input of the first bit of the situation analysis shift register, the second output of the pulse switch is connected to the first input of the second element AND, the second input of which is connected to the control switch of the pulse switch and the output of the first element I. The service unit contains a pulse generator, a random pulse generator, a shift register, a group of AND elements, an OR element, an AND element, two delay elements, the output of a pulse generator, with the input of the first delay element and the shift input of the shift register, the information input of the pair discharge register. The shift is the first input of the block, the second input of which is from the generator input of the random pulse whose output is connected to the input of the second delay element whose output is connected to the first input of the AND element, the second input of which is connected to the output of the OR element, the output of the AND element is the first output of the block, the second output of which is the code of the last AND element of the group, the inputs of the OR element The inputs to the corresponding elements of the AND group, the first inputs of which are connected to the bit outputs of the register, the shift, the blanking inputs of the signal of each register bit, are connected to the outputs of the corresponding AND group, the second input of the first AND element of the group is connected to the output of the third element And the groups, the second inputs of the K-th and (K + 1) -th elements And the groups are combined and connected to the output of (K + 3) -th element And group (, D-1), the second input of the last element And group is connected to the output the first delay element, and the generator output case pulses connected to the second inputs Vi-ro and (n + 1) -th elements of the And group. FIG. 1 shows a block diagram of the device; in fig. 2 is a pulse switch circuit; in fig. 3 is a service block diagram; 4 is a diagram of a situation analysis block. The device contains a reversible counter 1, block, 2 situation analysis, the element OR 3, the switch 4 pulses, the first element AND 5, the unit 6 maintenance, the second element And 7, block 8 registration, the input 9 of the device. The switch 4 pulses contains elements OR 10-12, elements AND 13-1 delay elements 17-19, prohibition element 20, inputs 21-23, outputs 24 and 25.. Service unit 6 contains the first 2-6 and second 27 delay elements, AND 28, OR element 29, AND 30 group, pulse generator 31, random pulse generator 32, shift register 33, outputs 34 and 35. Situation analysis block 2 contains the outputs 36 and 37, the second element OR 38, the element AND 39, the first element OR 40, the first 41 and the second 42 delay elements - reversible counter 43, pulse generator 44, random pulse generator 45, shift register 46, AND 47 group of elements. The device works as follows. At input 9, impulses imitating the flow of the flow are received. If there is no queue defined in the first service channel, the signal on receipt of application from output 25 goes to the summing input of the reversible counter 1 and to the first input of service unit 6, where it is used as an auxiliary signal by this input. If there is a queue of a certain length, the applications from counter 4 are received from output 24 to the first input of the second element AND 7 Entering inputs to switch 4 (Fig. 2) applications (input 9 is the input stream, input 21 is from the second service channel, input 22 - from the output of the situation analysis block) first get to the element OR 11. The block provides a device that does not allow for loss of quotes if they arrive at two or three inputs simultaneously. If the applications pass simultaneously through two of the three inputs, then along with the signal recorded through the element OR 11, the signal is also fixed by one of the elements AND 14-16 and through the element OR 12 and the delay element 19 the second signal goes to one from exits. Thus, in the reversible counter 1, the arrival of two applications is recorded. If the applications are received simultaneously through three inputs 9, 21 and 22, then the receipt of three applications is recorded: the first through the element OR 11, the second through one of the elements 14-16, the element OR 12 and the delay element 19, the third through element And 13 and elements 17 and 18 of the delay. The requests go out of switch 4 or through prohibition element 20 in the absence of a queue of a certain length, or directly from the output of the element OR 10 in the presence of a queue. In the latter case, the control input of the prohibition element 20 is given a signal from the output of the queue limit setter (element 5), which fixes a certain length of the queue on. reversible counter 1. When element 5 is triggered, the signal from its output enters the input of prohibition element 2 for switching outputs by a switch A and simultaneously is fed to the first input of element i. 7, preparing it for opening. In this case, the applications from the output 24 of the switch 4 arrive at the second input of the element I 7 and further from its output at the first input of the second service channel. In the second service channel, built similarly to the first application, the service is performed. Unserviceable for some reason, the second channel returns to the first channel via input 21 of switch 4. If the queue fixed in the reversible counter 1 is less than the set limit value, element 7 is closed, and element 20 is opened and applications come in output 25. The presence of a queue is detected by the element OR 3 (Fig. 3). If there was a hot ticket in the center, then the signal from the output of the IL-3 element is fed to the service unit 6, where the generator 32 is turned on, simulating a random service time for the application. While at the output of the element OR 3 there is a signal, generator 32 is on. The time between random pulses from generator 32 is taken during the service of an ordinary application. In addition to the generator 32, which simulates the service time of the application, the main elements of the service unit 6 are also the clock pulse generator (GTI) 31, URS, and the element OR 29. The GTI and URS are used for storing for the time ttgf, the service received in block 6 Vani. This time is set by advancing the auxiliary signal on the URS by the shear pulses from the GTI arriving at the Q input of the register 33. The auxiliary signal to the URS of the block 6 comes from the output 25 of the switch 4. If during the time from the generator 32, the service completion signal is received application, it is considered served and a signal about this passes at the output 35 of the service unit 6. The time sd is determined by the register 33 and the frequency of the clock pulses of the GTI 31. To ensure the passage of the service request signal to the output 35 of block 6 from the generator 32 output, a pulse is received in the URS, which is used to selectively turn off the auxiliary signal from the output 25 switch and promoted by urs. Suppression of the auxiliary signal in the URS is as follows. If in the single state there is also a - and bit of register 33, then at the first input of the corresponding element AND of group 30 there is a resolving potential from the output of this discharge. Then, when a pulse appears from the generator 32 at the second input of this element AND it passes to the zero input h then register bit 33 and through the element OR 29 to the first input of the element AND 28. The second input of the element AND 28 receives the same pulse from the generator 32 through the delay element 27. If at the time of the occurrence of the signal from the generator 32, the bit of the register 33 is in the zero state, then the enabling signal is at the inverse output of this bit and the pulse from the generator 32 passes to the corresponding two elements AND of group 30 (g | -1) - th bit If the (I-1) th register bit of 33 is in a single state, then it will zero. Otherwise, the signal from generator 32 is transmitted to the next (P-2) -th bit, i.e. the search for the nearest register bit 33 with a single state continues. From the output 35 of the service unit 6, a signal about the end of the service for less than or equal time is fed to the subtractive input of the reversible counter 1 for removal of the meter from the service system and to the summing input of the reversible counter of the registration unit 8. If, during the time in Ndd, the pulse is not received from the generator 32 in the URS, then the application is considered not served. In this case, the denial of service signal comes from
выхода rt -го разр да УРС через соответствующий элемент И группы 30 на вход ЗА блока 6 и далее на вход блока 2 анализа ситуации.output rt-th bit URS through the corresponding element And group 30 to the input of block 6 and further to the input of block 2 of the situation analysis.
Необслуженна в блоке 6 за вка в блоке 2 производит анализ ситуации (фиг. 4). В результате анализа за вка может с некоторой веро тность а уйти во второй канал обслуживайи - выход 36 блока 2. Втора возможность за вки состоит в том, что она с веро тностью 1-с возвращаетс в прежний канал обслуживани через коммутатор 4 по входу 37. В обоих случа х необслуженна за вка, покида блок 2, снимаетс с учета данного канала через вычитакнцие входы реверсивного счетчика 1. Когда за вка покидает данный канал обслуживани , уход в другой канал, то сигнал об этом подаетс на вычитающий вход реверсивного счетчика блока 8, фиксиру тем самым уход данной за вки из системы обслуживани . .Unserved in block 6 of the application in block 2 analyzes the situation (Fig. 4). As a result of the analysis, the application may with some probability go to the second service channel - output 36 of block 2. The second possibility of the application is that it returns with probability 1-sec to the previous service channel through switch 4 via input 37. In both cases, the unsuccessful application leaving block 2 is deregistered from this channel by deducting the inputs of the reversible counter 1. When the application leaves this service channel, leaving the other channel, a signal is sent to the subtracting input of the reversible counter of unit 8, fix This is the best way to keep this service out of service. .
Работа блока 2 анализа ситуации аналогична работе блока 6 обслуживани . Поступающа по входу 34 необIIThe operation of the situation analysis unit 2 is similar to the operation of the maintenance unit 6. Incoming on input 34 optional
оценкуassessment
производит produces
за вкаfor
служенна ситуации за врем ц..,.,, которое опUon ., редел етс разр дностью регистра 46 service situation at the time ts ..,. ,, which is defined as., determined by the size of the register 46
и частотой генератора 44 блока 2 (фиг. 4). За вка включает генератор 45 случайных импульсов с помощью реверсивного счетчика 43 и элемента ИЛИ 40. Генератор 45 включен, пока в блоке 2 находитс хот бы одна за вка. Генератор 45 имитирует случайное врем прин ти решени за вкой . Если 3at.g- врем продвижени вспомогательного сигнала по УРС блока 2 с генератора 45 поступает сигнал. То за вка проходит через элементы 38 и 39 на вход 37 блока 4 В этом случае за вка остаетс в прежнем канале обслуживани . При этом селективное гашение вспомогательного сигнала в УРС блока 2 происходит точно так же, как и в бло ке 6 обслуживани .and the frequency of the generator 44 block 2 (Fig. 4). The application turns on the random pulse generator 45 using a reversible counter 43 and the element OR 40. The generator 45 is turned on while at least two applications are in block 2. The generator 45 simulates the random decision time of the application. If 3at.g is the advance time of the auxiliary signal on the URS of the unit 2, a signal is received from the generator 45. That application passes through elements 38 and 39 to input 37 of block 4. In this case, the application remains in the same service channel. In this case, the selective suppression of the auxiliary signal in the URS of block 2 occurs in the same way as in block 6 of the service.
Если за врем С, генератора 45 не поступает сигнал, то считаетс .If during time C, the generator 45 does not receive a signal, it is considered.
что за вка прин ла решение уйти из данного канала во второй канал. Технически это осуществл етс за счет того, что с генератора 45 за вpeм t..J, не поступил сигнал селективного гашени . Следовательно,That for the decision made to leave this channel in the second channel. Technically, this is due to the fact that the generator 45 did not receive a selective blanking signal from generator 45 for a time t ... j. Consequently,
Л,L,
сигнал с п -го выхода регистра 46 поступает на выход 36 блока 2 и во второй канал обслуживани . Этот же сигнал поступает также на вычитакиций вход реверсивного счетчика блока 8, где регистрируетс как определенные потери дл данного канала обслуживани . В итоге в блоке 8 регистрации определ етс результат эффективности данного канала. Аналогично определ етс эффективность второго канала Подключив счетчик импульсов к входу 9, можно определить число за вок N, поступивших в систему обслуживани . Тогда блок регистрации первого канала дает число за вок N, обслуженных первым каналом, а блок результатов второго канала дает число за вок Ц) обслуженньпс им. Если обозначить число за вок, не получивших обслуживани к моменту времени t и наход щихс в очеред х каналов обслуживани или в состо нии оценки ситуации через Nj, то оно будет равноthe signal from the nth output of register 46 is fed to output 36 of block 2 and to the second service channel. The same signal is also fed to the readout input of the reversible counter of block 8, where it is recorded as certain losses for a given service channel. As a result, in block 8 of registration, the result of the effectiveness of this channel is determined. Similarly, the efficiency of the second channel is determined by connecting the pulse counter to input 9, it is possible to determine the number of applications N received in the service system. Then the block of registration of the first channel gives the number of applications N served by the first channel, and the block of results of the second channel gives the number of applications C) serviced by it. If we denote the number of applications that did not receive service by the time t and are in queues of service channels or in the state of assessment of the situation through Nj, then it will be
N N - ,N N -,
Тем самым можно вычислить веро тностные характеристики данной системы обслуживани .Thereby, it is possible to calculate the probability characteristics of a given service system.
Технически второй канал обслуживани выполнен точно также, как и первый. Дл придани ему свойств с другими характеристиками достаточно изменить разр дность УРС или частоту ГТИ.Technically, the second service channel is made exactly the same as the first. To give it properties with other characteristics, it is enough to change the width of the URS or the frequency of the GTI.
Такимобразом, предлагаемое устройство обеспечивает возможность . моделировани CMC, близкой к реально и может найти применение при оптимизации работы сложных дорогосто щих систем, где решение данной задачи аналитическим способом затруднительно или невозможно.Thus, the proposed device provides the opportunity. CMC modeling is close to real and can be used to optimize the performance of complex expensive systems where it is difficult or impossible to solve this problem analytically.
9 оZ59 oz5
1one
Ж, ШF, W
ZitZit
а каноАand canoe
J5J5
ЛL
5757
5555
5five
Фиг.FIG.
Ф1/1г2F1 / 1g2
Фиг.55
ФигFig
Claims (2)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
SU833563109A SU1099316A1 (en) | 1983-03-11 | 1983-03-11 | Device for simulating queueing systems |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
SU833563109A SU1099316A1 (en) | 1983-03-11 | 1983-03-11 | Device for simulating queueing systems |
Publications (1)
Publication Number | Publication Date |
---|---|
SU1099316A1 true SU1099316A1 (en) | 1984-06-23 |
Family
ID=21053290
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
SU833563109A SU1099316A1 (en) | 1983-03-11 | 1983-03-11 | Device for simulating queueing systems |
Country Status (1)
Country | Link |
---|---|
SU (1) | SU1099316A1 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6341276B1 (en) | 1995-03-01 | 2002-01-22 | Ibm Corporation | System for selecting a computer solution from a pre-defined set |
-
1983
- 1983-03-11 SU SU833563109A patent/SU1099316A1/en active
Non-Patent Citations (1)
Title |
---|
1. Авторское свидетельство СССР № 311280, кл. G 06 G 7/48, 1970, 2, Авторское свидетельство СССР № 521569, кл. G 06 F 15/20, 1974 (прототип). * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6341276B1 (en) | 1995-03-01 | 2002-01-22 | Ibm Corporation | System for selecting a computer solution from a pre-defined set |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
SU1099316A1 (en) | Device for simulating queueing systems | |
SU1580392A1 (en) | Device for modeling queueing systems | |
SU1229769A1 (en) | Device for simulating queueing system | |
SU1111172A1 (en) | Device for simulating queueing systems | |
SU1418730A1 (en) | Device for simulating mass service systems | |
SU1249527A1 (en) | Device for determining minimum sections | |
SU1716533A1 (en) | Device for simulation of systems of waiting system | |
SU1275466A1 (en) | Device for simulating the queueing systems | |
SU1714614A1 (en) | Device for simulating queueing systems | |
SU1374240A1 (en) | Device for solving travelling salesmanъs problem | |
SU1124320A1 (en) | Device for simulating queueing system | |
SU1550530A1 (en) | Device for modeling queuing systems | |
SU1196889A1 (en) | Device for simulating node of graph | |
SU1709336A1 (en) | Queue system simulator | |
SU1151980A1 (en) | Device for simulating queueing system | |
SU1278878A1 (en) | Device for simulating the queueing systems | |
SU1532943A1 (en) | Device for modelling queueing systems | |
RU1837288C (en) | Device for dynamic priority | |
SU1070559A1 (en) | Device for simulating queueing systems | |
SU1730643A1 (en) | Device for simulation of queueing systems | |
SU1714615A1 (en) | Task servicing process simulator | |
SU362292A1 (en) | DEVICE FOR THE SELECTION OF CODES-SECURITY-UNILAAHTHD'TEXHIISECHA LIBRARY | |
SU1410052A1 (en) | Device for simulating mass service systems | |
SU1278879A1 (en) | Device for simulating message switching points | |
SU1711179A1 (en) | Queuing system simulation device |