16
MOBY DIC TOOLBOX MOBY-DIC WORKSHOP Noordwijkerhout, 23-08-2012

MOBY DIC TOOLBOX MOBY DIC TOOLBOX MOBY-DIC WORKSHOP Noordwijkerhout, 23-08-2012 MOBY-DIC WORKSHOP Noordwijkerhout, 23-08-2012

Embed Size (px)

Citation preview

Page 1: MOBY DIC TOOLBOX MOBY DIC TOOLBOX MOBY-DIC WORKSHOP Noordwijkerhout, 23-08-2012 MOBY-DIC WORKSHOP Noordwijkerhout, 23-08-2012

MOBY DICTOOLBOX

MOBY-DIC WORKSHOP

Noordwijkerhout, 23-08-2012

Page 2: MOBY DIC TOOLBOX MOBY DIC TOOLBOX MOBY-DIC WORKSHOP Noordwijkerhout, 23-08-2012 MOBY-DIC WORKSHOP Noordwijkerhout, 23-08-2012

DESCRIPTION

C / C++ compiler

Object oriented programming

HTML Documentation

Multi Parametric Toolbox (MPT)

MATLAB R2008a or newer

Requirements:

Hybrid Toolbox

Main features:

Graphical User Interface

MATLAB / SIMULINK

GPL v2 license (open source)

http://ncas.dibe.unige.it/software/MOBY-DIC_Toolbox/

Yalmip

MATLAB R2011a and Xilinx System Generator (only for HDL simulation)

Page 3: MOBY DIC TOOLBOX MOBY DIC TOOLBOX MOBY-DIC WORKSHOP Noordwijkerhout, 23-08-2012 MOBY-DIC WORKSHOP Noordwijkerhout, 23-08-2012

CONTROL/CIRCUIT CO-DESIGN

PLANT

EMBEDDEDCONTROLLER

FastSmall

Low-powerLow-cost

Page 4: MOBY DIC TOOLBOX MOBY DIC TOOLBOX MOBY-DIC WORKSHOP Noordwijkerhout, 23-08-2012 MOBY-DIC WORKSHOP Noordwijkerhout, 23-08-2012

GOAL OF THE TOOLBOX (1)

Control/circuit co-design

CONTROL SPECS.

CIRCUIT SPECS.

LINEAR SYSTEM CONSTRAINTS

DIGITAL CIRCUIT

FPGA/ASIC IMPLEMENTATION

CLOSED-LOOP SIMULATION

Page 5: MOBY DIC TOOLBOX MOBY DIC TOOLBOX MOBY-DIC WORKSHOP Noordwijkerhout, 23-08-2012 MOBY-DIC WORKSHOP Noordwijkerhout, 23-08-2012

CONTROL DESIGN

@linearSystem objectLINEAR SYSTEM CONSTRAINTS

@constraints object

CONTROL SPECS. GENERATE MPC

PWAG

generateMPC function

Calls Hybrid Toolbox or Multi Parametric Toolbox to compute explicit MPC control law

@pwag object

Piecewise Affine function defined over generic polytopic partition

Page 6: MOBY DIC TOOLBOX MOBY DIC TOOLBOX MOBY-DIC WORKSHOP Noordwijkerhout, 23-08-2012 MOBY-DIC WORKSHOP Noordwijkerhout, 23-08-2012

CIRCUIT DESIGN

synthesize method

Generates VHDL files for the circuit implementation of exact MPC controller. More solutions are available, the choice is performed based on circuit specifications

CIRCUIT SPECS. synthesize

VHDL files

getCircuitPerformances

PWAG

Latency, multipliers,

memory occup.

getCircuitPerformances

Gets information about circuit performances in advance.

Page 7: MOBY DIC TOOLBOX MOBY DIC TOOLBOX MOBY-DIC WORKSHOP Noordwijkerhout, 23-08-2012 MOBY-DIC WORKSHOP Noordwijkerhout, 23-08-2012

CONTROL APPROXIMATIONpwasApproximation

Approximates the PWAG controller with a Piece-Wise Affine function defined over a simplicial partition, by imposing constraints.

LINEAR SYSTEM CONSTRAINTS

APPROXIMATE

PWAS / PWAR

PWAG

pwarApproximation

Approximates the PWAG controller with a Piece-Wise Affine function defined over a rectangular partition, by imposing constraints.

