The Fundamentals of Model Predictive Control (MPC)

20
Copyright © 2014 Rockwell Automation, Inc. All rights reserved. Rev 5058-CO900C Michael Tay: Pavilion Product Manager [email protected] 512.422.0660 PR10 MPC The Fundamentals of Model Predictive Control

description

What control problems are ideal for deploying MPC and how does MPC deliver higher performance when deployed against these appropriate control challenges? Since deploying a more advanced controller costs additional money, how can you pre-qualify value and estimate if a solution seems cost justified? Basic MPC solution design and value estimation methods will be presented.

Transcript of The Fundamentals of Model Predictive Control (MPC)

Page 1: The Fundamentals of Model Predictive Control (MPC)

Copyright © 2014 Rockwell Automation, Inc. All rights reserved. Rev 5058-CO900C

Michael Tay: Pavilion Product Manager

[email protected] 512.422.0660

PR10 – MPC

The Fundamentals of Model Predictive Control

Page 2: The Fundamentals of Model Predictive Control (MPC)

Copyright © 2014 Rockwell Automation, Inc. All rights reserved.

• What is MPC

• Is my control problem a MPC problem? And how?

• What is the value of using MPC on my problem?

2

The Fundamentals of MPC

Page 3: The Fundamentals of Model Predictive Control (MPC)

Copyright © 2014 Rockwell Automation, Inc. All rights reserved.

A Simple MPC Problem

Goals:

Get everything wet

Keep the temperature OK

MV: Manipulated Variables

Hot water valve

Cold water valve

Constraints:

Clean by 9:00

Don’t burn (T < 100° F)

Don’t freeze (T > 70° F)

CV: Controlled Variables

Water temperature

Water flow

Help !

Handle Disturbances

Page 4: The Fundamentals of Model Predictive Control (MPC)

Copyright © 2014 Rockwell Automation, Inc. All rights reserved. 4

ClO2 Generation Example

Multi-variable control with disturbance rejection

Leveraging mathematical dynamic process models

H2O2 Flow

H2SO4 Flow

NaClO3 Flow

Reboiler Steam Flow

Saltcake Filter Speed

Pro

duction

Rat

e

Gen

erat

or S

olids

H 2SO

4 C

onc

NaC

lO3 C

onc.

Gen

erat

or L

evel

Ste

am /

Pro

duction

Rat

io

Gen

erat

or P

ress

ure

Con

trolle

r %OP

Page 5: The Fundamentals of Model Predictive Control (MPC)

Copyright © 2014 Rockwell Automation, Inc. All rights reserved.

Why Use- Model Predictive Control

Plant equipment Constraints are always shifting so it is difficult for plant

operators to optimize a plant all the time.

MPC uses a dynamic process model to proactively control a process and

optimize its performance.

Heater Tube

metal temperature

limits

Product(s)

Quality

Constraints

Distillation hydraulic

constraints

Pump

Constraints

Pressure

Limits

Heating fuel

Availability

Constraints

MPC - Good for

Multiple variables,

long time constants,

quality control

Feed quality

disturbances

Page 6: The Fundamentals of Model Predictive Control (MPC)

Copyright © 2014 Rockwell Automation, Inc. All rights reserved.

Where does MPC fit in IA

Logix controllers

MPC MPC

MPC = Pavilion8 sw

Advanced Process Control fitting RA Integrated Architecture

6

Page 7: The Fundamentals of Model Predictive Control (MPC)

Copyright © 2014 Rockwell Automation, Inc. All rights reserved.

MPC Requirements/ Basics

Material Balance is maintained: What comes in must balance what goes

out. Level or Pressure control, discharge constraints (shower drain),

balance of plant.

Energy Balance is maintained: the heat that is added must balance with

the heat that is removed. Temperature control, reactor duty balancing,

(frequently) quality control.

Quality targets are maintained: the product being produced must be

sellable, dischargeable or rejected/recycled. This includes primary

products, co-products, by-products and residuals sent to the drain/utility

plant. Residence time, feedstock chemistry/ratios, temp/pressure conrol.

Environmental and Safety constraints must be maintained.

Page 8: The Fundamentals of Model Predictive Control (MPC)

Copyright © 2014 Rockwell Automation, Inc. All rights reserved.

Multivariable control

Decouple multivariable interactions

Handle sensitivity issues (RGA - relative gain analysis)

Maintain constraints dynamically and stably

Handle complex dynamics (inverse response)

Feed forward disturbances

Page 9: The Fundamentals of Model Predictive Control (MPC)

Copyright © 2014 Rockwell Automation, Inc. All rights reserved.

Multivariable control issues

Sensitivities - tuning/RGA

Speed of response

Infeasible solutions - constraints

Robustness - model mismatch

Model error correction

Degrees of freedom

Stability - with cascade > 5/1

Page 10: The Fundamentals of Model Predictive Control (MPC)

Copyright © 2014 Rockwell Automation, Inc. All rights reserved. 10

MPC Design Questions

What are your current operating challenges?

Where do you see the most significant variability?

What is your biggest source/cause of losses and inefficiency?

How are you dealing with this today?

Do you make off-spec/off-grade/discounted product?

How do you manage your product quality today?

How do you measure success and measure a good day from a bad operating

day?

Who here knows more about this problem than anyone else?

What do you get calls on after hours from the plant?

What are your current processing limits?

What keeps you from pushing up capacity today?

What limits you from increasing yields?

What prohibits you from using less fuel/steam/energy today?

Page 11: The Fundamentals of Model Predictive Control (MPC)

Copyright © 2014 Rockwell Automation, Inc. All rights reserved.

• What controllers (PID/valves) are degrees of freedom that affect my control

objectives?

• What controllers (PID/valves) are operators moving today to

improve/adjust quality, efficiency, respond to these constraints?

