Chapter 7
Simulation and Modeling
TU BSc CSIT past exam questions
Past questions and answers
71 questions set from this chapter; 3 are most repeated (set, or a close variant set, in 3 or more exams). Most repeated first.
- Most repeated · 3 of 6 exams
- 2078 · 5 marks
Explain Monte Carlo simulation method with an example?
Similar questions: Explain the Monte Carlo simulation method. with example. (2079) · Explain Monte Carlo simulation method with example. (2080)
Answer
Monte Carlo simulation is a method that solves a problem by repeated random sampling. A random experiment is performed many times using random numbers drawn from the probability distributions of the inputs, and the average of the results estimates the quantity of interest. It does not use the passing of time, so it is suited to static problems and to problems with uncertainty, such as inventory, risk and numerical integration.
Steps
- Build the model and identify the random inputs.
- Define the probability distribution of each input and the cumulative distribution.
- Assign ranges of random numbers to each outcome according to the cumulative probability.
- Generate random numbers and map them to outcomes.
- Calculate the result of each trial.
- Repeat many times and average the results.
Example: daily demand of newspapers
| Demand | Probability | Cumulative | Random number range |
|---|---|---|---|
| 10 | 0.2 | 0.2 | 00-19 |
| 20 | 0.5 | 0.7 | 20-69 |
| 30 | 0.3 | 1.0 | 70-99 |
Random numbers 45, 83, 12, 67, 91 give demands 20, 30, 10, 20, 30, so the average demand over five days is . With thousands of trials the average approaches the expected demand .
Another example: estimating by throwing random points in a unit square; the fraction that falls inside the quarter circle approaches .
The accuracy improves as the number of trials grows, with the error falling as .
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- Most repeated · 3 of 6 exams
- 2079 · 5 marks
Explain the Monte Carlo simulation method. with example.
Similar questions: Explain Monte Carlo simulation method with an example? (2078) · Explain Monte Carlo simulation method with example. (2080)
Answer
Monte Carlo simulation is a technique that uses repeated random sampling to estimate the behaviour of a system or the value of a quantity that is hard to compute directly. Random numbers are used to draw values from the probability distributions of the uncertain inputs, the model is evaluated for each sample, and the results are averaged. It is generally used for static models (time plays no role) such as risk analysis, inventory, queues without a clock, and numerical integration.
Steps
- Define the problem and the random variables.
- Determine the probability distribution and the cumulative distribution of each variable.
- Assign random number intervals to the outcomes.
- Generate random numbers and read off the corresponding outcomes.
- Compute the result for each trial and repeat for many trials.
- Average the results to obtain the estimate.
Example: daily sales of a shop
| Sales (units) | Probability | Cumulative | Random number interval |
|---|---|---|---|
| 5 | 0.1 | 0.1 | 00-09 |
| 6 | 0.3 | 0.4 | 10-39 |
| 7 | 0.4 | 0.8 | 40-79 |
| 8 | 0.2 | 1.0 | 80-99 |
Random numbers for 5 days: 52, 06, 83, 29, 71 give sales 7, 5, 8, 6, 7, so the average is units. The exact expected value is . With more trials the simulated average comes closer to 6.7.
Classic example: estimating by choosing random points in the unit square; the fraction of points with approaches .
The error of the estimate decreases in proportion to .
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- Most repeated · 3 of 6 exams
- 2080 · 5 marks
Explain Monte Carlo simulation method with example.
Similar questions: Explain Monte Carlo simulation method with an example? (2078) · Explain the Monte Carlo simulation method. with example. (2079)
Answer
Monte Carlo simulation is a method that uses repeated random sampling from probability distributions to estimate the behaviour of a system or the value of a quantity. It is a static simulation (time does not play a role) and is used for problems that are random or too complex to solve analytically, such as numerical integration, risk analysis and estimating .
Steps
- Define the problem and the random input variables.
- Obtain the probability distribution of each input variable and build its cumulative distribution.
- Assign ranges of random numbers to each outcome, according to the cumulative probability.
- Generate random numbers and map them to outcomes.
- Compute the result of each trial and repeat many times.
- Average the results to obtain the estimate.
Example: daily newspaper demand. Demand and its probability are: 10 papers (0.2), 20 (0.5), 30 (0.3). The cumulative probabilities and random number ranges are:
| Demand | Probability | Cumulative | Random number range |
|---|---|---|---|
| 10 | 0.2 | 0.2 | 00-19 |
| 20 | 0.5 | 0.7 | 20-69 |
| 30 | 0.3 | 1.0 | 70-99 |
Using two-digit random numbers 15, 73, 48, 91, 02 gives demands 10, 30, 20, 30, 10. The average demand is papers per day. The theoretical expected demand is , and the estimate approaches it as the number of trials increases.
Advantages: simple, handles random inputs and complex systems. Disadvantage: needs many trials for accuracy, and results are only approximate.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2076 · 10 marks
Define queuing system. Explain different queuing disciplines. Also explain different performance measures for evaluation of queuing system.
Answer
Queuing system
A queuing system consists of customers (jobs, packets, patients) that arrive, wait in a queue if the server(s) are busy, receive service, and leave. Its components are the arrival pattern (e.g. Poisson with rate ), the service mechanism (service-time distribution, rate , number of servers), the queue capacity (finite or infinite), the calling population (finite or infinite) and the queue discipline. It is described in Kendall notation , e.g. M/M/1 (Poisson arrivals, exponential service, one server). Examples: bank counters, CPU job scheduling, a call centre.
Queuing disciplines
The queue discipline is the rule that decides which waiting customer is served next.
- FIFO (FCFS): first in, first out; customers are served in order of arrival (bank, ticket counter).
- LIFO (LCFS): the last to arrive is served first (stack of items, some storage systems).
- SIRO (random selection): the next customer is chosen at random.
- Priority discipline: customers with higher priority are served first, either pre-emptive (service of a lower-priority customer is interrupted) or non-pre-emptive (current service finishes first); e.g. emergency patients.
- SPT / SJF (shortest processing time first): customers with the shortest service time go first, which reduces the average wait (CPU scheduling).
- Round robin / processor sharing: each customer gets a fixed time slice in turn.
- Balking, reneging and jockeying are customer behaviours: refusing to join a long queue, leaving after waiting, or switching to another queue.
Performance measures
For an M/M/1 queue with utilisation :
- Server utilisation: the fraction of time the server is busy, .
- Average number in the system: .
- Average number in the queue: .
- Average time in the system: .
- Average waiting time in the queue: .
- Probability of customers in the system: ; is the probability that the system is idle.
- Probability that a customer must wait, the maximum queue length, throughput and the proportion of customers lost (for finite capacity).
These are related by Little's law, and .
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2076 · 10 marks
Difference between chi-square test and KS test for uniformity. Use KS test to check for the uniformity for the input set of random numbers given below. 0.54, 0.73, 0.98, 0.11, 0.68, 0.45. Assume level of significance to be D_α=0.05 => 0.565
Answer
Difference between chi-square and KS tests for uniformity
| Chi-square test | Kolmogorov-Smirnov (KS) test |
|---|---|
| Compares observed and expected frequencies in class intervals | Compares the empirical CDF with the uniform CDF |
| Data must be grouped into intervals | Works directly on individual observations; no grouping |
| Needs a large sample (each class expected frequency ) | Suitable for small samples |
| Statistic , with degrees of freedom | Statistic |
| Result depends on the chosen intervals | Does not depend on interval choice; uses exact data |
| Applies to discrete and continuous distributions | Originally for continuous distributions |
KS test
: the numbers are uniformly distributed on ; : they are not. , , critical value .
Rank the numbers: .
and .
| 1 | 0.11 | 0.1667 | 0.0567 | 0 | 0.1100 |
| 2 | 0.45 | 0.3333 | -0.1167 | 0.1667 | 0.2833 |
| 3 | 0.54 | 0.5000 | -0.0400 | 0.3333 | 0.2067 |
| 4 | 0.68 | 0.6667 | -0.0133 | 0.5000 | 0.1800 |
| 5 | 0.73 | 0.8333 | 0.1033 | 0.6667 | 0.0633 |
| 6 | 0.98 | 1.0000 | 0.0200 | 0.8333 | 0.1467 |
, , so
Since , we fail to reject . There is no evidence against uniformity, so the numbers can be accepted as uniformly distributed at the 5% level.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2076 · 10 marks
What do you understandby static mathematical model? Explain with example. Differentiate between stocastic and deterministic activities.
Answer
Static mathematical model
A mathematical model represents a system by mathematical relations (equations, inequalities, functions) among its variables. A static model describes the system at a single point in time, or in equilibrium, and has no time variable; the relationships do not change with time and the output does not depend on previous states. A dynamic model, in contrast, shows how the system evolves with time.
Examples:
- Break-even model: profit , where is selling price per unit, variable cost per unit, fixed cost, units. Break-even point is .
- Ohm's law .
- Area/volume formulas, or a linear programming model for product mix: maximise subject to , .
- Economic order quantity .
Stochastic vs deterministic activities
| Deterministic activity | Stochastic activity |
|---|---|
| Outcome is completely determined by the inputs and the rules; no randomness | Outcome involves random variables and probability |
| The same input always gives the same output | The same input can give different outputs |
| Time/result is fixed and exactly predictable | Results are described by probability distributions |
| Example: a machine that always takes exactly 5 minutes per job; a fixed bus timetable | Example: arrival of customers at a bank; time to repair a machine |
| Solved with ordinary calculation | Needs random number generation, many runs and statistical analysis |
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2076 · 5 marks
Discuss the merits and demerits of system simulation.
Answer
Merits of system simulation
- Allows study of systems that are too costly, dangerous or impossible to experiment with directly (aircraft, nuclear plants, large networks).
- Experiments are fast and cheap: time can be compressed or expanded, and "what-if" alternatives tested without disturbing the real system.
- Handles complex systems with randomness and many interacting parts that analytic models cannot solve.
- Gives insight into which variables matter and how the system behaves (sensitivity analysis).
- Provides a controlled environment where conditions can be repeated exactly.
- Useful for training (flight simulators) and for design and planning before the system is built.
- Can be used where no mathematical solution exists.
Demerits
- Building a model can be expensive and time-consuming, and needs skilled people.
- Results are only as good as the model and data; wrong assumptions give misleading answers.
- Simulation gives estimates, not exact or optimal answers; results of stochastic models vary with each run and need many runs and statistical analysis.
- It does not optimise; it only evaluates the alternatives tried.
- Results can be hard to interpret, and may give a false sense of precision.
- Validation against the real system can be difficult.
- Simulation is sometimes used when a simpler analytic solution would do.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2076 · 5 marks
Explain Markov’s chain with a suitable example.
Answer
Markov chain
A Markov chain is a stochastic process with a finite or countable set of states in which the probability of moving to the next state depends only on the present state and not on the earlier history (the Markov property):
The are transition probabilities, collected in the transition matrix , where every row sums to 1. If the state probability row vector at step is , then . For a regular chain, approaches a steady-state vector with and .
Example: weather model
States: S = sunny, R = rainy. Suppose
(rows give today's weather: Sunny, Rainy). If today is sunny, the chance of rain the day after tomorrow is found from
so first row of is ; the probability of rain in two days is 0.39.
Steady state: gives , and with :
In the long run, about 57% of days are sunny and 43% rainy, whatever today's weather. Markov chains are used in queueing models, PageRank, inventory and reliability problems.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2076 · 5 marks
Define arrival pattern. Explain non-stationary Possion process.
Answer
Arrival pattern
The arrival pattern describes how entities (customers, jobs, packets) arrive at a system: how many arrive and when. It is specified by the inter-arrival time distribution or by the number of arrivals per unit time. Arrivals may be deterministic (at fixed intervals) or random, in single units or in batches, and may be influenced by the state of the system (balking, reneging). The most common random model is the Poisson process: arrivals occur independently at a constant average rate , the number of arrivals in time is
and the inter-arrival times are exponentially distributed with mean . This is a stationary process because does not change with time.
Non-stationary Poisson process
In many real systems the arrival rate changes with time (rush hours in a bank, peak traffic on a network, lunch hours in a restaurant). A non-stationary (non-homogeneous) Poisson process has an arrival rate that is a function of time, . Properties:
- Arrivals in non-overlapping intervals are independent.
- The expected number of arrivals in is , and the number of arrivals in is Poisson with mean .
- It cannot be simulated by simply using a constant mean inter-arrival time. A common method is thinning: generate arrivals at the maximum rate and accept an arrival at time with probability . Another is to treat the rate as piecewise constant over intervals.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2076 · 5 marks
Differentiate between validation and calibration. How can we perform validation of a model?
Answer
Validation vs calibration
| Validation | Calibration |
|---|---|
| Determines whether the model is an accurate representation of the real system for its intended purpose ("are we building the right model?") | Adjusts the model's parameters and inputs so its output matches observed data from the real system |
| Compares model output with the real system, without changing it | Iteratively changes model parameters (input values, distributions, assumptions) |
| Overall check of credibility | A tuning step used within validation |
| The result is a judgement: accept or reject the model | The result is an improved parameter set |
Verification is different from both: it checks that the model is implemented correctly in the program (debugging).
How to perform validation
- Face validity: Ask experts and users of the real system whether the model and its results appear reasonable.
- Validate the model assumptions: Check structural assumptions (e.g. the system is correctly simplified) and data assumptions (collect data, fit distributions, test with goodness-of-fit tests such as chi-square or KS).
- Validate input-output transformations: Run the model with the real-world input data and compare the output with the real system's output, using statistical tests such as the t-test on means or confidence intervals; use historical data and, if possible, data not used for calibration.
- Sensitivity analysis: Change the inputs and check that the outputs change in the way the real system would.
- Extreme-condition tests and Turing test: Check behaviour under extreme values, and see whether experts can distinguish model output from real output.
- Iterate: If the model is not accurate enough, calibrate it and validate again until the model is credible.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2076 · 5 marks
Use Mixed congreuential method to generate a sequence of random numbers with X_0 = 27, n = 17, m = 100 and c = 43.
Answer
The mixed congruential method generates numbers with
Here , , and the seed is .
| Calculation | |||
|---|---|---|---|
| 1 | 2 | 0.02 | |
| 2 | 77 | 0.77 | |
| 3 | 52 | 0.52 | |
| 4 | 27 | 0.27 | |
| 5 | 2 | 0.02 |
The seed 27 reappears at , so the sequence repeats with a period of 4:
The random numbers generated are and then they repeat. The short period shows why the parameters must be chosen carefully; a full-period generator needs suitable , and .
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2076 · 5 marks
What do you mean by replication of runs. Why it is necessary?
Answer
Replication of runs means running the same simulation model several times, each time with the same model and input parameters but with a different, independent stream of random numbers (different seeds). Each run is one replication and gives one independent observation of the output measure, for example the mean waiting time of run .
Why it is necessary
- A single run is only one sample. The output of a stochastic simulation is itself a random variable. One run may be unusually good or bad by chance, so it cannot be trusted as the true answer.
- Independent observations are obtained. The observations inside one run are autocorrelated (for example successive waiting times in a queue), so the ordinary variance formula does not apply to them. The replication means are independent and identically distributed, so standard statistics can be used.
- Confidence intervals can be built. With replications, the point estimate is and the sample variance is . The confidence interval is
- Precision improves. The width of the interval shrinks as increases, so the accuracy of the estimate can be controlled.
- Initial bias can be handled by deleting the warm-up period in each replication.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2076 · 5 marks
Explain generation of non uniform random number generation using inverse method.
Answer
Inverse transform method. Non-uniform random variates are generated from uniform random numbers by inverting the cumulative distribution function (CDF).
Steps
- Find the CDF of the required distribution.
- Generate a uniform random number in .
- Set .
- Solve for : .
Why it works. Since is increasing and is uniform, . So has the CDF .
Example: exponential distribution with mean . The CDF is for . Put :
Since is also uniform, can be used. If the mean inter-arrival time is 5 min () and , then min.
Discrete case. Build the cumulative probability table and return the value for which .
Other examples: uniform gives , and Weibull gives .
Limitation. The method needs a CDF that can be inverted in closed form. For distributions such as the normal, other methods (convolution, acceptance-rejection) are used.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2076 · 5 marks
Parts are being made at the rate of one every 10 minutes. They are of two types, A and B. And are mixed randomly with about 10% being type B. A separate inspector is assigned to examine each part. Inspection of part A takes 6 ± 2 minutes. Both inspector rejects 10% of parts they inspect. Draw GPSS block diagram to simulate the above problem for 100 parts.
Answer
Assumptions. The inspection time of part B is not given, so it is taken as min. Each part type has its own inspector. The time unit is 1 minute. 10% of the parts are type B, and each inspector rejects 10% of what is inspected.
Block diagram
GENERATE 10 (one part every 10 min)
|
TRANSFER .100,,INSB (10% -> INSB, 90% -> next block)
| |
SEIZE INSA INSB: SEIZE INSPB
ADVANCE 6,2 ADVANCE 20,5
RELEASE INSA RELEASE INSPB
TRANSFER .100,GOOD,REJ TRANSFER .100,GOOD,REJ
| 90% 10% | 90% 10%
v v v v
GOOD: TERMINATE 1 REJ: TERMINATE 1 (same blocks)
GPSS program
GENERATE 10
TRANSFER .100,,INSB
SEIZE INSA
ADVANCE 6,2
RELEASE INSA
TRANSFER .100,GOOD,REJ
INSB SEIZE INSPB
ADVANCE 20,5
RELEASE INSPB
TRANSFER .100,GOOD,REJ
REJ TERMINATE 1
GOOD TERMINATE 1
START 100
In TRANSFER .100,A,B, a fraction 0.1 of transactions go to B and the rest go to A. In the first TRANSFER the empty first location means the next block, so 90% of the parts (type A) go to inspector A and 10% (type B) jump to INSB. After inspection 10% of parts go to REJ and 90% to GOOD. Both end blocks decrement the termination counter, so the run stops after 100 parts. The output gives the utilisation of each inspector and the number of rejected and accepted parts.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2076 · 5 marks
Write short notes on (any two):
- System and its environment
- Simulation run statistics
Answer
1. System and its environment
A system is a collection of entities (people, machines, etc.) that act and interact together towards the accomplishment of some logical end. Example: a bank with customers, tellers, and queue.
Components of a system: entities, attributes, activities, state, events, and endogenous and exogenous variables.
The environment is everything outside the system that affects it or is affected by it, but is not part of it. A change that occurs outside the system is said to be in the environment. For the bank, the arrival rate of customers, the state of the economy, or the bank's rules from the central bank form the environment. The boundary between system and environment depends on the purpose of the study. Activities in the environment produce exogenous events (e.g. customer arrival), while activities within the system produce endogenous events (e.g. completion of service). A system closed to the environment is a closed system; one that interacts with it is an open system.
2. Simulation run statistics
These are the performance measures collected during a simulation run in order to judge the behaviour of the system. They are of two kinds:
- Observation-based (tally) statistics, based on individual observations, for example the average waiting time , the maximum waiting time, and the number of customers served.
- Time-persistent statistics, based on the time a state variable holds a value, for example average queue length and server utilisation .
In GPSS, the standard output reports facility utilisation, number of entries, average time per transaction, queue maximum and average contents, and total and zero entries. Because a run gives a sample, statistics from several replications are combined with confidence intervals.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2078 · 10 marks
Define queuing system. Explain the Kendall’s notation for queuing system? What are the various performance measures in single server queuing System? Explain which of them determine system stability and how?
Answer
Queuing system. A queuing system consists of customers (jobs) who arrive, wait in a queue if the server is busy, are served by one or more servers, and then leave. Its components are the arrival process, the queue (with its capacity and discipline such as FIFO), the service mechanism, and the calling population. Examples are a bank counter, a computer CPU scheduling jobs, or a supermarket checkout.
Kendall's notation. A queue is described by , where
- = inter-arrival time distribution (M = Markovian/exponential, D = deterministic, G = general),
- = service time distribution (M, D, G),
- = number of parallel servers,
- = system capacity (default infinity),
- = size of the calling population (default infinity),
- = queue discipline (default FIFO).
For example, M/M/1 is a single server queue with Poisson arrivals and exponential service times, and M/M/2/10 has two servers and a capacity of 10.
Performance measures of a single-server queue (M/M/1). Let be the arrival rate and the service rate.
| Measure | Formula |
|---|---|
| Utilisation (traffic intensity) | |
| Probability of in the system | |
| Avg. number in the system | |
| Avg. number in the queue | |
| Avg. time in the system | |
| Avg. waiting time in the queue |
These are related by Little's law, and , and . The probability that the server is idle is .
Stability. The utilisation determines whether the system is stable. The system reaches a steady state only if , that is , so the server can on average serve faster than customers arrive. Then , , and are finite. If the arrivals exceed the capacity of the server, the queue grows without bound, and and (the formulas above become negative or infinite). As the waiting measures grow very rapidly. For example, with and , , , time unit; if drops to 4.1 then and .
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2078 · 10 marks
Define true random numbers and pseudo random numbers with its properties . The sequence of numbers 0.64, 0.50, 0.25, 0.58,0.72, 0.90 has been generated. Use KS Test with Da=0.050 => 0512 to determine if the hypothesis that they are uniformly distributed on interval [o, 1] can be rejected.
Answer
True random numbers are produced from unpredictable physical processes such as radioactive decay, atmospheric noise, thermal noise or the timing of keystrokes. They cannot be reproduced and have no period, but they are slow to produce and not repeatable, which makes debugging a simulation difficult.
Pseudo-random numbers are produced by a deterministic algorithm (for example a congruential generator ) from an initial seed. They appear random and pass statistical tests, but the sequence is fully determined by the seed.
Properties of a good generator
- Uniformly distributed on .
- Statistically independent (no correlation between successive numbers).
- Reproducible, so a run can be repeated with the same seed.
- Long period (before the sequence repeats).
- Fast and needing little memory.
- Portable and giving the same sequence on different computers.
Kolmogorov-Smirnov test. : the numbers are uniformly distributed on . , .
Sort the numbers: = 0.25, 0.50, 0.58, 0.64, 0.72, 0.90.
| 1 | 0.25 | 0.1667 | -0.0833 | 0.2500 |
| 2 | 0.50 | 0.3333 | -0.1667 | 0.3333 |
| 3 | 0.58 | 0.5000 | -0.0800 | 0.2467 |
| 4 | 0.64 | 0.6667 | 0.0267 | 0.1400 |
| 5 | 0.72 | 0.8333 | 0.1133 | 0.0533 |
| 6 | 0.90 | 1.0000 | 0.1000 | 0.0667 |
The critical value for and from the K-S table is .
Since , the null hypothesis cannot be rejected. The numbers can be treated as uniformly distributed on (with so few numbers the test has little power).
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2078 · 10 marks
What do you understand by dynamic mathematical model? Explain with example. Differentiate it with static mathematical model.
Answer
Dynamic mathematical model. A mathematical model describes a system by equations. A dynamic model is one in which the variables change with time, so the state of the system at time depends on its earlier states. It is usually written with differential equations (continuous systems) or difference equations (discrete-time systems), and its solution is a time history of the state.
Example. The growth of a population with rate constant :
Another example is a mass-spring-damper system, , whose displacement varies with time, or the water level in a tank, . A bank queue whose length changes over the day is also dynamic.
Static model. A static model represents a system at a single point in time, or in equilibrium, so time does not appear. Example: the relation at an instant, the balance sheet of a firm, or the cost of an order .
| Dynamic model | Static model |
|---|---|
| Time is an independent variable | Time does not appear |
| Shows how the system changes over time | Shows the system at one instant or at equilibrium |
| Uses differential or difference equations | Uses algebraic equations |
| Output depends on past states (memory) | Output depends only on the present input |
| Harder to build and solve; simulation is often needed | Simple and easy to solve |
| Example: queue, population growth, circuits with C and L | Example: Ohm's law , break-even analysis |
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2078 · 5 marks
Describe the phases in simulation.
Answer
Phases (steps) in a simulation study
- Problem formulation. State clearly the problem, the objectives and the questions to be answered.
- System definition and model conceptualisation. Define the system boundary, entities, attributes, activities and the performance measures. Start with a simple model and add detail later.
- Data collection. Collect data about the real system (inter-arrival and service times) and fit probability distributions. This runs in parallel with model building.
- Model translation. Code the model in a general-purpose language (C, Java, Python) or a simulation language (GPSS, Arena, SIMULA).
- Verification. Check that the program works as intended, that is, that the model is built right (debugging, tracing).
- Validation. Check that the model represents the real system with sufficient accuracy, by comparing its output with real data.
- Experimental design. Decide the run length, warm-up period, number of replications and the alternatives to be simulated.
- Production runs and analysis. Run the simulation and estimate performance measures with confidence intervals.
- More runs? Decide from the analysis whether more experiments are needed; if so, return to step 7.
- Documentation and reporting. Document the model, program and results, and present the conclusions.
- Implementation of the findings.
The steps are iterative; the analyst may go back to earlier phases when verification or validation fails.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2078 · 5 marks
Explain the concept of discrete event simulation. Explain poisson’s arrival pattern.
Answer
Discrete event simulation (DES). In DES the state of the system changes only at distinct, separate points of time, called events, and stays constant between events. Examples are the arrival of a customer or the end of a service. The simulation clock does not advance in fixed steps; it jumps from one event time to the next.
Main components:
- System state (e.g. number in queue, server busy or idle).
- Simulation clock.
- Event list, holding future events ordered by time.
- Statistical counters to collect results.
- Initialisation, timing, and event routines, and a report generator.
Working: remove the imminent event from the list, advance the clock to its time, execute the event routine to update the state and schedule new events, update the statistics, and repeat until a stopping condition is met. A queuing system is the typical DES model.
Poisson arrival pattern. Arrivals follow a Poisson process with rate when they occur one at a time, independently, and at a constant average rate. The number of arrivals in an interval of length has the Poisson distribution
with mean and variance both . Equivalently, the inter-arrival times are independent and exponentially distributed with mean , . The process has no memory, so a future arrival does not depend on the past. In simulation inter-arrival times are generated by . For example, if customers/hour, the mean gap is 10 min.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2078 · 5 marks
Define the terms verification, calibration, validation and accreditation of models.
Answer
Verification. The process of checking that the computer program (the implemented model) correctly represents the conceptual model, that is, "building the model right". It is done by debugging, code walk-throughs, tracing, checking with simple inputs whose results are known, and checking that outputs are reasonable.
Calibration. The process of adjusting the model parameters (and re-checking the model) by comparing the model's output with the real system's data, repeatedly, until the model matches the real system closely enough. It is an iterative loop: compare, revise, compare again.
Validation. The process of determining whether the model is an accurate representation of the real system for the intended purpose, that is, "building the right model". The output of the model is compared with actual system data using statistical tests, face validity (experts review), or Turing-type tests.
Accreditation. The official certification by an authority or the user that a model or simulation is acceptable for a specific purpose. It is a decision based on the evidence from verification and validation and is usually used in military and large government projects.
Order of use: verification and validation give the evidence, calibration improves the model, and accreditation is the final formal acceptance.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2078 · 5 marks
Use Multiplicative congruential method to generate a sequence of random numbers with X=7,a=11 m=16.
Answer
The multiplicative congruential method uses
Here , , .
| Calculation | |||
|---|---|---|---|
| 1 | 13 | 0.8125 | |
| 2 | 15 | 0.9375 | |
| 3 | 5 | 0.3125 | |
| 4 | 7 | 0.4375 | |
| 5 | 13 | 0.8125 |
The seed 7 recurs at , so the period is 4 and the sequence is
The generated random numbers are , and then they repeat.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2078 · 5 marks
Why is estimation methods used in simulation? Explain.
Answer
Estimation methods in simulation. A simulation run is a sample experiment on a stochastic model, so its output is a random variable. The true performance measure (for example the mean waiting time ) is unknown and must be estimated from the observations , for example by the sample mean .
Why estimation is used
- Output is random. Different runs (different random numbers) give different results, so the output of one run is not the exact answer.
- Only a finite run is possible. The simulation cannot be run forever, so the true long-run (steady-state) value can only be approximated.
- To measure the precision. Estimation gives not only a point estimate but also an interval estimate , which shows how reliable the result is.
- To compare alternatives. Decisions among alternative designs need estimates of the difference in performance with a confidence interval.
- To determine the run length or the number of replications needed for a given accuracy.
- To remove bias and correlation. Observations in a run are correlated and the initial conditions bias them, so special methods are needed (replication, batch means, regenerative method, deleting the warm-up period).
Types of estimate: point estimates (mean, variance, proportion) and interval estimates (confidence intervals). For terminating simulations the method of replications is used; for steady-state simulations batch means or the regenerative method is common.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2078 · 5 marks
Explain the importance of elimination of initial bias during simulation.
Answer
Initial bias (the initialisation or start-up problem) arises when a steady-state simulation starts in an artificial state, usually "empty and idle" (no customers, all servers free). Early in the run the system is not representative of its long-run behaviour, so the output observations in this transient period are systematically lower or higher than the steady-state values. The estimate of the steady-state mean is then biased.
Importance of eliminating it
- Accurate estimates. The bias is removed, so the sample mean is closer to the true steady-state value. For example, a queue started empty underestimates the average waiting time.
- Valid decisions. Wrong estimates may lead to wrong conclusions about the capacity or performance of the system.
- Reliable confidence intervals. The interval is centred around the correct value, so its coverage is as stated.
- Better comparison of alternatives, since each is judged on its steady-state performance.
- Shorter runs. Removing the transient part avoids the need for extremely long runs to dilute the bias.
Methods of elimination
- Deleting (warm-up period). Discard the first observations and use . The value of is found by plotting the output (Welch's method, moving averages).
- Intelligent initialisation. Start the system in a typical or steady-state condition, using data from the real system or a pilot run.
- Long runs, so the effect of the start-up becomes small.
- Use replications, deleting the warm-up from each.
Care is needed: deleting too little leaves the bias, and deleting too much wastes data and raises the variance.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2078 · 5 marks
Workers come to a supply store at the rate of one every 6(+-) 2 minute. Their requisitions are processed by one of the two clerks who take 8 (+-) 2 minutes for each requisition. The requisitions are then passed to a single storekeeper who fills them one at a time, taking 6(+-)3 minutes for each. Draw GPSS Block diagram to simulate The above problem for 100 requisitions.
Answer
Model. Workers arrive every min. There are two clerks (a storage of capacity 2) who take min per requisition. The requisitions then go to one storekeeper who takes min. The simulation runs for 100 requisitions. Time unit is 1 minute.
Block diagram
GENERATE 6,2 (worker/requisition arrival)
|
QUEUE CLERKQ (wait for a clerk)
|
ENTER CLERKS (take one of the 2 clerks)
|
DEPART CLERKQ
|
ADVANCE 8,2 (clerk processes the requisition)
|
LEAVE CLERKS (free the clerk)
|
QUEUE STOREQ (wait for storekeeper)
|
SEIZE STOREKPR
|
DEPART STOREQ
|
ADVANCE 6,3 (storekeeper fills it)
|
RELEASE STOREKPR
|
TERMINATE 1 (100 requisitions)
GPSS program
CLERKS STORAGE 2
GENERATE 6,2
QUEUE CLERKQ
ENTER CLERKS
DEPART CLERKQ
ADVANCE 8,2
LEAVE CLERKS
QUEUE STOREQ
SEIZE STOREKPR
DEPART STOREQ
ADVANCE 6,3
RELEASE STOREKPR
TERMINATE 1
START 100
The STORAGE 2 statement defines the two clerks as a multiple server, so up to two requisitions can be processed together. The storekeeper is a single server, a facility, served by SEIZE/RELEASE. The mean arrival interval is 6 min, the mean clerk service is 8 min with two clerks (utilisation about ), and the mean storekeeper service is 6 min (utilisation about ), so the storekeeper is the likely bottleneck and the queue STOREQ is expected to grow. The output gives the utilisation of the clerks and the storekeeper and the queue statistics.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2078 · 5 marks
Write short notes on (any two):
a. Digital analog simulator
b. Simulation tools
Answer
a. Digital analog simulator (DAS)
A digital analog simulator is a digital computer program that imitates an analog computer. The system is described by block diagram elements of the analog computer (integrators, summers, multipliers, coefficient potentiometers, function generators), and the program solves the equations numerically. The user writes the problem in terms of these blocks, and the program does the numerical integration step by step.
Advantages: high accuracy and repeatability, no hardware patching, no drift or noise, easy storage and modification, and the user keeps the familiar analog block-diagram viewpoint. Disadvantage: it is slower than a real analog machine, since the integrations are done sequentially. Examples: MIDAS, CSMP, DSL/90 and, in modern form, Simulink. They are used for continuous system simulation such as control systems and mechanical systems.
b. Simulation tools
Simulation can be written in three kinds of tools:
- General-purpose languages (C, C++, Java, Python). They are flexible and cheap, but all routines (event list, random numbers, statistics) must be written by the user.
- Simulation languages (GPSS, SIMSCRIPT, SIMULA, GASP). They provide the clock, event list, random number generators, statistics and report generation. GPSS is block-oriented and is suited to queuing models.
- Simulation packages (simulators) (Arena, AnyLogic, Simul8, MATLAB/Simulink, NS-2/NS-3, SimPy). They offer a graphical interface, animation, input distribution fitting and output analysis, so models are built faster with little programming.
Selection depends on the problem, cost, ease of use, speed, flexibility, animation facilities, statistical support and the skill of the user.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2079 · 10 marks
What is transaction in GPSS? Explain about facility in GPSS. Customers arrive at Joey Barbershop one every 15±3 minutes and it takes Joey 18±2 minutes to cut hair of a customer. Create a GPSS model with block diagram for the Barbershop using the concept of facility and run the simulation for 9 hours.
Answer
Transaction in GPSS. A transaction is the dynamic entity that moves through the blocks of a GPSS model. It represents a unit of traffic in the real system, such as a customer, a part, a message or a job. Transactions are created by GENERATE blocks, move from block to block, may wait in queues or be delayed by ADVANCE, and are removed by TERMINATE. Each transaction has a number, a priority and parameters that can store data, and its movement is controlled by the simulation clock and the current/future events chains.
Facility in GPSS. A facility is a single-server resource that can be used by only one transaction at a time. It is occupied by a SEIZE block and freed by a RELEASE block. If a transaction arrives when the facility is busy, it waits (in the delay chain) until the facility is released. GPSS keeps statistics for each facility: number of entries, utilisation (fraction of time busy), and average holding time per transaction. A real example is a barber, a teller or a machine.
Barbershop model. Customers arrive every min (uniform from 12 to 18). Joey cuts hair in min (16 to 20). The run is 9 hours, i.e. minutes. Time unit is 1 minute.
Block diagram
GENERATE 15,3 customer arrives
|
QUEUE WAITLINE join waiting line
|
SEIZE JOEY occupy the barber (facility)
|
DEPART WAITLINE leave the line
|
ADVANCE 18,2 haircut
|
RELEASE JOEY barber free
|
TERMINATE customer leaves
GENERATE 540 timer segment
|
TERMINATE 1 ends the run after 540 min
GPSS program
GENERATE 15,3
QUEUE WAITLINE
SEIZE JOEY
DEPART WAITLINE
ADVANCE 18,2
RELEASE JOEY
TERMINATE
GENERATE 540
TERMINATE 1
START 1
The timer transaction is created once at time 540 and its TERMINATE 1 reduces the termination counter from 1 to 0, ending the simulation. About customers arrive. Since the mean service time (18 min) is larger than the mean arrival gap (15 min), the utilisation is close to 100% and the queue keeps growing, so only about haircuts are completed. The output reports the utilisation of JOEY and the queue statistics of WAITLINE.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2079 · 10 marks
Why accuracy of analog computer is low? Explain analog computer with suitable example. Differentiate between analog and digital computer.
Answer
Why the accuracy of an analog computer is low
An analog computer represents variables by continuous physical quantities such as voltages, and solves problems by electrical circuits. Its accuracy is limited, typically to about 0.1% to 1% (three or four significant digits), because:
- Components (resistors, capacitors, amplifiers) have tolerances and change with temperature and ageing, causing drift.
- Noise and interference affect the signals.
- Operational amplifiers have finite gain and offsets, and integrators leak.
- The voltage can be read only with the precision of the measuring instrument (meter or plotter).
- The voltage range is limited, and values outside it saturate the amplifiers.
- Scaling is needed, which restricts the resolution of small values.
A digital computer, by contrast, represents numbers in binary with as many digits as wanted, so its accuracy is limited only by word length.
Analog computer with example
Main components: summers, inverters, integrators, coefficient potentiometers, multipliers and function generators, patched together by a patch-board according to the problem. Time integration is done in real time by operational amplifier integrators.
Example: solve the equation of a spring-mass-damper system , or the simple decay , . Rewrite as . An integrator with initial condition produces ; a potentiometer set to scales the signal and an inverter restores the sign. The output of the integrator is fed back through the potentiometer to its input. The voltage at the integrator output then follows and can be shown on an oscilloscope or recorder.
Analog versus digital computer
| Analog computer | Digital computer |
|---|---|
| Works on continuous physical quantities (voltage) | Works on discrete binary numbers |
| Low accuracy (about 0.1%-1%) | Very high accuracy, limited by word length |
| Programmed by patching and wiring components | Programmed by stored instructions |
| Operates in parallel, so speed does not depend on problem size | Operates mostly in sequence, speed falls with problem size |
| Limited memory and no data storage | Large and flexible storage |
| Suited to differential equations and real-time simulation | General purpose, used for all types of computation |
| Affected by noise and drift | Not affected by noise (error-free storage) |
| Hard to change the problem; hardware is expensive | Changing the program is easy |
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2079 · 10 marks
Define and develop a Poker test for four-digit random numbers. A sequence of 1,000 random numbers,each of four digits has been generated. The analysis of the numbers reveals that in 525 numbers all four digits are different, 419 contain exactly one pair of like digits, 47 contain two pairs, 9 have three digits of a kind and 7 contain all like digits. Use Poker test to determine whether these numbers are independent.(Critical value of chi-square for a = 0.05 and N = 4 is 9.49).
Answer
Poker test. The poker test checks the independence of random numbers by treating each group of digits like a poker hand and comparing the observed frequency of each pattern with the frequency expected from truly independent random digits. For four-digit numbers the patterns and their probabilities are:
| Pattern | Probability |
|---|---|
| All four different (abcd) | |
| One pair (aabc) | |
| Two pairs (aabb) | |
| Three of a kind (aaab) | |
| Four of a kind (aaaa) |
Procedure
- : the numbers are independent; : they are not.
- For numbers, expected frequency of each class is .
- Count the observed frequency of each pattern.
- Compute the statistic
- If , reject .
Calculation ()
| Pattern | |||
|---|---|---|---|
| All different | 525 | 504 | |
| One pair | 419 | 432 | |
| Two pairs | 47 | 27 | |
| Three of a kind | 9 | 36 | |
| Four of a kind | 7 | 1 |
The critical value is (as given). Since , is rejected. The numbers are not independent.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2079 · 5 marks
Why Confidence interval is needed in the analysis of simulation output. How can we establish a confidence interval?
Answer
Why a confidence interval is needed
The output of a stochastic simulation is random: each run gives a different value. A single number such as the sample mean of waiting times is only a point estimate and says nothing about how close it is to the true value. A confidence interval gives a range that contains the true value with a stated probability , so it measures the precision and reliability of the result. It is also needed to decide whether the run is long enough, and to compare alternative designs (if the intervals do not overlap, or the interval for the difference excludes zero, there is a real difference).
Establishing a confidence interval (method of replications)
- Run the model times independently, using different random number streams, each with the same length and the warm-up removed.
- Let be the mean output of replication . These are independent and identically distributed.
- Compute the overall mean and the sample variance:
- The confidence interval is
where is taken from the Student t table (the normal value for large ).
For a single long run, the batch means method is used instead: divide the run into batches large enough to be nearly independent and apply the same formula to the batch means. For example, with , , and , the 95% interval is , that is (10.57, 13.43).
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2079 · 5 marks
Generate ten 3 digit random integers and corresponding randomn variables using Multiplicative Congruential method where a =7, and X0= 22.
Answer
The multiplicative congruential method uses
For three-digit integers take , with and .
| Calculation | |||
|---|---|---|---|
| 1 | 154 | 0.154 | |
| 2 | 078 | 0.078 | |
| 3 | 546 | 0.546 | |
| 4 | 822 | 0.822 | |
| 5 | 754 | 0.754 | |
| 6 | 278 | 0.278 | |
| 7 | 946 | 0.946 | |
| 8 | 622 | 0.622 | |
| 9 | 354 | 0.354 | |
| 10 | 478 | 0.478 |
The ten three-digit random integers are 154, 078, 546, 822, 754, 278, 946, 622, 354, 478, and the corresponding random variables are 0.154, 0.078, 0.546, 0.822, 0.754, 0.278, 0.946, 0.622, 0.354, 0.478.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2079 · 5 marks
“Building a model right” and “Building a right model”. Are both statements same?Discuss the importance of V&V
Answer
Are the two statements the same? No.
- "Building a model right" is verification. It asks whether the model has been implemented correctly: does the computer program do what the conceptual model specifies, free of programming and logical errors? It compares the program with the conceptual model.
- "Building the right model" is validation. It asks whether the conceptual model is the correct representation of the real system for the purpose of the study, with the needed accuracy. It compares the model's output with the real system.
A model can be built right but still be the wrong model (a perfectly coded model of an incorrect assumption), or be the right model but wrongly coded. Both are needed, so they are different and complementary.
Importance of V&V
- Gives confidence that the results are credible, so decision makers will accept and use them.
- Prevents wrong decisions that could be costly or dangerous, because a faulty model gives misleading results.
- Detects errors early, when they are cheap to correct.
- Ensures that the model is fit for its intended purpose and the assumptions are reasonable.
- Supports accreditation of the model and documents its limits.
Techniques: for verification, code walk-through, debugging, tracing and testing with known cases; for validation, face validity, comparison with historical data, statistical tests and sensitivity analysis. V&V is carried out throughout the project, not only at the end.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2079 · 5 marks
Differentiate between discrete and continuous system.
Answer
| Discrete system | Continuous system |
|---|---|
| State variables change only at separate points in time (events) | State variables change continuously with time |
| Examples: bank queue, inventory, a factory production line | Examples: flow of liquid, speed of a car, temperature, a chemical process |
| Variables take countable values (integers) | Variables take real values over a range |
| Modelled by event/queuing models; time jumps from event to event | Modelled by differential equations; time advances in small steps |
| Simulated with discrete event simulation languages (GPSS, SIMSCRIPT) | Simulated with analog computers, digital analog simulators (CSMP, Simulink) |
| State is constant between events | State changes at every instant |
| Stochastic nature is common | Often deterministic |
Many real systems are combined (hybrid), for example a continuous process such as steel production with discrete batches, and both types of model are needed.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2079 · 5 marks
What is markov chain? Explain with example.
Answer
A Markov chain is a stochastic process with a finite or countable set of states in which the future depends only on the present state and not on how the process reached it. This is the Markov (memoryless) property:
Main elements
- State space: the set of values the process can take (for example Sunny, Rainy).
- Transition probability : probability of moving from state to state in one step. Each row of the transition matrix sums to 1.
- Initial distribution : probability of starting in each state.
- n-step probabilities: .
- Steady-state distribution: for an irreducible, aperiodic chain, with .
Example (weather model). Let the states be S (sunny) and R (rainy), with
If today is sunny, . Tomorrow: . The day after:
For the steady state solve with . This gives , so , and therefore , . In the long run about two thirds of days are sunny, whatever today's weather.
In simulation, Markov chains are used to model state-dependent random behaviour such as machine states (working/failed), queue lengths and customer brand switching.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2079 · 5 marks
Explain basic characteristics of Queueing System
Answer
A queueing system consists of customers who arrive, possibly wait in a queue, receive service from one or more servers and then leave. Its basic characteristics are as follows.
-
Calling population (source): the pool from which customers come. It may be infinite (arrival rate unaffected by the number in the system) or finite (arrivals fall as more customers are in the system, for example a fixed set of machines needing repair).
-
Arrival process: describes how customers arrive. It is usually specified by the inter-arrival time distribution. Arrivals are often Poisson, so inter-arrival times are exponential with mean . Arrivals may come singly or in batches, and may be scheduled or random. A customer may balk (refuse to join) or renege (leave after waiting).
-
Service mechanism: the distribution of service time, with mean (exponential, constant or general). Service may be single or batch, and its rate may depend on queue length.
-
Number of servers: single server or multiple servers in parallel, or in series (a network of queues).
-
System capacity: the maximum number of customers allowed in the system. It may be finite or infinite. When the system is full, arrivals are lost.
-
Queue discipline: the rule for choosing the next customer to serve, such as FIFO, LIFO, SIRO (random) or priority.
-
Queue behaviour and layout: a single queue or several queues, and whether jumping between queues is allowed.
These characteristics are summarised by Kendall's notation . Performance measures include utilisation , average waiting time and average queue length.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2079 · 5 marks
Describe dynamic physical model in detail with the help of suitable example.
Answer
A physical model is a physical representation of a system, built from real objects, which behaves like the system under study. A dynamic physical model is one whose physical behaviour changes with time. It reproduces the time-varying behaviour of the real system, usually at a different scale.
Characteristics
- It is a tangible, scaled-down (or scaled-up) replica of the real system.
- Its state changes over time, so time is an essential variable.
- It is used to observe, test and predict system behaviour before building or modifying the real system.
- It needs similarity between model and system (geometric, kinematic and dynamic similarity).
Example 1: wind tunnel model of an aircraft. A scaled aircraft model is placed in a wind tunnel and air is blown past it at controlled speeds. Lift, drag and turbulence vary with air speed and angle of attack, which change over time. Engineers measure these and use them to predict the behaviour of the full-size aircraft. Without the airflow the model would be a static model.
Example 2: scaled ship or dam model. A scaled ship hull is towed through a water tank to study wave resistance. A river or dam model with flowing water is used to study flood behaviour.
Example 3: flight simulator. A cockpit on a motion platform reproduces the dynamic response of an aeroplane to pilot inputs.
Advantages: experiments are safer and cheaper than on the real system, conditions can be repeated and controlled, and designs can be tested before construction.
Limitations: a physical model is costly to build and modify, scaling effects may make results inexact, and it is not as flexible as a mathematical or computer model.
By contrast, a static physical model (for example an architectural scale model of a building) does not change with time.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2079 · 5 marks
Write short notes:
a.Hypothesis testing
b.Stationary poission process
Answer
(a) Hypothesis testing
Hypothesis testing is a statistical procedure for deciding, using sample data, whether a claim about a population is supported. In simulation it is used to test random number generators (uniformity, independence) and to validate models by comparing model output with real-system data.
Steps
- State the null hypothesis (for example the numbers are uniform on [0,1]) and the alternative .
- Choose the level of significance , the probability of rejecting a true (Type I error). A typical value is 0.05.
- Choose a test statistic (Z, t, or K-S) and compute it from the sample.
- Find the critical value from tables for and the degrees of freedom.
- Decision: reject if the statistic falls in the critical region (for example ); otherwise do not reject it.
A Type II error () is accepting a false . Failing to reject does not prove it, it only means there is no evidence against it.
(b) Stationary Poisson process
A Poisson process counts random events occurring over time. It is stationary (homogeneous) when the arrival rate is constant. The properties are:
- Arrivals occur one at a time.
- Numbers of arrivals in non-overlapping intervals are independent.
- The distribution of arrivals in an interval depends only on its length, not on where it starts.
The number of arrivals in time has the Poisson distribution
with mean and variance both . The inter-arrival times are independent and exponential with mean . A stationary process is not suitable where the rate varies, for example with rush hours, which needs a non-stationary process. Stationary Poisson arrivals are used in queueing models such as M/M/1.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2080 · 10 marks
Why model of a system is built? What is static model? Differentiate between static and dynamic mathematical models in simulation.
Answer
Why a model of a system is built
A model is a representation of a system. Experimenting on the real system is often impossible, costly, dangerous or slow, or the system may not exist yet. A model is built to:
- understand how the system works and how its components interact;
- predict performance under different conditions and test "what-if" cases without disturbing the real system;
- compare alternative designs or policies at low cost and risk;
- study the system faster (time compression) or more slowly (time expansion) than reality;
- find bottlenecks, and train people or communicate the design.
Static model
A static model represents a system at a particular point in time, or one in which time plays no role. The relationships do not change with time and there is no time variable. Examples are a Monte Carlo model of the profit from a product with random sales and cost (one-off calculation), a balance sheet, or the equation .
Static versus dynamic mathematical models
| Basis | Static mathematical model | Dynamic mathematical model |
|---|---|---|
| Time | Time is not a variable; shows the system at one instant or in equilibrium | Time is an explicit variable; system state evolves over time |
| Form | Algebraic equations or inequalities | Difference or differential equations, or event-based state changes |
| Example | , linear programming, Monte Carlo profit estimate | Population growth , bank queue simulation, inventory over months |
| Output | Single result or distribution | Time history of the state (trajectory) |
| Complexity | Simple to build and solve | More complex, often needs simulation |
| Use | Planning and one-off decisions | Systems that change, such as queues, traffic and manufacturing |
Dynamic simulation models can be further classified as discrete-event or continuous, and deterministic or stochastic.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2080 · 10 marks
What is storage in GPSS? Describe the blocks associated to storage in GPSS. A machine tool in a manufacturing shop is turning out parts at the rate off one every 5 minutes. As they are finished the parts go on an inspector who takes 10 ± 3 minutes to examine each one and rejects 10% of the parts. Represent the system in GPSS using the concept of facility and run the simulation for 500 parts.
Answer
Storage in GPSS
A storage is a GPSS entity that models a resource which can serve many transactions at the same time, such as a parking lot, a warehouse or a group of identical machines. A facility serves only one transaction at a time. Its capacity is set by the STORAGE definition:
CAP STORAGE 5
Blocks associated with storage
ENTER A,B: a transaction takes units of storage (default 1). If space is not available it waits.LEAVE A,B: the transaction returns units to storage , so another waiting transaction can enter.STORAGE(control statement): defines the capacity of the storage.SAVAIL/SUNAVAIL: make the storage available or unavailable.- Standard numerical attributes:
S$name(current content),R$name(remaining capacity),SA$name(average content),SC$name(entry count),SR$name(utilisation),SM$name(maximum content).
Machine and inspector problem (using a facility)
Parts are produced every 5 minutes (mean). The inspector takes minutes, that is uniform between 7 and 13. About 10% of parts are rejected. The inspector is a single server, so we use a facility. Since an inspection takes longer than 5 minutes on average, a queue will form.
GENERATE 5 ; a part every 5 minutes
QUEUE INSQ ; join inspector queue
SEIZE INSP ; capture inspector
DEPART INSQ ; leave queue
ADVANCE 10,3 ; inspect 10 +/- 3 minutes
RELEASE INSP ; free inspector
TRANSFER .100,,REJ ; 10% go to REJ, 90% continue
TERMINATE 1 ; accepted part
REJ TERMINATE 1 ; rejected part
START 500 ; run until 500 parts processed
Working
GENERATE 5creates one part (transaction) per 5 minutes.QUEUE/DEPARTcollect the waiting time statistics.SEIZE/RELEASEmodel the single inspector. A part waits if the inspector is busy.ADVANCE 10,3holds the part for a time uniformly distributed in 7 to 13 minutes.TRANSFER .100,,REJsends 10% of parts to labelREJand the remaining 90% to the next block.- Both paths end in
TERMINATE 1, each decrementing the termination counter by 1.START 500stops the run when 500 parts have been processed.
At the end, the output gives the utilisation of INSP, the queue statistics and the number of parts accepted and rejected. The mean service time (10) exceeds the inter-arrival time (5), so the queue keeps growing and the inspector utilisation is close to 100%.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2080 · 10 marks
What are the two main properties of random numbers? Test whether the 3rd, 7th, 11th, and so on numbers in the sequence in the following random number sample are auto-correlated. (Z_α=0.05 and Z_0.025=1.96)
0.12 0.01 0.23 0.28 0.89 0.31 0.64 0.28 0.83 0.93 0.99 0.15 0.33 0.35 0.91 0.41 0.60 0.27 0.75 0.88 0.68 0.49 0.05 0.43 0.95 0.58 0.19 0.36 0.69 0.87
Answer
Two main properties of random numbers
- Uniformity: every number in the interval [0,1) is equally likely, so . If the interval is divided into equal classes, each class should contain observations.
- Independence: the probability of observing a value does not depend on previous values, so there is no correlation or pattern in the sequence.
Test for autocorrelation
We test numbers starting at with lag (3rd, 7th, 11th, ...) in a sequence of numbers.
(independent), (auto-correlated). , .
Step 1: find (the largest integer such that ):
The numbers used are the 3rd, 7th, 11th, 15th, 19th, 23rd and 27th: 0.23, 0.64, 0.99, 0.91, 0.75, 0.05, 0.19.
Step 2: estimate the autocorrelation
| k | Product | Value |
|---|---|---|
| 0 | 0.23 x 0.64 | 0.1472 |
| 1 | 0.64 x 0.99 | 0.6336 |
| 2 | 0.99 x 0.91 | 0.9009 |
| 3 | 0.91 x 0.75 | 0.6825 |
| 4 | 0.75 x 0.05 | 0.0375 |
| 5 | 0.05 x 0.19 | 0.0095 |
| Sum | 2.4112 |
Step 3: standard deviation
Step 4: test statistic
Decision: , so is not rejected. There is no evidence of autocorrelation, and the 3rd, 7th, 11th, ... numbers can be treated as independent.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2080 · 5 marks
Explain Markov chain with suitable example.
Answer
A Markov chain is a stochastic process in which the probability of moving to the next state depends only on the present state, not on the earlier history (the Markov property):
The chain is described by its states and a transition matrix , where and every row sums to 1. If is the initial distribution, the distribution after steps is . For a regular chain, the long-run (steady-state) distribution satisfies with .
Example: market share of two brands. Customers buy brand A or brand B each month. 90% of A buyers stay with A, and 20% of B buyers switch to A:
If the market is now 60% A and 40% B, . Next month:
Steady state: gives , so . With we get and . In the long run brand A holds about 66.7% of the market.
Markov chains are used in queueing models, weather prediction, inventory and reliability models and text generation.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2080 · 5 marks
What are steps involved in simulation study? Explain.
Answer
A simulation study is carried out in a series of steps.
- Problem formulation: state the problem clearly, and agree on it with the client or decision maker.
- Setting objectives and overall project plan: decide the questions the simulation must answer, the alternatives to test, and the time, cost, people and software needed.
- Model conceptualisation: abstract the essential features of the system. Start with a simple model and add detail as needed.
- Data collection: collect input data (inter-arrival times, service times, failure rates) in parallel with model building, because it takes time.
- Model translation: code the model in a simulation language (GPSS, Simscript) or a general-purpose language.
- Verification: check that the computer program works as intended and has no coding errors.
- Validation: check that the model is an accurate representation of the real system, by comparing output with real data. Calibrate the model if necessary.
- Experimental design: decide the alternatives to simulate, run length, warm-up period and number of replications.
- Production runs and analysis: execute the runs and estimate performance measures (means, confidence intervals).
- More runs? decide, from the analysis, whether more runs or other designs are needed.
- Documentation and reporting: record the model, assumptions and results (program and progress documentation).
- Implementation: put the findings into practice.
Steps are iterative: validation or analysis often sends the study back to earlier steps.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2080 · 5 marks
Generate 10 random integers using Linear congruential method where m=1000, a =19, c=6 and X_0=13
Answer
The linear congruential method generates integers by
Here , , , .
| i | Working | ||
|---|---|---|---|
| 1 | 253 | 19 x 13 + 6 = 253 | 0.253 |
| 2 | 813 | 19 x 253 + 6 = 4813 | 0.813 |
| 3 | 453 | 19 x 813 + 6 = 15453 | 0.453 |
| 4 | 613 | 19 x 453 + 6 = 8613 | 0.613 |
| 5 | 653 | 19 x 613 + 6 = 11653 | 0.653 |
| 6 | 413 | 19 x 653 + 6 = 12413 | 0.413 |
| 7 | 853 | 19 x 413 + 6 = 7853 | 0.853 |
| 8 | 213 | 19 x 853 + 6 = 16213 | 0.213 |
| 9 | 53 | 19 x 213 + 6 = 4053 | 0.053 |
| 10 | 13 | 19 x 53 + 6 = 1013 | 0.013 |
The ten random integers are 253, 813, 453, 613, 653, 413, 853, 213, 53, 13.
Note that , so the sequence has period 10 and the next number would repeat 253.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2080 · 5 marks
Explain different estimation methods which are used in simulation output analysis.
Answer
Simulation output is random, so results from a run are only estimates of the true system performance. Two kinds of analysis apply: for terminating simulations (a natural end, such as a bank that closes at 5 pm) and steady-state simulations (long-run behaviour). The estimation methods are as follows.
1. Point estimation
A single value computed from the output, for example the sample mean of observations :
It is easy but gives no idea of the precision of the estimate. For time-persistent variables such as queue length, a time-weighted average is used.
2. Interval estimation (confidence interval)
Gives a range that contains the true mean with probability :
where is the sample standard deviation. This requires independent, roughly normal observations.
3. Method of independent replications
The simulation is run times with different random numbers. Each replication gives one independent estimate , and the confidence interval is built from the values. It suits terminating simulations. For steady-state work an initial warm-up period is deleted from each run to remove initialisation bias.
4. Batch means method
One long run is divided into batches of equal length. The batch means are nearly independent if the batches are long enough, and a confidence interval is built from them. It avoids repeating the warm-up for every run.
5. Regenerative method
The run is divided into independent cycles at regeneration points (for example when the system becomes empty). Ratio estimators of cycle totals give the estimate and its interval.
All methods deal with correlation in the output (autocorrelation) and initial-state bias.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2080 · 5 marks
Define verification and validation. Explain the process of model verification in brief.
Answer
Verification asks "Is the model built right?" It checks that the computer program (the implementation) correctly matches the conceptual model, that is, it is free of programming and logic errors.
Validation asks "Is the right model built?" It checks that the model is an accurate representation of the real system for the intended purpose, by comparing model output with real system behaviour.
Process of model verification
- Write and debug in modules: the program is built and tested in small parts (subprograms) and each is checked before integrating.
- Code walkthrough: another person reads the code and logic, or the code is reviewed by a team.
- Trace the simulation: step through the event list, state variables and statistical counters by hand for a short run, and compare with the program's trace.
- Check output for reasonableness: run with a variety of input values and check that the output behaves sensibly (for example more servers gives shorter waits).
- Run with simplified cases: use cases whose answers are known, for example deterministic input, or a simple M/M/1 queue that can be compared with the analytic result.
- Use a debugger and self-checking code: print the input parameters and check they were read correctly, and add assertions.
- Animation or graphical display: watch the model behave to spot errors.
- Check consistency of the model with the conceptual assumptions: compare the simulation's distributions and counts with those specified.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2080 · 5 marks
What is feedback system? Explain with example.
Answer
A feedback system is a system in which part of the output is returned to the input and used to influence future behaviour. The output of an activity affects the activity itself through a loop, so the system corrects or reinforces itself.
Types
- Negative feedback reduces the difference between the output and the target value. It is stabilising (goal-seeking), as in a thermostat.
- Positive feedback amplifies change in the same direction, so growth or decline accelerates, as in population growth or a microphone placed near its loudspeaker.
Structure: input process output, with a feedback path from output through a comparator (against the desired value) back to the input.
Example 1: room heating by thermostat (negative feedback). The desired temperature is 24 degrees C. A sensor measures room temperature and compares it with the set point. If the temperature is lower, the heater turns on, and if higher, it turns off. The output (temperature) is fed back to control the heater, keeping the temperature near the set value.
Example 2: inventory control. Stock level is compared with the reorder level. When it falls below it, an order is placed. Deliveries increase stock, which reduces further orders.
In simulation, feedback systems are modelled with continuous or system-dynamics models, where the state at one time step depends on the outputs of earlier steps. They are common in economics, ecology, control engineering and business.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2080 · 5 marks
What is calling population? Explain arrival and service process in a queue.
Answer
Calling population
The calling population is the group of potential customers who may arrive at the queueing system. It can be:
- Infinite: so large that arrivals are not affected by how many customers are already in the system (for example customers of a large shop). The arrival rate is constant.
- Finite: a small fixed number of units (for example 10 machines needing repair). When more are in the system, fewer remain to arrive, so the arrival rate falls.
Arrival process
This describes how and when customers enter the system. It is specified by the inter-arrival time distribution. Arrivals may be at random or scheduled (for example appointments with constant gaps). For random arrivals the usual model is a Poisson process with rate , which makes inter-arrival times exponential with mean . Arrivals may be single or in batches. Customer behaviour may include balking, reneging and jockeying.
Service process
This describes how long a customer takes at a server. It is specified by the service time distribution (exponential with mean , constant, normal or general). Service rate may be constant or depend on queue length. Service may be one at a time or in batches, and by a single server or several parallel servers. The service discipline (FIFO, LIFO, priority) decides who is served next.
The ratio must be less than 1 for a stable queue.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2080 · 5 marks
Write short notes on:
a. Non-stationary poisson process
b. Poker test
Answer
(a) Non-stationary Poisson process
A Poisson process in which the arrival rate changes with time. It is used where the arrival rate varies, for example customers arriving at a restaurant (lunch peak), vehicles on a road at rush hour, or calls at a call centre. It is also called a non-homogeneous Poisson process.
The properties are:
- Arrivals occur one at a time and in non-overlapping intervals they are independent.
- The expected number of arrivals in is , and the number of arrivals in is Poisson with mean .
- Inter-arrival times are not identically distributed and are not independent of arrival time, so a plain exponential generator cannot be used.
Generation by thinning: generate arrivals at the maximum rate using a stationary process, then accept an arrival at time with probability . Another approach is to treat the rate as constant in short intervals.
(b) Poker test
The poker test checks the independence of random numbers by treating groups of digits as poker hands. For the three-digit version, the digits of each number are examined and classified as:
| Pattern | Probability |
|---|---|
| All different (ABC) | 0.72 |
| One pair (AAB) | 0.27 |
| Three alike (AAA) | 0.01 |
For four digits the probabilities are: all different 0.5040, one pair 0.4320, two pairs 0.0270, three alike 0.0360, four alike 0.0010.
Procedure
- Take numbers and classify each by its pattern.
- Count the observed frequency in each class and compute expected frequency .
- Compute the chi-square statistic
- Compare with the critical value (k = number of classes). If , accept that the numbers are independent. Otherwise reject.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2081 · 10 marks
Why is it necessary to analyze the simulation output. Explain different estimation method which are used in simulatiom output analysis.
Answer
Why simulation output must be analysed
The inputs of a simulation are random, so its output is also random. One run is only one sample of the possible outcomes, and a single number such as the average waiting time from one run may be far from the true value. Output analysis is needed to:
- estimate system performance measures (mean waiting time, utilisation, throughput) from the sample;
- measure the precision of the estimate (confidence intervals, standard error);
- decide the run length, number of replications and warm-up period;
- remove the effects of initial conditions and autocorrelation in the output;
- compare alternative designs fairly, so that differences are not just random noise.
Simulations are either terminating (a natural end event, such as a shop closing) or non-terminating (steady-state behaviour is of interest). The methods differ.
Estimation methods
1. Point estimation. A single-valued estimate of a parameter, such as the sample mean
For time-weighted measures such as queue length , the estimate is . It gives no measure of accuracy.
2. Interval estimation. A confidence interval that contains the true mean with probability :
where . It is valid for independent, approximately normal data.
3. Method of independent replications. The model is run times with independent random number streams, and each run gives one estimate . The confidence interval is built from the independent values. For steady-state work the initial transient (warm-up) of each run is deleted. It is simple and gives independent data, but the warm-up cost is repeated for each run.
4. Batch means method. One long run, after deleting the warm-up, is divided into batches of equal size. If the batches are long enough the batch means are nearly independent, and a confidence interval is computed from them:
It is economical because the warm-up is incurred once.
5. Regenerative method. The run is split into independent, identically distributed cycles at regeneration points (for example when the system becomes empty). The estimate is a ratio of cycle sums, and a confidence interval is constructed from it. It needs no warm-up deletion, but regeneration points may be rare in complex systems.
Conclusion: using one of these methods properly gives results with known precision, so that the study's conclusions are reliable.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2081 · 10 marks
Consider that a machine tool in a manufacturing shop is turning out parts at the rate of two every 5 minutes. As they are finished, the parts go to an inspector, who takes 5±2 minutes to examine each one and reject about 15% of the parts. Now develop a block diagram and write the code for simulating the above problem using GPSS, and also explain the function of each block used in the block diagram in detail.
Answer
Problem. Parts are produced two every 5 minutes, that is one every 2.5 minutes on average. The inspector takes minutes (uniform between 3 and 7), and about 15% of parts are rejected.
To keep clock times as integers, we use a time unit of 0.5 minute. Then the inter-arrival time is 5 units, and the inspection time is units.
Block diagram (flow of a transaction)
GENERATE 5 --> QUEUE INSQ --> SEIZE INSP --> DEPART INSQ --> ADVANCE 10,4
--> RELEASE INSP --> TRANSFER .150,,REJ --+--> TERMINATE 1 (accepted)
+--> REJ: TERMINATE 1 (rejected)
GPSS code
GENERATE 5 ; a part every 2.5 min (5 units of 0.5 min)
QUEUE INSQ ; join the inspector's queue
SEIZE INSP ; capture the inspector
DEPART INSQ ; leave the queue
ADVANCE 10,4 ; inspect for 5 +/- 2 min (10 +/- 4 units)
RELEASE INSP ; free the inspector
TRANSFER .150,,REJ ; 15% go to REJ, 85% go to next block
TERMINATE 1 ; accepted part leaves
REJ TERMINATE 1 ; rejected part leaves
START 500 ; stop after 500 parts are processed
(The number of parts, 500, is a choice; the problem does not fix it.)
Function of each block
- GENERATE 5: creates transactions (parts) with a mean inter-arrival time of 5 units; here the machine produces two parts per 5 minutes.
- QUEUE INSQ: a transaction joins the queue named INSQ, and the queue statistics (maximum, average content and waiting time) start being recorded.
- SEIZE INSP: the transaction captures the facility INSP (the inspector). If the inspector is busy it waits.
- DEPART INSQ: the transaction leaves the queue as it gets the inspector, which ends its waiting-time record.
- ADVANCE 10,4: holds the transaction for a time uniformly distributed over (6 to 14 units, that is 3 to 7 minutes), modelling the inspection.
- RELEASE INSP: frees the inspector for the next waiting part.
- TRANSFER .150,,REJ: statistical transfer; with probability 0.15 the transaction goes to the block labelled REJ, otherwise it moves to the next block.
- TERMINATE 1: removes the transaction from the model and reduces the termination counter by 1 (once for the accepted path and once for the rejected path).
- START 500: starts the run and ends it when the counter reaches zero, that is after 500 parts.
The mean inspection time (5 minutes) exceeds the mean arrival interval (2.5 minutes), so the inspector is overloaded: utilisation approaches 100% and the queue grows throughout the run. In practice a second inspector would be needed.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2081 · 10 marks
Explain the independenceand uniformity property of random number. For the following sample of random numbers, perform test for independence using K-S test. (D_0.05,10 = 0.41)
0.35, 0.77, 0.12, 0.33, 0.88, 0.45, 0.19, 0.25, 0.91, 0.54
Answer
Uniformity. Every number in [0,1) has the same chance of occurring. If [0,1) is divided into equal sub-intervals, each should receive about of the numbers, that is with and .
Independence. The value of one number does not depend on any earlier number, so there is no correlation or pattern. The probability of observing a value in any sub-interval is the same whatever the previous values were.
Kolmogorov-Smirnov test
The K-S test compares the empirical distribution function of the sample with the uniform CDF . Strictly it tests whether the numbers are uniform. As requested, it is applied here to the sample using the given critical value.
: the numbers are uniformly distributed (no evidence of departure). , , .
Step 1: rank the data (ascending): 0.12, 0.19, 0.25, 0.33, 0.35, 0.45, 0.54, 0.77, 0.88, 0.91.
Step 2: compute and .
| i | ||||
|---|---|---|---|---|
| 1 | 0.12 | 0.1 | -0.02 | 0.12 |
| 2 | 0.19 | 0.2 | 0.01 | 0.09 |
| 3 | 0.25 | 0.3 | 0.05 | 0.05 |
| 4 | 0.33 | 0.4 | 0.07 | 0.03 |
| 5 | 0.35 | 0.5 | 0.15 | -0.05 |
| 6 | 0.45 | 0.6 | 0.15 | -0.05 |
| 7 | 0.54 | 0.7 | 0.16 | -0.06 |
| 8 | 0.77 | 0.8 | 0.03 | 0.07 |
| 9 | 0.88 | 0.9 | 0.02 | 0.08 |
| 10 | 0.91 | 1.0 | 0.09 | 0.01 |
and , so
Decision: , so is not rejected. No difference from the uniform distribution is detected, and the sample can be used as random numbers (the test finds no evidence against uniformity and independence at the 5% level).
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2081 · 5 marks
Difference between static physical and dynamic physical models.
Answer
A physical model is a tangible representation of a system. It may be static or dynamic.
| Basis | Static physical model | Dynamic physical model |
|---|---|---|
| Meaning | A physical representation that does not change with time | A physical representation whose behaviour changes with time |
| Time | Time is not a factor; shows the system at one instant | Time is essential; shows how the system evolves |
| Motion/action | No movement or interaction with the environment | Moves or reacts to forces, flows or inputs |
| Purpose | Shape, layout, structure and appearance | Performance, response and behaviour under operating conditions |
| Examples | Architectural scale model of a building, globe, plastic model of a car, plant layout model | Wind tunnel model of an aircraft, ship model in a water tank, flight simulator, scaled dam with flowing water |
| Cost and complexity | Cheap and simple to build | More costly and complex, needs instruments and control |
| Experiments | Limited to visual inspection and measurement | Allows testing and measurement of the effect of changing conditions |
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2081 · 5 marks
Describe different phases of simulation study with help of flowchart.
Answer
A simulation study proceeds through the following phases, shown in the flowchart below.
Problem formulation
|
Setting of objectives and overall project plan
|
Model conceptualization <----+
| |
Data collection |
| |
Model translation |
| |
Verified? --No---------------+
| Yes |
Validated? --No--------------+
| Yes
Experimental design
|
Production runs and analysis
|
More runs? --Yes--> (back to Experimental design)
| No
Documentation and reporting
|
Implementation
Phases
- Problem formulation: state the problem, in agreement with the client.
- Objectives and project plan: define the questions to be answered, the alternatives, and the resources and schedule.
- Model conceptualization: abstract the key features of the real system into a conceptual model, starting simple.
- Data collection: gather and fit input data (inter-arrival and service times), alongside model building.
- Model translation: program the model in a simulation language or general-purpose language.
- Verification: check that the program implements the conceptual model correctly. If not, debug.
- Validation: compare model output with the real system and calibrate. If not valid, return to conceptualisation or data collection.
- Experimental design: choose the alternatives, run length, warm-up and replications.
- Production runs and analysis: perform the runs and estimate performance measures.
- More runs: decide whether more or different runs are needed.
- Documentation and reporting: record the program, assumptions and results.
- Implementation: apply the results to the real system.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2081 · 5 marks
Explain markov chain with suitable example. What are diffrernt application areas of markov chain?
Answer
A Markov chain is a stochastic process with a countable set of states in which the next state depends only on the present state, not on the path that led to it:
The one-step transition probabilities form a matrix with non-negative entries and each row summing to 1. The distribution after steps is , and the steady-state distribution solves , .
Example: weather. States are Sunny (S) and Rainy (R):
If today is sunny, . Tomorrow . Day after: .
Steady state: , so . Using gives and .
Application areas
- Queueing systems and network traffic (queue length as a birth-death chain).
- Weather forecasting and prediction models.
- Inventory and supply chain models.
- Reliability and maintenance (machine working/failed states).
- Marketing: brand switching and market share.
- Finance and economics: credit ratings, stock price models.
- Speech recognition, text generation and bioinformatics (hidden Markov models).
- Search engines (Google PageRank) and genetics.
- Board games such as snakes and ladders.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2081 · 5 marks
Explain itetrative process of calibrating a simulation model.
Answer
Calibration is the process of adjusting a model, after comparing it with the real system, until its output is close enough to the real system for the intended use. Validation and calibration form an iterative loop.
The iterative process
- Build the initial model from the conceptual design and the available data.
- Compare the model with the real system, by comparing the model's output with real observations. This may be done by subjective tests (expert review, animation) or objective tests (statistical tests such as the t-test or confidence intervals on the difference of means).
- Find the discrepancies between the model and the system.
- Revise the model to remove the differences: change parameters, distributions or assumptions, or add detail missing from the model.
- Compare the revised model again with the real system, using new data if available.
- Repeat steps 3 to 5 until the model is accepted as valid, with accuracy adequate for the purpose.
Real system <--- compare ---> Model (version 1)
|
revise model, recalibrate
|
Real system <--- compare ---> Model (version 2)
|
... until acceptable
Points to note
- It is better to make several small revisions and re-check than a few large ones.
- The aim is not perfect agreement, only sufficient accuracy for the decisions to be made.
- Calibration should use data different from the data used to build the model, otherwise the validation is not independent.
- The process stops when further improvements cost more than the benefit.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2081 · 5 marks
Describe the process of model building, verification and validation in detail with example.
Answer
Model building
Model building turns the real system into a working model. The steps are to observe the system and define the problem, abstract it into a conceptual model (components, variables, assumptions), collect and analyse input data, and then translate it into a program. A simple model is built first and detail is added gradually.
Verification checks that the program correctly implements the conceptual model ("is the model built right?"). It is done by modular testing and debugging, code walkthroughs, tracing the event list by hand, running simple cases with known answers, and checking that input parameters and output are reasonable.
Validation checks that the model represents the real system accurately enough for its purpose ("is the right model built?"). It involves:
- checking that the assumptions are reasonable (face validity, expert review);
- validating input data and distributions (goodness-of-fit tests);
- comparing the output with real system output using statistical tests, such as the t-test or a confidence interval for the difference of means.
If the model fails, it is calibrated and the cycle repeats.
Example: bank teller model
A bank has one teller. Observation shows customers arrive about every 4 minutes, and service takes about 3 minutes.
- Building: the model has customers (arrival, service time), one server and one queue. Inter-arrival times are modelled as exponential with mean 4, and service times as exponential with mean 3.
- Verification: the program is checked by tracing the first few customers by hand, and by comparing with the M/M/1 formula, giving and average waiting time in queue minutes. The simulated values should be close to these.
- Validation: the mean waiting time observed over several days at the real bank is compared with the model's average. If the difference is statistically insignificant, the model is valid. If not, the model (for example the service time distribution) is revised.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2081 · 5 marks
- 2081 · 5 marks
Define traffic intensity and server utilization. Write down the Kendall’s notation for queuing system with example.
Answer
Traffic intensity
Traffic intensity is the ratio of the arrival rate to the total service capacity:
where is the mean arrival rate, the mean service rate of one server and the number of servers. For a single server . It measures the load on the system, and a steady state exists only if . If the queue grows without bound.
Server utilisation
Server utilisation is the fraction of time a server is busy. For a stable system it equals the traffic intensity, . For example if per hour and per hour with one server, , so the server is busy 75% of the time and idle 25%.
Kendall's notation
A queueing system is described by
- : inter-arrival time distribution.
- : service time distribution.
- : number of parallel servers.
- : system capacity (maximum number in the system), default .
- : size of the calling population, default .
- : queue discipline (FIFO, LIFO, SIRO, priority), default FIFO.
Common symbols for and are M (Markovian: Poisson arrivals or exponential service), D (deterministic), (Erlang) and G (general).
Examples
- M/M/1: Poisson arrivals, exponential service, one server, infinite capacity and population, FIFO (for example a single-counter bank).
- M/M/3/20: three servers and a system capacity of 20.
- M/D/1: constant service time (for example an automatic car wash).
- M/G/1: general service time distribution with one server.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2081 · 5 marks
What is analog computer ? Explain with suitable example.
Answer
An analog computer is a computing device that represents the quantities of a problem by continuously varying physical signals (voltage, current, shaft rotation, fluid pressure) and solves the problem by letting these signals interact according to physical laws. The output is read as a continuous measurement and not as a sequence of discrete digits.
Main characteristics
- Data are continuous; there is no binary encoding.
- The computer is built as a network of components, each performing one mathematical operation: summer, inverting amplifier (multiplication by a constant), integrator, differentiator, multiplier and function generator.
- Operation is parallel and in real time; all components work simultaneously, so the speed does not depend on problem size.
- Accuracy is limited by component tolerance and noise, typically 0.1% to 1%.
- It is programmed by patching components together, not by storing instructions.
Example: solving a differential equation
To solve the equation
an operational amplifier integrator is used with a feedback connection. The integrator output is multiplied by and fed back to the integrator input. The voltage at the output then follows and can be displayed continuously on an oscilloscope. Changing means turning a potentiometer. In the same way, a mass-spring-damper system is solved with two integrators, summer and coefficient potentiometers.
Other examples are the slide rule, the mercury thermometer, the speedometer, the differential analyser, and the fuel-pump display.
Use in simulation. Analog computers were the first tools for continuous system simulation (aircraft, control systems, chemical plants). They have been replaced largely by digital computers, but are still used in hybrid computers where speed in real time is needed.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2081 · 5 marks
Write short notes:
- Queuing discipline
- Random variate
Answer
1. Queuing discipline
Queuing discipline (service discipline) is the rule that decides which waiting customer is chosen next for service when a server becomes free. It affects the waiting time of individual customers, though not the average number served in most cases.
Common disciplines:
- FIFO / FCFS (first in, first out): customers are served in order of arrival. Used at bank counters and ticket windows.
- LIFO / LCFS: the last arrival is served first, such as a stack of files.
- SIRO (service in random order): the next customer is chosen at random.
- Priority: customers are classed by priority (emergency patients), either pre-emptive (the one in service is interrupted) or non-pre-emptive.
- SPT (shortest processing time first): used in CPU scheduling to reduce average waiting.
Along with the arrival pattern, the service pattern, number of servers and system capacity, queuing discipline is one of the basic characteristics of a queuing system and appears in Kendall notation (default is FIFO).
2. Random variate
A random variate is a value of a random variable that follows a specified probability distribution (exponential, normal, Poisson, uniform and so on). A simulation requires such values to model the inter-arrival time, service time or failure time.
Steps for generation:
- Generate a random number from a good generator.
- Convert to a variate of the desired distribution using a method such as inverse transform, acceptance-rejection, convolution or composition.
For example, an exponential variate with mean is . If per minute and , then minutes.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2082 · 10 marks
Describe the MARK and TABULATE block in GPSS. A coffee shop has a single barista serving customers. Customers arrive at an average rate of one every 3 minutes and the barista takes an average of 2.5 minutes to serve a customer. Create a simulation model and block diagram representing the coffee shop using GPSS blocks and simulate the system for 8 hours.
Answer
MARK block
MARK A records the current simulation clock time in a transaction's parameter, or sets the transaction's mark time (the "M1" time) when no operand is given. In GPSS MARK without an operand stamps the arrival time of the transaction in the system; the transit time is later obtained as M1 (current clock minus mark time). With an operand, MARK PARAM stores the current clock in the named parameter, and the elapsed time is later found as AC1-P$PARAM. It makes it possible to measure the time a transaction spends between any two points of the model.
TABULATE block
TABULATE A enters a value into the frequency table named in operand A. The value is the argument defined by the TABLE entity, for example Q_TIME TABLE M1,0,2,10: the argument M1, the upper limit of the first class 0, class width 2 and 10 classes. Each time a transaction enters TABULATE Q_TIME, the table counts the observation in the right class and updates the mean, standard deviation and histogram that are printed at the end of the run.
Coffee shop model (time unit: 1 minute; arrivals exponential with mean 3, service exponential with mean 2.5; run minutes)
Block diagram, in order:
GENERATE (arrival, exp mean 3) MARK (time stamp) QUEUE (BQ) SEIZE (BARISTA) DEPART (BQ) ADVANCE (service, exp mean 2.5) RELEASE (BARISTA) TABULATE (TIMEINSYS) TERMINATE
Timer segment: GENERATE 480 TERMINATE 1.
EXPON FUNCTION RN1,C24
0,0/.1,.104/.2,.222/.3,.355/.4,.509/.5,.69/.6,.915/.7,1.2/.75,1.38
.8,1.6/.84,1.83/.88,2.12/.9,2.3/.92,2.52/.94,2.81/.95,2.99/.96,3.2
.97,3.5/.98,3.9/.99,4.6/.995,5.3/.998,6.2/.999,7/.9998,8
TIMEINSYS TABLE M1,0,2,15
GENERATE 3,FN$EXPON ; arrival, mean 3 min
QUEUE BQ ; join the queue
SEIZE BARISTA ; capture the barista
DEPART BQ ; leave the queue
ADVANCE 2.5,FN$EXPON ; service, mean 2.5 min
RELEASE BARISTA
TABULATE TIMEINSYS ; record time in shop
TERMINATE
GENERATE 480 ; timer transaction
TERMINATE 1
START 1 ; run until the counter is 0
(Here the mean times are written as mean,FN$EXPON, which multiplies the exponential function value by the mean. Transactions enter the model with an automatic mark time, so M1 gives the total time in the shop; an explicit MARK block can be placed after GENERATE if the time is to be kept in a parameter.)
Expected results. Utilisation , so the barista is busy about 83% of the time; roughly customers arrive. For the M/M/1 model, the average time in the system is minutes and the average wait in the queue is minutes. The simulation output (queue maximum, average contents, average time per transaction, utilisation of BARISTA, TIMEINSYS histogram) approximates these figures, with differences caused by random variation in a single run of 8 hours.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2082 · 10 marks
What is simulation? Describe the analogy between a mechanical system and corresponding electrical system with reference to dynamic physical model.
Answer
Simulation
Simulation is the imitation of the operation of a real-world process or system over time. It involves building a model that represents the key characteristics and behaviour of the system and then running (experimenting with) the model on a computer to observe how the system behaves under different conditions, so as to draw conclusions or predict performance without disturbing the real system. It is used when experimenting with the real system is costly, dangerous or impossible, when the system does not yet exist, and when analytical solutions are not available.
Dynamic physical model
A dynamic physical model is a physical system whose behaviour changes with time and whose state is described by differential equations. Two different physical systems can obey the same mathematical equation, so one can be used as a model (analog) of the other. The electrical system is easier to build, measure and adjust, so mechanical systems are often studied by building the electrical analog.
Analogy between mechanical and electrical systems
Mechanical (translational) system: a mass attached to a spring of stiffness and a damper (friction) with coefficient , driven by a force . The equation is
Electrical (series RLC) circuit: inductance , resistance , capacitance driven by a voltage . With charge , the equation is
The two equations have the same form, so each element has a counterpart (force-voltage analogy):
| Mechanical | Electrical |
|---|---|
| Force | Voltage |
| Mass | Inductance |
| Damping | Resistance |
| Spring stiffness | Reciprocal of capacitance |
| Displacement | Charge |
| Velocity | Current |
(In the force-current analogy, force corresponds to current, mass to capacitance, damping to and spring stiffness to , giving the parallel RLC circuit.)
Use in simulation. The natural frequency corresponds to and the damping ratio corresponds to . By measuring the response of the electrical circuit (or an analog computer built from integrators, summers and potentiometers representing the same equation) for various inputs, the behaviour of the mechanical system such as a vehicle suspension can be predicted without building it.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2082 · 10 marks
What are the properties of random number? The sequence of numbers 0.23, 0.45, 0.67, 0.12, 0.89, 0.34, 0.56, 0.78, 0.19, 0.41, 0.63, 0.08, 0.85, 0.29, 0.51, 0.73, 0.16, 0.94, 0.37, 0.59 has been generated. Test for the independence among numbers in the sequence starting with index (i) = 2 and lag (m)=3 using auto-correlation test. (α = 0.05, Zα/2=1.96)
Answer
Properties of random numbers
A sequence of random numbers used in simulation must have two important statistical properties:
- Uniformity: each is uniformly distributed over , so the expected frequency in each of equal sub-intervals is and , .
- Independence: the value of one number does not depend on the earlier ones, so there is no correlation between the numbers.
Other desirable properties are a long period (before the sequence repeats), reproducibility, computational efficiency and low memory use.
Autocorrelation test
Hypotheses:
Given , , .
Number of terms:
The numbers used are , i.e. .
Products of consecutive terms:
| Pair | Product |
|---|---|
| 0.4005 | |
| 0.6942 | |
| 0.4914 | |
| 0.1827 | |
| 0.0464 | |
| 0.0944 | |
| Sum | 1.9096 |
Estimator:
Standard deviation:
Test statistic:
Conclusion. The critical value is . Since , we fail to reject : the numbers are independent (no significant autocorrelation at lag 3 starting from the 2nd number) at the 5% level.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2082 · 5 marks
Explain static mathematical model with suitable example.
Answer
A static mathematical model represents a system at a single point in time, or a system in which time plays no role. It is made of equations or relationships between variables with no time variable, and the output does not change as the system evolves. It is solved once, usually by algebra or optimisation, in contrast to a dynamic model, whose state changes with time and is described by differential or difference equations.
Characteristics
- No time variable; the result is for a fixed condition or an equilibrium.
- Simple to build and solve, and often deterministic.
- Used for planning, costing, allocation and what-if analysis at one instant.
Example 1: Break-even model
If the fixed cost is , the variable cost per unit is and the selling price per unit is , the profit for units is
For , , :
The model gives the result immediately without any time progression.
Example 2: Ohm's law, , and the linear programming model, subject to , are further static models; a Monte Carlo estimate of is a static (time-independent) simulation.
A static model is thus suitable where the behaviour over time is not of interest.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2082 · 5 marks
Define Markov Chain. Explain with suitable example.
Answer
Definition
A Markov chain is a stochastic process with a finite or countable set of states, in which the probability of moving to the next state depends only on the present state and not on the sequence of states that preceded it (the Markov or "memoryless" property):
The numbers are the transition probabilities and are arranged in the transition matrix , in which every row sums to 1:
The -step probabilities are given by and the state distribution by . For an ergodic chain, a steady-state distribution exists such that and .
Example: weather model
States: Sunny (S) and Rainy (R). Let
If today is sunny, the probability of rain tomorrow is 0.2. The probability that it is rainy the day after tomorrow:
Steady state: solve and :
In the long run, 2/3 of days are sunny.
Markov chains are used in simulation of queues, inventory, page ranking and brand switching.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2082 · 5 marks
Explain non-stationary Poisson process in brief.
Answer
A non-stationary Poisson process (NSPP) is a Poisson arrival process whose arrival rate changes with time instead of being constant. It is used where arrivals follow a pattern, for example more customers in a bank at lunch time, rush-hour traffic, or calls to a call centre in the morning.
Properties
- Arrivals occur one at a time.
- Numbers of arrivals in disjoint intervals are independent (independent increments).
- The number of arrivals in is Poisson with mean :
Unlike the stationary (homogeneous) Poisson process, the inter-arrival times are neither identically distributed nor exponential with a fixed mean.
Generating arrivals (thinning method)
- Let and set .
- Generate and let ; set .
- Generate another ; if accept as an arrival time, otherwise reject it.
- Repeat from step 2.
An alternative is to split the day into intervals of constant rate and use a stationary process in each of them.
Example. Customers arrive at 10/hour from 9 to 11, 30/hour from 11 to 1, and 15/hour afterward; the model of the arrival is a non-stationary Poisson process with piecewise constant .
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2082 · 5 marks
Discuss the inverse transform technique and acceptance-rejection technique for random variate generation.
Answer
Random variate generation converts a uniform random number into a value of a random variable with a required distribution.
1. Inverse transform technique
Let the required variable have cumulative distribution function .
- Compute the CDF .
- Set .
- Solve for .
- Generate and compute .
Why it works: .
Example, exponential with rate : . Setting gives
or , since is also uniform. For a discrete distribution, a table of cumulative probabilities is searched to find the interval in which lies. The method is exact and fast, but requires in closed form (it is not available for the normal or gamma distributions).
2. Acceptance-rejection technique
Used when is unavailable. A candidate is generated from a simple distribution and accepted with a probability determined by the target density .
For a density on with maximum (or a proposal with ):
- Generate uniform on (or from ): .
- Generate .
- If (or ) accept ; otherwise reject and go to step 1.
Example, Poisson variate with mean (Poisson from exponential spacing): generate and find the smallest with ; then . The efficiency is (the fraction of candidates accepted), so the proposal should fit closely.
Comparison. Inverse transform uses one random number per variate and no rejection; acceptance-rejection works for any density that can be evaluated, but wastes some random numbers.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2082 · 5 marks
Explain the iterative process of calibrating a model.
Answer
Calibration is the process of comparing the model with the real system, adjusting the model (structure, parameters, assumptions) if the two do not agree well enough, and comparing again. It is repeated until the model is accepted as an adequate representation of the system. Calibration is part of validation.
Iterative process
- Build the first model from observations of the system, theory, and the opinions of experts (face validity).
- Compare the model with reality. Run the model for the same inputs as the real system and compare outputs (means, variances, histograms, time series). Use informal methods (graphs, expert review) and statistical tests (t-test, confidence intervals, chi-square, Turing test).
- Revise the model if the agreement is poor: correct wrong assumptions, change the structure, adjust parameters such as service-time distributions or the number of servers, and remove errors.
- Compare the revised model again with the real system.
- Repeat steps 2 to 4 until the discrepancies are within an acceptable limit, balancing the cost of more calibration with the added accuracy.
The usual cycle is therefore: model compare revise compare revise ... with the real system's data used as the benchmark at every iteration.
Cautions
- Keep some data aside to validate (not only calibrate) the final model.
- A model need not be perfect; it should be accurate enough for the decisions it supports.
- Document each change, as repeated tuning to the same data may over-fit the model.
Example. A model of a bank predicts a mean wait of 6 min while the real system gives 9 min. The service-time mean is re-estimated, a missing group of customers with long service times is added, and the model is rerun until the predicted wait is within the confidence interval of the observed value.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2082 · 5 marks
Explain Kendall notation with appropriate example.
Answer
Kendall notation is a standard way of describing a queuing system by a short code of the form
where
- A: inter-arrival time distribution.
- B: service time distribution.
- c: number of parallel servers.
- K: system capacity (maximum number of customers in the system, queue plus service); default .
- N: size of the calling population; default .
- D: queue discipline (FIFO, LIFO, SIRO, priority); default FIFO.
The first three are always given, and the others are omitted when they take their default values.
Symbols used for A and B:
| Symbol | Meaning |
|---|---|
| M | Markovian (exponential inter-arrival or service time; Poisson arrivals) |
| D | Deterministic (constant) |
| Erlang with phases | |
| G | General (any) distribution |
| GI | General independent |
Examples
- M/M/1: Poisson arrivals, exponential service, one server, infinite capacity, FIFO. A single-counter ticket booth. With /h and /h, and customers.
- M/M/3: a bank with three tellers sharing one queue.
- M/D/1: Poisson arrivals, constant service time, one server (an automatic car wash).
- M/M/1/10//FIFO: single server, a waiting room limited to 10 customers in total.
- M/G/1: Poisson arrivals, general service time, one server.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2082 · 5 marks
Explain Hybrid Simulation with examples.
Answer
Hybrid simulation combines two or more simulation approaches in one model, so that the strengths of each are used for different parts of the system. In the classical sense it means combining analog and digital computing (continuous parts handled in analog, logic and decisions on the digital machine); in modern usage it means combining simulation paradigms, mainly discrete-event, continuous (system dynamics) and agent-based simulation, or combining simulation with analytical models.
Why it is used
- Real systems contain both discrete events (arrival of a job, failure of a machine) and continuous change (temperature, fluid level, population).
- A single paradigm can describe only part of the system accurately.
Types
- Analog-digital (hybrid computer) simulation: the analog part solves differential equations in real time; the digital part controls, stores, logs and sets parameters. An interface of A/D and D/A converters connects them.
- Discrete-continuous simulation: the state variables change continuously, but discrete events (for example, a valve opening when a level exceeds a threshold, a state event) change the equations or the parameters.
- Simulation-analytic hybrid: a simulation model is combined with an analytical model, for instance an analytical queue model for a part of the network that is not critical.
- Multi-method: agent-based plus discrete-event plus system dynamics (e.g. in AnyLogic).
Examples
- Space vehicle / aircraft flight simulator: the equations of motion are solved continuously (analog or numerical integration), while the pilot actions, instrument displays and fault events are discrete.
- Chemical batch plant: the continuous reaction process in tanks and discrete events such as the loading of a batch and equipment failures.
- Epidemic with a hospital: infection spread by a continuous model, and patient arrival and treatment as discrete-event simulation.
- Supply chain: continuous flow of material in a pipe or conveyor and discrete orders and shipments.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2082 · 5 marks
What is a feedback system? Explain with suitable examples.
Answer
A feedback system is a system in which a part of the output (or a quantity derived from it) is returned to the input and compared with the desired value, so that the next action of the system depends on the result of its earlier actions. This forms a closed loop: input process output feedback input.
Elements
- Reference input (set point), the desired value.
- Comparator / summing point, which finds the error (reference minus feedback).
- Controller, which acts on the error.
- Plant / process, the system being controlled.
- Sensor (feedback path), which measures the output.
Types
- Negative feedback reduces the error and stabilises the system (self-regulating). Example: a thermostat.
- Positive feedback increases the deviation and amplifies the change (growth, instability). Example: microphone squeal.
For a loop with forward gain and feedback gain , the closed-loop gain is (minus sign in the denominator for positive feedback, plus for negative feedback).
Examples
- Room heater with a thermostat: set to 25 °C; the sensor measures the room temperature, and the heater is switched on when it is below 25 °C and off when above (negative feedback).
- Cruise control in a car: the measured speed is compared to the set speed, and the throttle is adjusted.
- Inventory control: the stock is monitored, and when the level falls below the reorder point an order is placed; a rise in stock stops the ordering.
- Human body: sugar level controlled by insulin; and bank interest or population growth are positive feedback examples.
In system simulation, feedback systems are modelled with system dynamics (stock and flow diagrams, causal loop diagrams).
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2082 · 5 marks
Write a short note on:
a. Mid Square Method
b. Digital Analog Simulation
Answer
a. Mid-square method
The mid-square method, proposed by John von Neumann, is one of the earliest pseudo-random number generators.
Procedure:
- Choose a seed of digits.
- Square the number, giving up to digits (add leading zeros if needed).
- Take the middle digits as .
- Divide by to obtain , and repeat.
Example with , : middle digits , . Then , . Then , .
Weakness: the sequence can degenerate to zero (e.g. gives 0000) or fall into a short cycle, so it is no longer used in practice; congruential generators () are preferred.
b. Digital-analog simulation
Digital-analog simulation (digital simulation of an analog system) uses a digital computer to simulate a system that would formerly be solved on an analog computer, using programming languages (such as CSMP or MIMIC) that imitate the analog components, e.g. integrators, summers, multipliers, function generators and coefficient units. The system's differential equations are written in block-diagram form, and the language integrates numerically (Euler, Runge-Kutta) in time steps.
Advantages: high accuracy and a wide range of values, no patching or scaling of amplitude, easy storage and change of parameters, and repeatability. Disadvantage: it is not truly parallel and cannot be real-time for large problems, being slower than an analog machine.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
Questions from TU BSc CSIT 2076 Cryptography (TU IOST board exam, 2076), TU BSc CSIT 2078 Cryptography (TU IOST board exam, 2078), TU BSc CSIT 2079 Cryptography (TU IOST board exam, 2079), TU BSc CSIT 2080 Cryptography (TU IOST board exam, 2080), TU BSc CSIT 2081 Cryptography (TU IOST board exam, 2081), TU BSc CSIT 2082 Cryptography (TU IOST board exam, 2082), TU BSc CSIT 2076 Design and Analysis of Algorithms (TU IOST board exam, 2076), TU BSc CSIT 2078 Design and Analysis of Algorithms (TU IOST board exam, 2078), TU BSc CSIT 2079 Design and Analysis of Algorithms (TU IOST board exam, 2079), TU BSc CSIT 2080 Design and Analysis of Algorithms (TU IOST board exam, 2080), TU BSc CSIT 2081 Design and Analysis of Algorithms (TU IOST board exam, 2081), TU BSc CSIT 2082 Design and Analysis of Algorithms (TU IOST board exam, 2082), TU BSc CSIT 2080 Image Processing (TU IOST board exam, 2080), TU BSc CSIT 2081 Image Processing (TU IOST board exam, 2081), TU BSc CSIT 2082 Image Processing (TU IOST board exam, 2082), TU BSc CSIT 2080 Multimedia Computing (TU IOST board exam, 2080), TU BSc CSIT 2081 Multimedia Computing (TU IOST board exam, 2081), TU BSc CSIT 2082 Multimedia Computing (TU IOST board exam, 2082), TU BSc CSIT 2076 System Analysis and Design (TU IOST board exam, 2076), TU BSc CSIT 2078 System Analysis and Design (TU IOST board exam, 2078), TU BSc CSIT 2079 System Analysis and Design (TU IOST board exam, 2079), TU BSc CSIT 2080 System Analysis and Design (TU IOST board exam, 2080), TU BSc CSIT 2081 System Analysis and Design (TU IOST board exam, 2081), TU BSc CSIT 2082 System Analysis and Design (TU IOST board exam, 2082), TU BSc CSIT 2076 Society and Ethics in Information Technology (TU IOST board exam, 2076), TU BSc CSIT 2078 Society and Ethics in Information Technology (TU IOST board exam, 2078), TU BSc CSIT 2079 Society and Ethics in Information Technology (TU IOST board exam, 2079), TU BSc CSIT 2076 Simulation and Modeling (TU IOST board exam, 2076), TU BSc CSIT 2078 Simulation and Modeling (TU IOST board exam, 2078), TU BSc CSIT 2079 Simulation and Modeling (TU IOST board exam, 2079), TU BSc CSIT 2080 Simulation and Modeling (TU IOST board exam, 2080), TU BSc CSIT 2081 Simulation and Modeling (TU IOST board exam, 2081), TU BSc CSIT 2082 Simulation and Modeling (TU IOST board exam, 2082), TU BSc CSIT 2076 Web Technology (TU IOST board exam, 2076), TU BSc CSIT 2078 Web Technology (TU IOST board exam, 2078), TU BSc CSIT 2079 Web Technology (TU IOST board exam, 2079), TU BSc CSIT 2080 Web Technology (TU IOST board exam, 2080), TU BSc CSIT 2081 Web Technology (TU IOST board exam, 2081) and TU BSc CSIT 2082 Web Technology (TU IOST board exam, 2082). Answers are written for this site; check them against your class notes.