simulink中mpc模块怎么使用_simulink中mpc模块的详细说明

【实例简介】

simulink中mpc模块的详细说明,希望给你的设计带来帮助!

Printing history: Jan 2000

Draft

MPC Graphical User Interface -3

MPC Simulink library

Pr

eface

Disclaimer

State of Development

The MPC Simulink Library is in a developmental(beta) stage. It is not an official Math Works product. It has been tested

extensively, but it is likely that some problems remain. Please review all calculations with a critical eye

We will also be improving features in response to your comments

In Case of Difficulty

This beta version of the MPC Simulink Library is not being supported by The Math Works. If you encounter a problem

please check the FAQ (see"Updates"below). If that doesnt help, please send a detailed description by e-mail to a

Bemporad at the following address

bemporad@aut. eeethz. ch

He would also be happy to have your suggestions for improvements in the usability of the mPc Simulink Library, its

documentation and the mpc toolbox in general

Updates

The faQ and latest beta version of the MPc Simulink library will be inainlained for download at

http://control.ethz./-bemporad/toolbox/mpclib.html

Acknowledgements

We appreciate the help of Federica Rusconi, Domenico Mignone, Carles Pedret Ferre, Adrian Toller, Konrad Stadler

Tobias Raithel, Kazuro Tsuda, Jay Lee, Pascal Gahinet, and greg wolodkin

Introduction

MPC Simulink Library Overview

1-2

Options

Starting the MPC Simulink Library

System requirements

Installation

1-3

Quick Start

Leisurely Start

1-4

MPC Fundamentals

lntroduction

MPC Simulink Library Overview

The MPC Simulink Library is designed to help you analyze and simulate Model Predictive

Control (MPC)modules within any Simulink description of the environment.

opti。ns

The mPc simulink library supports four controller blocks, to be connected in feed back

with the system to regulate. Each block receives output measurements and returns the

control input action to the system. The four blocks are the following

e Regulator. The MPC block regulates the output of the system to zero

Controller. An additional reference signal is received by the mPc controller. The output

of the system will track such a signal

Controller with Measured Disturbance Rejection. An additional information about

measured input disturbance signals entering the system is received by the mPC

controller and taken into account in the computation of the control action

Controller with Anticipation. Reference and measured disturbance signals are read from

file. This allows knowing future samples when computing the control action

Starting the MPC Simulink Library

Starting the MPC Simulink Library

System Requirements

You'lI need the following MATLAB software

MPC Toolbox for MaTLAB Version 5, including the MPC Simulink library files

(which are currently an add-on to the standard MPC Tools release

MATLAB Version 5.3 or greater

Simulink version 3.0 or greater

· Control toolbox.

Installation

1 Make a backup copy of your MPC Tools directory(which should be located in your

MATLAB directory,e. g MATLAB/toolbox/mpc). This will allow you to restore your

original state if the gUi installation interferes in some unexpected way

2 Download the latest version of the MPC Simulink library from

http://control.ethz.ch/-bemporad/toolbox/mpclib.html

It's a ZIP archive. Extract the contents using one of the many available utility programs

(e.g, WinZip). This should create a new mpclib directory within the mpc directory

IMPORTANT: The Zip archive is not a full version of mpc tools. you must have

existing mpc/ mpccmds and mpc/ mpcdemos directories. The files from the archive only

update these directories

3 Set your MATLAB Path so the new mpc/mpclib directory is included. Verily that the

original mpc/mpccmds and mpc/mpcdemos directories are also on the path

4 Type"mpclib"in the MATLAB Command window. You should see the MPC

Simulink library

5 If it doesn't work or you have other problems, see section In Case of Difficulty in the

preface to this document

lntroduction

Quick start

1Type‘ mpclibdemo” in the command window

2 Choose one of the tutorial examples

3 Examine the Simulink mdl file and the matlab m lile for the demo

4 Try it with your own applications

Leisurely start

The following sections of this document provide tutorial examples and additional details

If possible, work through the steps in MATLAB! Simulink as you read

MPC Fundamentals

MPC FUndamentals

This section reviews MPC concepts and defines key terms. If you're already familiar with

MPC you may prefer to read Chapter 2, " MPC Worksheet Basics"next.

Overview: single-input, single-output (SISO)MPC

gure l-l shows a situation in which MPC is trying to hold a single variable, y, at a target

description of the signals appearing in Figure 1/ r "actuator")u See Table 1-1 for a brief

The box labeled"plant "is the real process or mechanism that produces y. It responds to

changes in u as well as to two types of disturbance signals: measured, v, and unmeasured

d. Some applications have unmeasured disturbances only; the v signal is optional.

The unmeasured disturbance represents the usual mysterious events that upset plant

operation, causing variations in y. The only sign that such an event has occured is a change

in the measured output, y

Measured Disturbance

Noise

Setpoint

Actuator

MPC

Plant

Output

Disturber

Measured Output( Controlled Variable)

g

Block diagram of a single-input, single-output MPC application.

【实例截图】

【核心代码】

  • 1
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值