what’s new in matlab and simulink€¦ · using matlab and simulink for reinforcement learning...

88
© 2019 The MathWorks, Inc. 1 © 2015 The MathWorks, Inc. What’s New in MATLAB and Simulink Maurizio Dalbard Giuseppe Ridinò

Upload: others

Post on 30-Apr-2020

34 views

Category:

Documents


1 download

TRANSCRIPT

© 2019 The MathWorks, Inc. 1© 2015 The MathWorks, Inc.

What’s New in MATLAB

and Simulink

Maurizio Dalbard

Giuseppe Ridinò

© 2019 The MathWorks, Inc. 2

© 2019 The MathWorks, Inc. 3

Software in everything

© 2019 The MathWorks, Inc. 4

Software in everythingAlgorithms in everything … in Engineering and Science

© 2019 The MathWorks, Inc. 5

Using MATLAB & Simulink to Build Algorithms in Everything

Simplifying your work…

…often at higher levels of abstraction.

© 2019 The MathWorks, Inc. 6

Using MATLAB & Simulink to Build Algorithms in Everything

Inputs Design Outputs

© 2019 The MathWorks, Inc. 7

The capability of a machine to

match or exceed intelligent human behavior by

training a machine

to learn the desired behavior

Artificial Intelligence

training a machine

to learn the desired behavior

© 2019 The MathWorks, Inc. 8

Output

Program

There are two ways to get a computer to do what you want

Traditional Programming

COMPUTER

Data

© 2019 The MathWorks, Inc. 9

Program

Output

There are two ways to get a computer to do what you want

Machine Learning

COMPUTER

Data

Model

© 2019 The MathWorks, Inc. 10

Artificial Intelligence

Data Model

Machine

Learning

Deep

Learning

© 2019 The MathWorks, Inc. 11

Input

Using MATLAB and Simulink to Build Deep Learning Models

Inputs

Input

Design

Design

Outputs

Outputs

Data

Machine

Learning

Deep

Learning

Model

© 2019 The MathWorks, Inc. 12

Using Apps for Ground Truth LabelingImage and Video Data

InputDesi

gn

Outp

uts

Computer Vision Toolbox

Input

© 2019 The MathWorks, Inc. 13

Using Apps for Ground Truth LabelingSignal Data

Input

Signal Processing Toolbox

Input

© 2019 The MathWorks, Inc. 14

Using Apps for Ground Truth LabelingAudio Data

Input 2 3

Audio Toolbox

Input

© 2019 The MathWorks, Inc. 15

Using Apps for Designing Deep Learning Networks 2 Design

Deep Learning Toolbox

3

© 2019 The MathWorks, Inc. 16

Scaling Computation for Training Deep Learning

MATLAB

Cloud

GPU

Multi-core CPU

ScalingScaling

Design

© 2019 The MathWorks, Inc. 17

Using Transfer Learning with Pre-trained Models

2018 201920172016

Inception-v3

ResNet-101

VGG-16

ResNet-18

GoogLeNetDenseNet-

201

SqueezeNet

AlexNet

ResNet-50

Inception-

ResNet-v2

VGG-19Places365-

GoogLeNet

Xception

MobileNet-v2

ShuffleNet

NasNetLarge

NasNetMobile

2 Design 3

© 2019 The MathWorks, Inc. 18

Using Models from Other Frameworks

(…)Caffe

Keras-

Tensorflow

PyTorch

Open Neural Network Exchange

MATLAB ONNX

CNTK

Caffe2

MXNet

Core ML

Deep Learning Toolbox

2 Design 3

© 2019 The MathWorks, Inc. 19

OutputDeploying Deep Learning Applications

ARM

Compute

Library

Intel

MKL-DNN

Library

Design Output

Deep

Learning

Application

Coder

Products

NVIDIA

TensorRT &

cuDNN

Libraries

MATLAB CoderGPU Coder

Inputs

Pre-

processing

Post-

processing

Input Output

© 2019 The MathWorks, Inc. 20

Output

Using MATLAB and Simulink to Build Deep Learning Models

Inputs

Input

Design

Design

Outputs

Output

Data

Machine

Learning

Deep

Learning

Model

Using MATLAB and Simulink for Reinforcement Learning

Reinforcement Learning Toolbox

© 2019 The MathWorks, Inc. 21

