SlideShare a Scribd company logo
Quadratic Programming
Dr. Varun Kumar
Dr. Varun Kumar Lecture 2 1 / 12
Outlines
1 Introduction to Quadratic Programming
2 Problem and Solution by Graphical Method
3 Karush Kuhn Tucker (KKT) Condition
Dr. Varun Kumar Lecture 2 2 / 12
Introduction to Quadratic Programming
⇒ Quadratic programming problem (QPP) is special case of non-linear
programming problem (NLPP).
⇒ Objective function is quadratic in nature.
⇒ All constraints (in-equality and equality) are linear in nature.
⇒ General mathematical formulation for QPP
min{f (x)} =xT
Qx + cT
x
s.t Ax ≤ b
x ≥ 0
⇒ Q = [qij ]n×n → Symmetric positive semi-definite matrix.
⇒ c, x ∈ Rn → Vector of size n × 1 (Contain real number).
⇒ A = [aij ]m×n → Matrix of size m × n
Dr. Varun Kumar Lecture 2 3 / 12
Example:
⇒ Let objective function f (x) = 3x2
1 + 4x2
2 + 2x1x2 − 2x1 − 3x2
⇒ Constraint:
3x1 + 2x2 ≤ 6
x1 + x2 ≤ 2
x1, x2 ≥ 0
⇒ Problem representation
min{f (x)} = [x1 x2]

3 1
1 4
 
x1
x2

+ [−2 − 3]

x1
x2


3 2
1 1
 
x1
x2

≤

6
2

⇒ x =

x1
x2

, Q =

3 1
1 4

, b =

6
2

, A =

3 2
1 1

, c =

−2
−3

Dr. Varun Kumar Lecture 2 4 / 12
Solution by the graphical method:
Positive semi-definite and symmetric
⇒ Q =

3 1
1 4

→ [qij ]2×2, if qij = qji → Symmetric
⇒ If det|Q| ≥ 0 → Positive semi-definite
Solution by graphical method:
⇒ Let objective function f (x) = (x1 − 2)2 + (x2 − 1)2
⇒ Constraint:
x1 + x2 ≤ 2
x1, x2 ≥ 0
Dr. Varun Kumar Lecture 2 5 / 12
Karush Kuhn Tucker KKT condition:
QPP should be written in this form
⇒ min{f (x)} = xT
Qx + cT
x
⇒ Ax ≤ b (1)
⇒ −x ≤ 0 (2)
Let KKT multiplier associated with the constraints (1) and (2) be u ∈ Rm
and v ∈ Rn, respectively. Hence,
cT
+ 2xT
Q + uT
A − vT
= 0
uT
(Ax − b) − vT
x = 0
Ax − b = 0
x ≥ 0, u ≥ 0, v ≥ 0
Note: Total number of KKT multiplier for solving QPP is m + n.
Dr. Varun Kumar Lecture 2 6 / 12
General KKT condition
General KKT condition
⇒ ∇f (x) +
PN
i=1 λi ∇gi (x) = 0
⇒ λi gi (x) = 0 ∀ i
⇒ gi (x) ≤ 0
⇒ λi ≥ 0
Here,
∇f (x) =
∂f (x)
∂x1
,
∂f (x)
∂x2
, ......,
∂f (x)
∂xn

Example
⇒ f (x) = 3x2
1 + 2x2
2 + x1x2 − 4x1 − 2x2
s.t x1 + 2x2 ≤ 6 → u
−x1 ≤ 0 → v1
−x2 ≤ 0 → v2
Dr. Varun Kumar Lecture 2 7 / 12
Continued–
As per the question f (x) = 3x2
1 + 2x2
2 + x1x2 − 4x1 − 2x2, s.t
x1 + 2x2 ≤ 6 → u, −x1 ≤ 0 → v1, −x2 ≤ 0 → v2. Hence,
Applying KKT condition:
6x1 + x2 − 4, 4x2 + x1 − 2

+ u 1, 2

+ v1(−1, 0) + v2(0, −1) = (0, 0)
6x1 + x2 − 4 + u − v1 = 0
x1 + 4x2 − 2 + 2u − v2 = 0
General KKT condition for QPP
2xT
Q + cT
+ uT
A + vT
(−I) = 0
uT
(Ax − b) − vT
x = 0
Ax − b ≤ 0
x ≥ 0, u ≥ 0, v ≥ 0
Dr. Varun Kumar Lecture 2 8 / 12
Continued–
Taking transpose operation in 1st KKT expression
2Qx + c + AT
u + v(−I) = 0
uT
(Ax − b) − vT
x = 0
Ax − b + s = 0
x ≥ 0, u ≥ 0, v ≥ 0
Here, 0s0 is called as the slack variable. ⇒ uT (−s) − vT x = 0
⇒ uT s = 0 ⇒ u1s1 + u2s2 + ... + umsm = 0
⇒ ; vT x = 0 ⇒ v1x1 + v2x2 + ..... + vnxn = 0
⇒ ui si = 0 ∀ i = 1, 2, ...., m and vj xj = 0 ∀ j = 1, 2, ...n




