Applied Mathematics

Chapter 14
Mathematical Modeling of Machine and Manufacturing Systems

Bachelors Program in Machine Technology
Applied Mathematics   •   Bachelor

Mathematical Modeling of Machine and Manufacturing Systems

Introduction and Context

Mathematical modeling is the disciplined process of representing a physical, operational, or economic system using variables, equations, assumptions, and parameters. In machine technology, models support design, production planning, process control, maintenance, energy management, quality improvement, and safety analysis. A model does not reproduce every detail of a manufacturing system. Instead, it retains the relationships that are important for a particular decision.

A useful model connects three forms of knowledge:

  1. Conservation laws, which express balances of mass, energy, momentum, or material.
  2. Constitutive relations, which describe how materials, machines, or processes behave.
  3. System identification, which estimates model parameters from observations.

Models may be deterministic, in which identical inputs produce identical outputs, or stochastic, in which uncertainty and random variation are explicitly represented. A mathematically sophisticated model is not necessarily a useful model. The appropriate model is the simplest one that is sufficiently accurate for its intended purpose.

Learning Objectives

By the end of this chapter, students should be able to:

  • formulate deterministic models from conservation laws and constitutive relations;
  • distinguish state, input, output, parameter, disturbance, and measurement variables;
  • model static and dynamic machine behavior;
  • formulate stochastic models for process variation, failures, and demand;
  • estimate parameters using experimental or production data;
  • calibrate and validate a model using independent evidence;
  • perform sensitivity, uncertainty, and scenario analysis;
  • interpret model results for engineering and manufacturing decisions;
  • identify limitations, ethical risks, and governance requirements.

1. The Structure and Purpose of a Model

A manufacturing system can be represented as a set of interacting subsystems: material supply, machine tools, fixtures, cutting processes, inspection, storage, maintenance, and human decision-making. A general representation is

ẋ(t) = f(x(t), u(t), p, w(t), t)
y(t) = g(x(t), u(t), p, v(t), t)

Here, x(t) is the vector of internal states, u(t) is the controllable input, y(t) is the measured output, p is the parameter vector, w(t) represents process disturbances, and v(t) represents measurement noise. The dot denotes a time derivative. The functions f and g describe system behavior.

For a thermal model, a state may be tool temperature; an input may be spindle speed; an output may be measured surface temperature. For a production-line model, states may include work-in-process inventories and machine conditions.

A model should have a stated purpose. A model designed to predict tool temperature may omit detailed inventory behavior. A model designed to estimate delivery time must include processing, transport, queueing, and reliability effects.

Deterministic and stochastic models

A deterministic model uses known relationships. For example, if a conveyor moves at constant speed v for time t, its travel distance is

d = vt

where d is distance in metres, v is speed in metres per second, and t is time in seconds. This relation assumes constant speed and no slip.

A stochastic model includes random variables. If the processing time of a part is T, then its expected value and variance are

E[T] = μT
Var(T) = σT2

where μT is the mean processing time and σT2 is its variance. The mean alone does not describe the risk of long delays; the variance or another measure of dispersion is also needed.

Static and dynamic models

A static model relates variables at one operating condition. A dynamic model describes how a system changes over time. Dynamic behavior is essential when thermal inertia, tool wear, filling and emptying, queues, or machine failures are important.

A first-order dynamic model is

τ dy(t)/dt + y(t) = K u(t)

where y(t) is the output, u(t) is the input, K is the steady-state gain, and τ is the time constant. The equation assumes linear behavior over the operating range and constant parameters. The time constant has units of time; after a step input, the output reaches approximately 63.2% of its final change after one time constant.

2. Conservation Laws in Manufacturing Models

Conservation laws are often the most reliable starting point because they express physically necessary balances.

Mass and material balance

For a storage tank, hopper, or work-in-process buffer,

dM/dt = ṁin − ṁout + ṁgen − ṁcons

where M is stored mass, ṁin and ṁout are mass flow rates entering and leaving, and ṁgen and ṁcons are generated and consumed mass rates. In an ordinary material buffer, generation and consumption are usually zero.