Using MATLAB and Simulink for Reinforcement Learning

Reinforcement Learning Toolbox

© 2019 The MathWorks, Inc. 22

Using MATLAB and Simulink for Reinforcement Learning

Inputs

Inputs

Design

Design

Outputs

Outputs

Data

Machine

Learning

Deep

Learning

Model

Reinforcement Learning Toolbox

© 2019 The MathWorks, Inc. 23

Inputs

Using MATLAB and Simulink for Reinforcement Learning

Inputs Design

Design

Outputs

Outputs

Machine

Learning

Deep

Learning

Model

SimulinkReinforcement Learning Toolbox

Scenario Design

Simulation-based

data generation

Generate Data

© 2019 The MathWorks, Inc. 24

Using MATLAB and Simulink for Reinforcement Learning

Reinforcement Learning Toolbox

© 2019 The MathWorks, Inc. 25

Using MATLAB and Simulink for Reinforcement Learning

Inputs

1

Design

2

Outputs

3

Machine

Learning

Deep

Learning

ModelScenario Design

Simulation-based

data generation

Generate Data

Reinforcement Learning Toolbox

Find out more:

Deep Learning e Reinforcement Learning per

l’intelligenza artificiale

Giuseppe Ridinò

Traccia A – 13:30

© 2019 The MathWorks, Inc. 26

Input

Using MATLAB & Simulink to Build Algorithms in Everything

Inputs

Input

Design

Design

Outputs

Outputs

© 2019 The MathWorks, Inc. 27

InputDesi

gn

Outp

utsWorking with Text Data Input

© 2019 The MathWorks, Inc. 28

InputDesi

gn

Outp

utsWorking with Text Data

MATLAB

Input

© 2019 The MathWorks, Inc. 29

InputDesi

gn

Outp

utsWorking with Text Data

Deep Learning ToolboxStatistics and Machine Learning ToolboxText Analytics ToolboxMATLAB

Input

© 2019 The MathWorks, Inc. 30

InputDesi

gn

Outp

utsWorking with Text Data

Text Analytics ToolboxMATLAB

Input

© 2019 The MathWorks, Inc. 31

Creating Your Own Data 2

Simulink

InputInput

© 2019 The MathWorks, Inc. 32

2InputInput

© 2019 The MathWorks, Inc. 33

Identifying the Useful Data 2 Design

Acquire Data

Identify

Condition

Indicators

Deploy &

IntegrateTrain Model

Preprocess

Data

Visualize data

Extract Features

Select the most

useful features

Machine

Learning

© 2019 The MathWorks, Inc. 34

Identifying the Useful Data 2 Design

Predictive Maintenance Toolbox

© 2019 The MathWorks, Inc. 35

Identifying the Useful Data 2 Design

Predictive Maintenance Toolbox

© 2019 The MathWorks, Inc. 36

Identifying the Useful Data

Predictive Maintenance Toolbox

2 Design

© 2019 The MathWorks, Inc. 37

Acquire Data

Identify

Condition

Indicators

Deploy &

IntegrateTrain Model

Preprocess

Data

Machine

LearningFind out more:

Manutenzione Predittiva con MATLAB

Francesco Alderisio

Traccia A – 14:30

Francesco Alderisio

Postazione Demo

Data Science e Predictive Analytics

© 2019 The MathWorks, Inc. 38

Designing Decision Logic with Stateflow

StateflowMATLAB

in MATLAB 2 Design

© 2019 The MathWorks, Inc. 39

Using Stateflow in MATLAB

StateflowMATLAB

2 Design

© 2019 The MathWorks, Inc. 40

Editing at the Speed of Thought

Simulink

2 Design

© 2019 The MathWorks, Inc. 41

Editing at the Speed of Thought

Simulink

2 Design

© 2019 The MathWorks, Inc. 42

Editing at the Speed of Thought

Simulink

2 Design

© 2019 The MathWorks, Inc. 43

Editing at the Speed of Thought

Simulink

2 Design

© 2019 The MathWorks, Inc. 45

Controlling the Execution of Model Components

Export Function Model

Schedulable Rate-Based Model

Simulink

2 Design

© 2019 The MathWorks, Inc. 46

Controlling the Execution of Model Components

Simulink

2 Design

© 2019 The MathWorks, Inc. 47

