+ All Categories
Home > Documents > Stanford University · I certify that ha v e read this dissertation and in m y opinion it is fully...

Stanford University · I certify that ha v e read this dissertation and in m y opinion it is fully...

Date post: 23-Aug-2020
Category:
Upload: others
View: 2 times
Download: 0 times
Share this document with a friend
125
Transcript
Page 1: Stanford University · I certify that ha v e read this dissertation and in m y opinion it is fully adequate in scop e and qualit y as a disser tation for the degree of Do ctor of

MODEL FREE SUBSPACE BASED H� CONTROL

a dissertation

submitted to the department of electrical engineering

and the committee on graduate studies

of stanford university

in partial fulfillment of the requirements

for the degree of

doctor of philosophy

Bruce R� Woodley

January ����

Page 2: Stanford University · I certify that ha v e read this dissertation and in m y opinion it is fully adequate in scop e and qualit y as a disser tation for the degree of Do ctor of

Copyright c� ���� by Bruce R� Woodley

All Rights Reserved�

ii

Page 3: Stanford University · I certify that ha v e read this dissertation and in m y opinion it is fully adequate in scop e and qualit y as a disser tation for the degree of Do ctor of

I certify that I have read this dissertation and that in my

opinion it is fully adequate� in scope and quality� as a disser�

tation for the degree of Doctor of Philosophy�

Jonathan P� How�Principal Adviser�

I certify that I have read this dissertation and that in my

opinion it is fully adequate� in scope and quality� as a disser�

tation for the degree of Doctor of Philosophy�

Stephen P� Boyd

I certify that I have read this dissertation and that in my

opinion it is fully adequate� in scope and quality� as a disser�

tation for the degree of Doctor of Philosophy�

Antony C� Fraser�Smith

I certify that I have read this dissertation and that in my

opinion it is fully adequate� in scope and quality� as a disser�

tation for the degree of Doctor of Philosophy�

Stephen M� Rock

Approved for the University Committee on Graduate Studies�

iii

Page 4: Stanford University · I certify that ha v e read this dissertation and in m y opinion it is fully adequate in scop e and qualit y as a disser tation for the degree of Do ctor of

Abstract

Plant knowledge is essential to the development of feedback control laws for dynamic sys�

tems� In cases where the plant is dicult or expensive to model from rst principles�

experimental data are often used to obtain plant knowledge� There are two major ap�

proaches for control design incorporating experimental data� model identication�model

based control design� and model free �direct� control design� This work addresses the direct

control design problem�

The general model free control design problem requires the engineer to collect experi�

mental data� choose a performance objective� and choose a noise and�or uncertainty model�

With these design choices� it is then possible to calculate a control law that optimizes ex�

pected future performance� Recently� there has been signicant interest in developing a

direct control design methodology that explicitly accounts for the uncertainty present in

the experimental data� thereby producing a more reliable and automated control design

technique�

This research exploits subspace prediction methods in order to develop a novel direct

control design technique which explicitly allows the inclusion of plant uncertainty� The

control design technique is known as model free subspace basedH� control� The new control

law can be viewed as a method of �predictive control similar to the H� based �generalized

predictive control �GPC�� or the new control law can be viewed as an extension of model

free subspace based linear quadratic Gaussian �LQG� control� The ability to easily include

plant uncertainty di�erentiates the model free subspace based H� technique�

A computationally ecient method of updating model free subspace based controllers is

derived� thereby enabling on�line adaptation� This implementation method is particularly

e�ective because the computational e�ort required to incorporate new data is invariant with

respect to the total amount of data collected�

The H� design technique is demonstrated through a number of laboratory experiments

iv

Page 5: Stanford University · I certify that ha v e read this dissertation and in m y opinion it is fully adequate in scop e and qualit y as a disser tation for the degree of Do ctor of

utilizing a �exible structure� High performance control is experimentally demonstrated for

a non�collocated control problem using a very short �identication data set� In simula�

tion� the adaptive model free subspace based H� technique is found to rapidly develop an

excellent control law after just a few seconds of system operation�

v

Page 6: Stanford University · I certify that ha v e read this dissertation and in m y opinion it is fully adequate in scop e and qualit y as a disser tation for the degree of Do ctor of

To Annie Nicholls�

who saw my dream of the stars�

encouraged it�

and still expects me to realize it�

vi

Page 7: Stanford University · I certify that ha v e read this dissertation and in m y opinion it is fully adequate in scop e and qualit y as a disser tation for the degree of Do ctor of

Acknowledgments

I would rst like to thank my primary advisor� Prof� Jonathan How� for his excellent

technical guidance� His patience while watching me wander down all the �blind alleys

was greatly appreciated� A special thank you must also go to Dr� Robert Kosut� who

volunteered his time to play an important role in helping me develop my ideas� and who

always brought great wisdom and enthusiasm to my work�

Thank you to Prof� Cannon for inviting me into the Aerospace Robotics Lab �ARL��

and giving me my start on the helicopter project� That work� which unfortunately did

not become part of my thesis� did however give me exposure to the aerospace world� a

broadening of my education that I greatly value� Thank you to Prof� Rock who drove the

�helicopter team onto bigger and greater challenges� and who has taught me much about

managing technical teams and about engineering in the real world�

Thank you also to the remaining members of my committee� Prof� Stephen Boyd and

Prof� Antony Fraser�Smith for their time� good humor� and excellent teaching� I would like

to acknowledge the support of Prof� Bernard Widrow who gave me my start in the Ph�D�

program here at Stanford� his help came at a critical time for me� and is much appreciated�

Life has run smoothly because of the great e�orts of Jane Lintott � thank you� For

Godwin Zhang� who has been electrical designer� builder� and rapid bug xer extraordinaire�

I would like to quote Godwin�s Law� ���� of electrical problems are caused by lack of power�

the rest are caused by too much power� � Thank you to Aldo Rossi� who has taught me much

about machining� and even more about people� life� and how to live with honor and good

humor� Thank you to Gad Shelef for all his beautiful work on the helicopter� The helicopter

would have never �own without Dr� Steve Morris�s excellent piloting and maintenance�

Thank you to Brad Betts for his great help in our early years together at Stanford�

especially during the Ph�D� qualifying exams� To Alex �Luebke� Stand� for the good times

together� Thanks to Chad Jennings for the camping and moral support� Late nights will

vii

Page 8: Stanford University · I certify that ha v e read this dissertation and in m y opinion it is fully adequate in scop e and qualit y as a disser tation for the degree of Do ctor of

not be the same without the great debates and laughter of Adrian Butscher�

Many students in the lab have been extremely helpful throughout my time at Stanford�

including Gordon Hunt for all his work on software drivers� and Andrew Conway� Eric Frew�

Hank Jones� and Ed LeMaster for their work on the helicopter� Thank you to all the past and

present students in the ARL who have made it a great place to work� Chris Clarke� Tob�e

Corazzini� Steve Fleischer� Andreas Huster� Steve Ims� Bob Kindel� Kortney Leabourne�

Rick Marks� Tim McLain� Dave Miles� Eric Miles� Jorge Moraleda� Denny Morse� Mel

Ni� Je� Ota� Gerardo Pardo�Castellote� Chad Partridge� Eric Prigge� Jason Rife� Andrew

Robertson� Je� Russakow� Stef Sonck�Thiebaut� H�D� Stevens� Howard Wang� Ed Wilson�

and Kurt Zimmerman�

There are many non�ARL people who have helped me through conversations about

this work� including Haitham Hindi� Gokhan Inalhan� Miguel Lobo� Tom Par�e� and Bijan

Sayyar�Rodsari�

Thank you to my immediate family Bob and Ruth Woodley� and Douglas Woodley� who

have taught me much about commitment� persistence� and �do�it�right�or�not�at�all as a

mantra by which to live�

Finally� thank you to Heidi Schubert who has been many di�erent things to this process�

including lab mate and colleague� supporter� critic� advisor� coach� cheerleader� camping

partner� roommate� and above all� my very best friend�

viii

Page 9: Stanford University · I certify that ha v e read this dissertation and in m y opinion it is fully adequate in scop e and qualit y as a disser tation for the degree of Do ctor of

Contents

Abstract iv

Acknowledgments vii

List of Figures xii

� Introduction �

��� Motivation � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � �

����� Features Of Model Free Techniques � � � � � � � � � � � � � � � � � � � �

����� When One Might Use Model Free Techniques � � � � � � � � � � � � � �

����� Model Free Robust Control � � � � � � � � � � � � � � � � � � � � � � � �

��� Problem Statement And Solution Methodology � � � � � � � � � � � � � � � � �

����� Prediction Control Issues � � � � � � � � � � � � � � � � � � � � � � � � �

����� Comparison To Subspace Identication�H� Design � � � � � � � � � �

��� Contributions � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � �

��� Thesis Outline � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � ��

� Subspace Prediction ��

��� Least Squares Subspace Predictor � � � � � � � � � � � � � � � � � � � � � � � � ��

��� Calculating Lw� Lu� QR Method � � � � � � � � � � � � � � � � � � � � � � � � ��

��� A Fast Method Of Calculating Lw� Lu � � � � � � � � � � � � � � � � � � � � � ��

����� Fast Updating And Downdating Of Lw� Lu � � � � � � � � � � � � � � ��

��� Relation To The Exact Plant Model � � � � � � � � � � � � � � � � � � � � � � ��

��� Summary � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � ��

ix

Page 10: Stanford University · I certify that ha v e read this dissertation and in m y opinion it is fully adequate in scop e and qualit y as a disser tation for the degree of Do ctor of

� Model Free Subspace Based H� Control ��

��� Output Feedback Mixed Sensitivity Cost Function � � � � � � � � � � � � � � ��

��� Subspace Based Finite Horizon H� Control � � � � � � � � � � � � � � � � � � ��

��� Model Free Subspace Based H� Control With rk Known � � � � � � � � � � ��

��� Robust Subspace Based Finite Horizon H� Control � � � � � � � � � � � � � ��

����� Multiplicative Uncertainty � � � � � � � � � � � � � � � � � � � � � � � � ��

����� Additive Uncertainty � � � � � � � � � � � � � � � � � � � � � � � � � � � ��

��� Summary � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � ��

� Limiting Cases ��

��� Subspace Based H� Controller As � �� � � � � � � � � � � � � � � � � � � � ��

����� Subspace Based Finite Horizon LQG Regulator � � � � � � � � � � � � ��

����� Subspace Based H� Control Law As � �� � � � � � � � � � � � � � ��

��� Convergence To Model Based Finite Horizon H� Control � � � � � � � � � � ��

����� Model Based H� Control � � � � � � � � � � � � � � � � � � � � � � � � ��

����� Proof Of Theorem ��� � � � � � � � � � � � � � � � � � � � � � � � � � � ��

��� Summary � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � ��

� Controller Implementation ��

��� Receding Horizon Implementation � � � � � � � � � � � � � � � � � � � � � � � ��

��� Simplied Receding Horizon Implementation � � � � � � � � � � � � � � � � � ��

����� Summary Of Batch Design Procedure � � � � � � � � � � � � � � � � � ��

��� Adaptive Implementation � � � � � � � � � � � � � � � � � � � � � � � � � � � � ��

����� Summary Of Adaptive Design Procedure � � � � � � � � � � � � � � � ��

��� Design Example � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � ��

����� E�ects Of W�� W� � � � � � � � � � � � � � � � � � � � � � � � � � � � � ��

����� E�ect Of i � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � ��

����� E�ect Of j � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � ��

����� E�ect Of � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � ��

��� Summary � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � ��

� Experiments ��

��� Experimental Hardware � � � � � � � � � � � � � � � � � � � � � � � � � � � � � ��

��� Non�Collocated O��Line Control Design � � � � � � � � � � � � � � � � � � � � ��

x

Page 11: Stanford University · I certify that ha v e read this dissertation and in m y opinion it is fully adequate in scop e and qualit y as a disser tation for the degree of Do ctor of

��� Adaptive Simulation � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � ��

��� Summary � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � ��

� Model Unfalsication ���

��� LTI Uncertainty Model Unfalsication � � � � � � � � � � � � � � � � � � � � � ���

��� ARX Uncertainty Model � � � � � � � � � � � � � � � � � � � � � � � � � � � � � ���

����� Classical ARX � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � ���

����� ARX Unfalsied Uncertainty Model � � � � � � � � � � � � � � � � � � ���

��� Subspace Uncertainty Model Unfalsication � � � � � � � � � � � � � � � � � � ���

��� Discussion � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � ���

� Conclusions ���

��� Summary � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � ���

��� Future Work � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � ���

Bibliography ��

xi

Page 12: Stanford University · I certify that ha v e read this dissertation and in m y opinion it is fully adequate in scop e and qualit y as a disser tation for the degree of Do ctor of

List of Figures

��� Subspace predictor illustration� i � � � � � � � � � � � � � � � � � � � � � � � � ��

��� Output feedback block diagram � � � � � � � � � � � � � � � � � � � � � � � � � ��

��� Generalized plant for non�robust H� control design � � � � � � � � � � � � � ��

��� Time line for H� control design � � � � � � � � � � � � � � � � � � � � � � � � ��

��� Generalized plant for robust H� control design� multiplicative uncertainty ��

��� Generalized plant for robust H� control design� additive uncertainty � � � � ��

��� Adaptive implementation block diagram � � � � � � � � � � � � � � � � � � � � ��

��� Output data used for design examples � � � � � � � � � � � � � � � � � � � � � ��

��� Discrete time weighting functions used in the design example � � � � � � � � ��

��� Step responses for various W�� W�� designs � � � � � � � � � � � � � � � � � � ��

��� Step responses for various choices of i� constant ���min � � � � � � � � � � � � ��

��� Step responses for various choices of i� constant � � � � � � � � � � � � � � � � ��

��� Step responses for various choices of i� constant ���min� constant n � � � � � ��

��� Step responses for various choices of i� constant �� constant n � � � � � � � � ��

��� Pole and zero locations for various choices of i � � � � � � � � � � � � � � � � � ��

���� E�ect of noise on the convergence of pole and zero location i � ��� � � � � � ��

���� Step responses for various choices of j � � � � � � � � � � � � � � � � � � � � � ��

���� Step responses for various choices of � � � � � � � � � � � � � � � � � � � � � � ��

��� Schematic and photo of the three disk system � � � � � � � � � � � � � � � � � ��

��� Identication data � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � ��

��� Control specication � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � ��

��� Experimental step response � � � � � � � � � � � � � � � � � � � � � � � � � � � ��

��� Comparison to ideal simulation � � � � � � � � � � � � � � � � � � � � � � � � � ��

��� Model based control experiment � � � � � � � � � � � � � � � � � � � � � � � � � ��

��� Comparison of subspace based and model based controllers � � � � � � � � � ��

xii

Page 13: Stanford University · I certify that ha v e read this dissertation and in m y opinion it is fully adequate in scop e and qualit y as a disser tation for the degree of Do ctor of

��� Design for adaptive simulation � � � � � � � � � � � � � � � � � � � � � � � � � ��

��� Adaptive simulation � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � ��

���� Adaptive simulation error � � � � � � � � � � � � � � � � � � � � � � � � � � � � ��

���� �min during adaptive simulation � � � � � � � � � � � � � � � � � � � � � � � � � ��

xiii

Page 14: Stanford University · I certify that ha v e read this dissertation and in m y opinion it is fully adequate in scop e and qualit y as a disser tation for the degree of Do ctor of

Chapter �

Introduction

This dissertation presents a new method of control synthesis which combines the functions

of traditional system identication with that of control design� enabling synthesis of H�optimal controllers in a single �model free process� The method utilizes ideas from the

recently developed eld of subspace identication in order to reduce vast amounts of exper�

imental data to a much smaller �subspace predictor � which is then applied to develop a

control law� The technique is referred to as �model free because at no time in the process

is an explicit model of the plant formulated� In addition� an ecient method of recursively

updating the subspace predictor is developed� thereby allowing on�line adaptation of the

controller as new experimental data are collected�

��� Motivation

In order to e�ectively control a dynamic system �plant�� it is essential to have a good

understanding of the plant�s input�output behavior� This understanding may be explicitly

represented by a plant model� or might be implicitly contained in an experimental data set�

a control law that has been tuned based on experiment� or some other structure� Internal

stability issues may also require that the plant�s internal dynamics be well understood�

Typical methods of gaining this understanding include analytical modeling from rst

principles �such as Newton�s laws of motion�� direct measurement of various plant pa�

rameters �such as mass�� model identication from input�output data� model tuning from

input�output data� and control law adaptation from input�output data during closed loop

Page 15: Stanford University · I certify that ha v e read this dissertation and in m y opinion it is fully adequate in scop e and qualit y as a disser tation for the degree of Do ctor of

CHAPTER �� INTRODUCTION �

Plant Model No Plant Model

O��line Model Based Design Direct Control Design

On�line Indirect Adaptive Direct Adaptive

Table ���� Four techniques of using experimental data

operation� The process usually requires many iterations among one or more of these tech�

niques� In addition� techniques such as plant model verication� closed loop analysis� and

injection of engineering insight �or conjecture�� may be required to converge upon an ac�

ceptable control design�

There are many types of systems where experimental data are particularly valuable in

obtaining knowledge of plant behavior� Examples include cases where the plant is dicult

or expensive to model� where the plant is time�varying� or where the plant is well modeled

but certain parameters must be determined experimentally� Examples of dicult or ex�

pensive plants to model include arc furnaces ���� ��� and helicopter rotors ����� Examples

of time�varying plants include engines which wear with time� and satellites which change

temperature in low earth orbit ����� The torsional pendulum that is used in Chapter �

is an example of a plant that has features that can be well modeled from rst principles�

yet requires experimental data in order to obtain appropriate model parameters� Methods

of using experimental data can roughly be divided into four categories� as shown in Table

���� The techniques are distinguished by whether they operate �on�line or �o��line � and

whether a plant model is explicitly used to perform the control design�

Plant model identication is perhaps the most popular method of using experimental

data in the control design process� The engineer usually performs a number of experiments�

and then uses the experimental data in conjunction with various optimization techniques to

form a model of the plant� The plant model is then used with one of the well known model

based control design techniques to synthesize a control law� Typical identication techniques

include the classical prediction error �PE�� auto regressive with exogenous input �ARX��

auto regressive moving average with exogenous input �ARMAX�� output error �OE�� and

Box Jenkins ���� ��� techniques� More recently� subspace techniques such as eigensystem

realization analysis �ERA� ���� and numerical algorithms for subspace state space system

identication �N�SID� ���� have gained popularity� The control design literature is vast� and

includes simple proportional integral derivative �PID� as well as more advanced modern and

Page 16: Stanford University · I certify that ha v e read this dissertation and in m y opinion it is fully adequate in scop e and qualit y as a disser tation for the degree of Do ctor of

CHAPTER �� INTRODUCTION �

post modern techniques e�g� linear quadratic Gaussian �LQG� ����� and ��synthesis �����

When model based design is used �on�line � it is usually referred to as indirect adaptive

control ���� The process typically begins by assuming a nominal plant model� As new

experimental data are collected� the outputs are compared to the outputs predicted by the

nominal plant model� producing a nominal error� The gradient of the error with respect to

the plant parameters is used to modify the plant parameters to improve the plant model�

Periodically� the control law is updated using the most recently developed plant model as

the basis for control synthesis� An example of this approach is model reference adaptive

control ����

The �no plant model column in Table ��� is somewhat of a misnomer� in some sense�

a data set can be considered an empirical plant model� thus any simplied representation

of the data set is also a plant model� The dening feature of model free techniques is that

a single integrated procedure derives the control law directly from experimental data and a

performance specication� If the technique has a suciently low computational burden� it is

generally straightforward to implement the �no plant model design technique on�line� This

produces a �direct adaptive control technique where the controller attempts to improves its

performance in response to newly available experimental data� Examples of direct control

techniques include model free subspace based LQG control ���� ���� adaptive inverse control

����� LMS ����� and FxLMS and its alternatives ����� The next two subsections describe

the features of model free control design and outline conditions under which it might be

advantageous to apply model free techniques�

����� Features Of Model Free Techniques

The most important feature of model free control design techniques is the close coupling of

the �plant identication and the �control design steps� In traditional model based control

design� the development of a plant model requires great simplications of the experimental

data set in order to obtain a plant model� In the model free technique� much more of the

experimental information is retained throughout the control design process� If the controller

is then simplied� the simplications that are made are with respect to the controller�s input�

output relationship� rather than with respect to the plant input�output relationship� The

simplications of the controller are made with respect to what is important to the control

law� rather than what is important to the plant model ��� �� ���

Closer coupling of the identication and control design process should lead to increased

Page 17: Stanford University · I certify that ha v e read this dissertation and in m y opinion it is fully adequate in scop e and qualit y as a disser tation for the degree of Do ctor of

CHAPTER �� INTRODUCTION �

automation of the control design process� however� this conjecture can only be conrmed by

the experiences of control engineers who are able to try both model based and model free

techniques in the eld� The increased automation is expected to result from the removal

of the intermediate design steps� thereby requiring the engineer to make fewer arbitrary

choices of parameters during the design process� An additional advantage is realized in

the iterative process between designing �identication experiments and performing closed

loop tests� the model free control design process naturally provides the engineer with an

immediate estimate of closed loop performance�

Due to the increased automation� model free techniques are easily implemented as part

of an adaptive framework� It is believed that model free techniques will be of great utility