For a constant-density liquid with volume V and density ρ, M = ρV. If the inflow is 0.08 kg/s and the outflow is 0.05 kg/s, the stored mass increases at 0.03 kg/s. If the initial mass is 10 kg, then after 60 s, assuming constant flows,

M(60) = 10 + (0.08 − 0.05)(60) = 11.8 kg

This calculation is valid only while the buffer has capacity and the rates remain constant.

Energy balance

A general lumped energy balance is

dU/dt = Ėin − Ėout + Q̇ − Ẇ + Ėgen

where U is internal energy, Ėin and Ėout are energy flow rates, Q̇ is heat transfer into the system, Ẇ is work done by the system, and Ėgen is internal energy generation. The signs depend on the chosen system boundary and convention.

For a solid with constant mass and specific heat, a simplified thermal model is

mcp dT/dt = Pin − hA(T − T_∞)

where m is mass in kilograms, cp is specific heat capacity in joules per kilogram-kelvin, T is object temperature, Pin is input power, h is the heat-transfer coefficient, A is exposed area, and T_∞ is ambient temperature. This lumped-capacitance model assumes the object has nearly uniform temperature and that material properties remain approximately constant.

At steady state, dT/dt = 0, so

Tss = T_∞ + Pin/(hA)

The units are consistent: watts divided by watts per kelvin gives kelvin.

Production and flow balance

For a production stage, the work-in-process balance is

dWIP/dt = Rin − Rout

where WIP is the number of parts or jobs in the stage, and Rin and Rout are arrival and departure rates. If the average WIP is stable, then average arrival and departure rates must be equal.

Little’s law links average work-in-process, throughput, and flow time:

L = λW

where L is average WIP, λ is average throughput rate, and W is average time in the system. The law applies to a stable system over a suitable observation period. If a line averages 24 parts in process and produces 6 parts per hour, its average flow time is

W = L/λ = 24/6 = 4 h

Little’s law does not by itself explain where the time is spent or how to improve it.

3. Constitutive Relations and Machine Behavior

Conservation laws state what must balance; constitutive relations describe how a particular component behaves.

Mechanical relations

For a rotating shaft, power, torque, and angular speed are related by

P = Tω

where P is power in watts, T is torque in newton-metres, and ω is angular speed in radians per second. If rotational speed is n revolutions per minute,

ω = 2πn/60

For a linear elastic component, Hooke’s law is

F = kδ

where F is force, k is stiffness in newtons per metre, and δ is displacement. The relation is an approximation valid within the elastic and approximately linear range.

Cutting-process relationships

A simplified machining model may relate cutting force to uncut chip area:

Fc = Kc Ac

where Fc is cutting force, Kc is a material- and process-dependent specific cutting-force coefficient, and Ac is uncut chip cross-sectional area. Since Kc depends on tool geometry, material, speed, and chip thickness, it must be calibrated for the application.

For turning, an approximate material-removal rate is

MRR = πDNf d

where D is workpiece diameter, N is rotational speed in revolutions per unit time, f is feed per revolution, and d is depth of cut. Unit consistency is essential: if diameter and depth are in millimetres and speed is in revolutions per minute, the result is cubic millimetres per minute.

Reliability and failure behavior

If a component has a constant failure rate λ, its reliability over time t is modeled by the exponential relation

R(t) = e^(−λt)

The assumptions are a constant hazard rate, statistically independent failure opportunities, and an appropriate operating population. The mean time to failure is

MTTF = 1/λ

For a series system, where all components must operate,

Rsystem = ∏ Ri

This is valid when component failures are independent and system success requires every component to function. Common-cause failures violate this simple product model.

4. System Identification and Calibration

System identification uses measured input-output data to estimate an unknown model. It is useful when physical mechanisms are incompletely known, parameters are difficult to measure directly, or equipment behavior changes with age.

A practical identification procedure is:

  1. Define the purpose, boundary, inputs, outputs, and required accuracy.
  2. Design an experiment or select representative historical data.
  3. Measure variables with known sampling rates, calibration status, and units.
  4. Select a model structure based on physics and observed behavior.
  5. Estimate parameters using training data.
  6. Validate predictions using data not used for fitting.
  7. Examine residuals, physical plausibility, and operating-range limitations.