2Qx + c + AT u − v = 0
Ax + s = b
ui si = 0 ∀ i = 1, 2, ...., m
vj xj = 0 ∀ j = 1, 2, ...n




Dr. Varun Kumar Lecture 2 9 / 12
Continued–
The matrix form of KKT conditions are

2Q AT In 0
A 0 0 In





x
u
v
s





−c
b

Theorem
Let Q be a +ve semi-definite matrix of order n. Then for any x, y ∈ Rn
2xT
Qy ≤ xT
Qx + yT
Qy
Problem: Show that f (x) = xT Qx + cT x, x ∈ Rn (in QPP) is a convex
function, if Q is a semi-definite symmetric matrix.
Dr. Varun Kumar Lecture 2 10 / 12
Continued–
Condition for +ve semi-definite matrix
zT
Qz ≥ 0 ∀ z ∈ Rn
⇒ (x − y)T Q(x − y) ≥ 0 ∀ x, y ∈ Rn
⇒ xT Qx + yT Qy − yT Qx − xT Qy ≥ 0
⇒ yT Qx + xT Qy ≤ xT Qx + yT Qy
⇒ 2xT Qy ≤ xT Qx + yT Qy
Dr. Varun Kumar Lecture 2 11 / 12
Dr. Varun Kumar Lecture 2 12 / 12

More Related Content

What's hot

Lesson 17: The Method of Lagrange Multipliers
Lesson 17: The Method of Lagrange MultipliersLesson 17: The Method of Lagrange Multipliers
Lesson 17: The Method of Lagrange Multipliers
Matthew Leingang
 
nonlinear programming
nonlinear programmingnonlinear programming
nonlinear programming
AngelineOdaya
 
Quadratic Programming : KKT conditions with inequality constraints
Quadratic Programming : KKT conditions with inequality constraintsQuadratic Programming : KKT conditions with inequality constraints
Quadratic Programming : KKT conditions with inequality constraints
Mrinmoy Majumder
 
Introduction to Optimization.ppt
Introduction to Optimization.pptIntroduction to Optimization.ppt
Introduction to Optimization.ppt
MonarjayMalbog1
 
Lesson 25: Unconstrained Optimization I
Lesson 25: Unconstrained Optimization ILesson 25: Unconstrained Optimization I
Lesson 25: Unconstrained Optimization I
Matthew Leingang
 
Newton-Raphson Method
Newton-Raphson MethodNewton-Raphson Method
Newton-Raphson MethodJigisha Dabhi
 
Greedy algorithm
Greedy algorithmGreedy algorithm
Introduction to the theory of optimization
Introduction to the theory of optimizationIntroduction to the theory of optimization
Introduction to the theory of optimization
Delta Pi Systems
 
Unit5
Unit5Unit5
formulation of first order linear and nonlinear 2nd order differential equation
formulation of first order linear and nonlinear 2nd order differential equationformulation of first order linear and nonlinear 2nd order differential equation
formulation of first order linear and nonlinear 2nd order differential equation
Mahaswari Jogia
 
Gamma & Beta functions
Gamma & Beta functionsGamma & Beta functions
Gamma & Beta functions
Selvaraj John
 
New approach for wolfe’s modified simplex method to solve quadratic programmi...
New approach for wolfe’s modified simplex method to solve quadratic programmi...New approach for wolfe’s modified simplex method to solve quadratic programmi...
New approach for wolfe’s modified simplex method to solve quadratic programmi...
eSAT Journals
 
Solving linear programming model by simplex method
Solving linear programming model by simplex methodSolving linear programming model by simplex method
Solving linear programming model by simplex method
Roshan Kumar Patel
 
Global optimization
Global optimizationGlobal optimization
Global optimization
bpenalver
 
the two phase method - operations research
the two phase method - operations researchthe two phase method - operations research
the two phase method - operations research
2013901097
 
Operations Research - The Dual Simplex Method
Operations Research - The Dual Simplex MethodOperations Research - The Dual Simplex Method
Operations Research - The Dual Simplex Method
Hisham Al Kurdi, EAVA, DMC-D-4K, HCCA-P, HCAA-D
 
Special Cases in Simplex Method
Special Cases in Simplex MethodSpecial Cases in Simplex Method
Special Cases in Simplex Method
Divyansh Verma
 
Introduction to optimization Problems
Introduction to optimization ProblemsIntroduction to optimization Problems
A course on integral calculus
A course on integral calculusA course on integral calculus
A course on integral calculus
GAURAV SAHA
 

What's hot (20)

Lesson 17: The Method of Lagrange Multipliers
Lesson 17: The Method of Lagrange MultipliersLesson 17: The Method of Lagrange Multipliers
Lesson 17: The Method of Lagrange Multipliers
 
