simulog *** qnap2 *** (octobre 1984) v03 (c) copyright by cii honeywell bull and inria, 1982 1 /declare/ integer n_disk = 2, n_term; & global variables 2 real visits(n_disk); & dimension n_disk must be init. 3 queue real serv_t; & param for every queue queue.serv_t 4 queue cpu,terms,disk(n_disk); & station identifiers 5 & 6 /station/ name=cpu; 7 service = exp(0.55); & in a station, serv_t stands 8 & for name.serv_t 9 transit = disk(1 step 1 until n_disk), 10 visits (1 step 1 until n_disk), terms, 1; 11 & where list, rel. prob. list, where list, prob list ..; 12 & 13 /station/ name = disk(1 step 1 until n_disk); 14 transit = cpu; 15 service = exp(serv_t); 16 & 17 /station/ name = terms; 18 init = n_term; & params here do not have to be init 19 type = infinite; & standard types infinite, multiple, etc. 20 & default type is single server 21 service = exp(serv_t); 22 transit = cpu,1; 23 & 24 /exec/ begin 25 &init variables 26 visits(1):= 9; 27 visits(2):= 4; 28 disk(1).serv_t:= 0.015; 29 disk(2).serv_t:= 0.030; 30 cpu.serv_t := 0.15; 31 terms.serv_t:= 10; 32 & loop for multiple solutions 33 for n_term := 3,6,12,18 do 34 begin 35 & init variables for each if necessary (none here) 36 print("no of terminals = ", n_term); 37 solve; & qnap decides what solver to use (MVA by preference) 38 output; & default output variables and format 39 end; 40 end; no of terminals = 3. - mean value analysis ("mva") - ******************************************************************* * name * service * busy pct * cust nb * response * thruput * ******************************************************************* * * * * * * * * cpu *0.5500 *0.8909 * 1.813 * 1.119 * 1.620 * * * * * * * * * terms * 10.00 * 0. * 1.157 * 10.00 *0.1157 * * * * * * * * * disk 1 *0.1500E-01*0.1562E-01*0.1582E-01*0.1519E-01* 1.041 * * * * * * * * * disk 2 *0.3000E-01*0.1388E-01*0.1404E-01*0.3034E-01*0.4628 * * * * * * * * ******************************************************************* memory used: 3139 words of 4 bytes ( 1.21 % of total memory) ******************************************************************* * name * service * busy pct * cust nb * response * thruput * ******************************************************************* * * * * * * * * cpu *0.5500 *0.8909 * 1.813 * 1.119 * 1.620 * * * * * * * * * terms * 10.00 * 0. * 1.157 * 10.00 *0.1157 * * * * * * * * * disk 1 *0.1500E-01*0.1562E-01*0.1582E-01*0.1519E-01* 1.041 * * * * * * * * * disk 2 *0.3000E-01*0.1388E-01*0.1404E-01*0.3034E-01*0.4628 * * * * * * * * ******************************************************************* no of terminals = 6. - mean value analysis ("mva") - ******************************************************************* * name * service * busy pct * cust nb * response * thruput * ******************************************************************* * * * * * * * * cpu *0.5500 *0.9979 * 4.670 * 2.574 * 1.814 * * * * * * * * * terms * 10.00 * 0. * 1.296 * 10.00 *0.1296 * * * * * * * * * disk 1 *0.1500E-01*0.1750E-01*0.1781E-01*0.1527E-01* 1.166 * * * * * * * * * disk 2 *0.3000E-01*0.1555E-01*0.1580E-01*0.3047E-01*0.5184 * * * * * * * * ******************************************************************* memory used: 3155 words of 4 bytes ( 1.21 % of total memory) ******************************************************************* * name * service * busy pct * cust nb * response * thruput * ******************************************************************* * * * * * * * * cpu *0.5500 *0.9979 * 4.670 * 2.574 * 1.814 * * * * * * * * * terms * 10.00 * 0. * 1.296 * 10.00 *0.1296 * * * * * * * * * disk 1 *0.1500E-01*0.1750E-01*0.1781E-01*0.1527E-01* 1.166 * * * * * * * * * disk 2 *0.3000E-01*0.1555E-01*0.1580E-01*0.3047E-01*0.5184 * * * * * * * * ******************************************************************* no of terminals = 12. - mean value analysis ("mva") - ******************************************************************* * name * service * busy pct * cust nb * response * thruput * ******************************************************************* * * * * * * * * cpu *0.5500 * 1.000 * 10.67 * 5.867 * 1.818 * * * * * * * * * terms * 10.00 * 0. * 1.299 * 10.00 *0.1299 * * * * * * * * * disk 1 *0.1500E-01*0.1753E-01*0.1785E-01*0.1527E-01* 1.169 * * * * * * * * * disk 2 *0.3000E-01*0.1558E-01*0.1583E-01*0.3047E-01*0.5195 * * * * * * * * ******************************************************************* memory used: 3171 words of 4 bytes ( 1.22 % of total memory) ******************************************************************* * name * service * busy pct * cust nb * response * thruput * ******************************************************************* * * * * * * * * cpu *0.5500 * 1.000 * 10.67 * 5.867 * 1.818 * * * * * * * * * terms * 10.00 * 0. * 1.299 * 10.00 *0.1299 * * * * * * * * * disk 1 *0.1500E-01*0.1753E-01*0.1785E-01*0.1527E-01* 1.169 * * * * * * * * * disk 2 *0.3000E-01*0.1558E-01*0.1583E-01*0.3047E-01*0.5195 * * * * * * * * ******************************************************************* no of terminals = 18. - mean value analysis ("mva") - ******************************************************************* * name * service * busy pct * cust nb * response * thruput * ******************************************************************* * * * * * * * * cpu *0.5500 * 1.000 * 16.67 * 9.167 * 1.818 * * * * * * * * * terms * 10.00 * 0. * 1.299 * 10.00 *0.1299 * * * * * * * * * disk 1 *0.1500E-01*0.1753E-01*0.1785E-01*0.1527E-01* 1.169 * * * * * * * * * disk 2 *0.3000E-01*0.1558E-01*0.1583E-01*0.3047E-01*0.5195 * * * * * * * * ******************************************************************* memory used: 3187 words of 4 bytes ( 1.23 % of total memory) ******************************************************************* * name * service * busy pct * cust nb * response * thruput * ******************************************************************* * * * * * * * * cpu *0.5500 * 1.000 * 16.67 * 9.167 * 1.818 * * * * * * * * * terms * 10.00 * 0. * 1.299 * 10.00 *0.1299 * * * * * * * * * disk 1 *0.1500E-01*0.1753E-01*0.1785E-01*0.1527E-01* 1.169 * * * * * * * * * disk 2 *0.3000E-01*0.1558E-01*0.1583E-01*0.3047E-01*0.5195 * * * * * * * * ******************************************************************* 41 /terminal/ ==>warning (edit) : end of file detected on unit 4 (input)