Least-squares calibration

Suppose a linear model predicts output yi from measured input xi:

yi = a + bxi + εi

where a is the intercept, b is the slope, and εi is measurement or model error. Ordinary least squares estimates a and b by minimizing

S(a,b) = ∑(yi − a − bxi)2

The estimates are

b̂ = ∑(xi − x̄)(yi − ȳ) / ∑(xi − x̄)2
â = ȳ − b̂x̄

where bars denote sample means. The method assumes a suitable linear relationship, independent errors for the basic interpretation, and no severe outliers or unmodeled structure.

Worked example: calibrating a force model

Measured data for a cutting operation are:

Cutting area x (mm²)Force y (N)
2420
3610
4790
51010

The means are x̄ = 3.5 mm² and ȳ = 707.5 N. Using the least-squares equations gives approximately

b̂ = 194 N/mm²
â = 28.5 N

Thus the calibrated model is

F̂ = 28.5 + 194Ac

For Ac = 4.5 mm², the predicted force is

F̂ = 28.5 + 194(4.5) = 901.5 N

The intercept should not automatically be interpreted as a real force at zero area; it may represent bias, omitted physics, or measurement offset. Extrapolation beyond the tested range is not justified without additional evidence.

5. Validation and Model Adequacy

Calibration asks, “What parameter values fit the data?” Validation asks, “Does the model perform adequately for its intended use?” These are different activities.

Useful validation evidence includes:

  • Hold-out prediction: evaluate data not used during calibration.
  • Residual analysis: inspect errors ei = yi − ŷi for trends, unequal spread, or autocorrelation.
  • Physical checks: confirm nonnegative masses, realistic temperatures, and conservation of material.
  • Extreme-condition tests: examine start-up, shut-down, overload, and near-capacity behavior.
  • Cross-validation: repeatedly partition data when data are limited.
  • Comparison with benchmarks: compare predictions with established calculations or independently measured quantities.

Common performance measures include mean absolute error,

MAE = (1/n)∑|yi − ŷi|

and root mean squared error,

RMSE = √[(1/n)∑(yi − ŷi)2]

where n is the number of observations, yi is the measured value, and ŷi is the prediction. MAE is easier to interpret in the original units. RMSE gives greater weight to large errors.

A model may have a low average error but still be unsafe if it fails during rare overloads. Validation must therefore reflect the decision risk, not only a single numerical score.

6. Stochastic Models for Manufacturing Systems

Manufacturing variation arises from material properties, tool wear, operator actions, environmental conditions, sensor error, demand, and machine failures.

Random variables and distributions

A normal model is often written as

X ~ N(μ, σ²)

where μ is the mean and σ² is the variance. It may be reasonable for a dimension affected by many small additive influences, but it is inappropriate when physical bounds or strong skewness are important.

For a dimension with target 50.00 mm and standard deviation 0.03 mm, the probability of lying within ±0.06 mm under a normal model is approximately the probability of being within two standard deviations, about 95.45%. This estimate depends critically on the normality and stability assumptions.

Queueing and capacity

If jobs arrive faster than a machine can process them for a sustained period, the queue grows without bound in an idealized model. For a single-server system, utilization is

ρ = λ/μ

where λ is mean arrival rate and μ is mean service rate. Stable operation generally requires ρ < 1. As utilization approaches one, waiting time becomes highly sensitive to variation and disruptions.

Monte Carlo simulation

Monte Carlo analysis propagates random inputs through a model:

  1. Assign probability distributions to uncertain inputs.
  2. Generate a random sample of inputs.
  3. Evaluate the model.
  4. Repeat many times.
  5. Summarize output distributions, percentiles, and risk measures.

For example, if demand, processing time, and machine availability are uncertain, simulation can estimate the probability of missing a delivery target. The results are conditional on the input distributions and model structure; simulation does not remove poor assumptions.

7. Sensitivity, Uncertainty, and Scenario Analysis

Sensitivity analysis