Duality
DualityDuality
Duality
 
nonlinear programming
nonlinear programmingnonlinear programming
nonlinear programming
 
Quadratic Programming : KKT conditions with inequality constraints
Quadratic Programming : KKT conditions with inequality constraintsQuadratic Programming : KKT conditions with inequality constraints
Quadratic Programming : KKT conditions with inequality constraints
 
Introduction to Optimization.ppt
Introduction to Optimization.pptIntroduction to Optimization.ppt
Introduction to Optimization.ppt
 
Lesson 25: Unconstrained Optimization I
Lesson 25: Unconstrained Optimization ILesson 25: Unconstrained Optimization I
Lesson 25: Unconstrained Optimization I
 
Newton-Raphson Method
Newton-Raphson MethodNewton-Raphson Method
Newton-Raphson Method
 
Greedy algorithm
Greedy algorithmGreedy algorithm
Greedy algorithm
 
Introduction to the theory of optimization
Introduction to the theory of optimizationIntroduction to the theory of optimization
Introduction to the theory of optimization
 
Unit5
Unit5Unit5
Unit5
 
formulation of first order linear and nonlinear 2nd order differential equation
formulation of first order linear and nonlinear 2nd order differential equationformulation of first order linear and nonlinear 2nd order differential equation
formulation of first order linear and nonlinear 2nd order differential equation
 
Gamma & Beta functions
Gamma & Beta functionsGamma & Beta functions
Gamma & Beta functions
 
New approach for wolfe’s modified simplex method to solve quadratic programmi...
New approach for wolfe’s modified simplex method to solve quadratic programmi...New approach for wolfe’s modified simplex method to solve quadratic programmi...
New approach for wolfe’s modified simplex method to solve quadratic programmi...
 
Solving linear programming model by simplex method
Solving linear programming model by simplex methodSolving linear programming model by simplex method
Solving linear programming model by simplex method
 
Global optimization
Global optimizationGlobal optimization
Global optimization
 
the two phase method - operations research
the two phase method - operations researchthe two phase method - operations research
the two phase method - operations research
 
Operations Research - The Dual Simplex Method
Operations Research - The Dual Simplex MethodOperations Research - The Dual Simplex Method
Operations Research - The Dual Simplex Method
 
Special Cases in Simplex Method
Special Cases in Simplex MethodSpecial Cases in Simplex Method
Special Cases in Simplex Method
 
Introduction to optimization Problems
Introduction to optimization ProblemsIntroduction to optimization Problems
Introduction to optimization Problems
 
A course on integral calculus
A course on integral calculusA course on integral calculus
A course on integral calculus
 

Similar to Quadratic programming (Tool of optimization)

Basic terminology description in convex optimization
Basic terminology description in convex optimizationBasic terminology description in convex optimization
Basic terminology description in convex optimization
VARUN KUMAR
 
Adaptive Restore algorithm & importance Monte Carlo
Adaptive Restore algorithm & importance Monte CarloAdaptive Restore algorithm & importance Monte Carlo
Adaptive Restore algorithm & importance Monte Carlo
Christian Robert
 
The Multivariate Gaussian Probability Distribution
The Multivariate Gaussian Probability DistributionThe Multivariate Gaussian Probability Distribution
The Multivariate Gaussian Probability Distribution
Pedro222284
 
Sample question paper 2 with solution
Sample question paper 2 with solutionSample question paper 2 with solution
Sample question paper 2 with solution
Pratima Nayak ,Kendriya Vidyalaya Sangathan
 
Solved exercises double integration
Solved exercises double integrationSolved exercises double integration
Solved exercises double integration
Kamel Attar
 
Robust Control of Uncertain Switched Linear Systems based on Stochastic Reach...
Robust Control of Uncertain Switched Linear Systems based on Stochastic Reach...Robust Control of Uncertain Switched Linear Systems based on Stochastic Reach...
Robust Control of Uncertain Switched Linear Systems based on Stochastic Reach...
Leo Asselborn
 
Doubly Accelerated Stochastic Variance Reduced Gradient Methods for Regulariz...
Doubly Accelerated Stochastic Variance Reduced Gradient Methods for Regulariz...Doubly Accelerated Stochastic Variance Reduced Gradient Methods for Regulariz...
Doubly Accelerated Stochastic Variance Reduced Gradient Methods for Regulariz...
Tomoya Murata
 
Fractional programming (A tool for optimization)
Fractional programming (A tool for optimization)Fractional programming (A tool for optimization)
Fractional programming (A tool for optimization)
VARUN KUMAR
 
Solutions_Chapter3.pdf
Solutions_Chapter3.pdfSolutions_Chapter3.pdf
Solutions_Chapter3.pdf
Tessydee
 
Solutions Manual for Calculus Early Transcendentals 10th Edition by Anton
Solutions Manual for Calculus Early Transcendentals 10th Edition by AntonSolutions Manual for Calculus Early Transcendentals 10th Edition by Anton
Solutions Manual for Calculus Early Transcendentals 10th Edition by Anton
Pamelaew
 