when solving adaptive control problems�

����� When One Might Use Model Free Techniques

Control problems with certain attributes are likely to receive the most benet from model

free techniques� These attributes include�

� Experimental data are plentiful� are representative of the important system dynamics�

and are inexpensive to obtain�

� Iteration between design and closed loop experiment is possible�

� Some aspects of the system are dicult to quantify by analytic modeling� e�g� time�

varying nonlinearities�

� The plant has many inputs and many outputs� such that modeling each input�output

relationship might be prohibitively tedious�

The adaptive methodologies are of course applicable to cases where the plant is time�varying�

In many time�varying problems� the control law adapts to compensate for changing system

parameters� such as temperature and drag� However� if the plant structure is changing�

such as addition of new modes� a model free technique may be better suited than a model

based adaptive controller in which the model structure is determined a priori�

����� Model Free Robust Control

One of the dicult problems that remains in the adaptive control community is developing

control laws that achieve good closed loop performance when the plant is only partially or

Page 18: Stanford University · I certify that ha v e read this dissertation and in m y opinion it is fully adequate in scop e and qualit y as a disser tation for the degree of Do ctor of

CHAPTER �� INTRODUCTION �

inaccurately represented by the experimental data� This problem has motivated much of

the recent work in model free and model based robust control techniques� Recent solutions

include direct controller unfalsi�cation methods ���� ��� and uncertainty model unfalsica�

tion methods ����� The limited success and computational complexity of the unfalsication

methods motivated the development of the new model free robust control technique pre�

sented in this dissertation�

��� Problem Statement And Solution Methodology

A precise statement of the model free robust control problem is as follows� given plant input�

output data �u� y�� a performance objective J � and an admissible noise and�or uncertainty

model� the objective is to nd a feedback control law that optimizes the J for future time�

Many design choices must be made in order to formulate a solution to this problem� They

include�

� Selecting a method of extrapolation of plant behavior into the future�

� Developing a noise and�or uncertainty model�

� Selecting an appropriate performance objective� taking into account the uncertainty

model�

� Ensuring that a computationally ecient method of updating the control law exists�

With these issues in mind� the following design choices were made for this thesis�

� Performance objective� A nite horizon H� objective was selected as it can easily

account for plant uncertainty in the design specication via the small gain theorem�

In the H� output feedback formulation� the reference signal is considered to be a

disturbance thus the control law is designed for the worst case reference signal that

could possibly drive the system� The design technique also allows the engineer to

specify other �worst case disturbances that the control law must be able to reject�

� Extrapolation method and noise model� The subspace predictor was selected

to extrapolate past input�output data in order to predict the future plant outputs�

This relatively recent technique has been very successful in producing good results on

Page 19: Stanford University · I certify that ha v e read this dissertation and in m y opinion it is fully adequate in scop e and qualit y as a disser tation for the degree of Do ctor of

CHAPTER �� INTRODUCTION �

various model identication test cases ����� The subspace predictor implicitly assumes

a stochastic noise model in predicting plant outputs from past input�output data� As

is shown in Chapter �� the model free subspace based H� design technique retains

the Kalman lter like qualities of subspace based identication� yet provides the best

possible control in the case of �worst case disturbances that are not considered by

the subspace predictor�

� Uncertainty model� Application of the robust design technique developed in this

thesis requires the engineer to select an uncertainty model when choosing the perfor�

mance objective�

These design choices result in what has been termed model free subspace based H� control�

In this form� model free subspace based H� control is a member of a class of controllers

known as predictive control ���� ��� ���� Predictive control refers to any technique that

employs the following steps�

�� A predictor is used to determine the plant input that will optimize a specied cost

function over a future time horizon�

�� The rst time step of the control is implemented� The plant output at this time step

is recorded�

�� The new input�output data are added to the predictor� and steps ��� are repeated�

These steps are collectively known as a �receding horizon implementation� A popular

form of prediction control is the so�called �generalized prediction control �GPC� which

employs a quadratic cost function and an �auto�regressive integrated moving average with

exogenous input �ARIMAX� predictor ��� �� �� ���� Predictive control has been applied

with H� optimal predictors and H� cost functions ����� H� optimal predictors and H�control costs ����� and mixed H��H� minimax predictors ����� Subspace predictors have

previously been applied to the predictive control problem with quadratic costs ����� resulting

in model free subspace based LQG control� One major contribution of this thesis is that it

extends model free subspace based predictive control to include H� cost functions�

����� Prediction Control Issues

Several issues are often raised in the discussion of predictive control� how does one choose

the length of the prediction horizon� what stability guarantees exist� and why is only one

Page 20: Stanford University · I certify that ha v e read this dissertation and in m y opinion it is fully adequate in scop e and qualit y as a disser tation for the degree of Do ctor of

CHAPTER �� INTRODUCTION �

time step of the control implemented before updating the predictor�

Unfortunately� good answers to the rst two questions do not exist at this time� Intu�

itively� one would expect that the longer the prediction horizon� the greater the probability

that the closed loop system is stable� This conjecture is supported by the experiments and

the design example in Chapter �� It is sometimes possible to derive sucient conditions for

a model based receding horizon control law to be closed loop stable when the model is an

exact representation of the plant� e�g� the LQG laws in ���� However� when real experimen�

tal data are used� it is very dicult to nd conditions under which closed loop stability can

be guaranteed ���� The choice of control horizon length is thus a design parameter which

must be selected by the engineer�

The issue of implementing only one time step of the control law before updating the

predictor can be understood by comparing this strategy to the strategy of implementing two

control time steps before updating the predictor� If two time steps are implemented before

the predictor is updated� then the control law is e�ectively ignoring input�output data that

are available after the rst time step� In a system with stationary noises� a controller that

uses the newest data to estimate the present system state will outperform an �ignorant

controller that relies exclusively on older data�

����� Comparison To Subspace Identi�cation�H� Design

An obvious question that arises when evaluating the model free subspace based H� control

technique is how does the technique di�er from using a subspace identication technique

�such as N�SID� to develop a linear time�invariant �LTI� plant model� then using the plant

model to perform a model based H� control design� Several di�erence are apparent�

A subspace identication technique such as N�SID has� as its rst step� the development

of a subspace predictor identical to the one used in this thesis� The technique then extracts

an in�nite horizon plant model from the subspace predictor� The approximation being

made by the N�SID method is that the Markov parameters of the nite horizon subspace

predictor can be e�ectively used to extract an innite horizon LTI plant model�

Furthermore� the N�SID method extracts a low order LTI model from the subspace

predictor� There are many more degrees of freedom in the subspace predictor than the

number of degrees of freedom in the LTI system that is used to approximate it� The N�SID

method permits the use of a Hankel singular value plot to aid the engineer in selecting

an appropriate model order for the LTI system� The typical diculty with this reduction

Page 21: Stanford University · I certify that ha v e read this dissertation and in m y opinion it is fully adequate in scop e and qualit y as a disser tation for the degree of Do ctor of

CHAPTER �� INTRODUCTION �

process is determining how many Hankel singular values should be retained� the choice

is often not obvious due to the blurring between plant dynamics and system noise� This

ad hoc process can lead to the elimination of large amount of information that might be

signicant�

The model free subspace based technique retains all of the information in the subspace

predictor� It does not attempt to extrapolate plant input�output beyond the time horizon

that the subspace predictor is designed to predict plant input�output behavior� There is

no need to choose a model order for the extraction of an LTI model from the subspace

predictor�

The control design for the model free subspace based H� controller is based on a nite

horizon cost function� the model based control design typically uses an innite horizon cost�

In the model free case� it is assumed that the prediction horizon is long enough to produce a

stable closed loop system� In the model based control design� it is assumed that the innite

horizon plant model is a suciently accurate approximation of the subspace predictor and

that the prediction horizon is long enough to produce a stable closed loop system�

Thus the fundamental di�erences between these two control design techniques are the

types of approximations that are being made� In the model free technique� it is directly

assumed that the nite horizon predictor contains sucient information to capture the

behavior of the system in the closed loop� In the model based approach� large amounts of

information in the subspace predictor are discarded in order to obtain a low order innite

horizon model� The low order model is necessary in order to make the innite horizon

H� control design tractable� The close coupling between experimental data and control

design in the model free technique has the potential to signicantly improve the end�to�end

performance of the �data to controller design process�

��� Contributions

The following contributions to the control literature are presented in this dissertation�

�� A novel method of designing a mixed subspace�H� control law directly from experi�

mental data is developed� Since a plant model is not explicitly formed� the technique

is known as model free subspace based H� control� This technique is also applicable

to model free subspace based robust H� control design�

Page 22: Stanford University · I certify that ha v e read this dissertation and in m y opinion it is fully adequate in scop e and qualit y as a disser tation for the degree of Do ctor of

CHAPTER �� INTRODUCTION �

�� A computationally ecient algorithm for adaptively implementing the model free

subspace based H� control design is developed� This algorithm is also applicable

to the adaptive implementation of the model free subspace based linear quadratic

Gaussian �LQG� control technique�

�� It is shown that the receding horizon implementation of the model free subspace based

H� control law is equivalent to implementing a discrete time LTI dynamic feedback

controller� This observation greatly simplies controller implementation� enables the

engineer to use the familiar tools of LTI analysis� and permits the engineer to use

familiar model order reduction tools to simplify the controller complexity� These

observations are also applicable to the model free subspace based LQG control law�

This observation is nearly identical to one that has been made for GPC controllers

����

�� Key properties of the model free subspace based H� control law are analyzed� demon�

strating that the control law has the limiting behavior that one would expect from

such a control law� Specically�

�a� As the design parameter � ��� the model free subspace based H� control law

converges to the model free subspace based LQG control law�

�b� As the past data length becomes very large� the model free subspace based H�control law behaves like a Kalman lter coupled to a full information nite hori�

zon H� controller�

�� The model free subspace based H� control design technique is demonstrated exper�

imentally on a torsional spring�mass system� The good performance of the model

free subspace based H� control design technique on this challenging control problem

serves as a �proof of concept for its future deployment in real world applications�

Furthermore� the adaptive technique is demonstrated in simulation using a noisy LTI

model of the same torsional spring�mass system� The control law begins with a very

poor knowledge of the spring�mass system� and uses the input�output information

obtained during closed loop operation in order to obtain a satisfactory control law�

�� Using the model unfalsication concept� a convex method of developing LTI uncer�

tainty models directly from the subspace predictor is derived� This result extends

Page 23: Stanford University · I certify that ha v e read this dissertation and in m y opinion it is fully adequate in scop e and qualit y as a disser tation for the degree of Do ctor of

CHAPTER �� INTRODUCTION ��

the ARX uncertainty model unfalsication technique ����� Although the convex tech�

nique is not computationally feasible at this time� this work establishes a connection

between the ARX uncertainty model and the subspace uncertainty model� Should

an ecient method of computing the ARX uncertainty model be developed� then the

method would be immediately applicable to the subspace uncertainty model�

��� Thesis Outline

Chapter � reviews the ideas of subspace prediction developed in ����� A computationally

ecient algorithm for determining the optimal subspace predictor is also developed in Chap�

ter �� Chapter � derives the model free subspace based H� optimal controller� Both the

strictly causal controller �where the reference signal is not known at the present time� and

the causal controller �where the reference signal is known at the present time� are derived�

Robust H� control laws� which take into account multiplicative or additive uncertainties�

are also derived�

Chapter � analyzes the limiting cases of the model free subspace based H� controller�

which provides some insight as to the behavior of the new control design technique� Also

included is a short derivation of the model free subspace based LQG control law� Chapter

� details both the batch and adaptive implementation of the control design technique� All

of the details in Chapter � are also applicable to the LQG control design technique� A

design example illustrates the use of the model free subspace based H� technique� and

demonstrates the trades that the engineer must make when using this design tool�

Chapter � presents experimental results which demonstrate the model free subspace

based H� control design technique on a physical system� Chapter � describes the use of

the model unfalsication concept in order to derive an LTI uncertainty model from the

experimental data� This uncertainty model can be used in conjunction with the model

free subspace based robust H� control design technique to produce a robust control design

directly from data� Unfortunately� this technique remains too computationally expensive

for practical application at this time� Chapter � summarizes the thesis� and provides sug�

gestions for future work�

Page 24: Stanford University · I certify that ha v e read this dissertation and in m y opinion it is fully adequate in scop e and qualit y as a disser tation for the degree of Do ctor of

Chapter �

Subspace Prediction

The subspace system identication methods developed in ���� have recently gained much

popularity for identication of linear time�invariant �LTI� systems� The technique is em�

ployed in a two step process� rst� the best least squares subspace predictor is derived from

available experimental data second� the predictor is used to derive a state space model of

the dynamic system� Each of these steps signicantly reduces the volume of information

used to represent the plant input�output behavior� The formation of the subspace predictor

serves two purposes� it simultaneously reduces the e�ects of noise in the measured data�

and it establishes a method of extrapolating future plant input�output behavior from past

input�output data� Since the subspace predictor can be shown to be equivalent to a very

high order LTI plant model� the derivation of the state space model from the predictor is

similar to a plant model order reduction�

The key idea established in ���� ��� is that LQG control design can be performed directly

from the subspace predictor� avoiding the �model formation step� This thesis extends this

concept to include H� performance specications� In both cases� all of the information that

remains after the development of the subspace predictor is used to derive a control law� This

chapter describes the subspace predictor� various methods of computing the predictor from

experimental data� and in the case of an LTI plant� the relationship between the predictor

and the true plant�

��

Page 25: Stanford University · I certify that ha v e read this dissertation and in m y opinion it is fully adequate in scop e and qualit y as a disser tation for the degree of Do ctor of

CHAPTER �� SUBSPACE PREDICTION ��

��� Least Squares Subspace Predictor

This section presents a review of the subspace predictor concept ����� The development of

the predictor begins with experimental input�output data� Consider input�output data of

length n from a plant with m inputs �uk � IRm� and l outputs �yk � IRl�

�BBBBBB�

��������u�

u����

un��

�������� ���������

y�

y����

yn��

��������

�CCCCCCAThe engineer then chooses a prediction horizon� i� i should be chosen to be larger than the

expected order of the plant �if the plant is LTI�� and is usually chosen to be � or � times

larger than the expected plant order ����� The data set is then broken into j prediction

problems� where j � n � �i ! �� Usually there is a relatively large amount of data� so

that j � i� The goal is to nd a single predictor that simultaneously optimizes �in the

least squares sense� the j prediction problems� Figure ��� illustrates two of these prediction

problems� with i � �� In the rst problem� the input data fu�� � � � � u�i��g plus the output

data fy�� � � � � yi��g are used to predict fyi� � � � � y�i��g� The second prediction problem uses

fu�� � � � � u�ig and fy�� � � � � yig to predict fyi��� � � � � y�ig� Sliding the prediction windows to

the right through the length n data set results in j � n� �i ! � prediction problems�

The j prediction problems can be formalized as follows� Dene the block Hankel matrices

formed from the data

Up��

��������u� u� � � � uj��u� u� � � � uj���

��� � � � ���

ui�� ui � � � ui�j��

�������� � IRim�j �����

Uf��

��������ui ui�� � � � ui�j��ui�� ui�� � � � ui�j

������ � � � ���

u�i�� u�i � � � u�i�j��

�������� � IRim�j �����

Page 26: Stanford University · I certify that ha v e read this dissertation and in m y opinion it is fully adequate in scop e and qualit y as a disser tation for the degree of Do ctor of

CHAPTER �� SUBSPACE PREDICTION ��

y

u

u

� i�� i �i��

� i�� i �i��

� �i

y

�i

i

i i��

i���

Figure ���� Subspace predictor illustration� i � �

Two of the j prediction problems are shown� The predictor is determined bychoosing Lw and Lu to simultaneously optimize the predictions indicated by thearrows�

Yp��

��������y� y� � � � yj��y� y� � � � yj���

��� � � � ���

yi�� yi � � � yi�j��

�������� � IRil�j �����

Yf��

��������yi yi�� � � � yi�j��yi�� yi�� � � � yi�j

������ � � � ���

y�i�� y�i � � � y�i�j��

�������� � IRil�j �����

The subscripts �p and �f can be thought of as representing �past and �future time�

Also dene

Wp��

�� Up

Yp

��so that Wp represents all the �past data�

Page 27: Stanford University · I certify that ha v e read this dissertation and in m y opinion it is fully adequate in scop e and qualit y as a disser tation for the degree of Do ctor of

CHAPTER �� SUBSPACE PREDICTION ��

The problem of obtaining the best linear least squares predictor of Yf � given Wp and Uf

can be written as a Frobenius norm minimization

minLw�Lu

Yf �hLw Lu

i �� Wp

Uf

���

F

�����

It is shown in ���� that the solution to this problem is given by the orthogonal projection�

�represented by the symbol �� of the row space of Yf into the row space spanned by Wp

and Uf � It is this geometry that inspires the name �subspace predictor � The orthogonal

projection solution to the problem ����� is given by

bYf � Yf

�� Wp

Uf

���� Yf

�� Wp

Uf

��T�B��� Wp

Uf

���� Wp

Uf

��T�CAy �� Wp

Uf

��where y denotes the Moore�Penrose or pseudoinverse� Thus

hLw Lu

i� Yf

�� Wp

Uf

��T�B��� Wp

Uf

���� Wp

Uf

��T�CAy

where

Lw � IRil�i�l�m� Lu � IRil�im

Consider k to be the present time index� Given past experimental data

�BBB������uk�i

���

uk��

����� ������yk�i

���

yk��

������CCCA

and future inputs �����uk���

uk�i��

�����

Page 28: Stanford University · I certify that ha v e read this dissertation and in m y opinion it is fully adequate in scop e and qualit y as a disser tation for the degree of Do ctor of

CHAPTER �� SUBSPACE PREDICTION ��

Lw and Lu can be used to form an estimate of future outputs� namely

�����byk���byk�i��

����� � Lw

��������������

uk�i���

uk��yk�i

���

yk��

��������������! Lu

�����uk���

uk�i��

����� �����

Equation ����� will be used extensively throughout this thesis in order to extrapolate future

plant input�output behavior from past input�output data�

��� Calculating Lw� Lu� QR Method

The QR decomposition forms the basis of a computationally ecient and numerically reli�

able method of nding Lw and Lu� First calculate the QR decomposition�����Wp

Uf

Yf

����� � RTQT �

�����R�� � �

R�� R�� �

R�� R�� R��

�����QT �����

then hLw Lu

i�hR�� R��

i �� R�� �

R�� R��

��y

The pseudoinverse is usually calculated using the singular value decomposition �SVD��

Compute the SVD �� R�� �

R�� R��

�� � U"V T

with U and V orthogonal� and the matrix of singular values

" �

���������� � � � � �

� �� � � � ����

���� � �

���

� � � � � �i�l��m�

��������

Page 29: Stanford University · I certify that ha v e read this dissertation and in m y opinion it is fully adequate in scop e and qualit y as a disser tation for the degree of Do ctor of

CHAPTER �� SUBSPACE PREDICTION ��

with �� � �� � � � � � �i�l��m� � �� In order to compute the matrix inverse without

encountering singularities� the directions of U and V associated with ��s that are close to

zero are discarded� Thus choose q � i�l ! �m� such that �r � tol � � r � q� where tol is

some very small positive tolerance� Let Uq and Vq represent the matrices formed from the

rst q columns of the matrices U and V respectively� Then

�� R�� �

R�� R��

��y �� Vq

������������ � � � � �

� ���� � � � ����

���� � �

���

� � � � � ���q

��������UTq

and

hLw Lu

i�hR�� R��

iVq

������������ � � � � �

� ���� � � � ����

���� � �

���

� � � � � ���q

��������UTq

The QR decomposition has computational complexity O�i�j�� while the SVD algorithm

has complexity O�i��� producing overall computational complexity O�i�j ! i�� ����� The

storage requirement for the QR�SVD algorithm is O�ij��

��� A Fast Method Of Calculating Lw� Lu

The QR method of calculating Lw and Lu is computationally inecient for the typical case

where j � i� As an example of typical i and j� the experiment in Section ��� uses i � ��

and j � ����� Much e�ort goes into computing the very large matrix QT � IR�i�l�m��j �

which is then not used in the calculation ofhLw Lu

i� A more ecient computational

method exists based on the Cholesky factorization� Let

A��

�����Wp

Uf

Yf

����� � IR�i�l�m��j

then using �����

AAT � RTQTQR � RTR � IR�i�l�m���i�l�m�

Page 30: Stanford University · I certify that ha v e read this dissertation and in m y opinion it is fully adequate in scop e and qualit y as a disser tation for the degree of Do ctor of

CHAPTER �� SUBSPACE PREDICTION ��

thus

R � chol�AAT �

where chol�AAT � is the Cholesky factorization of AAT � Since AAT is much smaller than A

when j � i� the Cholesky factorization of AAT can take signicantly fewer computations

to perform that the QR decomposition of A� The Cholesky factorization is in fact O�i��

����� however� one must account for the computation of AAT �

The �brute force method of computing AAT is O�i�j�� Fortunately� the Hankel struc�

ture of A can be exploited to drastically reduce the computational e�ort� Let

U��

�� Up

Uf

�� Y��

�� Yp

Yf

�� B��

�������Up

Uf

Yp

Yf

������� �

�� U

Y

��

Referring to ����� � ������ it is clear that both U � IR�im�j and Y � IR�il�j have Hankel

