# 3.3 Constrained optimization  (Page 2/2)

 Page 2 / 2

Example 2 Let $X={\mathbb{R}}^{2}$ ; solve

${x}_{0}=arg\underset{x={\left[{x}_{1}\phantom{\rule{3.33333pt}{0ex}}{x}_{2}\right]}^{T}}{max}f\left(x\right)={x}_{1}+{x}_{2}\phantom{\rule{3.33333pt}{0ex}}\mathrm{subjectto}\phantom{\rule{3.33333pt}{0ex}}{x}_{1}^{2}+{x}_{2}^{2}=1.$

In words, we look for the point in a unit circle in ${\mathbb{R}}^{2}$ that has the largest sum of its coordinates. It is easy to see by inspection that such point is given by ${x}_{0}={\left[\sqrt{2}\phantom{\rule{3.33333pt}{0ex}}\sqrt{2}\right]}^{T}$ . The feasible set can be given in terms of the single equality constrain

$g\left(x\right)={x}_{1}^{2}+{x}_{2}^{2}-1={x}^{T}x-1=⟨x,x⟩-1=⟨x,Ix⟩-1.$

From previous work, we know that the gradient is given by $\nabla g\left(x\right)=\left(I+{I}^{*}\right)x=2Ix=2x$ We can also write the objective function as

$f\left(x\right)=〈\left[\begin{array}{c}1\\ 1\end{array}\right],,,x〉,$

which has gradient $\nabla f\left(x\right)=\left[\begin{array}{c}1\\ 1\end{array}\right]$ . Thus, we can write the tangent space in this case as

${T}_{\Omega }\left({x}_{0}\right)=\left\{h\in X:⟨\nabla g\left({x}_{0}\right),h⟩=0\right\}=\left\{h\in X:⟨{x}_{0},h⟩=0\right\}=\left\{h:\sqrt{2}{h}_{1}+\sqrt{2}{h}_{2}=0\right\}.$

Therefore, we can write the tangent space as ${T}_{\Omega }\left({x}_{0}\right)=\left\{h\in X:{h}_{1}=-{h}_{2}\right\}$ . It is easy to see at this point that for any such $h\in {T}_{\Omega }\left({x}_{0}\right)$ we will have $⟨\nabla f\left({x}_{0}\right),h⟩=0$ , as stated by Theorem  [link] .

## Lagrangian multipliers

In this section, we will develop a method to solve optimization problems with linear objective functions and linear equality constraints.

Lemma 1 Let ${f}_{0},{f}_{1},{f}_{2},...,{f}_{n}$ be linear functionals on a Hilbert space X and suppose ${f}_{0}\left(x\right)=0$ for all $x\in X$ such that ${f}_{i}\left(x\right)=0,\phantom{\rule{3.33333pt}{0ex}}i=1,2,...,n$ . Then there exists constants ${\lambda }_{1},{\lambda }_{2},...,{\lambda }_{n}$ such that ${f}_{0}={\lambda }_{1}{f}_{1}+{\lambda }_{2}{f}_{2}+...+{\lambda }_{n}{f}_{n}$ .

Since our functionals are linear we have ${f}_{0},{f}_{1},...,{f}_{n}\in {X}^{*}$ . Define the subspace $M=\mathrm{span}\left(\left\{{f}_{1},{f}_{2},...,{f}_{n}\right\}\right)$ . Since $M$ is finite-dimensional, then $M$ is closed. We can therefore define its orthogonal complement:

${M}^{\perp }=\left\{f\in {X}^{*}:⟨f,{f}_{i}⟩=0,\phantom{\rule{3.33333pt}{0ex}}i=1,2,...,n\right\}.$

Since Hilbert spaces are self-dual, then for each function ${f}_{i}$ there exists ${w}_{i}\in X$ such that ${f}_{i}\left(x\right)=⟨x,{w}_{i}⟩$ ; therefore, we can rewrite the space above as its dual equivalent

${M}^{\perp }=\left\{w\in X:⟨w,{w}_{i}⟩=0,\phantom{\rule{3.33333pt}{0ex}}i=1,2,...,n\right\}.$