02 basics i-handout
02 basics i-handout02 basics i-handout
02 basics i-handout
sheetslibrary
 
QMC: Operator Splitting Workshop, A Splitting Method for Nonsmooth Nonconvex ...
QMC: Operator Splitting Workshop, A Splitting Method for Nonsmooth Nonconvex ...QMC: Operator Splitting Workshop, A Splitting Method for Nonsmooth Nonconvex ...
QMC: Operator Splitting Workshop, A Splitting Method for Nonsmooth Nonconvex ...
The Statistical and Applied Mathematical Sciences Institute
 
Convergence Criteria
Convergence CriteriaConvergence Criteria
Convergence Criteria
Tarun Gehlot
 
Point Collocation Method used in the solving of Differential Equations, parti...
Point Collocation Method used in the solving of Differential Equations, parti...Point Collocation Method used in the solving of Differential Equations, parti...
Point Collocation Method used in the solving of Differential Equations, parti...
Suddhasheel GHOSH, PhD
 
2018 MUMS Fall Course - Statistical Representation of Model Input (EDITED) - ...
2018 MUMS Fall Course - Statistical Representation of Model Input (EDITED) - ...2018 MUMS Fall Course - Statistical Representation of Model Input (EDITED) - ...
2018 MUMS Fall Course - Statistical Representation of Model Input (EDITED) - ...
The Statistical and Applied Mathematical Sciences Institute
 
Cubic Spline Interpolation
Cubic Spline InterpolationCubic Spline Interpolation
Cubic Spline Interpolation
VARUN KUMAR
 
Subgradient Methods for Huge-Scale Optimization Problems - Юрий Нестеров, Cat...
Subgradient Methods for Huge-Scale Optimization Problems - Юрий Нестеров, Cat...Subgradient Methods for Huge-Scale Optimization Problems - Юрий Нестеров, Cat...
Subgradient Methods for Huge-Scale Optimization Problems - Юрий Нестеров, Cat...
Yandex
 
Probabilistic Control of Uncertain Linear Systems Using Stochastic Reachability
Probabilistic Control of Uncertain Linear Systems Using Stochastic ReachabilityProbabilistic Control of Uncertain Linear Systems Using Stochastic Reachability
Probabilistic Control of Uncertain Linear Systems Using Stochastic Reachability
Leo Asselborn
 
Gr 11 equations
Gr 11   equationsGr 11   equations
Gr 11 equations
Renate Rohrs
 
Quick run through on classical mechancis and quantum mechanics
Quick run through on classical mechancis and quantum mechanics Quick run through on classical mechancis and quantum mechanics
Quick run through on classical mechancis and quantum mechanics
The Chinese University of Hong Kong
 

Similar to Quadratic programming (Tool of optimization) (20)

Basic terminology description in convex optimization
Basic terminology description in convex optimizationBasic terminology description in convex optimization
Basic terminology description in convex optimization
 
Adaptive Restore algorithm & importance Monte Carlo
Adaptive Restore algorithm & importance Monte CarloAdaptive Restore algorithm & importance Monte Carlo
Adaptive Restore algorithm & importance Monte Carlo
 
The Multivariate Gaussian Probability Distribution
The Multivariate Gaussian Probability DistributionThe Multivariate Gaussian Probability Distribution
The Multivariate Gaussian Probability Distribution
 
Sample question paper 2 with solution
Sample question paper 2 with solutionSample question paper 2 with solution
Sample question paper 2 with solution
 
Solved exercises double integration
Solved exercises double integrationSolved exercises double integration
Solved exercises double integration
 
Robust Control of Uncertain Switched Linear Systems based on Stochastic Reach...
Robust Control of Uncertain Switched Linear Systems based on Stochastic Reach...Robust Control of Uncertain Switched Linear Systems based on Stochastic Reach...
Robust Control of Uncertain Switched Linear Systems based on Stochastic Reach...
 
Doubly Accelerated Stochastic Variance Reduced Gradient Methods for Regulariz...
Doubly Accelerated Stochastic Variance Reduced Gradient Methods for Regulariz...Doubly Accelerated Stochastic Variance Reduced Gradient Methods for Regulariz...
Doubly Accelerated Stochastic Variance Reduced Gradient Methods for Regulariz...
 
Fractional programming (A tool for optimization)
Fractional programming (A tool for optimization)Fractional programming (A tool for optimization)
Fractional programming (A tool for optimization)
 
Solutions_Chapter3.pdf
Solutions_Chapter3.pdfSolutions_Chapter3.pdf
Solutions_Chapter3.pdf
 
Solutions Manual for Calculus Early Transcendentals 10th Edition by Anton
Solutions Manual for Calculus Early Transcendentals 10th Edition by AntonSolutions Manual for Calculus Early Transcendentals 10th Edition by Anton
Solutions Manual for Calculus Early Transcendentals 10th Edition by Anton
 