Sensitivity analysis measures how output changes when an input changes. A local derivative is

Sx = ∂y/∂x

A dimensionless elasticity is often more useful for comparing variables with different units:

Ex = (∂y/∂x)(x/y)

A positive elasticity means that an increase in x tends to increase y locally; a negative elasticity indicates the opposite. Local sensitivity may not describe behavior far from the base case.

For a machining cost model

C = C0 + ct t + ce E

where C0 is fixed cost, ct is cost per unit time, t is processing time, ce is energy cost per unit energy, and E is energy consumption, the sensitivity to time is ∂C/∂t = ct. If ct = 18 currency units per hour, reducing processing time by 0.25 h reduces modeled cost by 4.5 currency units, provided other terms remain unchanged.

Uncertainty analysis

Parameter uncertainty results from limited data or imperfect estimation. Input variability represents real operating fluctuation. These should not be confused with model-form uncertainty, which arises because the chosen equations omit or simplify mechanisms.

Results should be reported with appropriate precision and, where possible, intervals or percentiles. A prediction of 127.438 units may falsely suggest more certainty than the measurement system supports.

Scenario analysis

Scenario analysis evaluates coherent combinations of assumptions, such as:

  • baseline production demand;
  • high-demand conditions;
  • reduced machine availability;
  • preventive-maintenance improvement;
  • alternative tooling or process parameters.

Scenarios are not probabilities unless probabilities are explicitly assigned. They are structured “what-if” analyses for comparing decisions under different conditions.

8. Integrated Case Study: Modeling a CNC Cell

The following is an illustrative case, not a report of a particular company.

Background

A CNC turning cell produces a shaft requiring 8 minutes of machining and 2 minutes of loading and inspection. Management wants to determine whether the cell can meet a demand of 55 parts in an 8-hour shift. Planned breaks and setup time total 50 minutes. Historical availability is 92%.

Problem formulation

Available scheduled time is

Ts = 8(60) − 50 = 430 min

The nominal cycle time is 10 min/part, so nominal capacity is

Qnominal = 430/10 = 43 parts/shift

Accounting for availability gives expected effective capacity

Qeffective = 43(0.92) = 39.56 parts/shift

Thus the target of 55 parts cannot be achieved with the stated cycle time and availability. The shortfall is approximately 15.44 parts per shift.

Analysis of alternatives

Suppose process improvement reduces machining time from 8 to 6 minutes, while loading and inspection remain 2 minutes. The new cycle time is 8 minutes, giving

Qnominal,new = 430/8 = 53.75 parts/shift

With the same availability,

Qeffective,new = 53.75(0.92) = 49.45 parts/shift

This still falls below 55 parts. If availability improves to 98%,

Q = 53.75(0.98) = 52.68 parts/shift

The target remains unmet. If loading and inspection are reduced to 1.5 minutes, the cycle time becomes 7.5 minutes. At 98% availability,

Q = (430/7.5)(0.98) = 56.16 parts/shift

The target is then achievable on average, but the margin is small.

Stochastic risk

Average capacity does not guarantee daily success. If cycle time varies, downtime is random, and demand is fixed, some shifts will produce fewer than 55 parts. A Monte Carlo model could sample cycle time, downtime, and quality losses, then estimate the probability of meeting the target. The decision should consider a service-level requirement, such as meeting demand in at least 95% of shifts, rather than relying on the mean alone.

Validation plan

The cell model should be tested against several weeks of shift records. Required data include scheduled time, actual run time, good parts, scrap, downtime categories, and cycle-time observations. Residual errors should be examined for shift, operator, product, and temperature effects. If the model consistently overpredicts output, an omitted factor such as changeover loss or rework is likely.

Learning points

The case demonstrates that conservation of time, capacity calculations, availability, and stochastic variation must be considered together. It also shows why a single improvement may be insufficient and why an average prediction should not be confused with a guaranteed result.

9. Implementation, Technology, and AI

Modern manufacturing execution systems, programmable controllers, sensors, digital twins, and statistical dashboards provide data for model development. A digital twin is useful only when its boundaries, data sources, update frequency, and validation status are documented.