Now since $⟨w,{w}_{i}⟩={f}_{i}\left(w\right)$ , it follows that for all $w\in {M}^{\perp }$ we have that ${f}_{i}\left(w\right)=0$ , $w=1,...,n$ . Therefore, the Lemma implies that for all $w\in {M}^{\perp }$ we have that ${f}_{0}\left(w\right)=0=⟨w,{w}_{0}⟩$ . This implies that ${w}_{0}\in {\left({M}^{\perp }\right)}^{\perp }=M$ , due to $M$ being closed. Reversing to the dual space ${X}^{*}$ , this implies that ${f}_{0}\in M=\mathrm{span}\left(\left\{{f}_{1},...,{f}_{n}\right\}\right)$ , and so we can write $f={\lambda }_{1}{f}_{1}+{\lambda }_{2}{f}_{2}+...+{\lambda }_{n}{f}_{n}$ .

Theorem  [link] shows that we can apply Lemma  [link] to the constrained optimization problem. Thus, at the extremum ${x}_{0}\in X$ of the constrained program there exist constants ${\lambda }_{1},...,{\lambda }_{n}$ such that for all $h\in X$ ,

$\begin{array}{cc}\hfill \delta f\left({x}_{0};h\right)& =\sum _{i=1}^{n}{\lambda }_{i}\delta {g}_{i}\left({x}_{0};h\right),\hfill \\ \hfill ⟨\nabla f\left({x}_{0}\right),h⟩& =\sum _{i=1}^{n}{\lambda }_{i}⟨\nabla {g}_{i}\left({x}_{0}\right),h⟩,\hfill \\ \hfill 〈\nabla ,f,\left({x}_{0}\right),-,\sum _{i=1}^{n},{\lambda }_{i},\nabla ,{g}_{i},\left({x}_{0}\right),,,h〉& =0,\hfill \end{array}$

which is equivalent to $\nabla f\left({x}_{0}\right)+{\sum }_{i=1}^{n}{g}_{i}\left({x}_{0}\right)=0$ . This can be written as the gradient of the Lagrangian function

$L\left(x,\lambda \right)=f\left(x\right)+\sum _{i=1}^{n}{\lambda }_{i}{g}_{i}\left(x\right).$

Thus, we say that the extremum must provide a zero-valued directional derivative of the Lagrangian in all directions or, equivalently, a zero-valued gradient for the Lagrangian. The results obtained in this section can be collected into a proof for the following theorem.

Theorem 2 If ${x}_{0}\in X$ is an extremum of a functional $f$ subject to constraints ${\left\{{g}_{i}\right\}}_{i=1}^{n}$ , then there exist scalars ${\lambda }_{1},\cdots ,{\lambda }_{n}$ , such that the Lagrangian $L\left(x,\lambda \right)=f\left(x\right)+{\sum }_{i=1}^{n}{\lambda }_{i}{g}_{i}\left(x\right)$ is stationary at ${x}_{0}$ , i.e., for all $h\in X$ we have that $\delta L\left(x,\lambda ;h\right)=0$ , i.e., $\nabla L\left(x,\lambda \right)=0$ .

The constants ${\lambda }_{1},{\lambda }_{2},\cdots ,{\lambda }_{n}$ are known as Lagrange multipliers.

Example 3 We want to minimize $f\left(x\right)={x}_{1}^{2}+{x}_{2}^{2}$ subject to $2{x}_{1}+{x}_{2}=3$ . The constraint function is

$g\left(x\right)=2{x}_{1}+{x}_{2}-3.$

From earlier we know that $\nabla f\left(x\right)=2x,$ while we can rewrite the constraint as

$g\left(x\right)=\left[\begin{array}{c}2\\ 1\end{array}\right]x+3,$

so that $\nabla g\left(x\right)=\left[\begin{array}{c}2\\ 1\end{array}\right]$ . Therefore, the extremum's condition on the gradient of the Lagrangian results in the equation

$\begin{array}{cc}\hfill \nabla f\left(x\right)+\lambda \nabla g\left(x\right)& =0,\hfill \\ \hfill 2x+\lambda \left[\begin{array}{c}2\\ 1\end{array}\right]& =\mathbf{0},\hfill \\ \hfill \left[\begin{array}{c}2{x}_{1}+2\lambda \\ 2{x}_{2}+\lambda \end{array}\right]& =\left[\begin{array}{c}0\\ 0\end{array}\right];\hfill \end{array}$

the solution to this equation is ${x}_{1}=-\lambda ,{x}_{2}=-\frac{1}{2}\lambda$ . To solve for the value of the Lagrangian multiplier $\lambda$ , we plug the solution into the constraint: Plug in the constraint function

$2\left(-\lambda \right)+\left(-,\frac{1}{2},\lambda \right)-3=0,$