02 basics i-handout
02 basics i-handout02 basics i-handout
02 basics i-handout
 
QMC: Operator Splitting Workshop, A Splitting Method for Nonsmooth Nonconvex ...
QMC: Operator Splitting Workshop, A Splitting Method for Nonsmooth Nonconvex ...QMC: Operator Splitting Workshop, A Splitting Method for Nonsmooth Nonconvex ...
QMC: Operator Splitting Workshop, A Splitting Method for Nonsmooth Nonconvex ...
 
Convergence Criteria
Convergence CriteriaConvergence Criteria
Convergence Criteria
 
Point Collocation Method used in the solving of Differential Equations, parti...
Point Collocation Method used in the solving of Differential Equations, parti...Point Collocation Method used in the solving of Differential Equations, parti...
Point Collocation Method used in the solving of Differential Equations, parti...
 
2018 MUMS Fall Course - Statistical Representation of Model Input (EDITED) - ...
2018 MUMS Fall Course - Statistical Representation of Model Input (EDITED) - ...2018 MUMS Fall Course - Statistical Representation of Model Input (EDITED) - ...
2018 MUMS Fall Course - Statistical Representation of Model Input (EDITED) - ...
 
Cubic Spline Interpolation
Cubic Spline InterpolationCubic Spline Interpolation
Cubic Spline Interpolation
 
Subgradient Methods for Huge-Scale Optimization Problems - Юрий Нестеров, Cat...
Subgradient Methods for Huge-Scale Optimization Problems - Юрий Нестеров, Cat...Subgradient Methods for Huge-Scale Optimization Problems - Юрий Нестеров, Cat...
Subgradient Methods for Huge-Scale Optimization Problems - Юрий Нестеров, Cat...
 
Probabilistic Control of Uncertain Linear Systems Using Stochastic Reachability
Probabilistic Control of Uncertain Linear Systems Using Stochastic ReachabilityProbabilistic Control of Uncertain Linear Systems Using Stochastic Reachability
Probabilistic Control of Uncertain Linear Systems Using Stochastic Reachability
 
Gr 11 equations
Gr 11   equationsGr 11   equations
Gr 11 equations
 
Quick run through on classical mechancis and quantum mechanics
Quick run through on classical mechancis and quantum mechanics Quick run through on classical mechancis and quantum mechanics
Quick run through on classical mechancis and quantum mechanics
 

More from VARUN KUMAR

Distributed rc Model
Distributed rc ModelDistributed rc Model
Distributed rc Model
VARUN KUMAR
 
Electrical Wire Model
Electrical Wire ModelElectrical Wire Model
Electrical Wire Model
VARUN KUMAR
 
Interconnect Parameter in Digital VLSI Design
Interconnect Parameter in Digital VLSI DesignInterconnect Parameter in Digital VLSI Design
Interconnect Parameter in Digital VLSI Design
VARUN KUMAR
 
Introduction to Digital VLSI Design
Introduction to Digital VLSI DesignIntroduction to Digital VLSI Design
Introduction to Digital VLSI Design
VARUN KUMAR
 
Challenges of Massive MIMO System
Challenges of Massive MIMO SystemChallenges of Massive MIMO System
Challenges of Massive MIMO System
VARUN KUMAR
 
E-democracy or Digital Democracy
E-democracy or Digital DemocracyE-democracy or Digital Democracy
E-democracy or Digital Democracy
VARUN KUMAR
 
Ethics of Parasitic Computing
Ethics of Parasitic ComputingEthics of Parasitic Computing
Ethics of Parasitic Computing
VARUN KUMAR
 
Action Lines of Geneva Plan of Action
Action Lines of Geneva Plan of ActionAction Lines of Geneva Plan of Action
Action Lines of Geneva Plan of Action
VARUN KUMAR
 
Geneva Plan of Action
Geneva Plan of ActionGeneva Plan of Action
Geneva Plan of Action
VARUN KUMAR
 
Fair Use in the Electronic Age
Fair Use in the Electronic AgeFair Use in the Electronic Age
Fair Use in the Electronic Age
VARUN KUMAR
 
Software as a Property
Software as a PropertySoftware as a Property
Software as a Property
VARUN KUMAR
 
Orthogonal Polynomial
Orthogonal PolynomialOrthogonal Polynomial
Orthogonal Polynomial
VARUN KUMAR
 
Patent Protection
Patent ProtectionPatent Protection
Patent Protection
VARUN KUMAR
 
Copyright Vs Patent and Trade Secrecy Law
Copyright Vs Patent and Trade Secrecy LawCopyright Vs Patent and Trade Secrecy Law
Copyright Vs Patent and Trade Secrecy Law
VARUN KUMAR
 
Property Right and Software
Property Right and SoftwareProperty Right and Software
Property Right and Software
VARUN KUMAR
 