structure� By inspection� A is a permutation of B� and thus AAT is a permutation of BBT �

computing

BBT �

�� UUT UY T

Y UT Y Y T

��is equivalent to computing AAT � Since BBT is symmetric� it is sucient to compute only

the block upper triangle of UUT and Y Y T � and to compute only UY T �

To nd UUT � rst compute the rst block row of UUT � This process is O�ij�� The

block Hankel structure of U can be exploited in order to compute successive entries of the

upper triangle of UUT via the recursion

�UUT �r�s � �UUT �r���s�� � �U �r�����U �Ts���� ! �U �r�j�U �Ts�j �����

�i � s � r � �

where ���r�s represents the block in the rth block row and the sth block column of �� The

intuitive interpretation of ����� is that each new entry of UUT can be written as a function

of the entry above and to the left of itself� Also note that many of the outer products on the

right�hand side of ����� have already been performed in the computation of entries in the

rst block row of UUT � and that these outer products are themselves symmetric� further

Page 31: Stanford University · I certify that ha v e read this dissertation and in m y opinion it is fully adequate in scop e and qualit y as a disser tation for the degree of Do ctor of

CHAPTER �� SUBSPACE PREDICTION ��

QR Cholesky

Floating Point Operations ��� ��� ��� ���

Memory �Bytes� ���� �� ��� ��

Table ���� Example computation of R� QR vs� Cholesky method

simplifying the recursion�

The computation of the remaining i��i� �� unique block entries of UUT is thus O�i���

and the overall computation of UUT is O�ij ! i��� An identical procedure applies to the

computation of Y Y T � Similarly� UY T is found by computing the rst block row and the

�rst block column of UY T � This process is also O�ij�� Exploiting the block Hankel structure

of U and Y T � successive entries can be computed via the recursion

�UY T �r�s � �UY T �r���s�� � �U �r�����Y �Ts���� ! �U �r�j�Y �Ts�j �����

�i � r � � �i � s � �

which is identical to ������ except that the ranges of r and s have been expanded� Thus the

computation of BBT is O�ij! i��� and it follows that the computation of AAT is O�ij! i���

Combining the above results� the Cholesky factorization�SVD method has an overall

computational complexity O�ij ! i��� which is less that the QR�SVD algorithm� which is

O�i�j ! i��� In the typical case where j � i� this di�erence is signicant�

An additional advantage of the Cholesky method is the reduced storage requirements�

The recursive method of computing BBT does not require the complete formation of U

or Y � Since any block i j Hankel matrix can be represented by a block vector of length

i!j��� the storage requirements of the Cholesky method is O�i�!j�� which is signicantly

less than the QR storage requirement� which is O�ij� �����

Table ��� compares the resources required for a computation of R via the QR and

Cholesky methods� where i � �� and j � ����� The computations are performed using

Matlab� thus the statistics should be regarded as Matlab specic� Clearly the Cholesky

method� which exploits the Hankel structure of the problem� reduces the resources required

to nd R�

Page 32: Stanford University · I certify that ha v e read this dissertation and in m y opinion it is fully adequate in scop e and qualit y as a disser tation for the degree of Do ctor of

CHAPTER �� SUBSPACE PREDICTION ��

����� Fast Updating And Downdating Of Lw� Lu

The Cholesky method also allows the rapid addition of new experimental data and the rapid

removal of old experimental data� The computational details associated with performing

these updates and downdates are quite complicated� an excellent discussion can be found in

����� An important feature of updating and downdating the Cholesky factorization of AAT

is that the storage requirement is O�i��� which is independent of j� The independence is

especially powerful if j is increasing as new experimental data are collected�

Consider new input�output data �un� yn�� This new data will permit an additional

column to be appended to A forming Anew �hA anew

i� Then

Rnew � chol�AnewATnew� � chol�AAT ! anewa

Tnew�

�� cholupdate�R� anew�

where cholupdate is the rank�� update of the Cholesky factorization� The rank�� update

can be performed extremely quickly� and has computational complexity O�i��� The storage

requirement to store the �old data points in order to form anew is O�i�� while the storage

requirement to retain R is O�i���

It is also possible to remove �old experimental data using a rank�� Cholesky downdate

Rnew � chol�AAT � aoldaTold�

�� choldowndate�R� aold�

This technique also has computational complexity O�i�� ����� Combining the update and

downdate techniques enables �sliding window adaptation� where at each time step� the

oldest experimental data are removed from R� and new data are added� The sliding window

procedure requires the storage of experimental data over the whole �sliding window in order

to enable the removal of experimental data�

In both the strictly updating and the sliding window adaptive techniques� the matrix

R plays the role of maintaining a summary of all past information in order to update the

predictor as new experimental data becomes available� At each time step� new data are

used to update R� then Lw and Lu are computed from R using the SVD�

Page 33: Stanford University · I certify that ha v e read this dissertation and in m y opinion it is fully adequate in scop e and qualit y as a disser tation for the degree of Do ctor of

CHAPTER �� SUBSPACE PREDICTION ��

��� Relation To The Exact Plant Model

If the plant is linear time�invariant� the plant input is persistently exciting� the process noise

�k and sensor noise �k are white� and the data length j ��� it can be shown ���� ��� ���

that the matrices Lw and Lu become closely related to the exact plant model

xk�� � Apxk ! Bpuk ! �k

yk � Cpxk ! Dpuk ! �k

where �k and �k are zero�mean� stationary� ergodic� white noise sequences with covariance

E

���� �r

�r

�� h �Ts �Ts

i�� �

�� Qp Sp

STp Rp

�� rswhere rs is the discrete time impulse function� Note that Ap � IRnp�np � Bp � IRnp�m�

Cp � IRl�np � Dp � IRl�m� �k � IRnp � and �k � IRl� Under these conditions� the matrix Lu

converges to a Toeplitz matrix �Hp� formed from the Markov parameters of the plant�

j �� � Lu � Hp��

�����������

Dp � � � � � �

CpBp Dp � � � � �

CpApBp CpBp Dp � � � ����

������

� � ����

CpAi��p Bp CpA

i��p Bp CpA

i�p Bp � � � Dp

�����������������

Consider the product LwWk where

Wk��

��������������������

��������uk�i uk�i�� � � � uk�i�j��uk�i�� uk�i�� � � � uk�i�j

������ � � � ���

uk�� uk � � � uk�j��

����������������

yk�i yk�i�� � � � yk�i�j��yk�i�� yk�i�� � � � yk�i�j

������ � � � ���

yk�� yk � � � yk�j��

��������

��������������������

������

Page 34: Stanford University · I certify that ha v e read this dissertation and in m y opinion it is fully adequate in scop e and qualit y as a disser tation for the degree of Do ctor of

CHAPTER �� SUBSPACE PREDICTION ��

Then under the same conditions� the product LwWk converges to the product of the plant

extended observability matrix �#p� and a matrix of state estimates

j �� � LwWk � #pbX �

��������Cp

CpAp

���

CpAi��p

��������h bxk bxk�� � � � bxk�j��

i������

The state estimates � bxk bxk�� � � � bxk�j�� � are equivalent to those produced by j inde�

pendent Kalman lters� each acting on a column of Wk� A more complete discussion can be

found in ����� The underlying idea is that the subspace technique simultaneously recovers

the true plant model and Kalman estimates of the plant states� This result will be used in

Chapter � to relate the model free subspace based H� control law to the model based H�control law�

��� Summary

The important results of this chapter are�

� A fast method of calculating the subspace predictor Lw� Lu from experimental data

� A fast method of updating Lw� Lu when new experimental data are available� and�or

when old experimental data must be removed

� An expression for the optimal subspace estimate of the vector y ����� and

� Expressions describing the convergence properties of the subspace predictor as the

amount of experimental data tends toward innity ������� �������

Page 35: Stanford University · I certify that ha v e read this dissertation and in m y opinion it is fully adequate in scop e and qualit y as a disser tation for the degree of Do ctor of

Chapter �

Model Free Subspace Based H�

Control

This chapter utilizes the subspace predictor of Chapter � to derive several novel H��optimal

output feedback controllers� All control laws utilize nite horizon cost functions� The term

�model free is somewhat of a misnomer in that Lw and Lu can be considered to form a

high order plant model� however the terminology is retained to be consistent with previous

literature� for example ���� ���� The important distinction is that traditional plant models

are not used�

Section ��� reviews the concept of mixed sensitivity H� loop shaping design� Section ���

describes the main result of this thesis� the derivation of a strictly causal� model free� sub�

space based� level�� central H� controller� Section ��� derives a similar control law� where

the assumption of strict causality of the control law is relaxed� i�e� the present reference

signal �rk� is known� Finally� Section ��� describes the control law when a multiplicative or

additive uncertainty is included in the performance specication�

��� Output Feedback Mixed Sensitivity Cost Function

Consider the discrete time output feedback structure shown in Figure ���� An H� mixed

sensitivity criteria is commonly used to specify the desired minimum control performance

��

Page 36: Stanford University · I certify that ha v e read this dissertation and in m y opinion it is fully adequate in scop e and qualit y as a disser tation for the degree of Do ctor of

CHAPTER �� MODEL FREE SUBSPACE BASED H� CONTROL ��

-y�t�u�t�

PK

e�t�

r�t�

Figure ���� Output feedback block diagram

and desired maximum control usage� One such specication is�� W�S

W�Q

��� � � �����

where S � �I ! PK��� � Ger� Q � K�I ! PK��� � Gur� and W� and W� are weighting

functions chosen by the engineer ����� Small S up to a desired cuto� frequency corresponds

to y tracking r well at frequencies below the cuto� frequency� Limiting the magnitude of

Q� especially at high frequencies� limits the control e�ort used� The selection of W� and

W� species these desires� W� is often chosen to be large at low frequency and small at

high frequency� while W� is typically chosen to be small at low frequency� and large at high

frequency� In order for the problem to be well posed� W� and W� must have nite gain

over all frequency� As a consequence� W� and W� must have relative McMillan degree ��

or equivalently� full�rank direct feedthrough terms� and must have at least as many output

channels as input channels� typically� W� and W� are square� It is important to note that

for each gain bound �� there is a �possibly empty� set of control laws that satisfy ������

An equivalent time domain discrete time expression for the specication ����� also exists�

Let

z��

�� zw�

zw�

�� �

�� w� � ew� � u

�� �

�� w� � �r � y�

w� � u

�� �����

where w� and w� are the respective discrete impulse responses of the discrete time weighting

functions W� and W�� With ������ ����� can be written

suprJ���� � �

Page 37: Stanford University · I certify that ha v e read this dissertation and in m y opinion it is fully adequate in scop e and qualit y as a disser tation for the degree of Do ctor of

CHAPTER �� MODEL FREE SUBSPACE BASED H� CONTROL ��

where

J������

�Xt��

�zTt zt � ��rTt rt

�and the system is assumed to be at rest at t � � ����� It is important that the inequality

be satised when the system is at rest at t � � so that the measured energy in zt is strictly

due to system excitation by the inputs rt� and is not due to energy stored in the system

prior to t � �� The equivalent nite horizon problem is

suprJ��� � � �����

where

J�����

i��Xt��

�zTt zt � ��rTt rt

������

and the system is again assumed to be at rest at t � �� Note that the length of the horizon

�i� can be chosen arbitrarily� In this thesis� the horizon �i� is identical to the prediction

horizon in Section ��� �i�� so that ����� can be used to calculate J���� Finally� the central �or

minimum entropy� or minimax� nite horizon H� controller is the controller that satises

minu

suprJ��� � � �����

whenever the system is at rest at t � � �����

��� Subspace Based Finite Horizon H� Control

Figure ��� shows the generalized plant that results when the subspace predictor ����� is

coupled to the weighting functions W� and W� to represent the mixed sensitivity cost ������

The block Lwwp represents the response of the predictor due to past excitation� while the

Lu block represents response due to the inputs u� The level�� H� control design problem is

to choose a control u such that the nite horizon H� gain from r to z is at most magnitude

�� This section derives the condition on � that ensures that the problem is feasible� and

computes the central solution for this H� control problem� The result is summarized in

the following theorem�

Theorem ���

If measurements of the plant input �u�� plant output �y�� and reference �r� are available for

Page 38: Stanford University · I certify that ha v e read this dissertation and in m y opinion it is fully adequate in scop e and qualit y as a disser tation for the degree of Do ctor of

CHAPTER �� MODEL FREE SUBSPACE BASED H� CONTROL ��

-

W�

W�

u

r

Lu

Lwwp

zw�

zw�

�y

Figure ���� Generalized plant for non�robust H� control design

times fk � i� � � � � k � �� k � �g� then the strictly causal� �nite horizon� model free� subspace

based� level��� central H� control for times fk� � � � � k ! i� �g is

uopt � ��LTufQ�Lu ! Q��

��

�������LTufQ�Lw

�T��LT

u ����fQ� ! I�HT� #�

�T�HT

� #�

�T������T �����

wp

xw�

xw�

�����k

�����

fQ��� �Q��� � ���I��� �����

provided that

� � �min��

rh�Q��� ! LuQ

��� LT

u ���i

�����

where

� uopt is the vector of optimal future plant inputs at times fk� � � � � k ! i� �g

uopt��

�����uk���

uk�i��

����� �����

� The discrete LTI weighting �lters W� and W� have minimal state space representation

�xw��k�� � Aw�

�xw��k ! Bw�

�rk � yk�

�zw��k � Cw�

�xw��k ! Dw�

�rk � yk�

Page 39: Stanford University · I certify that ha v e read this dissertation and in m y opinion it is fully adequate in scop e and qualit y as a disser tation for the degree of Do ctor of

CHAPTER �� MODEL FREE SUBSPACE BASED H� CONTROL ��

�xw��k�� � Aw�

�xw��k ! Bw�

uk

�zw��k � Cw�

�xw��k ! Dw�

uk

with Aw�� IRnw��nw� � Dw�

� IRlw��l� Aw�� IRnw��nw� � and Dw�

� IRlw��m

� H� and H� are lower triangular Toeplitz matrices formed from the impulse responses

�Markov parameters� of the discrete weighting �lters W� and W�

H���

�����������

Dw�� � � � � �

Cw�Bw�

Dw�� � � � �

Cw�Aw�

Bw�Cw�

Bw�Dw�

� � � ����

������

� � ����

Cw�Ai��w�

Bw�Cw�

Ai��w�

Bw�Cw�

Ai�w�

Bw�� � � Dw�

�����������������

H���

�����������

Dw�� � � � � �

Cw�Bw�

Dw�� � � � �

Cw�Aw�

Bw�Cw�

Bw�Dw�

� � � ����

������

� � ����

Cw�Ai��w�

Bw�Cw�

Ai��w�

Bw�Cw�

Ai�w�

Bw�� � � Dw�

�����������������

� Q��� HT

� H�� Q��� HT

� H�

� #� and #� are the extended observability matrices formed from the impulse responses

of the weighting �lters W� and W�

#���

��������Cw�

Cw�Aw�

���

Cw�Ai��w�

�������� #���

��������Cw�

Cw�Aw�

���

Cw�Ai��w�

�������� ������

Page 40: Stanford University · I certify that ha v e read this dissertation and in m y opinion it is fully adequate in scop e and qualit y as a disser tation for the degree of Do ctor of

CHAPTER �� MODEL FREE SUBSPACE BASED H� CONTROL ��

tds

�Past�

tdf

�Future��Control Horizon�

tk

Present T ime

tk�i��

Figure ���� Time line for H� control design

� �wp�k is a vector made up of past plant inputs and outputs

�wp�k��

��������������

uk�i���

uk��yk�i���

yk��

��������������������

Despite the apparent complexity of the control law ������ ������ close examination reveals

that the control law is simply a matrix operating on the data �wp�k and states of the

weighting functions �xw��k� �xw�

�k� The achieveable performance ����� is a function of

experimental data through Lu� and a function of the weighting functions W� and W� through

Q� and Q�� Figure ��� claries the time line for Theorem ���� Data used to derive the

subspace predictor are collected from tds �data start� to tdf �data nish�� the present time

is tk� and the control horizon is from tk to tk�i���

The following mathematical results will be used in the proof of Theorem ��� �����

Lemma ���

If A��� � A��� � and

�� A� A�

AT� A�

���� exist� then

Page 41: Stanford University · I certify that ha v e read this dissertation and in m y opinion it is fully adequate in scop e and qualit y as a disser tation for the degree of Do ctor of

CHAPTER �� MODEL FREE SUBSPACE BASED H� CONTROL ��

�� A� A�

AT� A�

���� �

�� �A� �A�A��� AT

� ��� ��A� �A�A��� AT

� ���A�A���

��A� �AT�A

��� A��

��AT�A

��� �A� �AT

�A��� A��

��

�� ������

Lemma ���

If A��� C��� and �A�� ! BTC��B��� exist� then

A�ABT �BABT ! C���BA � �A�� ! BTC��B��� ������

ABT �BABT ! C��� � �A�� ! BTC��B���BTC�� ������

Proof of Theorem ���

Let k be the present time� and dene

zw�

��

������zw�

�k���

�zw��k�i��

����� � IRilw� r��

�����rk���

rk�i��

����� � IRil u��

�����uk���

uk�i��

����� � IRim

zw�

��

������zw�

�k���

�zw��k�i��

����� � IRilw� y��

�����yk���

yk�i��

����� � IRil

then ����� can be written in vector form

minu

suprJ��� � � ������

where

J��� � zTw�zw�

! zTw�zw�

� ��rT r ������

and the system is assumed to be at rest at time k� Let w�nr � IRilw� and w�nr � IRilw� be

the vectors of the natural responses of W� and W� due to �xw��k and �xw�

�k respectively�

Page 42: Stanford University · I certify that ha v e read this dissertation and in m y opinion it is fully adequate in scop e and qualit y as a disser tation for the degree of Do ctor of

CHAPTER �� MODEL FREE SUBSPACE BASED H� CONTROL ��

Then �� zw�

zw�

�� �

�� H��r � y� ! w�nr

H�u ! w�nr

��Using the denitions of #� and #� ������� w�nr and w�nr are�� w�nr

w�nr

�� �

�� #��xw��k

#��xw��k

��thus �� zw�

zw�

�� �

�� H��r � y� ! #��xw��k

H�u ! #��xw��k

�� ������

Using ������� the strictly causal estimate of y ����� from Section ��� can also be written in

vector form by � Lw�wp�k ! Luu ������

Substituting the estimate of y ������ into ������ results in�� zw�

zw�

�� �

�� H� �H�Lu �H�Lw #� �

� H� � � #�

�� x ������

where

x��

����������

r

u

�wp�k

�xw��k

�xw��k

����������Substituting ������ into ������ and ������ produces the objective

minu

suprxT

����������

Q� � ��I �Q�Lu �Q�Lw HT� #� �

�LTuQ� LT

uQ�Lu !Q� LTuQ�Lw �LT

uHT� #� HT

� #�

�LTwQ� LT

wQ�Lu LTwQ�Lw �LT

wHT� #� �

#T�H� �#T

�H�Lu �#T�H�Lw #T

� #� �

� #T�H� � � #T

� #�

����������x � � ������

whenever the system is at rest at time k�

Page 43: Stanford University · I certify that ha v e read this dissertation and in m y opinion it is fully adequate in scop e and qualit y as a disser tation for the degree of Do ctor of

CHAPTER �� MODEL FREE SUBSPACE BASED H� CONTROL ��

The necessary condition for simultaneously maximizing with respect to r and minimizing

with respect to u �a stationary point� is found by di�erentiating the left�hand side of ������

with respect to r and u� and setting the derivative to zero ��� i�e�

�J���

�� r

u

�� � � ������

or

�� Q� � ��I �Q�Lu �Q�Lw HT� #� �

�LTuQ� LT

uQ�Lu ! Q� LTuQ�Lw �LT

uHT� #� HT

� #�

������������

r

u

�wp�k

�xw��k

�xw��k

����������� �

which implies

�� Q� � ��I �Q�Lu

�LTuQ� LT

uQ�Lu ! Q�

���� r

u

�� �

�� Q�Lw �HT� #� �

�LTuQ�Lw LT

uHT� #� �HT

� #�

�������

wp

xw�

xw�

�����k

������

The sucient condition for the optimization requires that the Hessian of the left�hand side

of ������ satisfy the saddle condition for a maximum in r and minimum in u ���� i�e� im

of the eigenvalues of the Hessian must be positive and il of the eigenvalues of the Hessian

must be negative� The Hessian is

Hhess��

��J���

�� r

u

����

�� Q� � ��I �Q�Lu

�LTuQ� LT

uQ�Lu ! Q�

��

Also let �� A� A�

AT� A�

�� ���� Q� � ��I �Q�Lu

�LTuQ� LT

uQ�Lu ! Q�

�� � Hhess

Note that Q� � QT� and Q� � QT

� are guaranteed to be positive denite �as opposed to

positive semi�denite� since the relative degree condition on W� and W� implies that D�

Page 44: Stanford University · I certify that ha v e read this dissertation and in m y opinion it is fully adequate in scop e and qualit y as a disser tation for the degree of Do ctor of

CHAPTER �� MODEL FREE SUBSPACE BASED H� CONTROL ��

and D� are full rank� The positivity of Q� and Q� implies A� � �� which implies A��� exists�

Thus the Hessian can be written using the Schur decomposition

Hhess �

�� I A�A���

� I

���� A� �A�A��� AT

� �

� A�

���� I �

A��� AT� I

�� ������

Let

