ENGN3301_Quadratic_Programming_2024.pptx

hasko2024 6 views 11 slides Sep 01, 2024
Slide 1
Slide 1 of 11
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11

About This Presentation

Quadratic programming


Slide Content

ENGN3301 Operations Research NONLINEAR PROGRAMMING QUADRATIC PROGRAMING 

2 ANU SCHOOL OF ENGINEERING   |   EB4 QUADRATIC PROGRAMMING  Linear Programming (LP) Recall the anatomy of a linear program Decision variables: (with lower and upper bounds) Objective function (linear): ( minimise / maximise ) Constraints: (inequality, equality) In matrix form ( Matlab -preferred formulation): For a LP problem, the optimal solution is always at one of the vertices of the feasibility region.   Objective function: a plane in space (for a problem with 2 decision variables) “house with a flat roof”

3 Non-Linear Programming ANU SCHOOL OF Engineering   |   EB4 Quadratic PROGRAMMING  Objective function:  Minimise : Constraints:         If the function or one of the constraints or is non-linear, that is a case of non-linear programming . The optimal solution is no longer guaranteed to be at the feasibility region boundary / vertex Quadratic Programming is a special case of non-linear programming   A nonlinear objective function, also plotted as contours superimposed on the feasibility region

4 ANU SCHOOL OF ENGINEERING   |   EB4 QUADRATIC PROGRAMMING  Quadratic Programming (QP) Objective function has degree 2, e.g., All the constraints and are linear (same as LP) Any QP can be defined as:   Such that: : number of decision variables : number of equality constraints : number of inequality constraints        

DD MMM YY Investment decisions across collection of financial assets ( eg.  stocks) Machine learning: Least squares Satellite Slew Control Minimising manufacturing cost (problems with economies/diseconomies of scale) Many other problems with quadratic formulation. 5 Applications of QPs Photo by  Callum Wale  on  Unsplash ANU SCHOOL OF ENGINEERING   |   EB4 QUADRATIC PROGRAMMING 

6 Matlab solution of Quadratic Problem ANU SCHOOL OF ENGINEERING   |   EB4 QUADRATIC PROGRAMMING  Minimize:  Such that:  Bounds   H = 2*[1/2 -1/8;       -1/8   1];  %H matrix standard form f = [0.1; -3]; % same for f A = [1 1;      -1 2;      2 1]; b = [2; 2; 3]; lb = zeros(2,1); ub = [10, 10]; Aeq = []; beq = []; [ x,fval ] = quadprog ( H,f,A,b,Aeq,beq,lb,ub ); x = [ 0.5200 1.2600] // optimal solution  

ANU SCHOOL OF LAW | PRESENTATION NAME GOES HERE 7 DD MMM YY Solution visualisation Note: solution not at vertex!

ANU SCHOOL OF LAW | PRESENTATION NAME GOES HERE 8 DD MMM YY Equation to matrix form for solution     H = 2*[1/2 -1/8;       -1/8   1];   half of coefficient   coefficient for   coefficient for   2x scaling factor as the Matlab formulation expects a ½ fraction in front f = [0.1; -3]; half of coefficient (symmetric matrix)   coefficients for  

DD MMM YY Interior Point Active set Augmented Lagrangian Conjugate gradient Gradient Projection Various methods depending on nature of the problem (e.g., dense vs sparse H), precision vs speed trade-offs etc. 9 Different methods  to solve QP Photo by  Viswanath V Pai  on  Unsplash ANU SCHOOL OF ENGINEERING   |   EB4 QUADRATIC PROGRAMMING 

Assume two warehouses and two stores, with transport between them. ANU SCHOOL OF LAW | PRESENTATION NAME GOES HERE 10 DD MMM YY Example: transport with congestion        

Thank you
Tags