Investigating Data Trials
Investigating Data TrialsInvestigating Data Trials
Investigating Data Trials
VARUN KUMAR
 
Gaussian Numerical Integration
Gaussian Numerical IntegrationGaussian Numerical Integration
Gaussian Numerical Integration
VARUN KUMAR
 
Censorship and Controversy
Censorship and ControversyCensorship and Controversy
Censorship and Controversy
VARUN KUMAR
 
Romberg's Integration
Romberg's IntegrationRomberg's Integration
Romberg's Integration
VARUN KUMAR
 
Introduction to Censorship
Introduction to Censorship Introduction to Censorship
Introduction to Censorship
VARUN KUMAR
 

More from VARUN KUMAR (20)

Distributed rc Model
Distributed rc ModelDistributed rc Model
Distributed rc Model
 
Electrical Wire Model
Electrical Wire ModelElectrical Wire Model
Electrical Wire Model
 
Interconnect Parameter in Digital VLSI Design
Interconnect Parameter in Digital VLSI DesignInterconnect Parameter in Digital VLSI Design
Interconnect Parameter in Digital VLSI Design
 
Introduction to Digital VLSI Design
Introduction to Digital VLSI DesignIntroduction to Digital VLSI Design
Introduction to Digital VLSI Design
 
Challenges of Massive MIMO System
Challenges of Massive MIMO SystemChallenges of Massive MIMO System
Challenges of Massive MIMO System
 
E-democracy or Digital Democracy
E-democracy or Digital DemocracyE-democracy or Digital Democracy
E-democracy or Digital Democracy
 
Ethics of Parasitic Computing
Ethics of Parasitic ComputingEthics of Parasitic Computing
Ethics of Parasitic Computing
 
Action Lines of Geneva Plan of Action
Action Lines of Geneva Plan of ActionAction Lines of Geneva Plan of Action
Action Lines of Geneva Plan of Action
 
Geneva Plan of Action
Geneva Plan of ActionGeneva Plan of Action
Geneva Plan of Action
 
Fair Use in the Electronic Age
Fair Use in the Electronic AgeFair Use in the Electronic Age
Fair Use in the Electronic Age
 
Software as a Property
Software as a PropertySoftware as a Property
Software as a Property
 
Orthogonal Polynomial
Orthogonal PolynomialOrthogonal Polynomial
Orthogonal Polynomial
 
Patent Protection
Patent ProtectionPatent Protection
Patent Protection
 
Copyright Vs Patent and Trade Secrecy Law
Copyright Vs Patent and Trade Secrecy LawCopyright Vs Patent and Trade Secrecy Law
Copyright Vs Patent and Trade Secrecy Law
 
Property Right and Software
Property Right and SoftwareProperty Right and Software
Property Right and Software
 
Investigating Data Trials
Investigating Data TrialsInvestigating Data Trials
Investigating Data Trials
 
Gaussian Numerical Integration
Gaussian Numerical IntegrationGaussian Numerical Integration
Gaussian Numerical Integration
 
Censorship and Controversy
Censorship and ControversyCensorship and Controversy
Censorship and Controversy
 
Romberg's Integration
Romberg's IntegrationRomberg's Integration
Romberg's Integration
 
Introduction to Censorship
Introduction to Censorship Introduction to Censorship
Introduction to Censorship
 

Recently uploaded

LIGA(E)11111111111111111111111111111111111111111.ppt
LIGA(E)11111111111111111111111111111111111111111.pptLIGA(E)11111111111111111111111111111111111111111.ppt
LIGA(E)11111111111111111111111111111111111111111.ppt
ssuser9bd3ba
 
Cosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdfCosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdf
Kamal Acharya
 
The Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdfThe Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdf
Pipe Restoration Solutions
 
Automobile Management System Project Report.pdf
Automobile Management System Project Report.pdfAutomobile Management System Project Report.pdf
Automobile Management System Project Report.pdf
Kamal Acharya
 
Student information management system project report ii.pdf
Student information management system project report ii.pdfStudent information management system project report ii.pdf
Student information management system project report ii.pdf
Kamal Acharya
 
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
obonagu
 
Final project report on grocery store management system..pdf
Final project report on grocery store management system..pdfFinal project report on grocery store management system..pdf
Final project report on grocery store management system..pdf
Kamal Acharya
 
Planning Of Procurement o different goods and services
Planning Of Procurement o different goods and servicesPlanning Of Procurement o different goods and services
Planning Of Procurement o different goods and services
JoytuBarua2
 
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang,  ICLR 2024, MLILAB, KAIST AI.pdfJ.Yang,  ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
MLILAB
 
block diagram and signal flow graph representation
block diagram and signal flow graph representationblock diagram and signal flow graph representation
block diagram and signal flow graph representation
Divya Somashekar
 
power quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptxpower quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptx
ViniHema
 
HYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generationHYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generation
Robbie Edward Sayers
 