d��

�� I �

A��� AT� I

���� r

u

�� �

�� r

A��� AT� r ! u

�� ������

then second derivative of the cost in thehrT uT

iTdirection can be rewritten as

Hhess � dT

�� A� �A�A��� AT

� �

� A�

�� d ������

The condition of being at a saddle point can be viewed equally well in the d coordinates�

Thus the saddle condition required to simultaneously maximize over r and minimize over u

is that im of the eigenvalues of �� A� �A�A��� AT

� �

� A�

�� ������

must be positive� and the remaining il eigenvalues must be negative� Since A� � �� and

A� � IRim�im� A� provides the required im positive eigenvalues� As a result� the saddle

condition reduces to

A� �A�A��� AT

� � � ������

or

Q� �Q�Lu�LTuQ�Lu ! Q��

��LTuQ� � ��I ������

Using ������� ������ is

�Q��� ! LuQ��� LT

u ��� � ��I

or nally

� �

rh�Q��� ! LuQ

��� LT

u ���i �min

Page 45: Stanford University · I certify that ha v e read this dissertation and in m y opinion it is fully adequate in scop e and qualit y as a disser tation for the degree of Do ctor of

CHAPTER �� MODEL FREE SUBSPACE BASED H� CONTROL ��

The condition for the saddle ������ also establishes that the matrix on the left�hand side

of ������ is invertible� Thus the worst case r and the optimum u are given by

�� rwc

uopt

�� �

�� Q� � ��I �Q�Lu

�LTuQ� LT

uQ�Lu ! Q�

���� �� Q�Lw �HT� #� �

�LTuQ�Lw LT

uHT� #� �HT

� #�

�������

wp

xw�

xw�

�����k

������

Left multiplying ������ in Lemma ��� by � � I � produces the relation

h� I

i �� A� A�

AT� A�

���� � �A� �AT�A

��� A��

��h�AT

�A��� I

i������

Using ������� the second row of ������ can be written as

uopt ��LTuQ�Lu ! Q� � LT

uQ��Q� � ��I���Q�Lu

��� �hLTuQ��Q� � ��I��� I

i �� Q�Lw �HT� #� �

�LTuQ�Lw LT

uHT� #� �HT

� #�

�������

wp

xw�

xw�

�����k

or

uopt ��LTu

�Q� �Q��Q� � ��I���Q�

�Lu ! Q�

��� ���������LT

u

Q� �Q��Q� � ��I���Q�

�Lw

�T�LTu

�Q��Q� � ��I��� ! I�HT

� #�

�T��HT

� #�

�T������T �����

wp

xw�

xw�

�����k

������

Using ������

Q� �Q��Q� � ��I���Q� � �Q��� � ���I��� � fQ� ������

Using ������

�Q��Q� � ��I��� � �Q��� � ���I������I � ���fQ� ������

Page 46: Stanford University · I certify that ha v e read this dissertation and in m y opinion it is fully adequate in scop e and qualit y as a disser tation for the degree of Do ctor of

CHAPTER �� MODEL FREE SUBSPACE BASED H� CONTROL ��

Substituting ������ and ������ into the control law ������ produces

uopt � ��LTufQ�Lu ! Q��

��

�������LTufQ�Lw

�T��LT

u ����fQ� ! I�HT� #�

�T�HT

� #�

�T������T �����

wp

xw�

xw�

�����kfQ� � �Q��� � ���I���

provided fQ� exists� In general �Q��� � ���I� could have both positive and negative eigen�

values� and for some values of �� �Q��� � ���I� could be singular� In this case� ������ must

be used to calculate uopt�

All that remains is to determine if the inequality on the right�hand side of ������ is

satised� Setting all system states at time k to zero� i�e� �wp�k � �� �xw��k � �� and

�xw��k � �� ������ becomes

�� rwc

uopt

��T �� Q� � ��I �Q�Lu

�LTuQ� LT

uQ�Lu ! Q�

���� rwc

uopt

�� � � ������

and ������ reduces to �� rwc

uopt

�� � �

thus ������ is satised� �

��� Model Free Subspace Based H� Control With rk Known

In the previous section� it is assumed that rk is unknown when fuk� � � � � uk�i��g are cal�

culated� In this section� the requirement of a strictly causal controller is removed� it is

assumed that rk is known� i�e� the desired trajectory at time k is available before time k�

The resulting control law ������ � ������� is only slightly di�erent from the strictly causal

control law ������ ������ The advantage of ������ � ������ is that a slightly better perfor�

mance is achieved� as is shown in Theorem ��� at the end of this section� The cost to achieve

this slightly better performance is that the desired reference rk needs to be known prior

to implementing the control at time k� implementation issues usually govern whether the

strictly causal or the causal control law can be used�

Page 47: Stanford University · I certify that ha v e read this dissertation and in m y opinion it is fully adequate in scop e and qualit y as a disser tation for the degree of Do ctor of

CHAPTER �� MODEL FREE SUBSPACE BASED H� CONTROL ��

Referring to ������� let

hH�� H��

i �� H� ������

H�� � IRilw��l

H�� � IRilw���i���l

that is� H�� is the rst block column of H�� and H�� contains the remaining columns of H��

For the purpose of this section� let r � IR�i���l� and Q���� HT

��H��� Note that Q�� � ��

Then ������ can be written�� zw�

zw�

�� �

�� H�� H�� �H�Lu �H�Lw #� �

� � H� � � #�

��xwith x broken into six subvectors

x �

�������������

rk

r

u

�wp�k

�xw��k

�xw��k

�������������These denitions and are used in Theorem ��� and its proof�

Theorem ���

If measurements of the plant input �u� and plant output �y� are available for times fk �i� � � � � k � �� k � �g� and measurements of the reference �r� are available for times fk �i� � � � � k��� kg� then the �nite horizon� model free� subspace based� level�� central H� control

for times fk� � � � � k ! i� �g is

uopt � �LTugQ��Lu ! Q��

��

���������

�LTuH

T� �I �H��Q��H

T���H��

�T��LT

u �Q� �HT� H��Q��H

T��H��Lw

�T�LTuH

T� �I �H��Q��H

T���#�

�T��HT

� #�

�T

���������

T �������rk

�wp�k

�xw��k

�xw��k

�������������

Page 48: Stanford University · I certify that ha v e read this dissertation and in m y opinion it is fully adequate in scop e and qualit y as a disser tation for the degree of Do ctor of

CHAPTER �� MODEL FREE SUBSPACE BASED H� CONTROL ��

gQ���� Q� �Q���Q�� � ��I���Q�� ������

Q���� �Q�� � ��I��� ������

provided that

� � �minc��

rhHT

���I ! H�LuQ��� LT

uHT� ���H��

i������

Outline of Proof of Theorem ���

The proof of Theorem ��� is nearly identical to the proof of Theorem ���� Only some key

equations will be written� The objective is given by

minu

suprxTMx � �

where

M��

�������������

HT��H�� � �� HT

��H�� �HT��H�Lu �HT

��H�Lw HT��#� �

HT��H�� Q�� � ��I �HT

��H�Lu �HT��H�Lw HT

��#� �

�LTuH

T� H�� �LT

uHT� H�� LT

uQ�Lu ! Q� LTuQ�Lw �LT

uHT� #� HT

� #�

�LwHT� H�� �LT

wHT� H�� LT

wQ�Lu LTwQ�Lw �LT

wHT� #� �

#T�H�� #T

�H� �#T�H�Lu �#T

�H�Lw #T� #� �

� � #T�H� � � #T

� #�

�������������The necessary condition ������ implies�� Q�� � ��I �HT

��H�Lu

�LTuH

T� H�� LT

uQ�Lu !Q�

���� r

u

�� �

�� �HT��H�� HT

��H�Lw �HT��#� �

LTuH

T� H�� �LT

uQ�Lw LTuH

T� #� �HT

� #�

���������

rk

�wp�k

�xw��k

�xw��k

�������The sucient condition� given by a saddle condition argument identical to that in the

proof of Theorem ��� is

Q�� � ��I �HT��H�Lu�LT

uQ�Lu ! Q����LT

uHT� H�� � �

Page 49: Stanford University · I certify that ha v e read this dissertation and in m y opinion it is fully adequate in scop e and qualit y as a disser tation for the degree of Do ctor of

CHAPTER �� MODEL FREE SUBSPACE BASED H� CONTROL ��

or

� �q�Q�� �HT

��H�Lu�LTuQ�Lu ! Q����LT

uHT� H��

��

q�HT

���I �H�Lu�LTuH

T� H�Lu ! Q����LT

uHT� �H��

�������

Using ������� ������ can be written

� �

rhHT

���I ! H�LuQ��� LT

uHT� ���H��

i �minc

The remainder of the proof follows the proof of Theorem ���� �

Theorem ��� compares the best achieveable performance of the strictly causal control

law to the best achieveable performance of the causal control law� As expected� the control

law that uses more information can achieve better performance�

Theorem ���

The best achieveable performance of the causal control law ������� is better than or equal to

the best achievable performance of the strictly causal control law ����� i�e�

�min � �minc

Proof of Theorem ���

The best achieveable performance of the strictly causal control law ����� can be expanded

using ������

�min �

rh�Q��� ! LuQ

��� LT

u ���i

�q �Q� �Q�Lu�LT

uQ�Lu ! Q����LTuQ�� ������

Since Q� � HT� H�� ������ can be written

�min �q�HT

� �I �H�Lu�LTuH

T� H�Lu ! Q����LT

uHT� �H�

�������

Page 50: Stanford University · I certify that ha v e read this dissertation and in m y opinion it is fully adequate in scop e and qualit y as a disser tation for the degree of Do ctor of

CHAPTER �� MODEL FREE SUBSPACE BASED H� CONTROL ��

Using ������� ������ is

�min �

rhHT

� �I ! H�LuQ��� LT

uHT� ���H�

iand with ������

�min �

vuuut

���� HT��

HT��

�� �I !H�LuQ��� LT

uHT� ���

hH�� H��

i��

vuuutmaxkvk��

hvT� vT�

i �� HT��

HT��

�� �I ! H�LuQ��� LT

uHT� ���

hH�� H��

i �� v�

v�

���

rmaxkvk��

�vT� HT�� ! vT� H

T����I ! H�LuQ

��� LT

uHT� ����H��v� ! H��v��

where v��hvT� vT�

iT� and v� and v� are appropriately sized vectors� Setting v� � �

results in

�min �r

maxkvk��

�vT� HT�� ! vT� H

T����I ! H�LuQ

��� LT

uHT� ����H��v� ! H��v��

�s

maxkv�k��

hvT� H

T���I !H�LuQ

��� LT

uHT� ���H��v�

i�

rhHT

���I !H�LuQ��� LT

uHT� ���H��

i �minc

thus

�min � �minc

��� Robust Subspace Based Finite Horizon H� Control

The derivations of the subspace based H� control laws in the presence of multiplicative

or additive uncertainties are nearly identical to the derivation of Theorem ���� To avoid

repetition� only the outlines of the proofs of each result will be presented�

Page 51: Stanford University · I certify that ha v e read this dissertation and in m y opinion it is fully adequate in scop e and qualit y as a disser tation for the degree of Do ctor of

CHAPTER �� MODEL FREE SUBSPACE BASED H� CONTROL ��

-

u

r

Lu

W�

W�

W�

s

Lwwp

zw�

zw�

zw�

�y

W�

s�

Figure ���� Generalized plant for robust H� control design� multiplicative uncertainty

����� Multiplicative Uncertainty

Figure ��� shows the generalized plant of Figure ��� with the addition of a frequency

weighted multiplicative uncertainty $� The weighting functions W� and W allow the

engineer to shape the uncertainty so as to capture the uncertainty�s frequency depen�

dence� $ has lw�inputs and mw�

outputs� The predictor now takes the form by �

�I ! W�q�$�q�W��q���Lwwp ! Luu�� where q is the forward shift operator�

The robust level�� H� control design problem is to choose a control u such that the

nite horizon H� gain fromhrT sT

iTto z is at most magnitude �� Theorem ��� states

the central solution to this problem�

Theorem ���

If measurements of the plant input �u�� plant output �y�� and reference �r� are available for

times fk � i� � � � � k � �� k � �g� then the robust� strictly causal� �nite horizon� model free�

subspace based� level�� central H� control for times fk� � � � � k ! i� �g is given by

�����rwc

swc

uopt

����� �

�����Q� � ��I �Q�H �Q�Lu

�HT Q� HT

Q�H � ��I HT Q�Lu

�LTuQ� LT

uQ�H LTu �Q� ! Q��Lu ! Q�

�������

Page 52: Stanford University · I certify that ha v e read this dissertation and in m y opinion it is fully adequate in scop e and qualit y as a disser tation for the degree of Do ctor of

CHAPTER �� MODEL FREE SUBSPACE BASED H� CONTROL ��

�����Q�Lw �HT

� #� � � Q�#

�HT Q�Lw HT

HT� #� � � �HT

Q�#

�LTu �Q� ! Q��Lw LT

uHT� #� �HT

� #� �LTuH

T� #� �LT

uQ�#

�����

����������

wp

xw�

xw�

xw�

xw�

����������k

������

provided that

� � �minm��

rh�I !Q�outer��Q

��� ! Lu�Q� ! LT

uQ�Lu���LTu ���

i������

where

� The discrete LTI weighting �lters W� and W have minimal state space representation

�xw��k�� � Aw�

�xw��k ! Bw�

yk

�zw��k � Cw�

�xw��k ! Dw�

yk

�xw��k�� � Aw�

�xw��k ! Bw�

sk

s�

k � Cw��xw�

�k ! Dw�sk

with Aw�� IRnw��nw� � Dw�

� IRlw��l� Aw�� IRnw��nw� � and Dw�

� IRl�mw�

� H� and H are lower triangular Toeplitz matrices formed from the impulse responses

�Markov parameters� of the discrete weighting �lters W� and W

H���

�����������

Dw�� � � � � �

Cw�Bw�

Dw�� � � � �

Cw�Aw�

Bw�Cw�

Bw�Dw�

� � � ����

������

� � ����

Cw�Ai��w�

Bw�Cw�

Ai��w�

Bw�Cw�

Ai�w�

Bw�� � � Dw�

�����������

H��

�����������

Dw�� � � � � �

Cw�Bw�

Dw�� � � � �

Cw�Aw�

Bw�Cw�

Bw�Dw�

� � � ����

������

� � ����

Cw�Ai��w�

Bw�Cw�

Ai��w�

Bw�Cw�

Ai�w�

Bw�� � � Dw�

�����������

Page 53: Stanford University · I certify that ha v e read this dissertation and in m y opinion it is fully adequate in scop e and qualit y as a disser tation for the degree of Do ctor of

CHAPTER �� MODEL FREE SUBSPACE BASED H� CONTROL ��

� Q��� HT

� H� � �� Q�outer�� HH

T � �

� #� and # are the extended observability matrices formed from the impulse responses

of the weighting �lters W� and W

#���

��������Cw�

Cw�Aw�

���

Cw�Ai��w�

�������� #��

��������Cw�

Cw�Aw�

���

Cw�Ai��w�

���������

Lemma ���� also known as the Schur complement� will be used in the proof of Theorem

��� ����

Lemma ���

If

X��

�� A B

BT C

�� � XT C � �

then

X � � � A�BC��BT � � ������

Similarly� if A � � then

X � � � C �BTA��B � � ������

Outline of Proof of Theorem ���

Using arguments identical to those used in the proof of Theorem ���� the performance

variables are�����zw�

zw�

zw�

����� �

�����H� �H�H �H�Lu �H�Lw #� � � �H�#

� � H� � � #� � �

� � H�Lu H�Lw � � #� �

����� x ������

Page 54: Stanford University · I certify that ha v e read this dissertation and in m y opinion it is fully adequate in scop e and qualit y as a disser tation for the degree of Do ctor of

CHAPTER �� MODEL FREE SUBSPACE BASED H� CONTROL ��

where

x��

�������������������

r

s

u

�wp�k

�xw��k

�xw��k

�xw��k

�xw��k

�������������������

������

The objective ����� is

minu

supr�s

xThM� M�

ix � � ������

where

M���

�������������������

Q� � ��I �Q�H �Q�Lu

�HT Q� HT

Q�H � ��I HT Q�Lu

�LTuQ� LT

uQ�H LTu �Q� !Q��Lu ! Q�

�LTwQ� LT

wQ�H LTw�Q� !Q��Lu

#T�H� �#T

�H�H �#T�H�Lu

� � #T�H�

� � #T�H�Lu

�#TQ� #T

Q�H #TQ�Lu

�������������������

M���

�������������������

�Q�Lw HT� #� � � �Q�#

HT Q�Lw �HT

HT� #� � � HT

Q�#

LTu �Q� ! Q��Lw �LT

uHT� #� HT

� #� LTuH

T� #� LT

uQ�#

LTw�Q� ! Q��Lw �LT

wHT� #� � LT

wHT� #� LT

wQ�#

�#T�H�Lw #T

� #� � � �#T�H�#

� � #T� #� � �

#T�H�Lw � � #T

� #� �

#TQ�Lw �#T

HT� #� � � #T

Q�#

�������������������when the system is at rest at time k�

The necessary condition ������� i�e� taking the derivative and setting it equal to zero�

Page 55: Stanford University · I certify that ha v e read this dissertation and in m y opinion it is fully adequate in scop e and qualit y as a disser tation for the degree of Do ctor of

CHAPTER �� MODEL FREE SUBSPACE BASED H� CONTROL ��

results in the control law�����rwc

swc

uopt

����� �

�����Q� � ��I �Q�H �Q�Lu

�HT Q� HT

Q�H � ��I HT Q�Lu

�LTuQ� LT

uQ�H LTu �Q� ! Q��Lu ! Q�

�������

�����Q�Lw �HT

� #� � � Q�#

�HT Q�Lw HT

HT� #� � � �HT

Q�#

�LTu �Q� ! Q��Lw LT

uHT� #� �HT

� #� �LTuH

T� #� �LT

uQ�#

�����

����������

wp

xw�

xw�

xw�

xw�

����������k

The sucient �saddle� condition is that

Hhess��

�����Q� � ��I �Q�H �Q�Lu

�HT Q� HT

Q�H � ��I HT Q�Lu

�LTuQ� LT

uQ�H LTu �Q� ! Q��Lu ! Q�

����� ������

must have im positive eigenvalues while the remaining i�l ! mw�� eigenvalues must be

negative� The im positive eigenvalues are associated with the minimization in ������� while

the i�l!mw�� negative eigenvalues are associated with the supremum in ������� Recognizing

that LTu �Q�!Q��Lu!Q� is positive� ������ can be broken up using the Schur decomposition

of Section ��� with

A���

�� Q� � ��I �Q�H

�HT Q� HT

Q�H � ��I

��A�

��

�� �Q�Lu

HT Q�Lu

��A�

�� LT

u �Q� ! Q��Lu ! Q�

Using the change of coordinates argument ������ � ������� and again noting that A� � �

and A� � IRim�im� the eigenvalue condition on ������ requires ������ or

�A� ! A�A��� AT

� � �

Page 56: Stanford University · I certify that ha v e read this dissertation and in m y opinion it is fully adequate in scop e and qualit y as a disser tation for the degree of Do ctor of

CHAPTER �� MODEL FREE SUBSPACE BASED H� CONTROL ��

which can be written �� ��I �X XH

HT X ��I �HT

XH

�� � � ������

where

X�� Q� �Q�Lu�LT

u �Q� ! Q��Lu ! Q����LT

uQ�

� Q� �Q�Lu�LTuQ�Lu ! �Q� ! LT

uQ�Lu����LTuQ� ������

Using ������� i�e� Lemma ���� ������ is

X � �Q��� ! Lu�Q� ! LTuQ�Lu���LT

u ��� ������

By inspection� ������ implies X � XT � �� Referring to ������� it is clear that

��I �HT XH � � ������

is necessary for ������ to be satised� Thus it is possible to take the Schur complement

������ of ������� resulting in

��I �X �XH���I �HT

XH���HT

X � �

or

X �XH

�HT

XH ! ����I����

HT X � ��I ������

Applying ������ to ������ results in

�X�� � ���HH

T

���� ��I

or ���X�� �Q�outer

���� I ������

Since X � �� the Schur complement ������ of ������ is�� ��I HT

H X��

�� � � ������

Page 57: Stanford University · I certify that ha v e read this dissertation and in m y opinion it is fully adequate in scop e and qualit y as a disser tation for the degree of Do ctor of

CHAPTER �� MODEL FREE SUBSPACE BASED H� CONTROL ��

Since ��I � �� the Schur complement ������ of ������ is

X�� � ���HHT � �

or

��X�� �Q�outer � � ������

The inequality ������ implies ������ can be written as

I � ��X�� �Q�outer

�I ! Q�outer�X � ��Iq ��I !Q�outer�X� � �

or nally

� �

rh�I ! Q�outer��Q

��� ! Lu�Q� ! LT

uQ�Lu���LTu ���

i �minm

The remainder of the proof follows from the proof of Theorem ���� �

It is expected that the robust design should produce a lower performance control law

than the non�robust design� as the role of the uncertainty in Figure ��� is to trade the

maximum achieveable performance in return for robustness� Theorem ��� formalizes this

notion�

Theorem ���

If �minm is de�ned as in ������ then

�minm � �min

where �min is associated with the non�robust design ����� �

Proof of Theorem ���

Since

