modeling and control overview · 2016. 7. 10. · modeling modeling is the process of representing...

63
DR. TAREK A. TUTUNJI ADVANCED CONTROL SYSTEMS MECHATRONICS ENGINEERING DEPARTMENT PHILADELPHIA UNIVERSITY JORDAN PRESENTED AT HOCHSCHULE BOCHUM GERMANY MAY 31 – JUNE 2, 2016 Modeling and Control Overview

Upload: others

Post on 28-Feb-2021

3 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Modeling and Control Overview · 2016. 7. 10. · Modeling Modeling is the process of representing the behavior of a real system by a collection of mathematical equations and logic

D R . T A R E K A . T U T U N J I

A D V A N C E D C O N T R O L S Y S T E M S

M E C H A T R O N I C S E N G I N E E R I N G D E P A R T M E N T

P H I L A D E L P H I A U N I V E R S I T Y

J O R D A N

P R E S E N T E D A T

H O C H S C H U L E B O C H U M

G E R M A N Y

M A Y 3 1 – J U N E 2 , 2 0 1 6

Modeling and Control Overview

Page 2: Modeling and Control Overview · 2016. 7. 10. · Modeling Modeling is the process of representing the behavior of a real system by a collection of mathematical equations and logic

Modellierung und Steuerung

Guten Morgen

Ich bin Tarek

Page 3: Modeling and Control Overview · 2016. 7. 10. · Modeling Modeling is the process of representing the behavior of a real system by a collection of mathematical equations and logic

Math Modeling Review

Page 4: Modeling and Control Overview · 2016. 7. 10. · Modeling Modeling is the process of representing the behavior of a real system by a collection of mathematical equations and logic

Modeling

Modeling is the process of representing the behavior of a real system by a collection of mathematical equations and logic.

Models are cause-and-effect structures—they accept external information and process it with their logic and equations to produce one or more outputs.

Parameter is a fixed-value unit of information

Signal is a changing-unit of information

Page 5: Modeling and Control Overview · 2016. 7. 10. · Modeling Modeling is the process of representing the behavior of a real system by a collection of mathematical equations and logic

Math Models

Dr. Tarek A. Tutunji

Math Models Obtained using

Theoretical Based on physical principles

Experimental Based on measurements

Page 6: Modeling and Control Overview · 2016. 7. 10. · Modeling Modeling is the process of representing the behavior of a real system by a collection of mathematical equations and logic

Math Modelling Categories

Static vs. dynamic

Linear vs. nonlinear

Time-invariant vs. time-variant SISO vs. MIMO Continuous vs. discrete Deterministic vs. stochastic

Page 7: Modeling and Control Overview · 2016. 7. 10. · Modeling Modeling is the process of representing the behavior of a real system by a collection of mathematical equations and logic

Static vs. Dynamic

Models can be static or dynamic Static models produce no motion, fluid flow, or any other

changes.

Example: Battery connected to resistor

Dynamic models have energy transfer which results in power flow. This causes motion, or other phenomena that change in time.

Example: Battery connected to resistor, inductor, and

capacitor

7

v = 𝒊𝑹

idtC

1

dt

diLRiv

Page 8: Modeling and Control Overview · 2016. 7. 10. · Modeling Modeling is the process of representing the behavior of a real system by a collection of mathematical equations and logic

Linear vs. Nonlinear

Linear models follow the superposition principle The summation outputs from individual inputs will be equal to the

output of the combined inputs

Most systems are nonlinear in nature, but linear models can be used to approximate the nonlinear models at certain point.

Page 9: Modeling and Control Overview · 2016. 7. 10. · Modeling Modeling is the process of representing the behavior of a real system by a collection of mathematical equations and logic

Linear vs. Nonlinear Models

Linear Systems Nonlinear Systems

Page 10: Modeling and Control Overview · 2016. 7. 10. · Modeling Modeling is the process of representing the behavior of a real system by a collection of mathematical equations and logic

Nonlinear Model: Motion of Aircraft

Page 11: Modeling and Control Overview · 2016. 7. 10. · Modeling Modeling is the process of representing the behavior of a real system by a collection of mathematical equations and logic

Linearization using Taylor Series