Architectural Portfolio Sean Lockwood
Architectural Portfolio Sean LockwoodArchitectural Portfolio Sean Lockwood
Architectural Portfolio Sean Lockwood
seandesed
 
TECHNICAL TRAINING MANUAL GENERAL FAMILIARIZATION COURSE
TECHNICAL TRAINING MANUAL   GENERAL FAMILIARIZATION COURSETECHNICAL TRAINING MANUAL   GENERAL FAMILIARIZATION COURSE
TECHNICAL TRAINING MANUAL GENERAL FAMILIARIZATION COURSE
DuvanRamosGarzon1
 
The role of big data in decision making.
The role of big data in decision making.The role of big data in decision making.
The role of big data in decision making.
ankuprajapati0525
 
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
Amil Baba Dawood bangali
 
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdfHybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
fxintegritypublishin
 
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptxCFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
R&R Consult
 
ASME IX(9) 2007 Full Version .pdf
ASME IX(9)  2007 Full Version       .pdfASME IX(9)  2007 Full Version       .pdf
ASME IX(9) 2007 Full Version .pdf
AhmedHussein950959
 
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdfWater Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation & Control
 

Recently uploaded (20)

LIGA(E)11111111111111111111111111111111111111111.ppt
LIGA(E)11111111111111111111111111111111111111111.pptLIGA(E)11111111111111111111111111111111111111111.ppt
LIGA(E)11111111111111111111111111111111111111111.ppt
 
Cosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdfCosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdf
 
The Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdfThe Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdf
 
Automobile Management System Project Report.pdf
Automobile Management System Project Report.pdfAutomobile Management System Project Report.pdf
Automobile Management System Project Report.pdf
 
Student information management system project report ii.pdf
Student information management system project report ii.pdfStudent information management system project report ii.pdf
Student information management system project report ii.pdf
 
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
 
Final project report on grocery store management system..pdf
Final project report on grocery store management system..pdfFinal project report on grocery store management system..pdf
Final project report on grocery store management system..pdf
 
Planning Of Procurement o different goods and services
Planning Of Procurement o different goods and servicesPlanning Of Procurement o different goods and services
Planning Of Procurement o different goods and services
 
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang,  ICLR 2024, MLILAB, KAIST AI.pdfJ.Yang,  ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
 
block diagram and signal flow graph representation
block diagram and signal flow graph representationblock diagram and signal flow graph representation
block diagram and signal flow graph representation
 
power quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptxpower quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptx
 
HYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generationHYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generation
 
Architectural Portfolio Sean Lockwood
Architectural Portfolio Sean LockwoodArchitectural Portfolio Sean Lockwood
Architectural Portfolio Sean Lockwood
 
TECHNICAL TRAINING MANUAL GENERAL FAMILIARIZATION COURSE
TECHNICAL TRAINING MANUAL   GENERAL FAMILIARIZATION COURSETECHNICAL TRAINING MANUAL   GENERAL FAMILIARIZATION COURSE
TECHNICAL TRAINING MANUAL GENERAL FAMILIARIZATION COURSE
 
The role of big data in decision making.
The role of big data in decision making.The role of big data in decision making.
The role of big data in decision making.
 
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
 
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdfHybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
 
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptxCFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
 
ASME IX(9) 2007 Full Version .pdf
ASME IX(9)  2007 Full Version       .pdfASME IX(9)  2007 Full Version       .pdf
ASME IX(9) 2007 Full Version .pdf
 
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdfWater Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdf
 