• What controllers (PID) run generally in automatic and do the right thing

today (e.g. are most LIC left as PID loops and left out of MPC scope)?

• What quality, constraint, economic objective parameters should I calculate

or control closer to real-time to achieve benefits?

• Are there disturbances that you can measure and respond to faster than

you can respond to a CV alone? What DV’s are significant, modellable and

dynamically useful? Which are only SoftSensor inputs – not MPC inputs?

• How will/can you build models (fundamental, testing, old reports/studies)?

• What uncertainty/risks can you foresee? Any plan to overcome/mitigate?

11

MPC Design Questions: Step 2

Page 12: The Fundamentals of Model Predictive Control (MPC)

Copyright © 2014 Rockwell Automation, Inc. All rights reserved.

Zon

e te

mpe

ratu

re

Rei

njec

tion

tem

pera

ture

Moving Reinjection Flow Limit

Applied PlantPAx MPC Coating Oven

CV × MV × DV

4 × 7 × 2

Organic Coating Oven

PID

splitter

Gas

valve

Hot air

lap valve

Zone temperature

SP

Logix MPC

Existing Control New Control

Limit FV (moving)

Con

stra

int

Con

stra

int

Quality increased

as variability decreased

Energy equal or less

Wear-out lowered

Zone temperature

PV

Page 13: The Fundamentals of Model Predictive Control (MPC)

Copyright © 2014 Rockwell Automation, Inc. All rights reserved.

What’s it worth?

SPECIFICATION OR LIMIT

BEFORE MPC WITH MPC WITH OPTIMIZATION

Variability is caused by many elements within a control system but can be compounded by reactive human intervention

Text Text Text Text Text Text

Text Text Text Text Text Text

Reduction in Variability is typically up to – 60%

Reduced Variability = “Plant Obedience”

The MPC “intelligence” applied is based on real-time process data

All significant parameters are considered in a Multivariable model.

MPC systems predict changes caused by changing conditions

Corrections to the process are applied before quality and process objectives are

compromised.

Achieve Moisture Uplift closer to limits whilst managing

process constraints and safety margins

The Business Value is Achieved by having

confidence to “Raise the Bar”

14

Page 14: The Fundamentals of Model Predictive Control (MPC)

Copyright © 2014 Rockwell Automation, Inc. All rights reserved. 15

MPC Audit Value Estimate

• Each benefit needs a baseline calculation:

• Capacity (add constraints/limits)

• specific energy, energy/feed rate (look for key disturbances or shifts. If

bi-, tri- or more modal data is apparent – segment by grade)

• Quality on end product or end product/feed quality (yield/conversion)

• % losses or % off-spec or % down-grade (ask for Pareto on causes)

• With grade-dependant operations – segment data per grade.

• Distance from constraint:

average to limit * gain

• Reduce variation 35-65% σ

• Confirm statistics against

standard project benefits!

Page 15: The Fundamentals of Model Predictive Control (MPC)

Copyright © 2014 Rockwell Automation, Inc. All rights reserved. 16

MPC Audit Concepts

Time-plots (with/w-o cut data) Average Standard Deviation

Moisture (as is) 10.228 wt% 1.194 wt%

Protein (as is) 25.320 wt% 1.108 wt%

Statistics

Histogram, % off-spec

Page 16: The Fundamentals of Model Predictive Control (MPC)

Copyright © 2014 Rockwell Automation, Inc. All rights reserved.

Constraint Variables

17

Page 17: The Fundamentals of Model Predictive Control (MPC)

Copyright © 2014 Rockwell Automation, Inc. All rights reserved. 18

MPC Benefits Estimate: Finding a gain

In decreasing reliability, increasing model risk (from best to worst)

• Step data from manual/operator corrections. You need multiple independent

steps, SISO (Controller dynamic ID). Watch for inverse gains (modeling

control).

• Gain from past projects in same design and scale of equipment.

• Gain from customer study, model or knowledge.

• Gain from operator interview, (how much will this change if you move this 3

TPH (e.g. typical move size).

• Gain from ANN/historic/empirical model with limited number of key inputs

and very limited input correlation (high R^2)

• Gain from clean (not noisy/broad) xy plot (high R^2).

Page 18: The Fundamentals of Model Predictive Control (MPC)

Copyright © 2014 Rockwell Automation, Inc. All rights reserved.

What is it worth?

19

Page 19: The Fundamentals of Model Predictive Control (MPC)

Copyright © 2014 Rockwell Automation, Inc. All rights reserved. Rev 5058-CO90C

Comments? Discussion

Fundamentals of MPC

1. Multivariate trade-offs

2. Long or complex (fast and slow) dynamics

3. Disturbance rejection or constraint

pushing

Michael Tay: Pavilion Product Manager

[email protected]

512.422.0660

1. Capacity

2. Yield/Quality

3. Energy

Page 20: The Fundamentals of Model Predictive Control (MPC)

Copyright © 2014 Rockwell Automation, Inc. All rights reserved. 21

MPC Design : Instrumentation Needs

• When an instrument is a known solution requirements (ambient humidity on

spray dryers, feed solids/density on evaporator).

• When known, significant and not-to-expensive, available instrument is

missing (e.g. fuel gas wobbe or gravity, not for natural gas, boiler O2)

• When lab information is required for an accurate quality model – and an

online solution is not too expensive and reliable.

• When such an instrument is typical in this industry and good to have for the

solution (e.g. pH).

• A VOA is not a panacea. When an instrument is available, easily installed,

reliable and not-to-expensive – consider it seriously.

• Consider your competitive situation: putting in new instrumentation can be

costly, disruptive and can eliminate significant competitive differentiation. It is

an option: validate instrumentation is available, test build a VOA from history,

confirm history (if available) of developing such a VOA.