sin 𝑥 = sin 0 + cos 0 𝑥 − 0 = 𝑥

Linearization is done at a particular point. For example, linearizing the nonlinear function, sin at x=0, using the first two terms becomes

Page 12: Modeling and Control Overview · 2016. 7. 10. · Modeling Modeling is the process of representing the behavior of a real system by a collection of mathematical equations and logic

Time-invariant vs. Time-variant

The model parameters do not change in time-invariant models

The model parameters change in time-variant models Example: Mass in rockets vary with time as the fuel is

consumed.

If the system parameters change with time, the system is time varying.

Page 13: Modeling and Control Overview · 2016. 7. 10. · Modeling Modeling is the process of representing the behavior of a real system by a collection of mathematical equations and logic

Time-invariant vs. variant

Time-invariant

F(t) = ma(t) – g

Where m is the mass, a is the acceleration, and g is the gravity

Time-variant

F = m(t) a(t) – g

Here, the mass varies with time. Therefore the model is time-varying

Page 14: Modeling and Control Overview · 2016. 7. 10. · Modeling Modeling is the process of representing the behavior of a real system by a collection of mathematical equations and logic

Linear Time-Invariant (LTI)

LTI models are of great use in representing systems in many engineering applications.

The appeal is its simplicity and mathematical structure.

Although most actual systems are nonlinear and time varying

Linear models are used to approximate around an operating point the nonlinear behavior

Time-invariant models are used to approximate in short segments the system’s time-varying behavior.

Page 15: Modeling and Control Overview · 2016. 7. 10. · Modeling Modeling is the process of representing the behavior of a real system by a collection of mathematical equations and logic

LTI Models: Block Diagrams Manipulation

Page 16: Modeling and Control Overview · 2016. 7. 10. · Modeling Modeling is the process of representing the behavior of a real system by a collection of mathematical equations and logic

LTI Example: Mechanical Model

Consider a two carriage train system

22122

12111