Quadratic programming (Tool of optimization)

  • 1. Quadratic Programming Dr. Varun Kumar Dr. Varun Kumar Lecture 2 1 / 12
  • 2. Outlines 1 Introduction to Quadratic Programming 2 Problem and Solution by Graphical Method 3 Karush Kuhn Tucker (KKT) Condition Dr. Varun Kumar Lecture 2 2 / 12
  • 3. Introduction to Quadratic Programming ⇒ Quadratic programming problem (QPP) is special case of non-linear programming problem (NLPP). ⇒ Objective function is quadratic in nature. ⇒ All constraints (in-equality and equality) are linear in nature. ⇒ General mathematical formulation for QPP min{f (x)} =xT Qx + cT x s.t Ax ≤ b x ≥ 0 ⇒ Q = [qij ]n×n → Symmetric positive semi-definite matrix. ⇒ c, x ∈ Rn → Vector of size n × 1 (Contain real number). ⇒ A = [aij ]m×n → Matrix of size m × n Dr. Varun Kumar Lecture 2 3 / 12
  • 4. Example: ⇒ Let objective function f (x) = 3x2 1 + 4x2 2 + 2x1x2 − 2x1 − 3x2 ⇒ Constraint: 3x1 + 2x2 ≤ 6 x1 + x2 ≤ 2 x1, x2 ≥ 0 ⇒ Problem representation min{f (x)} = [x1 x2] 3 1 1 4 x1 x2 + [−2 − 3] x1 x2 3 2 1 1 x1 x2 ≤ 6 2 ⇒ x = x1 x2 , Q = 3 1 1 4 , b = 6 2 , A = 3 2 1 1 , c = −2 −3 Dr. Varun Kumar Lecture 2 4 / 12
  • 5. Solution by the graphical method: Positive semi-definite and symmetric ⇒ Q = 3 1 1 4 → [qij ]2×2, if qij = qji → Symmetric ⇒ If det|Q| ≥ 0 → Positive semi-definite Solution by graphical method: ⇒ Let objective function f (x) = (x1 − 2)2 + (x2 − 1)2 ⇒ Constraint: x1 + x2 ≤ 2 x1, x2 ≥ 0 Dr. Varun Kumar Lecture 2 5 / 12
  • 6. Karush Kuhn Tucker KKT condition: QPP should be written in this form ⇒ min{f (x)} = xT Qx + cT x ⇒ Ax ≤ b (1) ⇒ −x ≤ 0 (2) Let KKT multiplier associated with the constraints (1) and (2) be u ∈ Rm and v ∈ Rn, respectively. Hence, cT + 2xT Q + uT A − vT = 0 uT (Ax − b) − vT x = 0 Ax − b = 0 x ≥ 0, u ≥ 0, v ≥ 0 Note: Total number of KKT multiplier for solving QPP is m + n. Dr. Varun Kumar Lecture 2 6 / 12
  • 7. General KKT condition General KKT condition ⇒ ∇f (x) + PN i=1 λi ∇gi (x) = 0 ⇒ λi gi (x) = 0 ∀ i ⇒ gi (x) ≤ 0 ⇒ λi ≥ 0 Here, ∇f (x) = ∂f (x) ∂x1 , ∂f (x) ∂x2 , ......, ∂f (x) ∂xn Example ⇒ f (x) = 3x2 1 + 2x2 2 + x1x2 − 4x1 − 2x2 s.t x1 + 2x2 ≤ 6 → u −x1 ≤ 0 → v1 −x2 ≤ 0 → v2 Dr. Varun Kumar Lecture 2 7 / 12
  • 8. Continued– As per the question f (x) = 3x2 1 + 2x2 2 + x1x2 − 4x1 − 2x2, s.t x1 + 2x2 ≤ 6 → u, −x1 ≤ 0 → v1, −x2 ≤ 0 → v2. Hence, Applying KKT condition: 6x1 + x2 − 4, 4x2 + x1 − 2 + u 1, 2 + v1(−1, 0) + v2(0, −1) = (0, 0) 6x1 + x2 − 4 + u − v1 = 0 x1 + 4x2 − 2 + 2u − v2 = 0 General KKT condition for QPP 2xT Q + cT + uT A + vT (−I) = 0 uT (Ax − b) − vT x = 0 Ax − b ≤ 0 x ≥ 0, u ≥ 0, v ≥ 0 Dr. Varun Kumar Lecture 2 8 / 12
  • 9. Continued– Taking transpose operation in 1st KKT expression 2Qx + c + AT u + v(−I) = 0 uT (Ax − b) − vT x = 0 Ax − b + s = 0 x ≥ 0, u ≥ 0, v ≥ 0 Here, 0s0 is called as the slack variable. ⇒ uT (−s) − vT x = 0 ⇒ uT s = 0 ⇒ u1s1 + u2s2 + ... + umsm = 0 ⇒ ; vT x = 0 ⇒ v1x1 + v2x2 + ..... + vnxn = 0 ⇒ ui si = 0 ∀ i = 1, 2, ...., m and vj xj = 0 ∀ j = 1, 2, ...n     2Qx + c + AT u − v = 0 Ax + s = b ui si = 0 ∀ i = 1, 2, ...., m vj xj = 0 ∀ j = 1, 2, ...n     Dr. Varun Kumar Lecture 2 9 / 12
  • 10. Continued– The matrix form of KKT conditions are 2Q AT In 0 A 0 0 In     x u v s     −c b Theorem Let Q be a +ve semi-definite matrix of order n. Then for any x, y ∈ Rn 2xT Qy ≤ xT Qx + yT Qy Problem: Show that f (x) = xT Qx + cT x, x ∈ Rn (in QPP) is a convex function, if Q is a semi-definite symmetric matrix. Dr. Varun Kumar Lecture 2 10 / 12
  • 11. Continued– Condition for +ve semi-definite matrix zT Qz ≥ 0 ∀ z ∈ Rn ⇒ (x − y)T Q(x − y) ≥ 0 ∀ x, y ∈ Rn ⇒ xT Qx + yT Qy − yT Qx − xT Qy ≥ 0 ⇒ yT Qx + xT Qy ≤ xT Qx + yT Qy ⇒ 2xT Qy ≤ xT Qx + yT Qy Dr. Varun Kumar Lecture 2 11 / 12
  • 12. Dr. Varun Kumar Lecture 2 12 / 12