Simplifying Integration with External C/C++ Code

Column-Major

Simulink Coder

2 OutputOutput

© 2019 The MathWorks, Inc. 48

Simplifying Integration with External C/C++ Code

Row-Major

Simulink Coder

2 OutputOutput

© 2019 The MathWorks, Inc. 49

Viewing Generated Code Alongside the Model

Embedded Coder

2 OutputOutput

© 2019 The MathWorks, Inc. 50

Viewing Generated Code Alongside the Model

Embedded Coder

2 OutputOutput

© 2019 The MathWorks, Inc. 51

Sharing Live Scripts

MATLAB

2 OutputOutput

© 2019 The MathWorks, Inc. 52

Sharing Live Scripts

MATLAB

2 OutputOutput

© 2019 The MathWorks, Inc. 53

Sharing Live Scripts

MATLAB

2 OutputOutput

© 2019 The MathWorks, Inc. 54

Creating Apps

MATLAB

2 OutputOutput

© 2019 The MathWorks, Inc. 55

OutputDeploying Web Apps

MATLAB Compiler

OutputOutput

© 2019 The MathWorks, Inc. 56

Output

Output

Using MATLAB & Simulink to Build Algorithms in Everything

Inputs Design Outputs

© 2019 The MathWorks, Inc. 57

Evaluating Architectures

Architecture

Inputs Design Outputs

© 2019 The MathWorks, Inc. 58

Arch

Design OutputInput Arch

Evaluating Architectures

Inputs Design OutputsArchitecture

© 2019 The MathWorks, Inc. 59

Designing System and Software Architectures

System1Composer1

Design OutputInput

ArchArch

© 2019 The MathWorks, Inc. 60

Designing System and Software Architectures

System1Composer1

ArchArch

© 2019 The MathWorks, Inc. 61

Designing System and Software Architectures

System1Composer1

ArchArch

Find out more:

Ingegneria dei sistemi: dai requisiti

all’architettura alla simulazione

Vincenzo Petrella

Traccia B – 14:30

© 2019 The MathWorks, Inc. 62

Designing Beyond System and

Software Architectures

AUTOSAR SoftwareSystems and

SoftwareSoC Hardware

and Software

System Composer SoC Blockset AUTOSAR Blockset

Design OutputInput

ArchArch

© 2019 The MathWorks, Inc. 63

ArchArchitecture

OutputDesignArchInput

Using MATLAB & Simulink to Build Algorithms in Everything

Inputs Design Outputs

Spanning

Test & Verification Collaboration Scaling

© 2019 The MathWorks, Inc. 64

Architecture

OutputDesignArchInput

Using MATLAB & Simulink to Build Algorithms in Everything

Inputs Design Outputs

Test & Verification

Test & Verification Collaboration Scaling

© 2019 The MathWorks, Inc. 65

Integrating with Third-party Requirements Tools

Simulink Requirements

SimulinkRequirements

External Requirements

Authored Requirements

External Requirements

Requirements

Management

Tools

ReqIF

Import

Edit

Export

Test & Verification

Design OutputInput Arch

Test & Verification

© 2019 The MathWorks, Inc. 66

Include Custom Code in Test & Verification

Simulink Design Verifier

Simulink C/C++ Simulink Design Verifier

Stateflow C/C++

Test & Verification

Design OutputInput Arch

Test & Verification

© 2019 The MathWorks, Inc. 67

Include Custom Code in Test & Verification

Simulink Design Verifier

Simulink C/C++ Simulink Design Verifier

Stateflow C/C++

Design OutputInput Arch

Test & VerificationTest & Verification

Find out more:

Master Class:

Sviluppo di un sistema di gestione delle batterie

con Simulink

Traccia B - 15:30

Maurizio Dalbard – Aldo Caraceto

Postazione Demo

Maurizio Dalbard – Vincenzo Petrella

Sviluppo Model-Based Design applicato ad un

sistema di gestione delle batterie

© 2019 The MathWorks, Inc. 68

Controls

Simulink Design Verifier

OutputInput Arch

Test & VerificationTest & Verification

Design

Find out more:

Sviluppare controlli digitali per convertitori

elettronici di potenza

Traccia B - 13:30

Aldo Caraceto

Postazione Demo

Aldo Caraceto