xc-)x-k(xxm

xc-)x-k(x-fxm

Mass 1 Force

k(x1-x2)

c v1

x1

Mass 2 k(x1-x2)

c v2

x2

Page 17: Modeling and Control Overview · 2016. 7. 10. · Modeling Modeling is the process of representing the behavior of a real system by a collection of mathematical equations and logic

Example continued

Taking the Laplace transform of the equations gives

(s)csX-(s))X-(s)k(X(s)Xsm

(s)csX-(s))X-(s)k(X-F(s)(s)Xsm

22122

2

12112

1

Note: Laplace transforms the time domain problem into s-domain (i.e. frequency)

sX(s)(t)xL

x(t)dteX(s)x(t)L0

st

Page 18: Modeling and Control Overview · 2016. 7. 10. · Modeling Modeling is the process of representing the behavior of a real system by a collection of mathematical equations and logic

Example continued

Manipulating the previous two equations, gives the following transfer function (with F as input and V1 as output)

2kcsckmkmsmmcsmm

kcssm

F(s)

(s)V2

212

213

21

221

Note: Transfer function is a frequency domain equation that gives the relationship between a specific input to a specific output

Page 19: Modeling and Control Overview · 2016. 7. 10. · Modeling Modeling is the process of representing the behavior of a real system by a collection of mathematical equations and logic

Example continued: Impulse response

Dr. Tarek A. Tutunji

Page 20: Modeling and Control Overview · 2016. 7. 10. · Modeling Modeling is the process of representing the behavior of a real system by a collection of mathematical equations and logic

Example continued: Step response

Dr. Tarek A. Tutunji

Page 21: Modeling and Control Overview · 2016. 7. 10. · Modeling Modeling is the process of representing the behavior of a real system by a collection of mathematical equations and logic

SISO vs. MIMO

Single-Input Single-Output (SISO) models are somewhat easy to use. Transfer functions can be used to relate input to output.

Multiple-Input Multiple-Output (MIMO) models involve combinations of inputs and outputs and are difficult to represent using transfer functions. MIMO models use State-Space equations

Page 22: Modeling and Control Overview · 2016. 7. 10. · Modeling Modeling is the process of representing the behavior of a real system by a collection of mathematical equations and logic

What is a System?

• A system can be considered as a mathematical transformation of inputs into outputs.

• A system should have clear boundaries

Page 23: Modeling and Control Overview · 2016. 7. 10. · Modeling Modeling is the process of representing the behavior of a real system by a collection of mathematical equations and logic

System States

Transfer functions

Concentrates on the input-output relationship only.

Relates output-input to one-output only SISO

It hides the details of the inner workings.

State-Space Models

States are introduced to get better insight into the systems’ behavior. These states are a collection of variables that summarize the present and past of a system

Models can be used for MIMO models

Page 24: Modeling and Control Overview · 2016. 7. 10. · Modeling Modeling is the process of representing the behavior of a real system by a collection of mathematical equations and logic

SISO vs. MIMO Systems

Transfer Function U(t) Y(t)

Page 25: Modeling and Control Overview · 2016. 7. 10. · Modeling Modeling is the process of representing the behavior of a real system by a collection of mathematical equations and logic

Continuous vs. discrete models

Continuous models have continuous-time as the dependent variable and therefore inputs-outputs take all possible values in a range

Discrete models have discrete-time as the dependent variable and therefore inputs-outputs take on values at specified times only in a range

Page 26: Modeling and Control Overview · 2016. 7. 10. · Modeling Modeling is the process of representing the behavior of a real system by a collection of mathematical equations and logic

Continuous vs. discrete models

Continuous Models

Differential equations

Integration

Laplace transforms

Discrete Models

Difference equations

Summation

Z-transforms

Page 27: Modeling and Control Overview · 2016. 7. 10. · Modeling Modeling is the process of representing the behavior of a real system by a collection of mathematical equations and logic

Deterministic vs. Stochastic

Deterministic models are uniquely described by mathematical equations. Therefore, all past, present, and future values of the outputs are known precisely

Stochastic models cannot be described mathematically with a high degree of accuracy. These models are based on the theory of probability

Page 28: Modeling and Control Overview · 2016. 7. 10. · Modeling Modeling is the process of representing the behavior of a real system by a collection of mathematical equations and logic

Control Overview

Page 29: Modeling and Control Overview · 2016. 7. 10. · Modeling Modeling is the process of representing the behavior of a real system by a collection of mathematical equations and logic

Control Systems

The control system is at the heart of mechatronic systems and its selection is arguably the most critical decision in the design process.

The controller selection involves two inter-dependent parts:

The control method (i.e. software)

The physical controller (i.e. hardware)

Page 30: Modeling and Control Overview · 2016. 7. 10. · Modeling Modeling is the process of representing the behavior of a real system by a collection of mathematical equations and logic

Closed-Loop vs. Open-Loop Control

Page 31: Modeling and Control Overview · 2016. 7. 10. · Modeling Modeling is the process of representing the behavior of a real system by a collection of mathematical equations and logic

Control Systems Classification

Control systems are classified by application.

Process control usually refers to an industrial process being electronically controlled for the purpose of maintaining a uniform correct output.

Motion control refers to a system wherein things move. A servomechanism is a feedback control system that provides remote control motion of some object, such as a robot arm or a radar antenna.

Page 32: Modeling and Control Overview · 2016. 7. 10. · Modeling Modeling is the process of representing the behavior of a real system by a collection of mathematical equations and logic

Process Control Example

[Ref] Kilian

Page 33: Modeling and Control Overview · 2016. 7. 10. · Modeling Modeling is the process of representing the behavior of a real system by a collection of mathematical equations and logic

Motion Control Examples

[Ref] Kilian

CNC Machine Robot Manipulator

Page 34: Modeling and Control Overview · 2016. 7. 10. · Modeling Modeling is the process of representing the behavior of a real system by a collection of mathematical equations and logic

Example: CNC Positional Control

Page 35: Modeling and Control Overview · 2016. 7. 10. · Modeling Modeling is the process of representing the behavior of a real system by a collection of mathematical equations and logic

Transient and Steady State Response

Page 36: Modeling and Control Overview · 2016. 7. 10. · Modeling Modeling is the process of representing the behavior of a real system by a collection of mathematical equations and logic

Step Response: First Order System

Page 37: Modeling and Control Overview · 2016. 7. 10. · Modeling Modeling is the process of representing the behavior of a real system by a collection of mathematical equations and logic

Step Response: Second Order System

Page 38: Modeling and Control Overview · 2016. 7. 10. · Modeling Modeling is the process of representing the behavior of a real system by a collection of mathematical equations and logic

Control Techniques / Strategies

Classical Control

Modern Control

Optimal Control

Robust Control

Adaptive Control

Variable Structure Control

Intelligent Control

Page 39: Modeling and Control Overview · 2016. 7. 10. · Modeling Modeling is the process of representing the behavior of a real system by a collection of mathematical equations and logic

Classical Control

Classical control design are used for SISO systems.

Most popular concepts are:

Root Locus

Bode plots

Nyquist Stability

PID is widely used in feedback systems.

Page 40: Modeling and Control Overview · 2016. 7. 10. · Modeling Modeling is the process of representing the behavior of a real system by a collection of mathematical equations and logic

Stability

Stable Unstable

Page 41: Modeling and Control Overview · 2016. 7. 10. · Modeling Modeling is the process of representing the behavior of a real system by a collection of mathematical equations and logic

Classical Control: PID

Proportional-Integral-Derivative (PID) is the most commonly used controller for SISO systems

dt

)t(deKdt)t(eK)t(eK)t(u DIp

Page 42: Modeling and Control Overview · 2016. 7. 10. · Modeling Modeling is the process of representing the behavior of a real system by a collection of mathematical equations and logic

Example

Page 43: Modeling and Control Overview · 2016. 7. 10. · Modeling Modeling is the process of representing the behavior of a real system by a collection of mathematical equations and logic

Example

Page 44: Modeling and Control Overview · 2016. 7. 10. · Modeling Modeling is the process of representing the behavior of a real system by a collection of mathematical equations and logic

Pole location effects

Page 45: Modeling and Control Overview · 2016. 7. 10. · Modeling Modeling is the process of representing the behavior of a real system by a collection of mathematical equations and logic

Root Locus Example

Page 46: Modeling and Control Overview · 2016. 7. 10. · Modeling Modeling is the process of representing the behavior of a real system by a collection of mathematical equations and logic

Modern Control

Modern control theory utilizes the time-domain state space representation.

A mathematical model of a physical system as a set of

input, output and state variables related by first-order differential equations.

The variables are expressed as vectors and the differential

and algebraic equations are written in matrix form.

The state space representation provides a convenient and compact way to model and analyze systems with multiple inputs and outputs.

Page 47: Modeling and Control Overview · 2016. 7. 10. · Modeling Modeling is the process of representing the behavior of a real system by a collection of mathematical equations and logic

Optimal Control

Optimal control is a set of differential equations describing the paths of the state and control variables that minimize a “cost function”

For example, the jet thrusts of a satellite needed to bring it to desired trajectory that consume the least amount of fuel.

Two optimal control design methods have been widely used in industrial applications, as it has been shown they can guarantee closed-loop stability. Model Predictive Control (MPC)

Linear-Quadratic-Gaussian control (LQG).

Page 48: Modeling and Control Overview · 2016. 7. 10. · Modeling Modeling is the process of representing the behavior of a real system by a collection of mathematical equations and logic

Robust Control

Robust control is a branch of control theory that deals with uncertainty in its approach to controller design.

Robust control methods are designed to function

properly so long as uncertain parameters or disturbances are within some set.

Page 49: Modeling and Control Overview · 2016. 7. 10. · Modeling Modeling is the process of representing the behavior of a real system by a collection of mathematical equations and logic

Adaptive Control

Adaptive control involves modifying the control law used by a controller to cope with changes in the systems’ parameters

For example, as an aircraft flies, its mass will slowly

decrease as a result of fuel consumption; A control law can adapt to such changing conditions.

Page 50: Modeling and Control Overview · 2016. 7. 10. · Modeling Modeling is the process of representing the behavior of a real system by a collection of mathematical equations and logic

Variable Structure Control

Variable structure control, or VSC, is a form of discontinuous nonlinear control.

The method alters the dynamics of a nonlinear system by application of a high-frequency switching control.

The main mode of VSC operation is sliding mode control (SMC).

Page 51: Modeling and Control Overview · 2016. 7. 10. · Modeling Modeling is the process of representing the behavior of a real system by a collection of mathematical equations and logic

Intelligent Control

Intelligent Control is usually used when the mathematical model for the plant is unavailable or highly complex.

The most two commonly used intelligent controllers are

Fuzzy Logic

Artificial Neural Networks

Page 52: Modeling and Control Overview · 2016. 7. 10. · Modeling Modeling is the process of representing the behavior of a real system by a collection of mathematical equations and logic

Fuzzy Control: Fuzzy

Page 53: Modeling and Control Overview · 2016. 7. 10. · Modeling Modeling is the process of representing the behavior of a real system by a collection of mathematical equations and logic

Fuzzy Control: Fuzzy

Page 54: Modeling and Control Overview · 2016. 7. 10. · Modeling Modeling is the process of representing the behavior of a real system by a collection of mathematical equations and logic

Dr. Tarek A. Tutunji

Intelligent Control: ANN

Artificial Neural networks (ANN) are nonlinear mathematical models that are used to mimic the biological neurons in the brain.

ANN are used as black box models to map unknown functions

ANN can be used for: Identification and Control

Page 55: Modeling and Control Overview · 2016. 7. 10. · Modeling Modeling is the process of representing the behavior of a real system by a collection of mathematical equations and logic

ANN: Single Neuron

y

w0

w1

wM

x1

x2

xM

f(net)

M

mmmwxfy

1

Page 56: Modeling and Control Overview · 2016. 7. 10. · Modeling Modeling is the process of representing the behavior of a real system by a collection of mathematical equations and logic

Neural Nets

TDL

TDL

Weights

Weights

Log

Function + Weights +

Log

Function

Plant

Output

Plant

Input

Net

Output

First Layer Second Layer

Page 57: Modeling and Control Overview · 2016. 7. 10. · Modeling Modeling is the process of representing the behavior of a real system by a collection of mathematical equations and logic

ANN: Identification and Control

Identification Control

Page 58: Modeling and Control Overview · 2016. 7. 10. · Modeling Modeling is the process of representing the behavior of a real system by a collection of mathematical equations and logic

Analog vs. Digital Control Systems

Analog Digital

Time variable Continuous Discrete

Time equations Differential equations Difference equations

Frequency transforms Laplace Z-Transform

Stability Poles on LHS Poles inside unit circle

Controller Hardware: Op-Amps Software: None

Hardware: Microcontroller Software: Program

Dr. Tarek A. Tutunji

Page 59: Modeling and Control Overview · 2016. 7. 10. · Modeling Modeling is the process of representing the behavior of a real system by a collection of mathematical equations and logic

Analog PID Implementation

[Ref] Kilian

Page 60: Modeling and Control Overview · 2016. 7. 10. · Modeling Modeling is the process of representing the behavior of a real system by a collection of mathematical equations and logic

Digital PID Control

Digital

Analog

Tarek A. Tutunji

Page 61: Modeling and Control Overview · 2016. 7. 10. · Modeling Modeling is the process of representing the behavior of a real system by a collection of mathematical equations and logic

Digital PID Realization

Required Operations: •Multiplication •Addition •Delay

Page 62: Modeling and Control Overview · 2016. 7. 10. · Modeling Modeling is the process of representing the behavior of a real system by a collection of mathematical equations and logic

Discrete PID Implementation

Page 63: Modeling and Control Overview · 2016. 7. 10. · Modeling Modeling is the process of representing the behavior of a real system by a collection of mathematical equations and logic

References

• Advanced Control Engineering (Chapter 8: State Space Methods for Control System Design) by Roland Burns 2001

• Modern Control Engineering (Chapter 10: State Space Design

Methods) by Paraskevopoulos 2002 • Modern Control Engineering (Chapters 9 and 10 Control System

Analysis and Design in State Space) by Ogata 5th edition 2010 • Feedback Systems: An Introduction to Scientists and Engineers

(Chapter 8: System Models) by Astrom and Muray 2009 • Modern Control Technology: Components and Systems by Kilian 2nd

edition