Machine-learning models can identify nonlinear patterns in vibration, energy, or quality data. However, prediction is not automatically explanation. Physics-informed or hybrid models combine conservation laws with data-driven correction terms. Such models can improve extrapolation and detect physically impossible predictions, but they require careful validation.

Best practices include:

  • synchronize timestamps and record units;
  • maintain sensor calibration and data lineage;
  • separate calibration data from validation data;
  • monitor model drift as tools, materials, and products change;
  • preserve versioned assumptions and parameter values;
  • provide uncertainty or confidence information;
  • define human authority over automated recommendations.

10. Limitations, Ethics, and Governance

Every model is conditional. A model calibrated at one cutting speed may fail at another. A queue model based on independent arrivals may fail during batch releases. A reliability model based on constant hazard may fail during infant mortality or wear-out periods.

Important governance issues include:

  • Safety: model error must not disable necessary safeguards or encourage operation beyond certified limits.
  • Traceability: decisions should be reproducible from recorded data, assumptions, and software versions.
  • Fairness and workforce impact: productivity models should not penalize operators for factors outside their control or encourage unsafe speed.
  • Privacy and security: worker, production, and machine data require controlled access.
  • Automation accountability: responsibility must remain clear when an algorithm recommends maintenance or rejects parts.
  • Regulatory compliance: models used in safety-critical or regulated production must follow applicable standards, validation procedures, and documentation requirements.

Best-Practice Modeling Workflow

A robust workflow is:

  1. State the decision and performance measure.
  2. Define the system boundary and assumptions.
  3. List variables, units, parameters, and data sources.
  4. Begin with conservation laws and established constitutive relations.
  5. Add stochastic terms only where variation is meaningful and measurable.
  6. Estimate parameters using representative data.
  7. Check dimensional consistency and limiting cases.
  8. Validate against independent observations.
  9. Conduct sensitivity, uncertainty, and scenario analysis.
  10. Document limitations, monitor performance, and revise the model when conditions change.

Chapter Summary

Mathematical models provide a structured basis for understanding and improving machines and manufacturing systems. Conservation laws produce physically grounded balances of mass, energy, and production flow. Constitutive relations describe mechanical, thermal, cutting, and reliability behavior. Static models represent operating relationships, whereas dynamic models represent change over time.

System identification estimates unknown parameters from measured data, but calibration is distinct from validation. Deterministic models are suitable when relationships and inputs are sufficiently known; stochastic models represent variation in dimensions, demand, processing time, failures, and availability. Sensitivity analysis identifies influential variables, uncertainty analysis quantifies the effect of imperfect knowledge and variability, and scenario analysis compares coherent operating assumptions.

Useful models are not judged only by mathematical complexity. They must be dimensionally consistent, empirically supported, interpretable, fit for purpose, and governed responsibly. In professional practice, modeling is an iterative activity involving formulation, measurement, calibration, validation, decision analysis, and continuous monitoring.

Key Terms

Calibration: Estimating model parameters from observed data.

Conservation law: A balance principle stating that a conserved quantity cannot be created or destroyed within a defined system except through specified flows or sources.

Constitutive relation: An empirical or theoretical relation describing the behavior of a material, component, or process.

Deterministic model: A model in which fixed inputs produce a fixed output.

Digital twin: A computational representation linked to a physical asset or process through data.

Dynamic model: A model that represents changes in system variables over time.

Elasticity: A dimensionless measure of proportional output response to proportional input change.

Input: A variable applied to or entering a system.

Little’s law: The relation L = λW connecting average WIP, throughput, and flow time in a stable system.

Model validation: Evaluation of whether a model is adequate for its intended use.

Parameter: A quantity that characterizes a model and is usually fixed for a specified application.

Residual: The difference between an observed value and its model prediction.

Scenario analysis: Comparison of model results under coherent alternative assumptions.

Sensitivity analysis: Study of how model output changes when an input or parameter changes.

State variable: A variable that summarizes information needed to describe future system behavior.

Stochastic model: A model containing random variables or probability distributions.

System boundary: The defined separation between the modeled system and its environment.