Industry 4.0: simulazione dinamica closed-loop e

test virtuale

© 2019 The MathWorks, Inc. 69

Using the MATLAB Unit Test Framework

MATLAB

Design OutputInput Arch

Test & VerificationTest & Verification

© 2019 The MathWorks, Inc. 70

Using the MATLAB App Testing Framework

testCase.press(myApp.checkbox)

testCase.choose(myApp.discreteKnob, "Medium")

testCase.drag(myApp.continuousKnob, 10, 90)

testCase.type(myApp.editfield, myTextVar)

MATLAB

Design OutputInput Arch

Test & VerificationTest & Verification

© 2019 The MathWorks, Inc. 71

Using the MATLAB Performance

Testing Framework

MATLAB

Design OutputInput Arch

Test & VerificationTest & Verification

© 2019 The MathWorks, Inc. 72

Using Continuous Integration

MATLAB https://plugins.jenkins.io/

Design OutputInput Arch

Test & VerificationTest & Verification

© 2019 The MathWorks, Inc. 73

Using Continuous Integration

MATLAB https://plugins.jenkins.io/matlab

Design OutputInput Arch

Test & VerificationTest & Verification

© 2019 The MathWorks, Inc. 74

Using Projects in MATLAB

MATLAB

Design OutputInput Arch

Test & VerificationCollaboration

© 2019 The MathWorks, Inc. 75

Using Projects in MATLAB

MATLAB

Design OutputInput Arch

Test & VerificationCollaboration

Find out more:

Master Class: Sviluppo software con MATLAB

Traccia A – 15:30

Francesco Alderisio - Giuseppe Ridinò

© 2019 The MathWorks, Inc. 76

Parallel Simulations in Simulink

SimulinkParallel Computing Toolbox

Simulation Manageraafa

Worker

Worker

Worker

Head

Worker

MATLAB Desktop

Simulation Jobs

Simulation Results

batchsim

Design OutputInput Arch

Test & VerificationScaling

© 2019 The MathWorks, Inc. 77

Scaling Computations on Clusters and Clouds

MATLAB Parallel Server

MATLAB

Parallel Computing Toolbox

Cloud

GPU

Multi-core CPU

MATLAB Parallel Server

Design OutputInput Arch

ScalingScaling

© 2019 The MathWorks, Inc. 78

Scaling

Input Design OutputArch

Using MATLAB & Simulink to Build Algorithms in Everything

Inputs Design OutputsArchitecture

Scaling

Test & Verification Collaboration Scaling

© 2019 The MathWorks, Inc. 79

Specialized Tools for Building Algorithms

in Everything

Analog Mixed-SignalCommunications Physical interconnects

5G Toolbox SerDes Toolbox Mixed-Signal Blockset

Scaling

Design OutputInput Arch

© 2019 The MathWorks, Inc. 80

Developing Autonomous Systems

Perception

Planning

Control

© 2019 The MathWorks, Inc. 81

Evaluate Sensor Fusion Architectures

Sensor Fusion and Tracking Toolbox

© 2019 The MathWorks, Inc. 82

Simulate Path Planning Algorithms

Automated Driving Toolbox

© 2019 The MathWorks, Inc. 83

Design Lane-following and Spacing

Control Algorithms

Model Predictive Control Toolbox

© 2019 The MathWorks, Inc. 84

Developing Autonomous Systems

UAV AlgorithmsLidar Processing

& Tracking

Computer Vision Toolbox

HERE HD Maps &

OpenDRIVE Roads

Automated Driving Toolbox Robotics System Toolbox

© 2019 The MathWorks, Inc. 85

Using MATLAB & Simulink to Build Algorithms in Everything

Inputs Design OutputsArchitecture

Spanning

Test & Verification Collaboration Scaling

© 2019 The MathWorks, Inc. 86

Read the Release Notes

© 2019 The MathWorks, Inc. 87

Get Started

Deep Learning Onramp

Learn to use deep learning techniques

in MATLAB for image recognition.

MATLAB Onramp

Quickly learn the

essentials of MATLAB.

Simulink Onramp

Learn to create, edit, and

troubleshoot Simulink models.

© 2019 The MathWorks, Inc. 88

Attend Sessions this Afternoon

© 2019 The MathWorks, Inc. 89© 2015 The MathWorks, Inc.