Feedback controllers do their best

But meeting a specific performance measure is harder than it looks.

10/16/2012


A feedback controller measures the output of a process and then manipulates the input as needed to drive the process variable toward the desired setpoint. A controller reacts to setpoint changes initiated by the operators as well as random disturbances to the process variable caused by external forces. It repeats this measure-decide-actuate sequence over and over until the process variable matches the setpoint.

Unfortunately, that’s easier said than done. The inertia of the process prevents the controller from altering the process variable instantaneously, so the controller has to settle for “close enough,” at least in the near term. Exactly how close depends on how the controller is designed, and the design is typically based on how much slack between the process variable and the setpoint is acceptable for a particular application.

Case in point

Consider, for example, a baking process where the dough in the oven must be heated without scorching. When an operator bumps up the oven temperature at the beginning of a batch, the controller must turn up the heat enough to reach the required baking temperature but without overdoing it. In this application, close equates to limited overshoot or, “as near as possible to the setpoint without exceeding it too much.”

In contrast, the process of warming up the interior of a luxury car on a cold day requires more speed than accuracy. The driver of the car typically wants the interior temperature to reach a comfortable range as soon as possible, even if that means the car’s temperature controller has to raise the temperature so quickly that it overshoots the setpoint. Here, close equates to minimum rise time or, “as near as possible to the setpoint as soon as possible.”

Closeness can be quantified in terms of an objective function or a performance measure that shows with a single statistic how well the process variable has matched the setpoint. There is a variety of performance measures to choose from, depending on which definition of “close” is most appropriate for a particular application. The “Basic performance measures” graphic shows four of the more straightforward performance measures often used in applications where the setpoint changes frequently.

Controller design

Conversely, the chosen performance measure dictates how the controller should be designed in order to achieve the desired closed-loop results. The minimal overshoot necessary for the baking application would require that the controller be tuned to be especially conservative about how it manipulates the process. For the car temperature application, the controller would have to be tuned to be more aggressive in order to achieve the fastest possible rise time.

This is a fairly straightforward calculation when the chosen performance measure comes with a set of formulae that translate observable characteristics of the process directly into controller settings. For example, the classic Ziegler-Nichols tuning rules use the ultimate gain and ultimate period of the process to generate PID parameters that will endow the controller with the ability to produce a ¼ decay ratio in response to a setpoint change.

Unfortunately, it’s not usually that easy. Most performance measures require more extensive calculations to determine the tuning parameters that will provide optimal results. The integrated performance measures shown in the second graphic are prime examples.

Trial and error

Designing a controller to optimize any of these performance measures typically involves a mathematical model of the process, an off-line simulation program, and an iterative trial-and-error test. The designer first guesses at a set of tuning parameters that could conceivably yield optimal results and then configures a simulation of a controller thus tuned operating on a model of the process. 

The designer next exercises the simulated closed-loop system with a prescribed series of setpoint changes and disturbances chosen to mimic whatever conditions the real closed-loop system is expected to experience. At the end of the first iteration, the designer computes the performance measure using the values of the process variable generated by the simulated test. For the second iteration, the designer adjusts the initial set of tuning parameters in such a way as to produce an even smaller value for the performance measure when the test is repeated under the same simulated conditions. 

That’s the tricky part. It’s not always obvious how the tuning parameters can be improved. Doing so requires either considerable experience with loop tuning or some sort of optimization algorithm that can make an educated guess based on the results of the previous test(s).

Either manually or with computer guidance, the designer repeats this trial-and-error procedure until no further reductions in the performance measure are forthcoming. The final set of tuning parameters can then be loaded into the real controller to keep the real process variable close to the setpoint under real operating conditions.

Basic performance measures

This strip chart shows a process variable (black line) responding to a setpoint change (green line) in a case where the controller has been tuned to be particularly aggressive about eliminating slack between the two as soon as possible. The value of four different performance measures can be gleaned from this chart by measuring how far the process variable’s first and second peaks have exceeded the setpoint (A and B, respectively), the amount by which the setpoint has changed (C), the time (D) required for the process variable to reach the setpoint for the first time after the setpoint change, and the time (E) required for the process variable to settle into a range within 5% of the setpoint (the shaded area). To wit:

Overshoot (in percent) = 100 A/C
Decay ratio = B/A
Rise time = D
Settling time = E

This strip chart shows a process variable (black line) responding to a setpoint change (green line) in a case where the controller has been tuned to be particularly aggressive about eliminating slack between the two as soon as possible.

Integrated performance measures 

 

= Integral of absolute errors (IAE)

 

= Integral of squared errors (ISE)

 

= Integral of time and absolute errors (ITAE) 

 

 