Q� ! LTuQ�Lu � Q� � �

Page 58: Stanford University · I certify that ha v e read this dissertation and in m y opinion it is fully adequate in scop e and qualit y as a disser tation for the degree of Do ctor of

CHAPTER �� MODEL FREE SUBSPACE BASED H� CONTROL ��

then

Q��� � �Q� ! LTuQ�Lu���

LuQ��� LT

u � Lu�Q� ! LTuQ�Lu���LT

u

Q��� ! LuQ��� LT

u � Q��� ! Lu�Q� ! LTuQ�Lu���LT

u

�Q��� ! Lu�Q� ! LTuQ�Lu���LT

u ��� � �Q��� ! LuQ��� LT

u ���

thus

�minm �

rh�I ! Q�outer��Q

��� ! Lu�Q� ! LT

uQ�Lu���LTu ���

i�

rh�I ! Q�outer��Q

��� ! LuQ

��� LT

u ���i

�rh�Q��� ! LuQ

��� LT

u ���i

�min

that is� �minm � �min� �

Finally� Theorem ��� relates the robust control law �multiplicative uncertainty� to the

non�robust control law�

Theorem ���

If the weighting functions associated with the uncertainty block �W� and W� are set to zero�

then the robust H� control law �multiplicative uncertainty� reduces to the non�robust H�control law� �

Proof of Theorem ���

If W� � �� then H� � � and #� � � if W � �� then H � � and # � �� Then the

Page 59: Stanford University · I certify that ha v e read this dissertation and in m y opinion it is fully adequate in scop e and qualit y as a disser tation for the degree of Do ctor of

CHAPTER �� MODEL FREE SUBSPACE BASED H� CONTROL ��

performance variables ������ are

�����zw�

zw�

zw�

����� �

�����H� � �H�Lu �H�Lw #� � � �

� � H� � � #� � �

� � � � � � � �

�����

�������������������

r

s

u

�wp�k

�xw��k

�xw��k

�xw��k

�xw��k

�������������������

�����H� �H�Lu �H�Lw #� �

� H� � � #�

� � � � �

�����

����������

r

u

�wp�k

�xw��k

�xw��k

����������������

Note that ������ is nearly identical to the expression for the performance variables in the

non�robust case ������� If

x��

����������

r

u

�wp�k

�xw��k

�xw��k

����������then the robust performance specication ������ is given by

minu

supr�s

xT

����������

Q� � ��I �Q�Lu �Q�Lw HT� #� �

�LTuQ� LT

uQ�Lu ! Q� LTuQ�Lw �LT

uHT� #� HT

� #�

�LTwQ� LT

wQ�Lu LTwQ�Lw �LT

wHT� #� �

#T�H� �#T

�H�Lu �#T�H�Lw #T

� #� �

� #T�H� � � #T

� #�

����������x� ��sT s � �

������

when the system is at rest at time k� Taking the supremum over s� it is clear that the

optimum choice for s is s � �� any other choice would result in a decrease of the left�hand

side of ������� With s � �� ������ is identical to the non�robust control objective �������

Page 60: Stanford University · I certify that ha v e read this dissertation and in m y opinion it is fully adequate in scop e and qualit y as a disser tation for the degree of Do ctor of

CHAPTER �� MODEL FREE SUBSPACE BASED H� CONTROL ��

-

u

r

Lu

W�

W�

W�

s

Lwwp

zw�

zw�

zw�

�y

W�

s�

Figure ���� Generalized plant for robust H� control design� additive uncertainty

Similarly when W� � � and W � �� ������ is

�minm �

rh�I ! Q�outer��Q

��� ! Lu�Q� ! LT

uQ�Lu���LTu ���

i�

rh�Q��� ! LuQ

��� LT

u ���i

�min

It follows that the robust control law of Theorem ��� collapses to the non�robust control

law of Theorem ��� when W� � � and W � �� �

����� Additive Uncertainty

Figure ��� shows the generalized plant of Figure ���� modied to include an additive uncer�

tainty $� In this case� the predictor takes the form by � Lwwp ! Luu ! W�q�$�q�W��q�u�

The robust level�� H� control design problem is to choose a control u such that the nite

horizon H� gain fromhrT sT

iTto z is at most magnitude �� Theorem ��� states the

central solution to the problem�

Theorem ���

Assume the generalized plant of Figure ���� If measurements of the plant input �u�� plant

Page 61: Stanford University · I certify that ha v e read this dissertation and in m y opinion it is fully adequate in scop e and qualit y as a disser tation for the degree of Do ctor of

CHAPTER �� MODEL FREE SUBSPACE BASED H� CONTROL ��

output �y�� and reference �r� are available for times fk� i� � � � � k��� k��g� then the robust�

strictly causal� �nite horizon� model free� subspace based� level��� central H� control for

times fk� � � � � k ! i� �g is given by

�����rwc

swc

uopt

����� �

�����Q� � ��I �Q�H �Q�Lu

�HT Q� HT

Q�H � ��I HT Q�Lu

�LTuQ� LT

uQ�H LTuQ�Lu ! Q� ! Q�

�������

�����Q�Lw �HT

� #� � � Q�#

�HT Q�Lw HT

HT� #� � � �HT

Q�#

�LTuQ�Lw LT

uHT� #� �HT

� #� �HT� #� �LT

uQ�#

�����

����������

wp

xw�

xw�

xw�

xw�

����������k

������

provided that

� � �mina��

rh�I ! Q�outer��Q

��� ! Lu�Q� !Q����LT

u ���i

������

Note that the state space system corresponding to the weighting function W� must have

dimensions Dw�� IRlw��m� Again� �mina � �min where �min is associated with the non�

robust design ������ Also� the robust control law with additive uncertainty reduces to the

non�robust control law when W� � � and W � ��

Outline of Proof of Theorem ���

The proof of Theorem ��� is identical to the proof of Theorem ���� with the substitution�����zw�

zw�

zw�

����� �

�����H� �H�H �H�Lu �H�Lw #� � � �H�#

� � H� � � #� � �

� � H� � � � #� �

����� x

for the performance variables�

Page 62: Stanford University · I certify that ha v e read this dissertation and in m y opinion it is fully adequate in scop e and qualit y as a disser tation for the degree of Do ctor of

CHAPTER �� MODEL FREE SUBSPACE BASED H� CONTROL ��

In the additive case

X�� �Q��� ! Lu�Q� ! Q��

��LTu ���

Theorem ��� will be used in Chapter �� as part of a proposed method of designing robust

controllers directly from experimental data�

��� Summary

The important results of this chapter are�

� The model free subspace based H� control law ����� � �����

� The non�strictly causal model free subspace based H� control law ������ � ������

� The robust model free subspace based H� control law with multiplicative uncertainty

������� ������ and

� The robust model free subspace based H� control law with additive uncertainty

������� �������

Page 63: Stanford University · I certify that ha v e read this dissertation and in m y opinion it is fully adequate in scop e and qualit y as a disser tation for the degree of Do ctor of

Chapter �

Limiting Cases

With any new control technique� it is important to test various limiting cases in order to

ensure that the technique produces answers that are consistent with existing theory� In this

chapter� the subspace based H� controller of Section ��� is evaluated in two limiting cases�

As the design parameter � � �� the H� controller is shown to recover the model free�

subspace based� linear quadratic Gaussian �LQG� control technique of ����� Furthermore� as

the amount of experimental data becomes large �j ���� the subspace predictor is shown

to recover the Kalman lter properties normally associated with subspace techniques �����

the subspace based H� controller behaves like a Kalman lter estimating the plant state�

with a model based full information H� controller utilizing the plant state to produce the

control u�

��� Subspace Based H� Controller As � ��

As � � �� the central nite horizon H� specication ����� converges to an LQ cost �����

Consider the expression

lim���min

usuprJ � lim

���minu

supr

i��Xt��

�zTt zt � ��rTt rt

������

Informally� as � becomes very large� the term ���rTt rt begins to dominate the cost function�

Thus the optimum choice for the disturbance �r� in order to maximize the cost is to choose

��

Page 64: Stanford University · I certify that ha v e read this dissertation and in m y opinion it is fully adequate in scop e and qualit y as a disser tation for the degree of Do ctor of

CHAPTER �� LIMITING CASES ��

rt � � t � f�� � � � � i� �g� With this choice� ����� becomes

lim���min

usuprJ � min

u

i��Xt��

zTt zt � minu

i��Xt��

k�w� � y�tk�� ! k�w� � u�tk��

which is an LQ cost�

This informal argument suggests the following question� does the subspace H� con�

troller recover the subspace LQG controller as � ��� The answer is in fact� yes� Section

����� derives the subspace LQG result of ����� while section ����� compares the subspace

based H� control law to the subspace based LQG control law� demonstrating that the

subspace based LQG controller is a special case of the subspace based H� controller�

����� Subspace Based Finite Horizon LQG Regulator

The following theorem was rst recognized in �����

Theorem ���

If measurements of the plant input �u� and plant output �y� are available for times fk �i� � � � � k � �� k � �g� then the strictly causal� �nite horizon� model free� subspace based LQG

control for times fk� � � � � k ! i� �g is

uopt � ��LTuQdiagLu ! Rdiag���LT

uQdiagLw�wp�k �����

where

Qdiag��

��������Q � � � � �

� Q � � � ����

���� � �

���

� � � � � Q

�������� � IRil�il Rdiag��

��������R � � � � �

� R � � � ����

���� � �

���

� � � � � R

�������� � IRim�im

Q � IRl�l R � IRm�m

and Q � QT � �� R � RT � �� �

Page 65: Stanford University · I certify that ha v e read this dissertation and in m y opinion it is fully adequate in scop e and qualit y as a disser tation for the degree of Do ctor of

CHAPTER �� LIMITING CASES ��

Proof of Theorem ���

Consider the nite horizon LQ objective function where the present time is given by k and

the future horizon is length i

minu

J � minu

k�i��Xt�k

�yTt Qyt ! uTt Rut

������

Note that the system has m inputs �ut � IRm� and l outputs �yt � IRl�� In vector form�

����� is

minu

J � minu

�yTQdiagy ! uTRdiagu

�where u � IRim� y � IRil� Using the strictly causal estimate of y ����� from Section ����

that is by � Lw�wp�k ! Luu

the cost J is

J � �Lw�wp�k ! Luu�TQdiag�Lw�wp�k ! Luu� ! uTRdiagu

The necessary and sucient conditions for minimizing J are ���

�J

�u� ��Lw�wp�k ! Luu�TQdiagLu ! �uTRdiag � � �����

��J

�u�� �LT

uQdiagLu ! �Rdiag � � �����

Since Qdiag and Rdiag are positive� the sucient condition ����� is always satised� thus a

global minimum exists� The necessary condition ����� can be rewritten

LTuQLuu ! Rdiagu � �LT

uQdiagLw�wp�k

which can be solved for u� producing the control law

uopt � ��LTuQdiagLu ! Rdiag���LT

uQdiagLw�wp�k �����

Since LTuQdiagLu ! Rdiag � � the inverse in ����� always exists� �

Page 66: Stanford University · I certify that ha v e read this dissertation and in m y opinion it is fully adequate in scop e and qualit y as a disser tation for the degree of Do ctor of

CHAPTER �� LIMITING CASES ��

����� Subspace Based H� Control Law As � ��

The LQG objective ����� is a non�frequency weighted cost function� In order to compare

the subspace based H� control law with the subspace based LQG control law� the H�weighting functions W� and W� must be chosen to be frequency independent� This choice

is used to formulate Theorem ����

Theorem ���

If the weighting functions W� and W� are chosen to be constants� then as � � �� the

strictly causal� �nite horizon� model free� subspace based� level�� central H� control law

converges to the �nite horizon� model free� subspace based LQG control law� �

Proof of Theorem ���

Consider the subspace based H� control law �����

uopt � ��LTufQ�Lu ! Q��

��

�������LTufQ�Lw

�T��LT

u ����fQ� ! I�HT� #�

�T�HT

� #�

�T������T �����

wp

xw�

xw�

�����k

�����

fQ� � �Q��� � ���I��� �����

If W� and W� are constants� then

A� � � B� � � C� � �

A� � � B� � � C� � �

and thus

#� � � H� �

��������D� � � � � �

� D� � � � ����

���� � �

���

� � � � � D�

�������� Q� �

��������DT

� D� � � � � �

� DT� D� � � � �

������

� � ����

� � � � � DT� D�

��������

#� � � H� �

��������D� � � � � �

� D� � � � ����

���� � �

���

� � � � � D�

�������� Q� �

��������DT

� D� � � � � �

� DT� D� � � � �

������

� � ����

� � � � � DT� D�

��������

Page 67: Stanford University · I certify that ha v e read this dissertation and in m y opinion it is fully adequate in scop e and qualit y as a disser tation for the degree of Do ctor of

CHAPTER �� LIMITING CASES ��

With this selection of W� and W�� the H� control law ������ ����� becomes

uopt � ��LTufQ�Lu ! Q��

��LTufQ�Lw�wp�k �����fQ� � �Q��� � ���I��� ������

Referring to ������� as � �� fQ� � Q�

thus the H� control law in ����� becomes

uopt � ��LTuQ�Lu ! Q��

��LTuQ�Lw�wp�k ������

which is identical to the LQG control law ������ with Q� � Qdiag and Q� � Rdiag or

equivalently DT� D� � Q and DT

� D� � R� �

Note that the H� control law ������ does not depend on measured values of r� The lack

of dependence can be explained by the following argument� Since the controller is strictly

causal� the control law only has access to frk��� rk��� � � �g� However� the performance

channel zw�is not dependent on frk��� rk��� � � �g because

�zw��k � D��rk � yk�

and rk is independent of frk��� rk��� � � �g� The information contained in frk��� rk��� � � �g is

not relevant to the controller�s e�orts to minimize zw�� and thus measured values of r do

not couple into the control law�

��� Convergence To Model Based Finite Horizon H� Control

Recall from Section ���� that if the true plant is given by

xk�� � Apxk ! Bpuk ! �k

yk � Cpxk ! Dpuk ! �k

Page 68: Stanford University · I certify that ha v e read this dissertation and in m y opinion it is fully adequate in scop e and qualit y as a disser tation for the degree of Do ctor of

CHAPTER �� LIMITING CASES ��

where �k and �k are zero�mean� stationary� ergodic� white noise sequences with covariance

E

���� �r

�r

�� h �Ts �Ts

i�� �

�� Qp Sp

STp Rp

�� rsand if the data length j ��� then the matrices LwWk and Lu approach the limits

LwWk � #pbX ������

Lu � Hp ������

Referring to ������ and ������� the rst column of ������ can be written

Lw�wp�k � #pbxk ������

If these limiting results are applied to the subspace based H� control law� a connection

between the model based nite horizon H� control law and the subspace based H� control

law can be derived� Theorem ��� summarizes this result�

Theorem ���

When the subspace predictor has the properties ������ and ������� the H� control law ������

���� is identical to a strictly causal� �nite horizon� model based� full information H� control

law acting on a Kalman estimate of the generalize plant state� �

The model based control law ���� is stated in Section ������ The proof of Theorem ���

is given in Section ������

����� Model Based H� Control

The equations below describe the model based H� control law� and are algebraic simpli�

cations of those derived in ����� The generalized plant for the model based full information

problem is �� xk��

zk

�� �

�� A B

C D

�������xk

rk

uk

�����

Page 69: Stanford University · I certify that ha v e read this dissertation and in m y opinion it is fully adequate in scop e and qualit y as a disser tation for the degree of Do ctor of

CHAPTER �� LIMITING CASES ��

where

A��

�����Ap � �

�B�Cp A� �

� � A�

����� B��

������ Bp

B� �B�Dp

� B�

�����

C��

�� �D�Cp C� �

� � C�

�� D��

�� D� �D�Dp

� D�

��Also� let

R���

�� ��Il �

� �

�� � IR�l�m���l�m� ������

where Il is the l l identity matrix� Dene fXk�i��� � � � �Xkg through the backwards

recursion

Xk�i���� � ������

Xt���� ATXtA !CTC �

�ATXtB ! CTD��BTXtB ! DTD �R�

����ATXtB ! CTD�T ������

t � fk ! i� �� � � � � kg

Then the worst case disturbances frk� � � � � rk�i��g and the minimum cost controls fuk� � � � � uk�i��gcan be found from the initial plant state xk� and the forward recursion�� rt

ut

�� � ��BTXtB ! DTD �R�

����ATXtB ! CTD�Txt ������

xt�� � Axt ! B

�� rt

ut

�� t � fk� � � � � k ! i� �g ������

����� Proof Of Theorem ���

The proof of Theorem ��� utilizes Theorem ���� which was rst established in ����� Theorem

��� demonstrates a relation between the subspace based LQG controller� and the model

based� nite horizon LQG control law� For a proof of Theorem ���� see �����

Page 70: Stanford University · I certify that ha v e read this dissertation and in m y opinion it is fully adequate in scop e and qualit y as a disser tation for the degree of Do ctor of

CHAPTER �� LIMITING CASES ��

Theorem ���

Consider the LQG control law ���� with the substitutions ������ and ������

uopt � ��HTp QdiagHp ! Rdiag���HT

p Qdiag#pxk ������

Also consider the �nite horizon� discrete time� model based� LQR control law� which is

calculated as follows� De�ne fPk�i��� � � � � Pkg through the backwards recursion

Pk�i���� CT

p QCp ������

Pt���� AT

p PtAp ! CTp QCp � �AT

p PtBp ! CTp QDp� ��

BTp PtBp ! DT

pQDp ! R���

�ATp PtBp !CT

p QDp�T ������

t � fk ! i� �� � � � � kg

Then the minimum cost LQR control fuk� � � � � uk�i��g is calculated from the initial plant

state xk� and by the forward recursion

ut � ��BTp PtBp ! DT

pQDp ! R���

�ATp PtBp ! CT

p QDp�Txt ������

xt�� � Apxt ! Bput t � fk� � � � � k ! i� �g ������

Under the conditions that allow the substitutions ������ and ������� the two control laws are

identical i�e�

uopt �

��������uk

uk��

���

uk�i��

��������The control is equivalent to a �nite horizon� model based� LQR control law acting on a

Kalman estimate of the plant state� �

Note that a key di�erence between the LQG Riccati equations ������� ������ and the

H� Riccati equations ������� ������ is that in ������ R is positive� and in ������ the term

�R� is negative� In order to prove Theorem ���� the expression for the subspace based H�control law will be manipulated into a form that is identical to the subspace based LQG

control law� Theorem ��� will then be invoked� thereby proving Theorem ����

Page 71: Stanford University · I certify that ha v e read this dissertation and in m y opinion it is fully adequate in scop e and qualit y as a disser tation for the degree of Do ctor of

CHAPTER �� LIMITING CASES ��

Proof of Theorem ���

Recall the expression for the performance variable in the subspace based design ������ is

�� zw�

zw�

�� �

�� H� �H�Lu �H�Lw #� �

� H� � � #�

������������

r

u

�wp�k

�xw��k

�xw��k

����������������

Substituting #pbxk for Lw�wp�k and Hp for Lu� as per ������ and ������ respectively� the

performance variables ������ become

�� zw�

zw�

�� �

�� H� �H�Hp �H�#p #� �

� H� � � #�

������������

r

ubxk�xw�

�k

�xw��k

����������������

The next step is the �interlacing of ������� Let

wt��

�� rt

ut

�� zt��

�� �zw��t

�zw��t

�� t � fk� � � � � k ! i� �g

and let

w��

�����wk

���

wk�i��

����� � IRi�l�m� z��

�����zk���

zk�i��

����� � IRi�lw��lw� �

x��

�����bxk

�xw��k

�xw��k

����� � IRnp�nw��nw�

Page 72: Stanford University · I certify that ha v e read this dissertation and in m y opinion it is fully adequate in scop e and qualit y as a disser tation for the degree of Do ctor of

CHAPTER �� LIMITING CASES ��

Let f�gp�q�r�s be the submatrix of � formed by the entries in rows fp� p ! �� � � � � qg and the

entries in columns fr� r ! �� � � � � sg� Dene

H��

��������eH��

eH�� � � � eH�ieH��eH�� � � � eH�i

������

� � ����eHi�

eHi� � � � eHii

��������

#��

������������������

f�H�#pg��lw� ���np f#�g��lw� ���nw� �

� � f#�g��lw� ���nw�f�H�#pglw�����lw� ���np

f#�glw�����lw� ���nw��

� � f#�glw�����lw� ���nw����

������

f�H�#pg�i���lw����ilw� ���npf#�g�i���lw����ilw� ���nw�

� � f#�g�i���lw����ilw� ���nw�

������������������where

eH����

�� fH�g��lw� ���l f�H�Hpg��lw� ���m� fH�g��lw� ���m

��eH��

��

�� fH�g��lw� �l����l f�H�Hpg��lw� �m����m

� fH�g��lw� �m����m

��eH�i

��

�� fH�g��lw� ��i���l���il f�H�Hpg��lw� ��i���m���im

� fH�g��lw� ��i���m���im

��eH��

��

�� fH�glw�����lw� ���lf�H�Hpglw�����lw� ���m

� fH�glw�����lw� ���m

��eH��

��

�� fH�glw�����lw� �l����l f�H�Hpglw�����lw� �m����m

� fH�glw�����lw� �m����m

��eH�i

��

�� fH�glw�����lw� ��i���l���il f�H�Hpglw�����lw� ��i���m���im