which gives $\lambda =-\frac{6}{5}$ . Therefore, we end up with the solution ${x}_{1}=\frac{6}{5},{x}_{2}=\frac{3}{5}$ .

find the 15th term of the geometric sequince whose first is 18 and last term of 387
I know this work
salma
The given of f(x=x-2. then what is the value of this f(3) 5f(x+1)
hmm well what is the answer
Abhi
how do they get the third part x = (32)5/4
can someone help me with some logarithmic and exponential equations.
20/(×-6^2)
Salomon
okay, so you have 6 raised to the power of 2. what is that part of your answer
I don't understand what the A with approx sign and the boxed x mean
it think it's written 20/(X-6)^2 so it's 20 divided by X-6 squared
Salomon
I'm not sure why it wrote it the other way
Salomon
I got X =-6
Salomon
ok. so take the square root of both sides, now you have plus or minus the square root of 20= x-6
oops. ignore that.
so you not have an equal sign anywhere in the original equation?
hmm
Abhi
is it a question of log
Abhi
🤔.
Abhi
I rally confuse this number And equations too I need exactly help
salma
But this is not salma it's Faiza live in lousvile Ky I garbage this so I am going collage with JCTC that the of the collage thank you my friends
salma
Commplementary angles
hello
Sherica
im all ears I need to learn
Sherica
right! what he said ⤴⤴⤴
Tamia
hii
Uday
hi
salma
what is a good calculator for all algebra; would a Casio fx 260 work with all algebra equations? please name the cheapest, thanks.
a perfect square v²+2v+_
kkk nice
algebra 2 Inequalities:If equation 2 = 0 it is an open set?
or infinite solutions?
Kim
The answer is neither. The function, 2 = 0 cannot exist. Hence, the function is undefined.
Al
y=10×
if |A| not equal to 0 and order of A is n prove that adj (adj A = |A|
rolling four fair dice and getting an even number an all four dice
Kristine 2*2*2=8
Differences Between Laspeyres and Paasche Indices
No. 7x -4y is simplified from 4x + (3y + 3x) -7y
how do you translate this in Algebraic Expressions
Need to simplify the expresin. 3/7 (x+y)-1/7 (x-1)=
. After 3 months on a diet, Lisa had lost 12% of her original weight. She lost 21 pounds. What was Lisa's original weight?
what's the easiest and fastest way to the synthesize AgNP?
China
Cied
types of nano material
I start with an easy one. carbon nanotubes woven into a long filament like a string
Porter
many many of nanotubes
Porter
what is the k.e before it land
Yasmin
what is the function of carbon nanotubes?
Cesar
I'm interested in nanotube
Uday
what is nanomaterials​ and their applications of sensors.
what is nano technology
what is system testing?
preparation of nanomaterial
Yes, Nanotechnology has a very fast field of applications and their is always something new to do with it...
what is system testing
what is the application of nanotechnology?
Stotaw
In this morden time nanotechnology used in many field . 1-Electronics-manufacturad IC ,RAM,MRAM,solar panel etc 2-Helth and Medical-Nanomedicine,Drug Dilivery for cancer treatment etc 3- Atomobile -MEMS, Coating on car etc. and may other field for details you can check at Google
Azam
anybody can imagine what will be happen after 100 years from now in nano tech world
Prasenjit
after 100 year this will be not nanotechnology maybe this technology name will be change . maybe aftet 100 year . we work on electron lable practically about its properties and behaviour by the different instruments
Azam
name doesn't matter , whatever it will be change... I'm taking about effect on circumstances of the microscopic world
Prasenjit
how hard could it be to apply nanotechnology against viral infections such HIV or Ebola?
Damian
silver nanoparticles could handle the job?
Damian
not now but maybe in future only AgNP maybe any other nanomaterials
Azam
Hello
Uday
I'm interested in Nanotube
Uday
this technology will not going on for the long time , so I'm thinking about femtotechnology 10^-15
Prasenjit
can nanotechnology change the direction of the face of the world
At high concentrations (>0.01 M), the relation between absorptivity coefficient and absorbance is no longer linear. This is due to the electrostatic interactions between the quantum dots in close proximity. If the concentration of the solution is high, another effect that is seen is the scattering of light from the large number of quantum dots. This assumption only works at low concentrations of the analyte. Presence of stray light.
the Beer law works very well for dilute solutions but fails for very high concentrations. why?
how did you get the value of 2000N.What calculations are needed to arrive at it
Privacy Information Security Software Version 1.1a
Good
Got questions? Join the online conversation and get instant answers!