Modelling of Cyber Physical System
Modelling of Cyber Physical System
Discrete dynamics
Discrete dynamics is a branch of mathematics that deals with the study of dynamic
systems in which time is modelled as a discrete variable. In contrast to continuous
dynamics, which involves continuous-time models described by differential
equations, discrete dynamics focuses on systems that evolve in discrete steps or
intervals.
Discrete dynamical systems are characterized by a sequence of states that change
according to certain rules or transformations. These transformations are often
represented by mathematical functions or mappings. At each time step, the system
moves from one state to another based on the specified transformation.
One of the fundamental concepts in discrete dynamics is the notion of iteration.
Iteration refers to the repeated application of a mapping or function to a given initial
state. The sequence of states obtained through iteration can reveal important patterns,
behaviours, or properties of the system.
Discrete dynamics finds applications in various fields, including mathematics,
physics, computer science, biology, and economics. It provides a framework for
modelling and analysing systems with discrete behaviours, such as population
dynamics, cellular automata, cryptographic algorithms, fractals, and chaos theory.
Mathematically, discrete dynamics encompasses various areas, such as difference
equations, iterated function systems, symbolic dynamics, and dynamical systems on
graphs. The study of discrete dynamics often involves analysing stability,
bifurcations, attractors, periodic orbits, and other properties associated with the
system's evolution.
Overall, discrete dynamics offers a valuable perspective for understanding and
studying systems that evolve in discrete steps, allowing for the analysis of complex
behaviours and the exploration of mathematical models in a discrete setting.
Reactivity
The reactivity of a Cyber-Physical System (CPS) refers to its ability to respond and
adapt to changes in its environment or input stimuli in a timely manner. CPS
combines physical components with computational elements, enabling them to sense
and react to events in real-time.
Here are a few key aspects that contribute to the reactivity of a CPS:
1. Sensing: CPS relies on various sensors to monitor the physical environment
and collect data. These sensors provide input signals to the computational
components of the system, allowing it to perceive changes and events in real-
time. The efficiency and accuracy of the sensing infrastructure are crucial for
timely reactions.
Sensing plays a vital role in Cyber-Physical Systems (CPS) as it enables the system
to perceive and gather information about its physical environment. Sensors are used
to monitor various aspects of the environment, such as temperature, humidity,
pressure, motion, light, sound, and more. They generate input signals that are then
processed by the computational components of the CPS.
Efficiency and accuracy are indeed crucial in the sensing infrastructure of CPS. The
sensors need to be reliable and capable of providing accurate data in real-time.
Timeliness is essential because CPS often require quick reactions to changes or
events in the environment. For example, in a smart grid CPS, sensors can monitor
power usage and detect fluctuations or failures, enabling the system to respond
promptly to prevent blackouts or optimize energy distribution.
The selection and placement of sensors are critical considerations in CPS design. The
sensors should be strategically located to capture relevant information and minimize
blind spots. Additionally, the sensors should be capable of handling the
environmental conditions they are exposed to, whether it's extreme temperatures,
high humidity, or harsh physical conditions.
Furthermore, sensor fusion techniques are often employed in CPS to combine data
from multiple sensors to obtain a more comprehensive and accurate understanding of
the environment. By integrating data from different sources, CPS can improve their
perception capabilities and make more informed decisions.
2. Communication: CPS components communicate with each other and exchange
information through wired or wireless networks. Low-latency and reliable
communication channels are essential for timely transmission of data and
commands, enabling quick reactions to events.
In a Cyber-Physical System (CPS), communication plays a vital role in enabling the
exchange of information between different components. CPS components, such as
sensors, actuators, controllers, and other devices, need to communicate with each
other to perform their functions effectively. This communication can occur through
wired or wireless networks, depending on the specific implementation and
requirements of the system.
Low-latency communication channels are crucial in CPS because they ensure that
data and commands are transmitted quickly and efficiently. In time-critical
applications, such as autonomous vehicles, industrial automation, or smart grid
systems, low latency is essential for timely responses and real-time decision-making.
Reliable communication channels are also essential in CPS. The exchanged data and
commands must reach their intended destinations accurately and without loss or
corruption. Reliable communication ensures that the system operates as expected and
reduces the risk of errors or malfunctions.
To achieve low-latency and reliable communication in CPS, various technologies and
protocols can be utilized, such as Ethernet, Wi-Fi, cellular networks, fieldbus systems
(e.g., Profibus, Modbus), and industrial communication protocols (e.g., OPC-UA,
MQTT). The selection of communication technologies depends on factors like the
application requirements, data volume, distance, environment, and security
considerations.
Overall, efficient and robust communication channels are fundamental for enabling
the coordination and interaction of CPS components, facilitating seamless data
exchange, and supporting timely reactions to events.
4. Control and Actuation: Based on the analysis and decisions made by the
computational components, CPS needs to control and actuate physical
elements. This involves adjusting parameters, activating actuators, or
influencing the physical processes to respond to the changing environment
effectively. In CPS, control and actuation are necessary to ensure that the
system responds effectively to the changing environment and achieves desired
objectives. Here are some key aspects related to control and actuation in CPS:
1. Feedback Control: CPS often utilize feedback control mechanisms to
maintain system performance or to achieve specific objectives. Feedback
control involves continuously sensing the state of the system, comparing it to a
desired reference or goal, and adjusting control parameters accordingly. This
allows the system to adapt and respond to environmental changes or
disturbances.
2. Control Algorithms: CPS employ various control algorithms to determine the
appropriate actions based on the analysed data. These algorithms can be based
on classical control techniques like PID (Proportional-Integral-Derivative)
control or modern techniques such as model predictive control, adaptive
control, or machine learning-based control. The choice of control algorithm
depends on the specific requirements and characteristics of the CPS.
3. Actuators: Actuators are physical devices that enable the CPS to influence the
physical world. They can include motors, valves, switches, robotic arms, or any
other components that can produce physical changes or actions. Actuators are
typically controlled by the computational components of CPS through signals
or commands.
4. Actuation Strategies: CPS need to determine the appropriate actuation
strategies to achieve the desired objectives. This involves deciding when and
how to activate actuators based on the system state, control decisions, and
environmental conditions. Actuation strategies may involve activating multiple
actuators simultaneously, coordinating their actions, or sequencing them in a
specific order.
5. Real-Time Control: In many CPS applications, control and actuation need to
operate in real-time or with low-latency. Real-time control ensures that the
system can respond quickly and accurately to changing conditions. It requires
efficient sensing, computation, and actuation processes to meet the tight timing
constraints.
6. Safety Considerations: Control and actuation in CPS must also take into
account safety considerations. Depending on the application, safety measures
such as fault detection, fault tolerance, and emergency shutdown mechanisms
may be incorporated to ensure the system operates within safe limits and to
prevent hazardous situations.
5. Feedback loops: Reactive CPS often incorporate feedback loops, where the
system continuously monitors its own outputs and adjusts its behaviour based
on the feedback received. Feedback enables the system to adapt and improve
its responses over time.
6. Real-time Operating Systems (RTOS): Many CPS implementations use RTOS,
which provides deterministic scheduling and efficient resource management.
RTOS ensures that critical tasks are executed within specified time constraints,
contributing to the overall reactivity of the system.
7. Fault tolerance: Reactive CPS should be designed to handle failures and errors
gracefully. Redundancy mechanisms, error detection, and fault recovery
strategies are essential for maintaining the reactivity of the system in the
presence of failures.
Overall, the reactivity of a CPS depends on the seamless integration of sensing,
communication, computation, control, and actuation components. By effectively
combining these elements and optimizing their performance, CPS can exhibit
responsive behaviour, making them suitable for real-time applications and dynamic
environments.