Page 8: MOBY DIC TOOLBOX MOBY DIC TOOLBOX MOBY-DIC WORKSHOP Noordwijkerhout, 23-08-2012 MOBY-DIC WORKSHOP Noordwijkerhout, 23-08-2012

APPROXIMATION BENEFITS

Regularity of the partition

Fast circuit computation

Stability can be proven (a posteriori)

PWAG/PWAS/PWAR STABILITY TEST

Page 9: MOBY DIC TOOLBOX MOBY DIC TOOLBOX MOBY-DIC WORKSHOP Noordwijkerhout, 23-08-2012 MOBY-DIC WORKSHOP Noordwijkerhout, 23-08-2012

CIRCUIT DESIGN

synthesize method

Generates VHDL files for the circuit implementation of approximate MPC controller.

CIRCUIT SPECS. synthesize

VHDL files

getCircuitPerformances

PWAS/PWAR

Latency, multipliers,

memory occup.

getCircuitPerformances

Gets information about circuit performances in advance, also before generating the approximate control function itself.

Page 10: MOBY DIC TOOLBOX MOBY DIC TOOLBOX MOBY-DIC WORKSHOP Noordwijkerhout, 23-08-2012 MOBY-DIC WORKSHOP Noordwijkerhout, 23-08-2012

CLOSED-LOOP SIMULATION

generateSimulinkModel

Generates a Simulink model of the closed-loop system, in which the control is computed by simulating the VHDL files (delays and fixed point representation effects are taken into account)

Requires Xilinx System Generator

VHDL files

PLANT PWAG / PWAS / PWAR

GENERATE SIMULINK

MODEL

Page 11: MOBY DIC TOOLBOX MOBY DIC TOOLBOX MOBY-DIC WORKSHOP Noordwijkerhout, 23-08-2012 MOBY-DIC WORKSHOP Noordwijkerhout, 23-08-2012

VIRTUAL SENSOR DESIGN

PLANTInputs u

Unmeasurable output z

Measurable outputs y

VIRTUAL SENSOR

Estimated unmeasurable output z

FastSmall

Low-powerLow-cost

Page 12: MOBY DIC TOOLBOX MOBY DIC TOOLBOX MOBY-DIC WORKSHOP Noordwijkerhout, 23-08-2012 MOBY-DIC WORKSHOP Noordwijkerhout, 23-08-2012

VIRTUAL SENSOR THEORY

Page 13: MOBY DIC TOOLBOX MOBY DIC TOOLBOX MOBY-DIC WORKSHOP Noordwijkerhout, 23-08-2012 MOBY-DIC WORKSHOP Noordwijkerhout, 23-08-2012

GOAL OF THE TOOLBOX (2)

Virtual sensors design

SENSOR SPECS.

CIRCUIT SPECS.

DATASET

DIGITAL CIRCUIT

FPGA/ASIC IMPLEMENTATION VALIDATION

Page 14: MOBY DIC TOOLBOX MOBY DIC TOOLBOX MOBY-DIC WORKSHOP Noordwijkerhout, 23-08-2012 MOBY-DIC WORKSHOP Noordwijkerhout, 23-08-2012

VIRTUAL SENSOR DESIGN

identify

Identify a PWAS virtual sensor starting from measures of u, y and z

TRAINING DATASET

SENSOR SPECS. IDENTIFY

VIRTUAL SENSOR

The estimation of z is performed by computing the value of a PWAS function of u, y and the estimated z at previous time instants

Page 15: MOBY DIC TOOLBOX MOBY DIC TOOLBOX MOBY-DIC WORKSHOP Noordwijkerhout, 23-08-2012 MOBY-DIC WORKSHOP Noordwijkerhout, 23-08-2012

VIRTUAL SENSOR VALIDATION

validate

Validates the virtual sensor on a test set to see if the estimation is accurate

TEST DATASET VALIDATE

VIRTUAL SENSOR

Page 16: MOBY DIC TOOLBOX MOBY DIC TOOLBOX MOBY-DIC WORKSHOP Noordwijkerhout, 23-08-2012 MOBY-DIC WORKSHOP Noordwijkerhout, 23-08-2012

VIRTUAL SENSOR CIRCUIT

VIRTUAL SENSOR

CIRCUIT SPECS.

VHDL files

synthesize

synthesize method

Generates VHDL files for the circuit implementation of PWAS virtual sensor.

More solutions are available, the choice is performed based on circuit specifications