Control Design Made Easy - MathWorks · 3 Agenda (3 demos) PID Control Tuning in MATLAB from...

17
1 © 2014 The MathWorks, Inc. Control Design Made Easy By Ryan Gordon

Transcript of Control Design Made Easy - MathWorks · 3 Agenda (3 demos) PID Control Tuning in MATLAB from...

Page 1: Control Design Made Easy - MathWorks · 3 Agenda (3 demos) PID Control Tuning in MATLAB from Measured Input/Output data PID Control Tuning in Simulink using a Simscape dynamic model

1© 2014 The MathWorks, Inc.

Control Design Made Easy

By Ryan Gordon

Page 2: Control Design Made Easy - MathWorks · 3 Agenda (3 demos) PID Control Tuning in MATLAB from Measured Input/Output data PID Control Tuning in Simulink using a Simscape dynamic model

2

Key Themes

You can automatically tune PID controllers in MATLAB from acquired data

You can automatically tune PID controllers from dynamic simulations

Complex MIMO control systems can be tuned automatically

Page 3: Control Design Made Easy - MathWorks · 3 Agenda (3 demos) PID Control Tuning in MATLAB from Measured Input/Output data PID Control Tuning in Simulink using a Simscape dynamic model

3

Agenda (3 demos)

PID Control Tuning in MATLAB from Measured Input/Output data

PID Control Tuning in Simulink using a Simscape dynamic model

Automatic Tuning of Multi-input Multi-output (MIMO) control systems in Simulink

Page 4: Control Design Made Easy - MathWorks · 3 Agenda (3 demos) PID Control Tuning in MATLAB from Measured Input/Output data PID Control Tuning in Simulink using a Simscape dynamic model

4

Modeling Dynamic Systems: two approaches

Use system test data to derive a mathematical representation

Data-Driven Modeling

sese

esG 1.0

78.2194.1)(

Page 5: Control Design Made Easy - MathWorks · 3 Agenda (3 demos) PID Control Tuning in MATLAB from Measured Input/Output data PID Control Tuning in Simulink using a Simscape dynamic model

5

Modeling Dynamic Systems: two approaches

Use an understanding of the system’s physics to derive a mathematical representation

First-Principles Modeling

V+

V-

Page 6: Control Design Made Easy - MathWorks · 3 Agenda (3 demos) PID Control Tuning in MATLAB from Measured Input/Output data PID Control Tuning in Simulink using a Simscape dynamic model

6

Modeling Dynamic Systems: Simscape

Use an understanding of the system’s physics to map topography of physical components

First-Principles Modeling

V+

V-

Page 7: Control Design Made Easy - MathWorks · 3 Agenda (3 demos) PID Control Tuning in MATLAB from Measured Input/Output data PID Control Tuning in Simulink using a Simscape dynamic model

7

Both have advantages & disadvantages

Data-Driven Modeling First-Principles ModelingComplete Modeling Environment

Advantages: Insight in behavior Physical parameters

Disadvantages: Time-consuming Requires expertise

Advantages: Fast Accurate

Disadvantages: Requires plant Requires data acquisition system

Page 8: Control Design Made Easy - MathWorks · 3 Agenda (3 demos) PID Control Tuning in MATLAB from Measured Input/Output data PID Control Tuning in Simulink using a Simscape dynamic model

8

Agenda (3 demos)

PID Control Tuning in MATLAB from Measured Input/Output data

PID Control Tuning in Simulink using a Simscape dynamic model

Automatic Tuning of Multi-input Multi-output (MIMO) control systems in Simulink

Page 9: Control Design Made Easy - MathWorks · 3 Agenda (3 demos) PID Control Tuning in MATLAB from Measured Input/Output data PID Control Tuning in Simulink using a Simscape dynamic model

9

Introduction to Control System Toolbox

Use industry-standard tools and algorithms for analysis and design of control systems

Create, manipulate, and analyze linear models

Design SISO and MIMO controllers

Page 10: Control Design Made Easy - MathWorks · 3 Agenda (3 demos) PID Control Tuning in MATLAB from Measured Input/Output data PID Control Tuning in Simulink using a Simscape dynamic model

10

Introduction to System Identification Toolbox

What is it? Modeling tool that can use experimental data to estimate

mathematical models (black box) or tune parameters of predefined models in MATLAB® (grey box)

Why was it developed? To estimate models from data

Who can use it? Controls engineers – Plant and noise models for control system

design Applications requiring prediction – MPC, noise cancellation,

financial analysis Decision making – Virtual sensing, fault diagnosis, modal analysis

432

2

sss

t

y(t)

Data to Model

Page 11: Control Design Made Easy - MathWorks · 3 Agenda (3 demos) PID Control Tuning in MATLAB from Measured Input/Output data PID Control Tuning in Simulink using a Simscape dynamic model

11

Agenda (3 demos)

PID Control Tuning in MATLAB from Measured Input/Output data

PID Control Tuning in Simulink using a Simscape dynamic model

Automatic Tuning of Multi-input Multi-output (MIMO) control systems in Simulink

Page 12: Control Design Made Easy - MathWorks · 3 Agenda (3 demos) PID Control Tuning in MATLAB from Measured Input/Output data PID Control Tuning in Simulink using a Simscape dynamic model

12

Introduction to Simulink®

Block-diagram environment Model, simulate, and analyze

multidomain systems Design, implement, and test:

– Control systems– Signal processing systems– Communications systems– Other dynamic systems

Platform for Model-Based Design

Page 13: Control Design Made Easy - MathWorks · 3 Agenda (3 demos) PID Control Tuning in MATLAB from Measured Input/Output data PID Control Tuning in Simulink using a Simscape dynamic model

13

Introduction to Simulink Control Design

Automatically tune gains of PID controllers

Rapidly perform advanced linear analysis and control design for plants modeled in Simulink

A x + B u = 0

yPlant

uController

+

Page 14: Control Design Made Easy - MathWorks · 3 Agenda (3 demos) PID Control Tuning in MATLAB from Measured Input/Output data PID Control Tuning in Simulink using a Simscape dynamic model

14

Agenda (3 demos)

PID Control Tuning in MATLAB from Measured Input/Output data

PID Control Tuning in Simulink using a Simscape dynamic model

Automatic Tuning of Multi-input Multi-output (MIMO) control systems in Simulink

Page 15: Control Design Made Easy - MathWorks · 3 Agenda (3 demos) PID Control Tuning in MATLAB from Measured Input/Output data PID Control Tuning in Simulink using a Simscape dynamic model

15

Introduction to Robust Control Toolbox

Analyze and automatically tune control systems for performance and robustness in the presence of uncertainty

Design fixed-structure controllers modeled in Simulink

Page 16: Control Design Made Easy - MathWorks · 3 Agenda (3 demos) PID Control Tuning in MATLAB from Measured Input/Output data PID Control Tuning in Simulink using a Simscape dynamic model

16

Key Themes

You can automatically tune PID controllers in MATLAB from acquired data

You can automatically tune PID controllers from dynamic simulations

Complex MIMO control systems can be tuned automatically

Page 17: Control Design Made Easy - MathWorks · 3 Agenda (3 demos) PID Control Tuning in MATLAB from Measured Input/Output data PID Control Tuning in Simulink using a Simscape dynamic model

17

Next Steps

Check out the other booths at the MATLAB Virtual Conference

Visit the website for even more videos, examples and webinars

Check out the MATLAB community– Answers– Cody– Blogs