These performance measures all take into account the errors e(t) between the process variable and the setpoint that have occurred at every time t within a sampling period of T seconds. Tuning the controller to minimize each of these quantities produces different performance characteristics for the closed-loop system. For example, minimizing ITAE produces a controller that fights extra hard to eliminate errors that occur toward the end of the T-second sampling period, especially the tail end of the process variable’s response to a setpoint change or disturbance.

Is the answer essentially technical, or commercial?

While there are many technical aspects of control strategy, let us not forget that there are many commercial or business elements also driving the discussion. Peter Martin, vice president of business value solutions for Invensys Operations Management, keeps this top of mind and encourages process people to consider their activities in light of what really matters in the executive suite. He says, “A process is in control when each loop produces a response that meets the objectives of the business on an ongoing basis. It typically involves a conceptual cascade strategy with the primary loop focused on maximizing profitability and other business objectives, and the secondary loops the traditional process loops of the plant. Traditionally, optimizers were used to meet the needs of the primary loops, but the increased speed of business has made this impractical. Going forward, real-time control theory will be applied to both business and process variables in an overall real-time business control system.”

Perhaps it’s something of a letdown to think of the loops running the process as secondary to the business considerations, but such is the reality of the world of manufacturing, and Martin has always encouraged engineers to avoid losing sight of that fact. The question you have to ask yourself is if you know what those business objectives are. There is hardly a process manufacturing facility in the world that is not subject to global variations in commodity prices, energy source availability, and capricious markets for finished products. Such things are indeed driving the speed of business.

- Peter Welander

Key concepts

  • Deciding whether a loop is running well or not depends on what that loop is expected to do in the larger process context.
  • Different types of processes demand different control strategies. Matching them can be tricky.
  • Ultimately you have to determine if the answer is really technical, or if there are larger drivers at work. 

Vance VanDoren, PhD, PE, is Control Engineering contributing content specialist. Reach him at controleng(at)msn.com.

GO ONLINE

Read more on control strategy from Vance VanDoren at 

www.controleng.com/archive



No comments
The Top Plant program honors outstanding manufacturing facilities in North America. View the 2013 Top Plant.
The Product of the Year program recognizes products newly released in the manufacturing industries.
The Leaders Under 40 program features outstanding young people who are making a difference in manufacturing. View the 2013 Leaders here.
The new control room: It's got all the bells and whistles - and alarms, too; Remote maintenance; Specifying VFDs
2014 forecast issue: To serve and to manufacture - Veterans will bring skill and discipline to the plant floor if we can find a way to get them there.
2013 Top Plant: Lincoln Electric Company, Cleveland, Ohio
Case Study Database

Case Study Database

Get more exposure for your case study by uploading it to the Plant Engineering case study database, where end-users can identify relevant solutions and explore what the experts are doing to effectively implement a variety of technology and productivity related projects.

These case studies provide examples of how knowledgeable solution providers have used technology, processes and people to create effective and successful implementations in real-world situations. Case studies can be completed by filling out a simple online form where you can outline the project title, abstract, and full story in 1500 words or less; upload photos, videos and a logo.

Click here to visit the Case Study Database and upload your case study.

Bring focus to PLC programming: 5 things to avoid in putting your system together; Managing the DCS upgrade; PLM upgrade: a step-by-step approach
Balancing the bagging triangle; PID tuning improves process efficiency; Standardizing control room HMIs
Commissioning electrical systems in mission critical facilities; Anticipating the Smart Grid; Mitigating arc flash hazards in medium-voltage switchgear; Comparing generator sizing software

Annual Salary Survey

Participate in the 2013 Salary Survey

In a year when manufacturing continued to lead the economic rebound, it makes sense that plant manager bonuses rebounded. Plant Engineering’s annual Salary Survey shows both wages and bonuses rose in 2012 after a retreat the year before.

Average salary across all job titles for plant floor management rose 3.5% to $95,446, and bonus compensation jumped to $15,162, a 4.2% increase from the 2010 level and double the 2011 total, which showed a sharp drop in bonus.

2012 Salary Survey Analysis

2012 Salary Survey Results

Maintenance and reliability tips and best practices from the maintenance and reliability coaches at Allied Reliability Group.
The One Voice for Manufacturing blog reports on federal public policy issues impacting the manufacturing sector. One Voice is a joint effort by the National Tooling and Machining...
The Society for Maintenance and Reliability Professionals an organization devoted...
Join this ongoing discussion of machine guarding topics, including solutions assessments, regulatory compliance, gap analysis...
IMS Research, recently acquired by IHS Inc., is a leading independent supplier of market research and consultancy to the global electronics industry.
Maintenance is not optional in manufacturing. It’s a profit center, driving productivity and uptime while reducing overall repair costs.
The Lachance on CMMS blog is about current maintenance topics. Blogger Paul Lachance is president and chief technology officer for Smartware Group.