� fH�glw�����lw� ��i���m���im

��eHi�

��

�� fH�g�i���lw����ilw� ���lf�H�Hpg�i���lw����ilw� ���m

� fH�g�i���lw����ilw� ���m

��

Page 73: Stanford University · I certify that ha v e read this dissertation and in m y opinion it is fully adequate in scop e and qualit y as a disser tation for the degree of Do ctor of

CHAPTER �� LIMITING CASES ��

eHi���

�� fH�g�i���lw����ilw� �l����l f�H�Hpg�i���lw����ilw� �m����m

� fH�g�i���lw����ilw� �m����m

��eHii

��

�� fH�g�i���lw����ilw� ��i���l���il f�H�Hpg�i���lw����ilw� ��i���m���im

� fH�g�i���lw����ilw� ��i���m���im

��Then the �interlaced version of ������ is

z �hH #

i �� w

x

�� ������

Dene

R�d��

��������R� � � � � �

� R� � � � ����

���� � �

���

� � � � � R�

�������� � IRi�l�m��i�l�m� ������

where R� is dened by ������� Using ������ and ������� equation ������ is

J��� �

�� w

x

��T �� HTH HT#

#TH #T#

���� w

x

��� wTR�dw

With this J���� the necessary condition for the minimax optimization is

hHTH �R�d HT#

i �� w

x

�� � �

which implies that the control law and worst case disturbance �embedded in w� is

w ��HTH �R�d

���HT#x ������

Equation ������ is identical to the subspace based LQG control law ������� with the

substitutions

uopt � w

Hp � H

Qdiag � I

Page 74: Stanford University · I certify that ha v e read this dissertation and in m y opinion it is fully adequate in scop e and qualit y as a disser tation for the degree of Do ctor of

CHAPTER �� LIMITING CASES ��

Rdiag � �R�d

#p � #

xk � x

Furthermore ������ � ������ are identical to ������ � ������ with the substitutions

Pk�i�� � �

Ap � A

Bp � B

Cp � C

Dp � D

Q � I

R � �R�

Pt � Xt t � fk� � � � � k ! i� �g

ut �

�� rt

ut

�� t � fk� � � � � k ! i� �g

Thus with these substitutions� it follows from Theorem ��� that ������ � ������ result in

identical wT �hrTt uTt

ias calculated by ������� Since ������ is a permutation of ������

������ then ������ � ������ result in identical r and u as that calculated in ������ ������ �

��� Summary

The important results of this chapter are�

� As � � �� the model free subspace based H� control law converges to the model

free subspace based LQG control law and

� If the true plant is LTI� as j �� the model free subspace basedH� controller behaves

like a Kalman lter estimating the plant state� with a model based full information

H� controller utilizing the plant state to produce the control u�

Page 75: Stanford University · I certify that ha v e read this dissertation and in m y opinion it is fully adequate in scop e and qualit y as a disser tation for the degree of Do ctor of

Chapter �

Controller Implementation

This chapter considers the issues associated with the implementation of the subspace based

H� controllers derived in Chapter �� Both o��line �batch� and on�line �adaptive� implemen�

tations will be considered� Although the discussion will focus on the model free controller

of Section ���� the methods developed are applicable to the other H� control laws derived

in Chapter �� as well as to the subspace based LQG control law derived in Chapter ��

A design example employing the model free H� controller of Section ��� is used to

provide some insight into the use of the various design parameters available to the engineer�

The variation of the control law with respect to the engineer�s selection of i� j� �� W�� W�

are illustrated in this simple design example�

��� Receding Horizon Implementation

A nite horizon controller is most often implemented with a �receding horizon procedure�

Consider a future horizon of length i� At the present time k� the optimal control is calculated

for times fk� k ! �� � � � � k ! i� �g� The control at time k is implemented� and data yk and

rk are collected� The �horizon is shifted one time step into the future� and the procedure

is repeated�

The following algorithm lists all the steps required to apply the receding horizon proce�

dure to the implementation of the model free subspace based H� control problem�

�� Collect experimental data� form Up� Uf � Yp� Yf

�� Compute Lw� Lu

��

Page 76: Stanford University · I certify that ha v e read this dissertation and in m y opinion it is fully adequate in scop e and qualit y as a disser tation for the degree of Do ctor of

CHAPTER �� CONTROLLER IMPLEMENTATION ��

�� Select �possibly many� weighting functions W�� W�

�� Compute �min for each set of weighting functions� nalize the choice of W�� W�� and

choose � � �min

�� Initialize the weighting function states �xw��k� �xw�

�k

�� Form �wp�k

�� Calculate the optimal control uopt for times fk� k ! �� � � � � k ! i� �g

uopt � f

�BBB�W��W�� Lw� Lu� ��

�����wp

xw�

xw�

�����k

�CCCAusing ������ �����

�� Implement the rst time step of uopt �time k�

�� Take measurements rk and yk

��� Update weighting lter states

xw��� Aw�

xw�! Bw�

�rk � yk�

xw��� Aw�

xw�! Bw�

uk

��� k �� k ! �� go to step �

A few comments on the steps of the implementation�

�� The design of the excitation signal requires some care� The signal must suciently

excite the plant so that all important aspects of the plant behavior appear in the

plant�s output� If the plant is indeed LTI� then one sucient condition for the design

of the input signal is that the input be persistently exciting of order �mi� that is

�� Up

Uf

���� Up

Uf

��T

Page 77: Stanford University · I certify that ha v e read this dissertation and in m y opinion it is fully adequate in scop e and qualit y as a disser tation for the degree of Do ctor of

CHAPTER �� CONTROLLER IMPLEMENTATION ��

should be rank �mi ����� Further discussion of appropriate excitation signals can be

found in ���� ����

�� The computation of Lw and Lu can be performed in a batch process� or can be

performed recursively� The memory requirement for recursive calculation can be sig�

nicantly less than for a batch process�

�� It is essential that W� and W� have relative McMillan degree zero�

�� It is usually good practice not to choose � very close to �min� as the e�ective controller

gains are very large� the formula for calculating uopt is close to singular near �min� As

a rule of thumb� choose � � ������min�

�� The initial states of the weighting functions can be set to � if input� output� and ref�

erence data immediately prior to time k are not available� If the data are available� it

is possible to nd the initial states of the weighting lters by initializing the weighting

lter states to �� and then propagating the lters forward to the present time using

the available data�

�� If the input�output data immediately prior to time k are not known during the rst

pass through this algorithm� the initial �wp�k can be set to ��

�� The majority of the matrix operations necessary to compute uopt can be performed

prior to this step�

�� Steps � � �� are straightforward�

Note that the control law is strictly causal� uk is not a function of rk nor yk� The measure�

ments of rk and yk couple into future uopt through the state of the performance weighting

function �xw�� in step ���

��� Simpli�ed Receding Horizon Implementation

The important observation made in this section is that steps � � �� of the receding horizon

implementation in Section ��� can be expressed as a linear time�invariant �LTI� discrete

time system� Steps � � � remain� and contain the design steps necessary to develop the

Page 78: Stanford University · I certify that ha v e read this dissertation and in m y opinion it is fully adequate in scop e and qualit y as a disser tation for the degree of Do ctor of

CHAPTER �� CONTROLLER IMPLEMENTATION ��

controller� Consider the expression for the non�robust H� control law ������ ������

uopt � ��LTufQ�Lu ! Q��

��

�������LTufQ�Lw

�T��LT

u ����fQ� ! I�HT� #�

�T�HT

� #�

�T������T �����

wp

xw�

xw�

�����k

�����

fQ� � �Q��� � ���I��� �����

Let

hk� k�

i�

n��LT

ufQ�Lu ! Q��

��LTufQ�Lw

o��m��

k� �n

�LTufQ�Lu ! Q��

��LTu ����fQ� ! I�HT

� #�

o��m��

k �n��LT

ufQ�Lu ! Q��

��HT� #�

o��m��

where f�g��m�� means extract the rst m rows of the matrix �� and k� � IRm�im� k� � IRm�il�

k� � IRm�nw� � k � IRm�nw� � If available� initialize the vector

�������up

yp

xw�

xw�

�������k

based on input� output� and reference data� otherwise initialize the vector to �� Then steps

� � �� of the receding horizon implementation can be performed by the discrete time LTI

system

�������up

yp

xw�

xw�

�������k��

��������������

�� Sm

k�

�� �� �

k�

�� �� �

k�

�� �� �

k

���

�� Sl

�� � �

� � Aw��

Bw�k� Bw�

k� Bw�k� Aw�

! Bw�k

��������������

�������up

yp

xw�

xw�

�������k

!

Page 79: Stanford University · I certify that ha v e read this dissertation and in m y opinion it is fully adequate in scop e and qualit y as a disser tation for the degree of Do ctor of

CHAPTER �� CONTROLLER IMPLEMENTATION ��

�����������

� �

�� �

Il

��Bw�

�Bw�

� �

������������� r

y

��k

�����

uk �hk� k� k� k

i�������

up

yp

xw�

xw�

�������k

�����

where Im and Il are mm and l l identity matrices respectively� and

Sm �

��������� Im � � � � �

� � Im � � � ����

������

� � � �

� � � � � � Im

�������� � IR�i���m�im

Sl �

��������� Il � � � � �

� � Il � � � ����

������

� � � �

� � � � � � Il

�������� � IR�i���l�il

Note that the control law ������ ����� is an i�m ! l� ! nw�! nw�

order LTI controller�

Expressing the subspace based controller as an LTI system enables the use of well

known LTI analysis tools for evaluation of the control law� If an approximate plant model

is available� approximations of gain and phase margin may be obtained from Nyquist or

Bode plots� If the system is SISO and an approximate plant model is available� root loci

can be constructed� Expressing the controller as an LTI system also greatly simplies any

coding required for implementing or simulating the overall closed loop system�

Section ��� uses the LTI form of the subspace based control law to examine the pole and

zero locations of several control laws� while Section ��� uses Bode plots to directly compare

two control laws� Approximate plant models are not used in these two sections�

Page 80: Stanford University · I certify that ha v e read this dissertation and in m y opinion it is fully adequate in scop e and qualit y as a disser tation for the degree of Do ctor of

CHAPTER �� CONTROLLER IMPLEMENTATION ��

����� Summary Of Batch Design Procedure

The control design procedure can be viewed as a �black box requiring the following steps

by the engineer�

�� Collect experimental data

�� Select i� j� Select �possibly many� weighting functions W�� W�

�� Compute �min for each set of weighting functions� nalize the choice of W�� W�� and

choose � � �min

�� Compute and implement the nal i�m ! l� ! nw�! nw�

order LTI control law ������

�����

The design example in Section ��� illustrates the e�ects of each of the engineer selected

parameters �W�� W�� i� j and �� in the context of a simple control design problem�

��� Adaptive Implementation

The receding horizon implementation of Section ��� also simplies the adaptive implemen�

tation of the subspace based H� control law� The block diagram in Figure ��� outlines the

information �ow among the three major components� the plant P � the controller K� and

the adaptive algorithm Adapt� The K block is identical to the state space system ������

����� with the exception that the matrices k�� � � � � k are frequently updated by the Adapt

block� Because of this updating� K is a linear time�varying �LTV� system� K�s system

state is composed of past input�output data and internal states of the weighting lters�

thus the matrices k�� � � � � k can be modied by the Adapt block without transforming the

controller�s state� The Adapt block in Figure ��� performs several simple operations�

�� The best estimates of Lw� Lu are computed by the update procedure described in

Chapter �

�� The latest estimate of Lw� Lu is used to compute the new estimate of best achieveable

performance �min

�� � � �min is selected

Page 81: Stanford University · I certify that ha v e read this dissertation and in m y opinion it is fully adequate in scop e and qualit y as a disser tation for the degree of Do ctor of

CHAPTER �� CONTROLLER IMPLEMENTATION ��

PK

Adapt

y

�min

r u

Figure ���� Adaptive implementation block diagram

�� The new control gains k�� � � � � k are calculated via ������ ����� and passed onto the

controller K

Since the K block and the Adapt block can operate independently� di�erent computers

could be used for each task� The data link between the two computers need only be fast

enough to satisfy the minimum desired update latency�

The processes performed by the Adapt block leave several design choices available to

the engineer� The prediction horizon i� and the weighting lters W�� W� must of course

be selected� j� the size of the window used to compute Lw� Lu must be selected if the

�sliding window procedures described in Chapter � are used� Computation power may be

a key factor in determining the frequency at which a new controller will be computed� If

the computational resources do not permit adaptation at every time step� it is possible to

perform n Cholesky updates before computing Lw� Lu� and the new control gains�

The policy used to select � requires some engineering judgment� Many policies are

possible� such as � � �min ! or � � �� ! ��min where � �� It is possible to have

other �outer loops such as changing the design weighting lters W� and W� based on

the measured �min� One approach to outer loop W�� W� design is to use the so�called

�wind surfer adaptation policies ����� The general idea is to begin by implementing a low

bandwidth controller� If the requested performance is achieved� the controller bandwidth is

progressively increased until the desired bandwidth is achieved� If at any step� the requested

bandwidth not achieved� the controller bandwidth is reduced� thereby allowing the plant

to remain under control� while potentially useful information is gathered� The adaptive

system continually advances toward� and retreats from the nal control bandwidth goal�

Page 82: Stanford University · I certify that ha v e read this dissertation and in m y opinion it is fully adequate in scop e and qualit y as a disser tation for the degree of Do ctor of

CHAPTER �� CONTROLLER IMPLEMENTATION ��

����� Summary Of Adaptive Design Procedure

The adaptive design procedure can be viewed as a �black box requiring the following steps

by the engineer�

�� Select i �the prediction horizon�� and possibly j �the sliding window size�

�� Select weighting functions W�� W�

�� Select a � policy� such as � � ������min

�� Implement the adaptive controller as in Figure ���

��� Design Example

The e�ects of the engineer�s selections of W�� W�� i� j� and � are illustrated through a series

of simulations using the simple plant

P �s���

s�s! �������

Plants similar to ����� are often used to approximate actuators deployed within a servo

control loop� the widespread use of such plant models motivates the study of ������ Since

the model free subspace based H� design technique is a discrete time method� ����� is

discretized using a sample frequency of �� Hz� well above the plant�s cuto� frequency near

��� Hz� The zero order hold discretization of ����� is

Pd�z���

��������z ! ��������

z� � �����z ! �����������

In order to better illustrate the intuition behind selecting W� and W�� these weighting

functions are designed in the continuous domain� and then discretized using the Tustin �or

bilinear� transform �����

This section does not consider the e�ects of changes in the excitation signals used to

obtain the experimental data� the topic is well covered in standard texts on system iden�

tication� such as ����� In order to eliminate variation of results due to changes in �exper�

imental data� a single data set� obtained from a noisy simulation of ����� is used for all

control designs� The data set is generated by exciting ����� with a pseudo�random binary

Page 83: Stanford University · I certify that ha v e read this dissertation and in m y opinion it is fully adequate in scop e and qualit y as a disser tation for the degree of Do ctor of

CHAPTER �� CONTROLLER IMPLEMENTATION ��

0 100 200 300 400 500 600 700 800 900−6

−4

−2

0

2

4

6

8Excitation Output

time (seconds)

outp

ut

Figure ���� Output data used for design examples

sequence of unity power� Both white Gaussian process noise �� � ����� and white Gaussian

sensor noise �� � ����� are injected into this simulation� These noises can also be included

in the closed loop simulations without signicantly changing the performance� however� in

order to better illustrate the true e�ects of the various selections made by the designer� the

closed loop simulations are performed without the addition of noise� Figure ��� shows the

output of the input�output data used throughout this section� The input data are omitted

because the input is simply a sequence of !��s and ���s�

The next four subsections consider the nominal control design

i � �� j � ���� � � ������min

W� � ���������

�s��

s����� W� � ����������

�s����s���

and investigate changes in the closed loop behavior that result from changes in each of the

ve design parameters� In most cases� the rule � � ������min is used to select �� For the

nominal design� �min � ������

Page 84: Stanford University · I certify that ha v e read this dissertation and in m y opinion it is fully adequate in scop e and qualit y as a disser tation for the degree of Do ctor of

CHAPTER �� CONTROLLER IMPLEMENTATION ��

W� W� �min � � ������min

Design � W�� W�� ����� �����

Design � W�� W�� ����� �����

Design � W�� W�� ����� �����

Table ���� Weighting functions and �min� � associated with various W�� W� designs

����� Eects Of W�� W�

Performance specication by loop shaping is an established design methodology in the

control literature ���� thus this section will only provide a cursory illustration of the tradeo�s

possible with loop shaping functions in the context of model free subspace basedH� control�

A secondary consideration when designing the dynamics of W� and W� is that the controller

order �i�m! l�!nw�!nw�

� is a function of the number of modes in the weighting functions�

Four weighting functions are used in this section

W���� ���

������

�s��

s����� W���� ����

������

�s����s���

W���� ���

�������

�s���s����� W��

�� ����

����

�s��s���

Table ��� shows each design case studied in this subsection� Also included in Table ���

are the �min and � associated with each design� Design � is the nominal design� Design �

increases the desired closed loop tracking bandwidth without changing the allowed control

usage� while Design � requests the same tracking bandwidth as Design � but increases the

allowed control usage� Figure ��� shows the inverses of these weighting functions after

conversion to discrete time�

As expected� �min for Design � is signicantly worse than �min for Design � because

greater tracking performance is requested without allowing greater control usage� The

controller is unable to meet the performance at the nominal performance level ��min �

������� which is re�ected in the higher �min� The step response of Design � is faster yet

more poorly damped than the step response of Design �� as shown in Figure ����

Design � requests the same tracking performance as Design �� however Design � permits

greater control usage than Design �� The �min associated with Design � is less than the

�min associated with Design �� which is re�ected in the faster step response of Design ��

Page 85: Stanford University · I certify that ha v e read this dissertation and in m y opinion it is fully adequate in scop e and qualit y as a disser tation for the degree of Do ctor of

CHAPTER �� CONTROLLER IMPLEMENTATION ��

10−2

10−1

100

101

−40

−30

−20

−10

0

10

20

30

Frequency (rad/sec)

Mag

nitu

de (

dB)

Design

W11−1

W12−1

W21−1

W22−1

Figure ���� Discrete time weighting functions used in the design example

0 1 2 3 4 5 6 7 80

0.2

0.4

0.6

0.8

1

1.2

1.4Step Response, Closed−Loop System

time (seconds)

outp

ut

Design 1Design 2Design 3

Figure ���� Step responses for various W�� W�� designs

Page 86: Stanford University · I certify that ha v e read this dissertation and in m y opinion it is fully adequate in scop e and qualit y as a disser tation for the degree of Do ctor of

CHAPTER �� CONTROLLER IMPLEMENTATION ��

�min � � ������min

i � ��� ����� �����

i � �� ����� �����

i � �� ����� �����

i � �� ����� �����

i � �� ����� �����

i � �� ����� �����

i � � ����� �����

Table ���� �min� � for various choices of i

����� Eect Of i

This subsection illustrates the changes in the controller and the closed loop performance

that result from changes in the design parameter i� Compared to other design variables� this

design parameter also has the single greatest e�ect on controller order �i�m!l�!nw�!nw�

��

The engineer�s ability to vary the number of plant outputs �l� or inputs �m�� or vary the

number of states in either weighting function �nw�or nw�

� is usually quite limited� whereas i

can be varied over quite a wide range� Thus choice of i is primarily a trade between control

performance and the controller order�

Table ��� shows the �min associated with each of the seven values of i considered in this

subsection� Note that although j � ���� for each of the test cases� n � �i ! j � �� thus

each test case uses a slightly di�erent amount of experimental data� This variation in the

data used might account for some small �uctuations in �min� however the variations in data

volume are small compared to the overall data set size for all but the largest values of i�

The general trend is that �min becomes smaller as i is decreased� Figure ��� shows the

step responses for the i � �� through i � � test cases� with ���min constant� In addition�

Figure ��� shows the step responses with constant � � ���� In both cases� the i � ��� case

is omitted� as its performance is nearly identical to the i � �� case�

Shortening the prediction horizon� i�e� decreasing i� requires the control law to decrease

how far into the future it projects the cost of the present system state and the cost of all

possible control actions over that future horizon� Thus the more short sighted the controller

is� the more optimistic the controller can be about future performance� This explains the

decrease in �min as i decreases� Figure ��� and Figure ��� show that as the prediction

horizon is shortened� the closed loop performance degrades until the system eventually goes

unstable� Both gures are needed to argue this conclusion� because if only constant ���min

Page 87: Stanford University · I certify that ha v e read this dissertation and in m y opinion it is fully adequate in scop e and qualit y as a disser tation for the degree of Do ctor of

CHAPTER �� CONTROLLER IMPLEMENTATION ��

0 1 2 3 4 5 6 7 80

0.5

1

1.5

2

2.5

Step Response, Closed−Loop System, γ/γmin

=1.1

time (seconds)

outp

ut

i=80i=25i=20i=13i=10i=8

Figure ���� Step responses for various choices of i� constant ���min

Page 88: Stanford University · I certify that ha v e read this dissertation and in m y opinion it is fully adequate in scop e and qualit y as a disser tation for the degree of Do ctor of

CHAPTER �� CONTROLLER IMPLEMENTATION ��

0 1 2 3 4 5 6 7 80

0.5

1

1.5

2

2.5Step Response, Closed−Loop System, γ=1.1