System identification: Estimation of a model structure or parameters from measured system data.

Uncertainty analysis: Evaluation of the effects of incomplete knowledge, measurement error, or model limitations.

Work-in-process: Material or jobs that have entered production but are not yet finished.

Review Questions

5 Short Answer Questions

  1. Distinguish a conservation law from a constitutive relation.
  2. What is the difference between calibration and validation?
  3. State the conditions under which Little’s law is useful.
  4. Define sensitivity analysis and give one manufacturing application.
  5. Why should model units be checked before numerical results are interpreted?

5 Long Answer Questions

  1. Explain how mass and energy balances can be used to formulate models of manufacturing equipment. Include assumptions and examples.
  2. Describe a complete system-identification workflow for a machine-tool process.
  3. Compare deterministic and stochastic models and explain when each is appropriate.
  4. Discuss model validation methods, including residual analysis, hold-out testing, and physical plausibility checks.
  5. Explain how digital twins and machine learning can complement, but not replace, physics-based manufacturing models.

3 Analytical / Application Questions

  1. A buffer receives material at 0.12 kg/s and supplies material at 0.09 kg/s. Starting with 18 kg, calculate the mass after 90 s and state the assumptions required.
  2. A production cell has 460 available minutes per shift, a 9-minute cycle time, and 90% availability. Calculate its expected effective capacity and assess whether it can meet a 48-part target.
  3. Design a validation and uncertainty-analysis plan for a predictive tool-wear model. Specify measured variables, calibration data, validation data, uncertainty sources, and decision criteria.

Multiple Choice Questions with Answers

Question 1

Which equation represents a material balance for a storage buffer with no generation or consumption?

A. dM/dt = ṁ_in − ṁ_out

B. dM/dt = ṁ_in + ṁ_out

C. M = ρV/t

D. M = Fδ

Correct Answer: A. dM/dt = ṁ_in − ṁ_out

Question 2

A production system has an average WIP of 30 parts and throughput of 5 parts per hour. What is the average flow time?

A. 0.17 h

B. 6 h

C. 25 h

D. 150 h

Correct Answer: B. 6 h

Question 3

In the first-order model τ dy/dt + y = Ku, what does τ represent?

A. Steady-state gain

B. Measurement noise

C. Time constant

D. Input amplitude

Correct Answer: C. Time constant

Question 4

Which activity uses data not used for fitting to assess predictive performance?

A. Calibration

B. Validation

C. Dimensional analysis

D. Scenario definition

Correct Answer: B. Validation

Question 5

A machine has an arrival rate of 4 jobs per hour and a service rate of 5 jobs per hour. What is its utilization?

A. 0.20

B. 0.80

C. 1.25

D. 9.00

Correct Answer: B. 0.80

Question 6

For a constant failure rate λ, which expression gives exponential reliability?

A. R(t) = λt

B. R(t) = 1 − λt

C. R(t) = e^(−λt)

D. R(t) = e^(λ/t)

Correct Answer: C. R(t) = e^(−λt)

Question 7

What is the principal purpose of sensitivity analysis?

A. To eliminate all uncertainty

B. To determine how output responds to changes in inputs

C. To guarantee model validity

D. To replace measurement data

Correct Answer: B. To determine how output responds to changes in inputs

Question 8

A CNC cell has 430 available minutes and a 10-minute cycle time. Its nominal capacity is approximately:

A. 4.3 parts

B. 43 parts

C. 440 parts

D. 4,300 parts

Correct Answer: B. 43 parts

Question 9

Which is an example of model-form uncertainty?

A. A sensor reading rounded to two decimal places

B. A missing physical mechanism in the selected equations

C. A known change in production demand

D. A scheduled machine break

Correct Answer: B. A missing physical mechanism in the selected equations

Question 10

In least-squares calibration of y = a + bx, the fitted parameters are selected to minimize:

A. The sum of squared prediction errors

B. The sum of input values

C. The product of all outputs

D. The maximum operating temperature

Correct Answer: A. The sum of squared prediction errors

Applied Mathematics
Chapter 14 of 15