[Music] as uh we had said in the last lecture today we are going to talk about certain basic facts about convex optimization itself that is we are going to discuss today the minimization of a convex function f subject to X belonging to a convex set C so this is what I called a convex function and this is what I call a convex set now of course the question is what is a convex function and what is a convex set now before I uh start the ffled discussion let me tell you that uh I would like
to uh show you a book which you I think everybody should have a look at it this book is called optimization insights and application written by Jan bring quiz and Vladimir tikhomirov and I spoken about a book called stories about Maxima and Minima written by Vladimir tikhomirov this book is a fabulous book whether you want to do convex optimization or even the non-convex one has a huge amount of insight it's published by Princeton University press in the Princeton Series in Applied Mathematics quite a recent publication and it is just a mind-blowing read and in fact
it is something everybody who wants to do anything with optimization should have a copy in their desk so going back we'll first Define what is a convex set see simply put convex set means that if I take a set in generally in RN but as always we'll look in look into the pictures in R2 and take two points X and Y in this set any two points and join them by a line segment then this line segment should also remain inside the set now if you look at this set whatever points you take and when
whenever you join them they remain inside this set you take a set like this I take a point here I take a point here and I try to join join it that goes outside or a set like this it's more clear if I take these two points I join them a part of the line segment is outside the set so this set is convex these two are non-convex if you look at your own body your human body the human body is non-convex because if you take a point here I take a point here you join
them it's completely outside the body so human body is a non-convex thing is a non-convex set now how do I formalize this definition that if I join any pair of points by a line segment the line segment has to be in the set and that is that that sort of set is called a convex set so to begin with I'll talk about the def given any two points X and Y in RN the definition of a line segment the line segment is usually denoted as with this symbol it is a set of all Zed which
is expressed as Lambda * Y into 1 - Lambda * X where Lambda is a number between 0 and 1 so it means if I take this two points X and Y and if I put Lambda equal to0 here I'm getting X and if I put Lambda equal to 1 I'm getting y so as I vary Lambda from 0 to 1 we move along this line from X to Y so it's clear that this is nothing but the simple geometric line segment that we know so even when you are talking about two points in three
dimensional space we are talking about this line segment now formally a convex set is a set such that for any XY in the set XY L segment is also a subset of the set so this is just a thing in the English language which You Now understand very well now what is a convex function a convex function can be defined from RN to r or it can be defined from a set convex subset c to R where C is a subset of RN and is convex now the most original or the most or rather I
would say the earliest definition of a convex function was due to Jensen wbb Jensen and Jensen gave this definition which says that if you consider from RN to r or even from C to R so F of Lambda y + 1 - Lambda X see this is very well defined if you take a convex set C and Y and X two elements of C then Lambda y + 1 minus Lambda X whenever Lambda is between 0 and 1 is element of C so this functional operation is well defined this has to be less than Lambda
* FY + 1 - Lambda * FX for all XY in RN or C and Lambda in 01 this is the definition of Jensen but are much more modern definition can be given in terms of EP graph EP graph of a function f is everything that lies above the graph so if this is the function f and this is the graph an EP graph is the dotted portion along with the outer curve anything of the graph is called the AP graph so this is the APF EP graph of f okay so the EP graph of
f which we denote as APF is a collection of all elements X Alpha where X is in RN and Alpha is in R such that f of x must be less than or equal to Alpha which is very clear from the diagram now what you can prove is that a function is convex if and only if its epigraph is convex now proving this is a simple fact because you look at this function whose epigraph is convex then you can prove that this definition satisfies the definition that we had given on page this page so going
ahead let me try to prove that if f is convex then AP graph of f is convex so let us assume that f is convex now you consider two elements X1 alpha 1 and X2 Alpha 2 from the EP graph of F both of them now if you make a combination Lambda X1 alpha 1 + 1 - Lambda X2 Alpha 2 where Lambda is some number between 0 and 1 then this just means Lambda X1 + 1 - Lambda of X2 comma Lambda * alpha 1 + 1 - Lambda * Alpha 2 so I have
said that AP graph of f is convex right now since f is convex I have to prove that the AP graph of f is convex now convexity of f tells me that Lambda X1 + 1 - Lambda X2 is less than Lambda F of X1 + 1- Lambda F of X2 you must remember one thing if your Lambda is attached here your FX1 Lambda gets attached to FX1 if 1 - Lambda is with X2 1 - Lambda on this side gets attached to FX2 but since X1 alpha 1 is in the EP graph F of
X1 is less than alpha 1 and since X2 and Alpha 2 is in the EP graph FX2 is less than Alpha 2 so which means that F of this would imply that F of Lambda X1 + 1 - Lambda X2 is less than equal to Lambda Alpha 1 + 1 - Lambda Alpha 2 by the very definition of the Epic graph go back once again check the definition look at this definition FX is less than equal to Alpha all such X Alphas for which this occurs so this is an X and this is an alpha
this is an RN and this is an r and then this would imply that Lambda X1 + 1 - Lambda X2 Lambda alpha 1 + 1 - Lambda Alpha 2 this is in the epigraph so I've taken two orbitary elements in the from the epig graph and showed that their convex combination lies in the epigraph which proves that APF is convex or is a convex set to be more precise now suppose I go want to go back I want to go back and prove that given APF is convex then f is convex now by the
definition of AP graph if you take two points X1 then X1 X1 and X2 then X1 FX1 and X2 FX2 both these points are in the epigraph they belong to the epig graph of F both of these two points are in the epig graph and you know that AP graph of f is given to be convex so which means that for all Lambda you take between 0o and one for all Lambda between 0 and 1 Lambda X1 + 1 - Lambda X2 Lambda FX1 + 1 - Lambda FX2 is in the APF again by the
definition of APF it simply means that F of Lambda X1 + 1 - Lambda X2 is less than Lambda * FX1 + 1 - Lambda * FX2 so in many cases the modern definition of convex functions are given in this way that a function is a convex function if the epigraph is a convex set so here okay here we go back to the usual definition of a convex function I'll just drop this to make it all right now now let me tell you about a text from which you would be able to know convexity or
convex analysis at its best so I would refer to the most legendary and classical text in this area called convex analysis this is published by Princeton it was published by Princeton University press in 1970 and it is republished in 1994 as Princeton landmarks in mathematics and this is by one of the famous mathematicians in this area Ralph tyel Rockefeller whose name is almost synonymous with convex analysis so and anybody who is an optimization student who is a graduate student in optimization should have this book with him and and our own experience as a researchers as
a my own experience as a researcher in optimization that even if I'm stuck with some difficulty in convex analysis in my research I just have to go to the book of Rockefeller hang around with it for a few hours and the answer would when you we can actually figure out you can actually figure out the answer so that is the power of this book now let me tell you one thing uh is that this book is not a book which has to be read from cover to cover no mathematics books are actually they are not
story books that you read from cover to cover uh you you can follow if you read at the places where you want but this book specifically is not a cover to cover book as written by the author himself in the preface that you really need to this book is something which is to help you when you are in trouble but this book is a must for all optimization researchers and graduate students in optimization I would write here strongly recommended now if you look into this book I'll just digress a bit I understand that here I
have a diverse audience as I realized uh rather I had said in the last lecture because of this diverse audience I would like to reduce a bit the rigor that is required to do the mathematics of this subject but however to give the taste of what convex analysis is and our convexity is we need to go and understand the idea of an extended value function if you go and open this book convex analysis in the very first chapters dealing with convex functions you will see that he Rockefeller speaks about convex functions which are defined from
RN to R Bar where R Bar is R Union the two Infinities minus infinity and plus infinity it looks strange but this is called the extended real line now why you need to speak about extended real line the reason is essentially as follows you will realize as we go on that unconstant problems where there are no restrictions on the decision variables such problems are much more easy to tackle than the problems which have restrictions on the decision variable like we saw last in the last lecture so how do I theoretically convert a problem which is
a problem with restrictions on the variable to a problem which does not have restrictions in the variable to do this if you look at the problem that we are dealing with minimize FX X element of C then this is a constraint problem this has a restriction that x x is pressed to C then consider this consider this function which takes the value FX when X is in C and takes the value plus infinity when X is not in C though you might uh find it bit difficult in the beginning to appreciate this but those who
know some optimization has read a have a very have an exposure to undergraduate nonlinear optimization they would realize possibly that this is what is called a penalization that if you violate the constraint I impose infinite penalty on you theoretically and this this is nothing but a theoretical model of the penalty function method which is quite a common method in solving constant optimization problems so this FN if f is convex then this FN is an extended convex function but when you define extended convex functions you have to have certain rules on Infinity and minus infinity so
we'll not get into all this at this moment we'll come into the rules as and when required so when we will study convex functions and convex sets in details which we will start from tomorrow we will go into a bit of this issue so that even if you get get into this books like convex analysis or further books that I'll say you will be comfortable enough to hand these things so now let me get back straight into the modeling of this problem now this problem which we will start referring to as CP where f is
a convex function and C is a convex set is called an abstract version of a convex optimization problem because though F has a representation C does does not have a representation sorry this is a convex function and this is a convex set now let me tell you a very simple thing is that the set C in most applications is represented as a set of all inequalities is usually where all these GIS are themselves convex functions you might ask me okay what about this is the standard thing what about equalities equality constants are quite well known
to you possibly in calculus when you learn Lan multiplier rule you talk about equality constants so where is your equality constants okay let me talk about a set C so I talk about this set C hat and that I talk about in r two so that you visualize it XY r two such that x² + Y 2 - 1 is equal 0 so if you look at this this is a convex function and then if you try to sketch this set this set is nothing but this one only the circle nothing inside only the circular
ring but then if you take a point here and take a point here and join it except these two points the whole line is outside the circular ring so this is not a convex one so if you put convex equalities here you are not going to get in general a convex set so what happens what sort of equalities uh you need to put in the equality constraints that need to be put in to have a convex set at the end has to be have a particular form they are of this particular form they are called
aine function so they are usually written in this form for a fixed given a so this is in RN and this is in R so a linear function plus a translation so it's a translation of a linear function so basically linear function you see this is a linear function yal to X any linear function has to pass through zero in n two and then you just translate it down so this is or this or that what you want translate it up so this is an aine function this aine functions need not be linear but every
linear function obviously is a fine every fine function is a convex function because you can just uh figure it out when you don't have to really do much work in figuring this out now if you additionally Define a set C set of all X as that of course X is in RN I don't have to tell you that repeatedly GX is less than equal to Zer for all I from 1 to M and hjx is equal to zero for all J from 1 to K where this is convex and this is aine then this set
C is a convex set and that's what we essentially want at the end of the day now let me go back to straight to the optimization issue what I want to show you now is that every local Minima of the problem CP that is the convex programming problem CP convex programming the term why I'm calling it a program has a historical basis but I'll tell you that history later on but let me just go in and do the math that every local minimum is global that is there is no local minimum every local minimum is
a global minimum so if I take the problem CP and consider a local minimum xar to be a local minimum okay if I consider xar to be a local minimum what I'm supposed to do now it means that there must exist a Delta greater than zero such that for every X which is in the ball centered at X bar of radius Delta and whose points also lie in C that that is this set the inter section of c and b Delta X bar for all such X's f of x is bigger than f of x
bar right now this is my convex set let this my this xar is my Global sorry my local minimum what I've showed that okay there is a there must be by definition there must be a very bad drawing Delta and the for any points in this intersection this is a set C for any points in this intersection FX is bigger than FX bar this is the definition of a local minimum now you take any arbitrary point Y in this set C take any arbitrary y now join this y with xar join with xar now if
I'm supposed to do so if I'm to okay join spelling doesn't look very nice it's j o i n again um now let me construct the line segment so any point on the line segment connecting Y and xar can be written as Lambda y + 1 - Lambda X bar which means when Lambda is one I have y when Lambda is zero I have X xar so that means this is Lambda equal to 1 and that is lamb Lambda equal to 0 so when I'm moving dropping the value of Lambda from 1 to 0 I
am actually moving along this line segment so as I move along this line segment I'll come to this threshold Point whose Lambda is say Lambda KN which corresponds to uh Zed corresponding Z corresponding to Lambda y + 1us Lambda xar if I reduce the value of Lambda from Lambda KN all the points line this line so what I can say is that there exist a Lambda KN element of element of the interval 01 such that for all Lambda between 0 and Lambda KN for them all Zed Lambda Zed defined by that Lambda Lambda Lambda y
+ 1 - Lambda xar so now I'm considering only those lambdas which are lying in this interval this must be in B Delta xar intersection C this is clear from the geometry here from the picture here now once I know this what would I have that I have that F of Z Lambda is bigger than F of xar now which means F of xar is less than F of Z Lambda means F of Lambda y + 1us Lambda xar but now this Lambda is still lying between 0 and 1 and so by definition it is
Lambda F of y + 1us Lambda F of xar now if you do the manipulations FX bar cuts out from here and because Lambda is some quantity between 0 and one which excludes 0 and excludes one so Lambda is a positive quantity I can divide both sides by Lambda because this FX FX bar would cancel off to give a zero on this side I would simply have this fact it would imply that F of Y is bigger than equal to FX bar now You observe that y was just an arbitary element y was just an
arbitrarily taken element in C it need not be inside this it could be anywhere else so for any arbitary y I have been able to prove that F of Y is greater than equal to F of xar so it is true for all Y and C thus proving that xar is a local not just a local minimum it is a global minimum of the function f over the set C and thus it shows that the con for a convex function every local minimum is global and you must have observed that here we have not bothered
about the differentiability of of the convex function we we are not really caring whether this function is differentiable or not and this fact is a very very important fact and you'll see how important it is as we come on and as we proceed along and study more about convex optimization so uh we have just learned about the very very uh important fact that for a convex problem every local minimum is global so this fact is very fundamental and you will see how it helps us in the rest of the talk but it is very important
as I have already mentioned that this class of problems convex optimization problems have huge applications now instead of going into specific applications because that would be talking about domains which are not my domain rather than basically if I'm talking about say a problem in electrical engineering or problem in mechanical engineering there are a lot of problems which can be modeled as the problem CP now instead of that let us look into some of the most important forms of convex optimization problems and these form these are the classes which has played a major role in applications
because these are the classes of problems which appear repeatedly in applications so one of the most important class of problems is the one which is possibly known to many of the viewers viewing this talk is the class of linear programming problems in this class of problems you seek to minimize a linear function see linear function you have only this part you don't have the translation every linear function can be expressed as linear product which is a very very simple fact uh from linear algebra and I'm just assuming that everybody knows what is the definition of
a linear function in case you don't if you take any function from R to R this function is said to be linear if these two properties hold first is the property of additivity that f of x + y is same as FX + FY and the second property is homogeneity that if I take any real number Lambda and scale up this Vector scale up or scale down and this is same as Lambda FX where Lambda is in R so this is uh the definition of a linear function so you minim minimize this subject to linear
constraints also in most practical problems there is a requirement that all the XI are greater than equal to zero now of course this is a convex optimization problem because I can pose this as so here I have M inequality constants and also some other group of inequality constants n inequality constants which I read as minus XI or X whatever J you want to put so the M plus n constraints so you can actually put this thing put this a iix minus bi this whole thing into a matrix form and you can write this as here
when I'm writing less than equal to z i meaning that the component every component ENT of this Vector is less than equal to zero and then I can also similarly write it like this or you can equivalently write this as so what is this Matrix a this Matrix a is a matrix whose rows are the vectors A1 transpose dot dot dot am transpose this is actually the Matrix a now what you can do is you can actually add an additional slack variable that is you can add an additional s and you can get a equality
so the standard Pro form of a linear programming problem is to minimize CX subject to this is called the lp in standard form and all linear programming books study this problem we will have a scope to talk about this problem in detail more from a convex optimization perspective of course this is a subass of convex optimization and the interesting part of this problem you see all these are nothing but this is clubbing together of a class of aine functions and this is of course minus each XI is a convex function because minus XI itself is
an aine function linear function rather so so this is you see there are convex inequalities and a inequalities so this set is a visible set is a convex set the set C which is in this case set of all X in RN such that A xal to B and X is greater than equal to Z component wise then this set is a convex set now this problem is interesting in the the fact that this linear function has to be always minimized over a constant set you cannot minimize it over just the whole of RN for
example if you take the whole real line r and you look at the constant function FX = to X this is a linear function but it doesn't have a maximum or has a minimum so it is unbounded on the whole real line unless you put say a constraint suppose you restrict the variables over this interval then you know this is the minimum point then this is the maximum point this is a point where the minimum is achieved this is a point where the maximum is achieved so the linear programming problem is essentially a convex problem
which is a constant problem you have to have some restrictions like the set C this problem linear programming problem was first uh studied during the World War time and during that time it was Air Force which had given certain problems to a team led by George Danzig in the US in the ran Corporation and they modeled those problems as linear programming problems the type of pro problems that we had seen so danig was yet not sure what to call this Pro problems what name to be given to this problem so one day he was walking
with the famous uh Economist TC koopman's and then he said okay you know all these problems have come out they are all problems where we have to minimize linear functions under some linear or aine constraints and kman said you see this is what you're are doing this is a program of the Air Force and you are trying to solve their problems you sol you're part of their program so why don't you just call them linear programming so it became this term beame came to invogue linear programming which had then translated into in general optimization in
finite Dimension is also as known as mathematical programming which lately has is been now called mathematical optimization so another class of important class of convex optimization problems is a class of quadratic optimization problem under aine constraints that is minimize of course a a is again just before like like in the last one this a you can easily understand there an M cross n Matrix in you usually when we study linear programming it is taken to be a full rank but that's really not necessary when you discuss a theory so a is again an M cross
n Matrix and B is obviously in RM which I don't have to tell you now this problem is a quadratic problem you see there is a quadratic form here this is the Matrix defining the quadratic form this function this part only is a convex function that is if you take just this part then this is convex if Q is positive semi-definite positive semi-definite matrices are true generalizations of non- negative real numbers that is if Q satisfies this condition then this is convex function now if you take two convex functions FS1 and F2 and if you
add them they remain to be a convex function so this is a convex function because this this part is an aine function and you've added it to a convex function so this becomes convex so if you want to have a convex programming problem then you have to assume that Q is positive semi-definite PSD is the short form for posit Semite used everywhere in the world so this problem is called a quadratic optimization convex quadratic optimization problem under linear constraints it's a very very important class of problems uh because for example in the sequential quadratic programming
method this problem is the class of sub problems that is solved and this is repeat this class of problems are repeatedly solved so trying to solve these problems is a very very important uh thing to do so Dava problem is called quadratic problem under aine constants or linear constants quadratic convex problem with a fine constants now these problems were all studed in the' 60s and early ' 70s and convex optimization was people were thinking that it was almost going to end it was a it is a Time 80s was a time for ' 80s and
'90s was the time for the rise of non-convex optimization with people talking about lipes and lipes functions and trying to handle them but they soon realized possibly that it's not so easy a game to handle non-convexity then it came in the Horizon a class of optimization problems which complet change the face of optimization and till date they remain to be a thriving area of research and it has again brought back convex optimization to the central and core of or rather Into the Heart of optimization Theory and current optimization research so what I'm going to now
talk to you is some a class of problems called semi-definite programming problems s on the face of it when I write it down it would look as if I have just copied the linear programming problem into a scenario where my decision variables are no longer vectors but matrices so we will start by considering the space SN of all n cross n symmetric matrices of course you know symmetric Matrix is the one whose cross elements a i j is equal to Aji now every if you take the class of all square Matrix n cross n Square
Matrix if you stack up if you take the First Column and then stack up the second column below it third column below the second column and so on you stack up all the N columns so you will get a row you'll get a vector which is having n Square components so which means every so every Matrix n cross and Matrix corresponds to some element in RN cross n now now this class where you have this matching between AIG and Aji is actually isomorphic not to RN cross n but to a Subspace of that which is
RN into n + 1 by 2 I'll not take off the fun I would let you try to figure this out now SN plus is a set of all Matrix a in SN see this is also finite dimensional space because it is isomorphic to this uh RN into n + 1 by 2 this is actually the dimension of SN actually so a element of SN such that a is a positive semi-definite Matrix is a PhD Matrix so SN plus this set is the collection of positive semi-definite matrices right so if a is positive semi-definite it
is often written like this this is called the lower [Music] ordering now let me go back again to this linear program programming part right now when I am writing X greater than Z what is the set it is representing it is the set of all X in RN such that all the corresponding components X size each of the components is greater than equal to Z this set is called RN plus and you might observe because positive semi-definite matrices are actually generalizing non- negative real numbers we have given the symbol SN plus quite in you know
quite in harmony with RN plus now once I know this the i in a finite dimensional space you might ask me what is the inner product between two symmetric matrices so if I take a symmetric Matrix X and another symmetric Matrix why what is the inner product between two symmetric matrices this is Trace of X transpose y but for a symmetric Matrix X transpose is equal to X so this is equal to trace of XY right now what I would now do you will see I will write down a problem like this minimize C X
where C is obviously in SN and then take all the AI in SN and X is obviously in SN so all these AIS are in SN and I is obviously from 1 to M so I'm just imitating the linear program and X is either I write it like this or in this lower ordering form just I have written X greater than Z in the linear case I have written like this I can write it like this or this whatever same thing so this problem is called a semi-definite programming problem ultimately the decision variable has to
be a PSD Matrix semi-definite programming problem you might ask the question what a big deal we have just changed the space from the space of vectors we are in a space of matrices it is just a linear programming problem in the space of Matrix but space semi metri matrices but the answer is no in general a semi-definite programming problem is not a linear programming problem why it is not a linear programming problem is a question that we can only give when we learn something more about convex sets that that we'll start doing tomorrow and we'll
show that this is not a linear programming problem but a convex programming problem in general so thus this class of problems cannot be handled by the methods of linear programming like Simplex method and a new set of methods has to be developed for them and the semi-definite programming problems are now showing great power in solving a class of pro problems called polinomial optimization problems which are actually very difficult NPR non-convex optimization problems and they are showing great power in very far in uh in order to solve such problems there these things are showing great power
in order to get an approximate solution very fast the power of these problems are very lately coming up and they're coming up in many applications there are commercial softwares now to solve this class of problems so it is very important for us that in this set of lectures in convex optimization we'll spend a little part with semi-definite programming problem so with this basic introduction about convex optimization about the very basic facts about convex functions uh minimized over convex set that every local minimum has to be Global and telling you some three important classes of convex
optimization problem first is the linear programming problem second is the quadratic optimization problem with linear constraints and third is a very very important modern class of convex optimization problem the semi-definite programming problem so so if you want to know more about these classes of problems I would suggest you a book called lectures on Modern convex optimization by benal and mirovski sorry so why it's published by Sam Society for industrial and Applied Mathematics so with this very basic introduction to convex optimization that is what the title of the talk says today what is convex optimization I
uh stop here but let me tell you this is a mathematicians point of view of lecturing I have not given concrete examples I wouldn't I cannot claim to be an expert in each and every uh different discipline but if you look into these books you'll you this book in particular you'll see there a lot of important engineering applications in this book which can be modeled as either linear problem or quadratic problem or a semi-definite programming problem so thank you very much good night [Music] [Music] [Music]