time (seconds)

outp

ut

i=80i=25i=20i=13i=10i=8

Figure ���� Step responses for various choices of i� constant �

Page 89: Stanford University · I certify that ha v e read this dissertation and in m y opinion it is fully adequate in scop e and qualit y as a disser tation for the degree of Do ctor of

CHAPTER �� CONTROLLER IMPLEMENTATION ��

�min � � ������min

i � ��� N�A N�A

i � �� ����� �����

i � �� ����� �����

i � �� ����� �����

i � �� ����� �����

i � �� ����� �����

i � � ����� �����

Table ���� �min� � for various choices of i� constant n

were used� one could argue that the performance degradation is a result of inappropriately

low values of � due to optimistically low estimates of �min� The smallest i that produces good

performance is approximately i � ��� which corresponds to a prediction time of � seconds�

roughly the rise time of the closed loop system�

Table ���� Figure ���� and Figure ��� show the results when varying i with n xed at the

nominal design condition n � ����� Of course j is then selected according to the relation

j � n ! �� �i� This example represents what might be considered the more typical use of

the batch design technique� where the engineer is given a xed volume of experimental data

and asked to design a control law� In the i � ��� case� the problem of nding a predictor

is underdetermined thus a design is not possible� The conclusions that can be drawn from

the constant n results are identical to the conclusions reached when j is constant�

Figure ��� shows the loci of poles and zeros for each of the seven design cases� Comparing

the loci� it is apparent that as i is increased� two circular patterns of poles and zeros become

more dened� move closer to each other� and move closer to the unit circle� When the poles

and zeros become suciently close� it is possible to remove them using a model order

reduction technique at the price of a small change in controller performance �����

The approach of computing a very high order controller then proceding with a model

order reduction may be dicult to use when the experimental data includes time delays�

nonlinearities� or noise� Figure ���� illustrates the loci for i � ��� juxtaposed with the loci

for i � ��� when the experimental data are taken from a noise free simulation� When noisy

experimental data are used� the poles and zeros are much further from each other than

when noise free experimental data are used� In some cases where real world experimental

data are used� it may be impractical to choose i suciently large such that controller order

reduction may be performed without adversely e�ecting closed loop performance�

Page 90: Stanford University · I certify that ha v e read this dissertation and in m y opinion it is fully adequate in scop e and qualit y as a disser tation for the degree of Do ctor of

CHAPTER �� CONTROLLER IMPLEMENTATION ��

0 1 2 3 4 5 6 7 80

0.5

1

1.5

2

2.5

Step Response, Closed−Loop System, γ/γmin

=1.1, n=1039

time (seconds)

outp

ut

i=80i=25i=20i=13i=10i=8

Figure ���� Step responses for various choices of i� constant ���min� constant n

Page 91: Stanford University · I certify that ha v e read this dissertation and in m y opinion it is fully adequate in scop e and qualit y as a disser tation for the degree of Do ctor of

CHAPTER �� CONTROLLER IMPLEMENTATION ��

0 1 2 3 4 5 6 7 80

0.5

1

1.5

2

2.5Step Response, Closed−Loop System, γ=1.1, n=1039

time (seconds)

outp

ut

i=80i=25i=20i=13i=10i=8

Figure ���� Step responses for various choices of i� constant �� constant n

Page 92: Stanford University · I certify that ha v e read this dissertation and in m y opinion it is fully adequate in scop e and qualit y as a disser tation for the degree of Do ctor of

CHAPTER �� CONTROLLER IMPLEMENTATION ��

−1 0 1−1

−0.5

0

0.5

1i=300

−1 0 1−1

−0.5

0

0.5

1i=80

−1 0 1−1

−0.5

0

0.5

1i=25

−1 0 1−1

−0.5

0

0.5

1i=20

−1 0 1−1

−0.5

0

0.5

1i=13

−1 0 1−1

−0.5

0

0.5

1i=10

−1 0 1−1

−0.5

0

0.5

1i=8

Figure ���� Pole and zero locations for various choices of i

Page 93: Stanford University · I certify that ha v e read this dissertation and in m y opinion it is fully adequate in scop e and qualit y as a disser tation for the degree of Do ctor of

CHAPTER �� CONTROLLER IMPLEMENTATION ��

−1 −0.5 0 0.5 1−1

−0.8

−0.6

−0.4

−0.2

0

0.2

0.4

0.6

0.8

1With Noise, i=300

−1 −0.5 0 0.5 1−1

−0.8

−0.6

−0.4

−0.2

0

0.2

0.4

0.6

0.8

1No Noise, i=300

Figure ����� E�ect of noise on the convergence of pole and zero location i � ���

Page 94: Stanford University · I certify that ha v e read this dissertation and in m y opinion it is fully adequate in scop e and qualit y as a disser tation for the degree of Do ctor of

CHAPTER �� CONTROLLER IMPLEMENTATION ��

�min � � ������min

j � ���� ����� �����

j � ���� ����� �����

j � ��� ����� �����

j � �� ����� �����

j � �� ����� �����

Table ���� �min� � for various choices of j

����� Eect Of j

The changes in the controller due to changes in the design parameter j are straightforward

to quantify� Since n � �i ! j � �� changes to the amount of experimental data are directly

proportional to changes in j� As shown in Table ���� �min does not appreciably change as j

changes� The step responses shown in Figure ���� show that as j decreases� the closed loop

performance degrades� as would be expected with a reduction in the volume of experimental

data available for control design� In many practical situations� the engineer will rst select

or be given experimental data of length n� The selection of i will determine j via the relation

j � n� �i ! �� The case of trading i and j with xed n was studied in Subsection ������

Page 95: Stanford University · I certify that ha v e read this dissertation and in m y opinion it is fully adequate in scop e and qualit y as a disser tation for the degree of Do ctor of

CHAPTER �� CONTROLLER IMPLEMENTATION ��

0 1 2 3 4 5 6 7 80

0.2

0.4

0.6

0.8

1

1.2

1.4Step Response, Closed−Loop System

time (seconds)

outp

ut

j=8000j=1000j=100 j=75 j=60

Figure ����� Step responses for various choices of j

Page 96: Stanford University · I certify that ha v e read this dissertation and in m y opinion it is fully adequate in scop e and qualit y as a disser tation for the degree of Do ctor of

CHAPTER �� CONTROLLER IMPLEMENTATION ��

���min � ���� ���� ��

���min � � �����

���min � ��� �����

���min � ��� �����

���min � ������ �����

Table ���� ���min� � used to study performance with respect to choice of �

����� Eect Of �

Table ��� shows various values of ���min used to study the performance variations with

respect to choice of �� Figure ���� shows the closed loop response associated with each

value of ���min� As � is decreased� the control becomes progressively more aggressive�

until about �� above �min� at which point the closed loop response goes unstable� Smaller

values of � result in extremely violent instability� A general rule of thumb is to choose

� � ������min in order to preserve some margin in the control design� One may choose

� � ������min if an additional design margins are desired�

Page 97: Stanford University · I certify that ha v e read this dissertation and in m y opinion it is fully adequate in scop e and qualit y as a disser tation for the degree of Do ctor of

CHAPTER �� CONTROLLER IMPLEMENTATION ��

0 1 2 3 4 5 6 7 80

0.2

0.4

0.6

0.8

1

1.2

1.4Step Response, Closed−Loop System

time (seconds)

outp

ut

γ/γmin

=1010

γ/γmin

=2

γ/γmin

=1.5

γ/γmin

=1.1

γ/γmin

=1.0268

Figure ����� Step responses for various choices of �

Page 98: Stanford University · I certify that ha v e read this dissertation and in m y opinion it is fully adequate in scop e and qualit y as a disser tation for the degree of Do ctor of

CHAPTER �� CONTROLLER IMPLEMENTATION ��

��� Summary

The important results of this chapter are�

� The simplied receding horizon implementation ������ �����

� The algorithm for batch implementation of the model free subspace based H� control

law as summarized in Section �����

� The algorithm for adaptive implementation of the model free subspace based H�control law as summarized in Section ����� and

� The choices of the design parameters W�� W�� i� j� and � have the following e�ects�

The weighting functions W�� W� control the closed loop behavior in a fashion

common to model based loop shaping functions

The prediction horizon i is critical in the trade between controller order and

performance� Larger i generally produces better performance

The parameter j is set by i and the amount of experimental data that are avail�

able�

The parameter � selects� to some extent� the aggressiveness of the control law�

Larger � generally produces more conservative control laws�

Page 99: Stanford University · I certify that ha v e read this dissertation and in m y opinion it is fully adequate in scop e and qualit y as a disser tation for the degree of Do ctor of

Chapter �

Experiments

In this chapter� the model free subspace based H� control technique is applied to solve a

number of control problems� Several laboratory experiments have been conducted in order

to demonstrate the o��line technique on a real physical system� Due to computational

considerations� the on�line technique is demonstrated via simulation� using a plant model

that resembles the experimental system used for the o��line demonstrations�

��� Experimental Hardware

Figure ��� shows a schematic and photo of the experimental hardware� manufactured by

Educational Control Products ����� It consists of three rotational inertias� linked by two

torsional springs� The position of each inertia is sensed with a shaft encoder ������ divisions

per revolution�� producing angles y�� y�� y�� A single actuator provides a torque u at inertia

y�� The torque command u ���� volts to !�� volts� is converted to a motor drive current

by a �black box controller� The commutation for the DC brushless motor is rather poorly

designed� thus several time�varying nonlinearities �deadband� stiction� backlash� are present�

Assuming that the input u is in fact a commanded torque� it is possible to derive transfer

functions from the input u to each of the three outputs ����� Control of the structure

using only y� is referred to as the single input single output �SISO� collocated control

problem� because the sensing and actuation take place at the same mass element� Similarly�

controlling the structure using only a combination of y� and y� is referred to as the non�

collocated control problem� Clearly� there are seven unique combinations of sensors that

can be used to control the structure�

��

Page 100: Stanford University · I certify that ha v e read this dissertation and in m y opinion it is fully adequate in scop e and qualit y as a disser tation for the degree of Do ctor of

CHAPTER �� EXPERIMENTS ��

y�

y�

y�� u

Figure ���� Schematic and photo of the three disk system

Models for each of the three SISO transfer functions are tabulated below� The numerical

values for the parameters were derived by many students who have studied this experimental

system as part of their curriculum at Stanford University� The sensor units are radians�

and the input units are volts� The transfer functions are

Py��u �k�s� ! ��z��nz�s! ��

nz���s� ! ��z��nz�s ! ��

nz��

s�s ! ��s� ! ��p��np�s ! ��np�

��s� ! ��p��np� s! ��np�

Py��u �k���

nz���s� ! ��z��nz�s ! ��

nz��

s�s ! ��s� ! ��p��np�s ! ��np�

��s� ! ��p��np� s! ��np�

Py��u �k���

nz�����

nz��

s�s ! ��s� ! ��p��np�s ! ��np�

��s� ! ��p��np� s! ��np�

with k � ������ � ����� �z� � ������ �nz� � ������ �z� � ������ �nz� � ������ �p� � ������

�np� � ������ �p� � ������ �np� � ������ This �exible structure experiment is well studied

���� ���� Of the SISO problems� control using only y� is a much more dicult problem than

Page 101: Stanford University · I certify that ha v e read this dissertation and in m y opinion it is fully adequate in scop e and qualit y as a disser tation for the degree of Do ctor of

CHAPTER �� EXPERIMENTS ��

0 5 10 15 20 25 30 35−25

−20

−15

−10

−5

0

5

u

y3

Identification Data Non−Colocated Case

time (seconds)

volta

ge o

r ra

dian

s

Figure ���� Identication data

Two cycles of a �� second pseudo random binary sequence drive the plant� The�rst resonant mode of the plant is visible in the y� time data�

control using only y� �����

��� NonCollocated OLine Control Design

The following example demonstates the capability of the batchH� control design technique�

Figure ��� shows two cycles of a �� second pseudo�random binary sequence used to excite the

plant� and the resulting plant output y�� Data were collected for �� seconds at a sampling

frequency of �� Hz�

The weighting functions for the control design were selected in continuous time� and

discretized using the Tustin transformation� The discrete time Bode plots of the inverse of

the weighting functions are shown in Figure ���� The Bode plot of the best model of the

Page 102: Stanford University · I certify that ha v e read this dissertation and in m y opinion it is fully adequate in scop e and qualit y as a disser tation for the degree of Do ctor of

CHAPTER �� EXPERIMENTS ��

100

101

102

−50

−40

−30

−20

−10

0

10

20

30

40

50

Frequency (rad/sec)

Mag

nitu

de (

dB)

W1−1

W2−1

P

Figure ���� Control specication

To satisfy this performance speci�cation� kSk must be less than kW�k�� over allfrequency�

plant is also displayed in Figure ���� The important feature of Figure ��� is that W� species

a bandwidth of nearly �� rad�s� which is past the rst resonant mode of the nominal plant

��� rad�s�� It is also important to note that although the excitation signal in Figure ��� is

very rich� the data set is quite short �n � ������

With the data set of Figure ���� i � ��� and the control specication of Figure ����

�min � ��� was computed� Selecting � � ��� � �������min in order to provide a margin of

robustness beyond the usual � � ������min� the model free subspace based H� controller

was implemented� The experimental step response is shown in Figure ���� Note a rise time

of ���� seconds� ringing at ��� Hz ��� rad�s�� and a steady state error of ����

The observed rise time� ringing and steady state errors compare well to the values

expected if the plant is approximated by a second order LTI system ����� Figure ��� indicates

Page 103: Stanford University · I certify that ha v e read this dissertation and in m y opinion it is fully adequate in scop e and qualit y as a disser tation for the degree of Do ctor of

CHAPTER �� EXPERIMENTS ��

0 1 2 3 4 5−0.6

−0.4

−0.2

0

0.2

0.4

0.6

0.8

1

1.2

time (seconds)

deca

volts

or

radi

ans

Step Response

ryu

Figure ���� Experimental step response

The rise time of this step response is consistent with the design bandwidth� Theresidual ringing is expected based on the performance speci�cation�

a design cuto� frequency of ��� Hz ��� rad�s�� this implies trise e�����n

� ����� � ���� seconds�

which is close to the observed ���� seconds� The ringing at approximately ��� Hz ��� rad�s�

is also consistent with the design cuto� frequency of ��� Hz ��� rad�s�� The choice of � � ���

with a design of �� dB of rejection at DC implies an open loop DC gain of ���������� � ����

which in turn implies an expected steady state error of ������ � ���� The observed steady

state error is ����

In order to better evaluate the step response of Figure ���� a discrete� innite horizon

model based H� controller was designed using the zero order hold discretization of the plant

model Py��u� the weighting lters of Figure ���� and � � �������min � ������������ � ����

Figure ��� shows the simulated step response �yideal�� generated from a noise free closed

Page 104: Stanford University · I certify that ha v e read this dissertation and in m y opinion it is fully adequate in scop e and qualit y as a disser tation for the degree of Do ctor of

CHAPTER �� EXPERIMENTS ��

0 1 2 3 4 50

0.2

0.4

0.6

0.8

1

1.2

1.4

time (seconds)

radi

ans

Step Response

r y y

ideal

Figure ���� Comparison to ideal simulation

The similarity between the ideal step response and the experimental step responseindicate that the experiment produces similar response to the best that could beexpected with complete plant knowledge�

loop simulation of the plant with the model based H� control law� The key point is

that yideal is the best response that any controller can be expected to achieve with this

performance specication� because the control design and simulation are performed with

perfect plant knowledge� Comparing the experimental data y to the ideal response indicates

that the actual performance achieved by the nite horizon subspace based controller using

experimental data is similar to the best that could be expected�

The �ideal design of Figure ��� suggests one more obvious experiment� how well would

the innite horizon model based H� control design perform on the real system� The answer

is� quite poorly� The unstable step response of this closed loop experiment appears in Figure

Page 105: Stanford University · I certify that ha v e read this dissertation and in m y opinion it is fully adequate in scop e and qualit y as a disser tation for the degree of Do ctor of

CHAPTER �� EXPERIMENTS ��

0 1 2 3 4 5−0.8

−0.6

−0.4

−0.2

0

0.2

0.4

0.6

0.8

1

1.2

time (seconds)

radi

ans

Step Response

ry

Figure ���� Model based control experiment

The model based control design produces an unstable step response when testedon the experimental system�

���� showing large oscillations at approximately �� rad�s� Poor DC response is also evident

in the drastic undershoot of the initial step response�

Clearly the plant model used to design the innite horizon control law is not an accurate

model of the real dynamics of the system� Although it is not possible to directly determine

what portion of the plant model is at fault� it is possible to directly compare the successful

model free control law with the unsuccessful model based control law� Figure ��� shows

these two control laws� The subspace based controller �Ksub� has signicantly greater low

frequency gain than the model based controller �Kmodel�� The notches in the controllers

near �� rad�s are in di�erent locations� and are thus the likely source of the unstable closed

loop performance of the model based control law�

Page 106: Stanford University · I certify that ha v e read this dissertation and in m y opinion it is fully adequate in scop e and qualit y as a disser tation for the degree of Do ctor of

CHAPTER �� EXPERIMENTS ��

Frequency (rad/sec)

Pha

se (

deg)

; Mag

nitu

de (

dB)

Controller Comparison

−20

0

20

40

60From: U(1)

Ksub

Kmodel

100

101

102

−400

−300

−200

−100

0

100

To:

Y(1

)

Ksub

Kmodel

Figure ���� Comparison of subspace based and model based controllers

The subspace based controller �Ksub� and the model based controller �Kmodel�di er signi�cantly in the location of the notch near �� rad�s� This is the likelysource of the unstable closed loop performance of the model based control law�

Page 107: Stanford University · I certify that ha v e read this dissertation and in m y opinion it is fully adequate in scop e and qualit y as a disser tation for the degree of Do ctor of

CHAPTER �� EXPERIMENTS ��

��� Adaptive Simulation

This section demonstates the on�line model free subspace based H� algorithm� especially

its ability to control a dynamic system with very little a priori information� Unfortunately�

presently available computational power limits the evaluation of the adaptive algorithm

to simulated plants� Throughout this section� the collocated SISO plant of Figure ��� is

simulated with zero�mean white Gaussian sensor noise� � � �����

Throughout this simulation� the weighting functions of Figure ��� are used� The policy

for selecting � is � � �min ! ���� which for most values of �min is somewhat greater than the

minimum rule of thumb of � � ������min� During simulation� the extra margin was found

to increase the robustness of the design� thereby causing the simulation to have smaller

excursions prior to controller convergence� The sample rate is �� Hz� and i � ��� In order

to initialize R �as dened in Section ����� the plant is excited with � seconds �n � ���� of

zero�mean white Gaussian noise� � � �� The resulting input�output data are then used to

form square Up ������ Uf ������ Yp ������ Yf ����� from which the initial R is calculated�

Every �� time steps� Lw� Lu are updated with �� new �u� y�� pairs� and new k�� k�� k�� k

are computed and introduced into the controller K� Figure ��� shows the adaptive simula�

tion starting at t � � seconds� i�e� immediately after the initialization data� The reference

signal is a series of step commands� The adaptive system begins with very poor performance�

then quickly improves to achieve good tracking control�

As was done for the o��line design example� the signal yideal is calculated and plotted

for the model based innite horizon H� controller utilizing the weighting functions of

Figure ���� In addition� Figure ���� plots the di�erence between y �the model free adaptive

simulation� and yideal� As the adaptive system converges� its performance closely resembles

that achieveable with perfect plant knowledge�

Figure ���� shows �min as a function of time for the simulation of Figure ���� As the

controller obtains more experimental data� the best attainable performance changes� note

that there is no reason to expect that it should vary monotonically� After t � �� seconds�

�min settles towards a steady state value� close to the �min � ���� computed by the in�nite

horizon model based design� Thus the �min determined by the adaptive algorithm is a

reasonable estimate of the true achievable closed loop performance�

Page 108: Stanford University · I certify that ha v e read this dissertation and in m y opinion it is fully adequate in scop e and qualit y as a disser tation for the degree of Do ctor of

CHAPTER �� EXPERIMENTS ��

10−2

10−1

100

101

102

−50

−40

−30

−20

−10

0

10

20

30

40

50

Frequency (rad/sec)

Mag

nitu

de (

dB)

Design

W1−1

W2−1

P

Figure ���� Design for adaptive simulation

To satisfy this performance speci�cation� kSk must be less than kW�k�� over allfrequency�

Page 109: Stanford University · I certify that ha v e read this dissertation and in m y opinion it is fully adequate in scop e and qualit y as a disser tation for the degree of Do ctor of

CHAPTER �� EXPERIMENTS ��

5 10 15 20 25 30 35 40−6

−4

−2

0

2

4

6

8

10

12

time (seconds)

radi

ans

Adaptive Controller, With 6 Seconds Of Initial Data (White)

r y y

ideal

Figure ���� Adaptive simulation

The adaptive controller converges quickly� producing performance that closelyresembles that achieveable with perfect plant knowledge�

Page 110: Stanford University · I certify that ha v e read this dissertation and in m y opinion it is fully adequate in scop e and qualit y as a disser tation for the degree of Do ctor of

CHAPTER �� EXPERIMENTS ��

5 10 15 20 25 30 35 40−0.5

−0.4

−0.3

−0.2

−0.1

0

0.1

0.2

0.3

0.4

0.5

time (seconds)

radi

ans

Adaptive Controller, With 6 Seconds Of Initial Data (White)

y−yideal

r/4

Figure ����� Adaptive simulation error

The di erence between the adaptive system performance and the ideal systemperformance quickly becomes small as the adaptive system converges� The ref�erence signal has been scaled by ����

Page 111: Stanford University · I certify that ha v e read this dissertation and in m y opinion it is fully adequate in scop e and qualit y as a disser tation for the degree of Do ctor of

CHAPTER �� EXPERIMENTS ��

5 10 15 20 25 30 35 400.8

1

1.2

1.4

1.6

1.8

2

2.2

2.4

2.6

time (seconds)

γ min

γmin

As A Function Of Time

Figure ����� �min during adaptive simulation

During adaptation� �min �uctuates in a non�monotonic manner� eventually con�verging to a steady state value close to that predicted by the in�nite horizonmodel based control design�

Page 112: Stanford University · I certify that ha v e read this dissertation and in m y opinion it is fully adequate in scop e and qualit y as a disser tation for the degree of Do ctor of

CHAPTER �� EXPERIMENTS ��

��� Summary

The high performance non�collocated control of a lightly damped �exible structure is demon�

strated using the batch model free subspace based H� control technique� The observed

experimental performance is close to the best performance that can be obtained in simu�

lation� demonstrating the capabilities of the new control design technique� A simulation

in which a lightly damped collocated �exible structure is controlled using the adaptive

model free subspace based H� technique demonstrates the adaptive technique�s capability

to rapidly converge to an appropriate control law� Again� performance is close to the best

performance that can be obtained in simulation�

Page 113: Stanford University · I certify that ha v e read this dissertation and in m y opinion it is fully adequate in scop e and qualit y as a disser tation for the degree of Do ctor of

Chapter �

Model Unfalsi�cation

In order to use one of the model free subspace based robust control laws of Chapter �� the

engineer must select an appropriate uncertainty model based on intuition� plant analysis�

or other such technique ���� ���� If it were possible to eciently obtain an appropriate

uncertainty model during the process of forming the subspace predictor� a more automated

robust design technique would be enabled�

In this chapter� the theory of model unfalsication ���� is applied to the problem of

deriving an uncertainty model for the model free subspace based robust control technique

employing an additive uncertainty� Unfortunately� this method of automatically obtaining

an uncertainty model is too computationally expensive to demonstrate in simulation� The

subspace uncertainty model unfalsication technique developed in this chapter is similar to

ARX uncertainty model unfalsication ����� which also su�ers from computational complex�

ity issues� If the computation required to solve the ARX uncertainty model unfalsication

problem were greatly reduced� then the connection between ARX uncertainty model unfal�

sication and subspace uncertainty model unfalsication demonstrated in this chapter will

likely enable automated model free subspace based robust control�

Section ��� reviews the theory of unfalsication of LTI models� Section ��� reviews the

application of these ideas to the ARX problem� Section ��� applies the uncertainty model

unfalsication idea to the subspace prediction problem�

���

Page 114: Stanford University · I certify that ha v e read this dissertation and in m y opinion it is fully adequate in scop e and qualit y as a disser tation for the degree of Do ctor of

CHAPTER �� MODEL UNFALSIFICATION ���

��� LTI Uncertainty Model Unfalsi�cation

Science operates on the principle of forming many hypotheses about the way the world

works� and then performing many experiments to test each hypothesis� If a single experi�

ment is performed to test a single hypothesis� and the experiment supports the hypothesis�

then all that can be said is that the experiment does not falsify the hypothesis� Humanity

never has conclusive proof that the hypothesis is true� we can only build up vast amounts

of evidence �through experiment� that the hypothesis has not been proven false ����� Ex�

periments falsify or unfalsify scientic hypotheses� This idea can be summarized by the

following denition�

Denition ����

A physical model is said to be unfalsied by an experiment if the model could have

produced the experimental data� �

The notion of unfalsication can be applied to the observation of plant input�output

data ����� In this chapter� the hypothesis that is to be tested is �could the input�output

data have been produced by an LTI transfer function with H� induced gain less than �� �

Theorem ��� provides the exact condition for the existence of input�output data that could

have been produced by a level�� H� norm bounded LTI system �����

Theorem ���

Consider SISO input�output data of length n

�BBBBBB�

��������u�

u����

un��

�������� ���������

y�

y����

yn��

��������

�CCCCCCALet � represent unknown future data� Then there exists an LTI operator $�q� such that

Page 115: Stanford University · I certify that ha v e read this dissertation and in m y opinion it is fully adequate in scop e and qualit y as a disser tation for the degree of Do ctor of

CHAPTER �� MODEL UNFALSIFICATION ���

k$k� � � and ��������������

y�

y����

yn������

��������������� $�q�

��������������

u�

u����

un������

��������������if and only if

T �y�TT �y� � ��T �u�TT �u� �����

where u� y� T �u� and T �y� are de�ned by

u��

��������u�

u����

un��

�������� y��

��������y�

y����

yn��

��������

T �u���

��������u� � � � � �

u� u� � � � ����

���� � �

���

un�� un�� � � � u�

�������� T �y���

��������y� � � � � �

y� y� � � � ����

���� � �

���

yn�� yn�� � � � y�

��������and q is the forward shift operator� �

��� ARX Uncertainty Model

The application of Theorem ��� to the derivation of an uncertainty�noise model from ex�

perimental input�output data was rst developed in ���� ���� In this section� Theorem ��� is

applied to the ARX plant identication problem� the resulting formulation simultaneously

recovers a SISO LTI plant model and an LTI uncertainty model by performing a linear

matrix inequality �LMI� constrained optimization ����� First� the classic ARX formulation

will be reviewed �����

Page 116: Stanford University · I certify that ha v e read this dissertation and in m y opinion it is fully adequate in scop e and qualit y as a disser tation for the degree of Do ctor of

CHAPTER �� MODEL UNFALSIFICATION ���

���� Classical ARX

Consider the ARX plant structure

A�q�y � B�q�u ! e

A�q� � � ! a�q�� ! � � �! anaq

�na

B�q� � b�q�� ! � � �! bnbq

�nb

where �u� y� are the input�output experimental data� q is the forward shift operator� and the

error signal e represents all the mismatch between the model and the actual experimental

data� In the ARX problem� it is assumed that the error is due to �noise � In order to best

t the polynomials A�q� and B�q� to the data� � is selected to minimize the noise energy�

that is

� � arg min�

n��Xk��

kek���k�� � arg min�

e���T e��� �����

where

e����� %� ! Y

%��

��������y�� � � � y�na �u�� � � � �u�nby� � � � y�na�� �u� � � � �u�nb��

������

������

������

yn�� � � � yn�na�� �un�� � � � �un�nb��

��������

���

��������������

a����

ana

b����

bnb

��������������Y��

��������y�

y����

yn��

��������

Note that ����� is a least squares problem� Either the system is assumed to be at rest� i�e�

yk � � k � f��� � � � � nag and uk � � k � f��� � � � ��nbg� or it is assumed that the data

prior to time � is known a priori� The solution to the ARX problem ����� is given by

� � ��%T%���%TY

Page 117: Stanford University · I certify that ha v e read this dissertation and in m y opinion it is fully adequate in scop e and qualit y as a disser tation for the degree of Do ctor of

CHAPTER �� MODEL UNFALSIFICATION ���

���� ARX Unfalsi�ed Uncertainty Model

Within the ARX framework� it is possible to assume that the error �e� is not only due to

noise �� but also due to �plant uncertainty ���� i�e�

A�q�y �B�q�u � e�� � ! $�q�u �����

This formulation leaves the engineer with a trade� how much of the mismatch �e� should

be attributed to noise� and how much should be attributed to plant uncertainty� One such

method for making this trade is to choose a maximum permissable noise power

k�krms � �

and then use the experimental data to compute the minimum sized uncertainty that is

necessary to unfalsify the error model ����� with respect to the experimental data� By

invoking Theorem ���� the minimum unf that satises

k$k� � unf

and unfalsies the experimental data is given by

unf � min�����

�����

subject to

T �e���� ��TT �e���� �� � �T �u�TT �u�

Problem ����� can be written as a linear matrix inequality �LMI� optimization ���� The

program is

unf � min�����

subject to

� ��� � �p

n�T

�pn� �I

�� � ��� T �u�TT �u� T �e���� ��T

T �e���� �� I

��where � � IRn� For even moderate data sets� this is a large problem� as there are n!na!nb!�

variables� and the constraints are size �n ! �� �n ! �� and size ��n� ��n��

Page 118: Stanford University · I certify that ha v e read this dissertation and in m y opinion it is fully adequate in scop e and qualit y as a disser tation for the degree of Do ctor of

CHAPTER �� MODEL UNFALSIFICATION ���

��� Subspace Uncertainty Model Unfalsi�cation

A similar LMI optimization can be formulated for the subspace prediction problem of Section

���� The error model for the subspace problem ����� is

Yf �hLw Lu

i �� Wp

Uf

��! E

where Yf � Wp� and Uf are as dened in Section ���� and E is a matrix of noises� If the error

model is modied to include plant uncertainty� then

Yf �hLw Lu

i �� Wp

Uf

�� � E � & ! $�q�Uf

where & is a matrix of noises� and $ represents a set of j LTI operators that each operate

on one column of the matrix Uf �

If the engineer species �� the RMS noise power in &� that is

iljk&k�F � ��

then the smallest plant uncertainty that can unfalsify the experimental data is given by

unf � min��Lw�Lu��

�����

subject to

� �

��� � �piljvec�&�T

�piljvec�&� �I

���� �

�� T ��Uf ���k�TT ��Uf ���k� T ��E�Lw� Lu�� &���k�T

T ��E�Lw� Lu�� &���k� I

�� k � f�� � � � � jg

Page 119: Stanford University · I certify that ha v e read this dissertation and in m y opinion it is fully adequate in scop e and qualit y as a disser tation for the degree of Do ctor of

CHAPTER �� MODEL UNFALSIFICATION ���

where

vec�&� �

��������&���

&���

���

&��j

��������Note that this problem is extremely large� with �il��il!�im!j�!� variables� one constraint

size �ilj ! �� �ilj ! ��� and j constraints size �i ! il� �i ! il��

��� Discussion

The method of developing an unfalsied model proposed in Section ��� is computationally

expensive� Consider the simple example of a SISO plant with i � ���� j � ����� the

problem has ������ variables� and it would take ����� �� real numbers to write out the

constraints� This method of obtaining uncertainty models directly from data will not be

computationally realistic in the forseeable future�

However� if it were possible to solve ����� for moderately large problems� the following

steps might be used as the basis of a robust adaptive system�

�� Collect experimental data

�� Select W�� W�� �

�� Compute by solving ����� compute Lw� Lu� �mina using Theorem ��� with W� � �� I�

W � I

�� Select � � �mina

�� Implement the robust controller using Theorem ���

It is hoped that future researchers may be able to more eciently solve ����� or a similar

problem� so that appropriate uncertainty models may be derived directly from experimental

data�

Page 120: Stanford University · I certify that ha v e read this dissertation and in m y opinion it is fully adequate in scop e and qualit y as a disser tation for the degree of Do ctor of

Chapter �

Conclusions

This chapter summarizes the work in this thesis� and provides suggestions for future re�

searchers�

��� Summary

This thesis presents a new control design technique that enables the synthesis of central

��optimal H� controllers directly from experimental data� The process uses a subspace

predictor in order to extrapolate future plant outputs from past experimental data and

future plant inputs�

The new model free subspace based control design technique is able to solve many

MIMO H� problems� including mixed sensitivity cost functions� mixed sensitivity cost

functions with multiplicative uncertainty� and mixed sensitivity cost functions with additive

uncertainty� In the limit as � ��� the design technique recovers the model free subspace

based LQG control design technique� If the experimental data are collected from a truly

linear time�invariant �LTI� plant� and if the amount of experimental data becomes very

large� it is possible to show that the model free subspace based H� controller is equivalent

to a Kalman lter estimating the plant state� with a full information nite horizon H�controller operating on the estimated plant state�

A simplied method of implementing the receding horizon versions of model free sub�

space based controllers is developed� A fast method of updating the controllers upon the

collection of new experimental data is also developed� enabling adaptive model free sub�

space based control� It is possible to closely control the �windowing of the experimental

���

Page 121: Stanford University · I certify that ha v e read this dissertation and in m y opinion it is fully adequate in scop e and qualit y as a disser tation for the degree of Do ctor of

CHAPTER �� CONCLUSIONS ���

data� so that the controller may not only �learn from new experimental data� but it may

also �forget old experimental data� A trade study is performed on the design technique

using a simple control problem�

A non�collocated �exible structure laboratory experiment is used to demonstrate the

o��line H� control design technique� In the example high performance control design� the

model free subspace based technique out performs the model based control design tech�

nique� A simulated collocated �exible structure is used to demonstrate the on�line adaptive

technique� It is shown that the adaptive technique quickly converges to an approximation

of the ideal performance that could be expected if perfect plant knowledge were available�

Finally� using plant unfalsication techniques� a method of determining appropriate ad�

ditive uncertainty models for robust model free subspace based H� controllers is proposed�

It is computationally expensive and is thus unlikely to be useful in the near future�

��� Future Work

This research provides several opportunities for possible future research and development�

The method of calculating the subspace predictors might be made more ecient by better

exploitation of the Hankel structure of the problem� It might also be possible to extend the

technique to other mixed H��H� control problems� As is the case with model based robust

H� design� the model free robust H� solution is often conservative due to the o� diagonal

terms in the unstructured uncertainty block $� Extending the formulation to a structured

uncertainty� enabling ��synthesis for model free subspace based control may help alleviate

this conservativeness� Developing a computationally feasible method of calculating the

uncertainty $ from experimental data may greatly improve the ability to automate on�line

model free robust control design�

Page 122: Stanford University · I certify that ha v e read this dissertation and in m y opinion it is fully adequate in scop e and qualit y as a disser tation for the degree of Do ctor of

Bibliography

��� Pascale Bendotti� Benoit Codrons� Clement�Marc Falinower� and Michel Gevers� Con�

trol oriented low order modelling of a complex pressurized water reactor plant� A

comparison between open loop and closed loop methods� Proceedings of the IEEE

Conference on Decision and Control� ������������ �����

��� Dennis S� Bernstein and David C� Hyland� Optimal projection equations for nite�

dimensional xed�order dynamic compensation of innite�dimensional systems� SIAM

Journal on Control and Optimization� �������������� January �����

��� R�B� Bitmead� M� Gevers� and V� Wertz� Adaptive Optimal Control � The Thinking

Man�s GPC� Prentice Hall International� �����

��� S� Boyd� L� El Ghaoui� E� Feron� and V� Balakrishnan� Linear Matrix Inequalities in

System and Control Theory� SIAM Studies in Applied Mathematics� �����

��� Stephen P� Boyd and Craig H� Barratt� Linear Controller Design� Limits of Perfor�

mance� Prentice Hall� �����

��� Arthur E� Bryson and Yu�Chi Ho� Applied Optimal Control� Hemisphere Publishing

Corporation� �����

��� D�W� Clarke� C� Mohtadi� and P�S� Tu�s� Generalized predictive control � part i� the

basic algorithm� Automatica� �������������� March �����

��� D�W� Clarke� C� Mohtadi� and P�S� Tu�s� Generalized predictive control � part ii�

extensions and interpretations� Automatica� �������������� March �����

��� Benoit Codrons� Pascale Bendotti� Clement�Marc Falinower� and Michel Gevers� Com�

parison between model reduction and controller reduction�application to a pressurized

���

Page 123: Stanford University · I certify that ha v e read this dissertation and in m y opinion it is fully adequate in scop e and qualit y as a disser tation for the degree of Do ctor of

BIBLIOGRAPHY ���

water reactor nuclear plant� Proceedings of the IEEE Conference on Decision and

Control� ������������ �����

���� H'useyin Demircio(glu and Ercan Karasu� Generalized predictive control� IEEE Control

Systems Magazine� ������������ October �����

���� W� Favoreel� B� De Moor� M� Gevers� and P� van Overschee� Model�free

subspace�based lqg�design� Technical report� Katholieke Universiteit Leuven� �����

ftp���ftp�esat�kuleuven�ac�be�pub�SISTA�favoreel�reports�report�����I�ps�gz�

���� W� Favoreel� B� De Moor� and P� van Overschee� Model�free subspace�based lqg�design�

Proceedings of the American Control Conference� pages ���������� June �����

���� R�P� Feynman� R�B� Leighton� and M� Sands� The Feynman Lectures on Physics�

Addison�Wesley� �����

���� Gene F� Franklin� J� David Powell� and Abbas Emami�Naeini� Feedback Control of

Dynamic Systems� Addison�Wesley Publishing Company� �����

���� Gene F� Franklin� J� David Powell� and Michael L� Workman� Digital Control of

Dynamic Systems� Addison�Wesley Publishing Company� �����

���� Carlos E� Garcia� David M� Prett� and Manfred Morari� Model predictive control�

Theory and practice � a survey� Automatica� �������������� May �����

���� Gene H� Golub and Charles F� Van Loan� Matrix Computations� The Johns Hopkins

University Press� �����

���� Michael Green and David J�N� Limebeer� Linear Robust Control� Prentice Hall� �����

���� M�J� Grimble� Multi�step H� generalized predictive control� Dynamics and Control�

������������� October �����

���� J�N� Juang� Applied System Identi�cation� PTR Prentice�Hall� �����

���� R�L� Kosut� Uncertainty model unfalsication� A system identication paradigm com�

patible with robust control design� Proceedings of the IEEE Conference on Decision

and Control� December �����

Page 124: Stanford University · I certify that ha v e read this dissertation and in m y opinion it is fully adequate in scop e and qualit y as a disser tation for the degree of Do ctor of

BIBLIOGRAPHY ���

���� R�L� Kosut� Iterative adaptive robust control via uncertainty model unfalsication�

Proceedings of the International Federation of Automatic Control� June �����

���� Wiley J� Larson and James R� Wertz Editors� Space Mission Analysis and Design�

Microcosm� Inc� Kluwer Academic Publishers� �����

���� W�S� Lee� B�D�O Anderson� I�M�Y� Mareels� and R�L� Kosut� On some key issues in

the windsurfer approach to robust adaptive control� Automatica� �����������������

�����

���� L� Ljung� System Identi�cation� Theory for the User� Prentice�Hall� �����

���� P� Lundstrom� J�H� Lee� M� Morari� and S� Skogestad� Limitations of dynamic matrix

control� Computers and Chemical Engineering� �������������� April �����

���� J�M� Maciejowski� Multivariable Feedback Design� Addison�Wesley� �����

���� J�P� Norton� Introduction to Identi�cation� Academic Press� �����

���� Thomas R� Parks� Manual for Model �������a Torsional Control� Educational Control

Products� �����

���� K� Polla� P� Khargonnekar� A� Tikku� J� Krause� and K� Nagpal� A time�domain

approach to model validation� IEEE Transactions on Automatic Control� ����������

���� May �����

���� Dan E� Rosenthal� Experiments in Control of Flexible Structures with Uncertain Pa�

rameters� PhD thesis� Stanford University� �����

���� M�G� Safonov and T�C� Tsao� The unfalsied control concept� A direct path from

experiment to controller� Proceedings of the Conference on Feedback Control� Nonlinear

Systems� and Complexity� May �����

���� M�G� Safonov and T�C� Tsao� The unfalsied control concept and learning� IEEE

Transactions On Automatic Control� �������������� June �����

���� B� Sayyar�Rodsari� J�P� How� Babak Hassibi� and A� Carrier� An H��optimal alter�

native to the fxlms algorithm� Proceedings of the American Control Conference� pages

���������� June �����

Page 125: Stanford University · I certify that ha v e read this dissertation and in m y opinion it is fully adequate in scop e and qualit y as a disser tation for the degree of Do ctor of

BIBLIOGRAPHY ���

���� W�E� Staib and R�B� Staib� A neural network electrode positioning optimization system

for the electric arc furnace� International Joint Conference on Neural Networks� ������

�� �����

���� Robert F� Stengel� Optimal Control And Estimation� Dover Publications� Inc�� second

edition� �����

���� Mark B� Tischler� Joseph T� Driscoll� Mavis G� Cau�man� and Cynthia J� Freed�

man� Study of bearingless main rotor dynamics from frequency�response wind tunnel

test data� American Helicopter Society Aeromechanics Specialists Conference� January

�����

���� Johnson Tse� Joseph Bentsman� and Norman Miller� Properties of the self�tuning min�

imax predictive control �mpc�� Proceedings of the ���� American Control Conference�

pages ���������� �����

���� Peter van Overschee and Bart De Moor� Subspace Identi�cation for Linear Systems�

Kluwer Academic Publishers� �����

���� Bernard Widrow and Samuel D� Stearns� Adaptive Signal Processing� Prentice�Hall�

�����

���� Bernard Widrow and E� Walach� Adaptive Inverse Control� Prentice�Hall� �����

���� E� Wilson� Adaptive prole optimization for the electric arc furnace� Steel Technology

International� pages �������� �����

���� Haipeng Zhao and Joseph Bentsman� Multivariable h� predictive control based on

minimax predictor� Proceedings of the IEEE Conference on Decision and Control�

������������ �����

���� Kemin Zhou� John C� Doyle� and Keith Glover� Robust and Optimal Control� Prentice

Hall� �����


Recommended