SlideShare a Scribd company logo
1 of 6
Programación cuadrática José F. Nieves Mathematical methods research MATH 6350 Prof. Balbino García
La programación cuadrática es un problema de optimización matemática. La cual busca minimizar o maximizar una función cuadrática con diferentes variables sujeto a limitaciones lineales sobre estas variables.    Definición
La programación cuadrática se puede formular de la siguiente forma: Se asume que x representa  .     .Q es una matriz simétrica nxn y que c es cualquier vector nx1.
	Examples Find values of x that minimize 	subject to x1 + x2 ≤ 2–x1 + 2x2 ≤ 22x1 + x2 ≤ 30 ≤ x1, 0 ≤ x2. First, note that this function can be written in matrix notation as 	where  	Enter these coefficient matrices. 	H = [1 -1; -1 2] f = [-2; -6] A = [1 1; -1 2; 2 1] b = [2; 2; 3] lb = zeros(2,1) Next, invoke a quadratic programming routine. 	[x,fval,exitflag,output,lambda] = ... quadprog(H,f,A,b,[],[],lb) This generates the solution 	x = 0.6667 1.3333 fval = -8.2222 exitflag = 1 output = iterations: 3 algorithm: 'medium-scale: active-set' firstorderopt: [] cgiterations: [] message: 'Optimization terminated.' lambda = lower: [2x1 double] upper: [2x1 double] eqlin: [0x1 double] ineqlin: [3x1 double] lambda.ineqlinans = 3.1111 0.4444 0 lambda.lowerans = 0 0 Nonzero elements of the vectors in the fields of lambda indicate active constraints at the solution. In this case, the first and second inequality constraints (in lambda.ineqlin) are active constraints (i.e., the solution is on their constraint boundaries). For this problem, all the lower bounds are inactive Ejemplos
Quadratic programming codes: BQPD from Roger Fletcher  CPLEX Barrier/QP solver  CPLEX Simplex/QP solver  CPLEX Mixed-integer QP solver  The Xpress-MP Newton-barrier QP solver from Dash Optimization  HOPDM from JacekGondzio and Anna Altman  LINDO The packages QPC, QPB and QPA from GALAHAD The packages VE02, VE09, VE17, HSL_VE12 and HSL_VE19 from HSL (formerly known as the Harwell Subroutine Library)  LOQO from Bob Vanderbei MINQ for convex general and non-convex bound constrained problems, in Matlab, by Arnold Neumaier CirCut for finding approximate solutions to certain binary quadratic programs, including the Max-Cut and the Max-Bisection problems, by Yin Zhang  The subroutines E04NCF, E04NFF, E04NKF, H02CBF and H02CEF from the NAG fortran library  The package nag_qp_sol from the NAG fl90 library  The subroutines nag_opt_lin_lsq and nag_opt_sparse_convex_qp from the NAG C library  KNITRO from Ziena Optimization Inc. is highly QP-capable.  LSSOL from SOL Optimization Software  OOQP by Mike Gertz and Steve Wright  QPOPT again from SOL Optimization Software  The C/Python QP package which is part of CVXOPT The package IQP, by Linda Kaufman and Jessica Hodgins, from the PORT Mathematical Subroutine Library  The MOSEK package from Erling and Knud Andersen  The subroutine HSQP from John Betts, which is Algorithm 559 from the Collected Algorithms of the ACM  The COPL_QP package of Xiong Zhang and Yinyu Ye  BerwinTurlach'sQuadProg, a Fortran 77 package for convex QP based on Goldfarb and Idnani's dual active-set method.  QuadProg++, a C++ solver for (strictly) convex problems from Luca Di Gaspero The exact solver QP_solver, part of the Computational Geometry Algorithms Library (CGAL)  Codigos
http://www.mathworks.com/access/helpdesk/help/toolbox/optim/ug/quadprog.html http://www.numerical.rl.ac.uk/qp/qp.html http://wiki.mcs.anl.gov/NEOS/index.php/Quadratic_Programming http://en.wikipedia.org/wiki/Quadratic_programming http://www.wolfram.com/news/operationsres2.html http://wiki.mcs.anl.gov/NEOS/index.php/NEOSWiki Bibliografía

More Related Content

What's hot

Program Derivation of Matrix Operations in GF
Program Derivation of Matrix Operations in GFProgram Derivation of Matrix Operations in GF
Program Derivation of Matrix Operations in GFCharles Southerland
 
lecture 30
lecture 30lecture 30
lecture 30sajinsc
 
Optimization Techniques
Optimization TechniquesOptimization Techniques
Optimization TechniquesAjay Bidyarthy
 
Aaex7 group2(中英夾雜)
Aaex7 group2(中英夾雜)Aaex7 group2(中英夾雜)
Aaex7 group2(中英夾雜)Shiang-Yun Yang
 
141031_Lagrange Relaxation Based Method for the QoS Routing Problem
141031_Lagrange Relaxation Based Method for the QoS Routing Problem 141031_Lagrange Relaxation Based Method for the QoS Routing Problem
141031_Lagrange Relaxation Based Method for the QoS Routing Problem Eunice Lin
 
DESIGN AND ANALYSIS OF ALGORITHMS
DESIGN AND ANALYSIS OF ALGORITHMSDESIGN AND ANALYSIS OF ALGORITHMS
DESIGN AND ANALYSIS OF ALGORITHMSGayathri Gaayu
 
5.2 primitive recursive functions
5.2 primitive recursive functions5.2 primitive recursive functions
5.2 primitive recursive functionsSampath Kumar S
 
Aaex5 group2(中英夾雜)
Aaex5 group2(中英夾雜)Aaex5 group2(中英夾雜)
Aaex5 group2(中英夾雜)Shiang-Yun Yang
 
Eucledian algorithm for gcd of integers and polynomials
Eucledian algorithm for gcd of integers and polynomialsEucledian algorithm for gcd of integers and polynomials
Eucledian algorithm for gcd of integers and polynomialsSWAMY J S
 
Polyhedral and algebraic method in computational geometry
Polyhedral and algebraic method in computational geometryPolyhedral and algebraic method in computational geometry
Polyhedral and algebraic method in computational geometrySpringer
 
Transportation and assignment_problem
Transportation and assignment_problemTransportation and assignment_problem
Transportation and assignment_problemAnkit Katiyar
 
Theory of Automata and formal languages unit 1
Theory of Automata and formal languages unit 1Theory of Automata and formal languages unit 1
Theory of Automata and formal languages unit 1Abhimanyu Mishra
 
Joint blind calibration and time-delay estimation for multiband ranging
Joint blind calibration and time-delay estimation for multiband rangingJoint blind calibration and time-delay estimation for multiband ranging
Joint blind calibration and time-delay estimation for multiband rangingTarik Kazaz
 
Proof of Kraft-McMillan theorem
Proof of Kraft-McMillan theoremProof of Kraft-McMillan theorem
Proof of Kraft-McMillan theoremVu Hung Nguyen
 

What's hot (20)

Assignment 2 daa
Assignment 2 daaAssignment 2 daa
Assignment 2 daa
 
Program Derivation of Matrix Operations in GF
Program Derivation of Matrix Operations in GFProgram Derivation of Matrix Operations in GF
Program Derivation of Matrix Operations in GF
 
Asymptotic notation
Asymptotic notationAsymptotic notation
Asymptotic notation
 
lecture 30
lecture 30lecture 30
lecture 30
 
Optimization Techniques
Optimization TechniquesOptimization Techniques
Optimization Techniques
 
Aaex7 group2(中英夾雜)
Aaex7 group2(中英夾雜)Aaex7 group2(中英夾雜)
Aaex7 group2(中英夾雜)
 
141031_Lagrange Relaxation Based Method for the QoS Routing Problem
141031_Lagrange Relaxation Based Method for the QoS Routing Problem 141031_Lagrange Relaxation Based Method for the QoS Routing Problem
141031_Lagrange Relaxation Based Method for the QoS Routing Problem
 
DESIGN AND ANALYSIS OF ALGORITHMS
DESIGN AND ANALYSIS OF ALGORITHMSDESIGN AND ANALYSIS OF ALGORITHMS
DESIGN AND ANALYSIS OF ALGORITHMS
 
5.2 primitive recursive functions
5.2 primitive recursive functions5.2 primitive recursive functions
5.2 primitive recursive functions
 
Aaex5 group2(中英夾雜)
Aaex5 group2(中英夾雜)Aaex5 group2(中英夾雜)
Aaex5 group2(中英夾雜)
 
Eucledian algorithm for gcd of integers and polynomials
Eucledian algorithm for gcd of integers and polynomialsEucledian algorithm for gcd of integers and polynomials
Eucledian algorithm for gcd of integers and polynomials
 
Np cooks theorem
Np cooks theoremNp cooks theorem
Np cooks theorem
 
Primitive Recursive Functions
Primitive Recursive FunctionsPrimitive Recursive Functions
Primitive Recursive Functions
 
Unit 3
Unit 3Unit 3
Unit 3
 
Polyhedral and algebraic method in computational geometry
Polyhedral and algebraic method in computational geometryPolyhedral and algebraic method in computational geometry
Polyhedral and algebraic method in computational geometry
 
Transportation and assignment_problem
Transportation and assignment_problemTransportation and assignment_problem
Transportation and assignment_problem
 
Theory of Automata and formal languages unit 1
Theory of Automata and formal languages unit 1Theory of Automata and formal languages unit 1
Theory of Automata and formal languages unit 1
 
Lecture26
Lecture26Lecture26
Lecture26
 
Joint blind calibration and time-delay estimation for multiband ranging
Joint blind calibration and time-delay estimation for multiband rangingJoint blind calibration and time-delay estimation for multiband ranging
Joint blind calibration and time-delay estimation for multiband ranging
 
Proof of Kraft-McMillan theorem
Proof of Kraft-McMillan theoremProof of Kraft-McMillan theorem
Proof of Kraft-McMillan theorem
 

Similar to Programacion Cuadratica

Convex Optimization Modelling with CVXOPT
Convex Optimization Modelling with CVXOPTConvex Optimization Modelling with CVXOPT
Convex Optimization Modelling with CVXOPTandrewmart11
 
Linear Programming (graphical method)
Linear Programming (graphical method)Linear Programming (graphical method)
Linear Programming (graphical method)Kamel Attar
 
Global optimization
Global optimizationGlobal optimization
Global optimizationbpenalver
 
A New Lagrangian Relaxation Approach To The Generalized Assignment Problem
A New Lagrangian Relaxation Approach To The Generalized Assignment ProblemA New Lagrangian Relaxation Approach To The Generalized Assignment Problem
A New Lagrangian Relaxation Approach To The Generalized Assignment ProblemKim Daniels
 
lecture01_lecture01_lecture0001_ceva.pdf
lecture01_lecture01_lecture0001_ceva.pdflecture01_lecture01_lecture0001_ceva.pdf
lecture01_lecture01_lecture0001_ceva.pdfAnaNeacsu5
 
MVPA with SpaceNet: sparse structured priors
MVPA with SpaceNet: sparse structured priorsMVPA with SpaceNet: sparse structured priors
MVPA with SpaceNet: sparse structured priorsElvis DOHMATOB
 
Convex optmization in communications
Convex optmization in communicationsConvex optmization in communications
Convex optmization in communicationsDeepshika Reddy
 
Parallel_Algorithms_In_Combinatorial_Optimization_Problems.ppt
Parallel_Algorithms_In_Combinatorial_Optimization_Problems.pptParallel_Algorithms_In_Combinatorial_Optimization_Problems.ppt
Parallel_Algorithms_In_Combinatorial_Optimization_Problems.pptBinayakMukherjee4
 
Convex optimization methods
Convex optimization methodsConvex optimization methods
Convex optimization methodsDong Guo
 
Parallel_Algorithms_In_Combinatorial_Optimization_Problems.ppt
Parallel_Algorithms_In_Combinatorial_Optimization_Problems.pptParallel_Algorithms_In_Combinatorial_Optimization_Problems.ppt
Parallel_Algorithms_In_Combinatorial_Optimization_Problems.pptdakccse
 
A New Neural Network For Solving Linear Programming Problems
A New Neural Network For Solving Linear Programming ProblemsA New Neural Network For Solving Linear Programming Problems
A New Neural Network For Solving Linear Programming ProblemsJody Sullivan
 
Optimum Solution of Quadratic Programming Problem: By Wolfe’s Modified Simple...
Optimum Solution of Quadratic Programming Problem: By Wolfe’s Modified Simple...Optimum Solution of Quadratic Programming Problem: By Wolfe’s Modified Simple...
Optimum Solution of Quadratic Programming Problem: By Wolfe’s Modified Simple...IJLT EMAS
 
A Level Set Method For Multiobjective Combinatorial Optimization Application...
A Level Set Method For Multiobjective Combinatorial Optimization  Application...A Level Set Method For Multiobjective Combinatorial Optimization  Application...
A Level Set Method For Multiobjective Combinatorial Optimization Application...Scott Faria
 
Interval programming
Interval programming Interval programming
Interval programming Zahra Sadeghi
 

Similar to Programacion Cuadratica (20)

Convex Optimization Modelling with CVXOPT
Convex Optimization Modelling with CVXOPTConvex Optimization Modelling with CVXOPT
Convex Optimization Modelling with CVXOPT
 
Subquad multi ff
Subquad multi ffSubquad multi ff
Subquad multi ff
 
Linear Programming (graphical method)
Linear Programming (graphical method)Linear Programming (graphical method)
Linear Programming (graphical method)
 
bv_cvxslides (1).pdf
bv_cvxslides (1).pdfbv_cvxslides (1).pdf
bv_cvxslides (1).pdf
 
Global optimization
Global optimizationGlobal optimization
Global optimization
 
A New Lagrangian Relaxation Approach To The Generalized Assignment Problem
A New Lagrangian Relaxation Approach To The Generalized Assignment ProblemA New Lagrangian Relaxation Approach To The Generalized Assignment Problem
A New Lagrangian Relaxation Approach To The Generalized Assignment Problem
 
lecture01_lecture01_lecture0001_ceva.pdf
lecture01_lecture01_lecture0001_ceva.pdflecture01_lecture01_lecture0001_ceva.pdf
lecture01_lecture01_lecture0001_ceva.pdf
 
MVPA with SpaceNet: sparse structured priors
MVPA with SpaceNet: sparse structured priorsMVPA with SpaceNet: sparse structured priors
MVPA with SpaceNet: sparse structured priors
 
ECE 565 FInal Project
ECE 565 FInal ProjectECE 565 FInal Project
ECE 565 FInal Project
 
Convex optmization in communications
Convex optmization in communicationsConvex optmization in communications
Convex optmization in communications
 
smtlecture.6
smtlecture.6smtlecture.6
smtlecture.6
 
Parallel_Algorithms_In_Combinatorial_Optimization_Problems.ppt
Parallel_Algorithms_In_Combinatorial_Optimization_Problems.pptParallel_Algorithms_In_Combinatorial_Optimization_Problems.ppt
Parallel_Algorithms_In_Combinatorial_Optimization_Problems.ppt
 
Convex optimization methods
Convex optimization methodsConvex optimization methods
Convex optimization methods
 
Parallel_Algorithms_In_Combinatorial_Optimization_Problems.ppt
Parallel_Algorithms_In_Combinatorial_Optimization_Problems.pptParallel_Algorithms_In_Combinatorial_Optimization_Problems.ppt
Parallel_Algorithms_In_Combinatorial_Optimization_Problems.ppt
 
A New Neural Network For Solving Linear Programming Problems
A New Neural Network For Solving Linear Programming ProblemsA New Neural Network For Solving Linear Programming Problems
A New Neural Network For Solving Linear Programming Problems
 
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 ...
 
Optimum Solution of Quadratic Programming Problem: By Wolfe’s Modified Simple...
Optimum Solution of Quadratic Programming Problem: By Wolfe’s Modified Simple...Optimum Solution of Quadratic Programming Problem: By Wolfe’s Modified Simple...
Optimum Solution of Quadratic Programming Problem: By Wolfe’s Modified Simple...
 
A Level Set Method For Multiobjective Combinatorial Optimization Application...
A Level Set Method For Multiobjective Combinatorial Optimization  Application...A Level Set Method For Multiobjective Combinatorial Optimization  Application...
A Level Set Method For Multiobjective Combinatorial Optimization Application...
 
Interval programming
Interval programming Interval programming
Interval programming
 
Program on Quasi-Monte Carlo and High-Dimensional Sampling Methods for Applie...
Program on Quasi-Monte Carlo and High-Dimensional Sampling Methods for Applie...Program on Quasi-Monte Carlo and High-Dimensional Sampling Methods for Applie...
Program on Quasi-Monte Carlo and High-Dimensional Sampling Methods for Applie...
 

More from paquitootd

Proyecto creativo cadenas de markov josé_f_nieves
Proyecto creativo cadenas de markov josé_f_nieves Proyecto creativo cadenas de markov josé_f_nieves
Proyecto creativo cadenas de markov josé_f_nieves paquitootd
 
Cadena de Markov Portada, tabla contenido, agradecimientos
Cadena de Markov Portada, tabla contenido, agradecimientosCadena de Markov Portada, tabla contenido, agradecimientos
Cadena de Markov Portada, tabla contenido, agradecimientospaquitootd
 
Estadistica, Probabilidad E Investigacin De Operacines
Estadistica, Probabilidad E Investigacin De OperacinesEstadistica, Probabilidad E Investigacin De Operacines
Estadistica, Probabilidad E Investigacin De Operacinespaquitootd
 
BiografíA De Euclides De AlejandríA
BiografíA De Euclides De AlejandríABiografíA De Euclides De AlejandríA
BiografíA De Euclides De AlejandríApaquitootd
 
Econometria Jose Nieves
Econometria Jose NievesEconometria Jose Nieves
Econometria Jose Nievespaquitootd
 
Analisis Factorial Paquito
Analisis Factorial PaquitoAnalisis Factorial Paquito
Analisis Factorial Paquitopaquitootd
 
Intervención de la estadística para resolver problemas relacionados al censo ...
Intervención de la estadística para resolver problemas relacionados al censo ...Intervención de la estadística para resolver problemas relacionados al censo ...
Intervención de la estadística para resolver problemas relacionados al censo ...paquitootd
 

More from paquitootd (8)

Proyecto creativo cadenas de markov josé_f_nieves
Proyecto creativo cadenas de markov josé_f_nieves Proyecto creativo cadenas de markov josé_f_nieves
Proyecto creativo cadenas de markov josé_f_nieves
 
Cadena de Markov Portada, tabla contenido, agradecimientos
Cadena de Markov Portada, tabla contenido, agradecimientosCadena de Markov Portada, tabla contenido, agradecimientos
Cadena de Markov Portada, tabla contenido, agradecimientos
 
Estadistica, Probabilidad E Investigacin De Operacines
Estadistica, Probabilidad E Investigacin De OperacinesEstadistica, Probabilidad E Investigacin De Operacines
Estadistica, Probabilidad E Investigacin De Operacines
 
BiografíA De Euclides De AlejandríA
BiografíA De Euclides De AlejandríABiografíA De Euclides De AlejandríA
BiografíA De Euclides De AlejandríA
 
Econometria Jose Nieves
Econometria Jose NievesEconometria Jose Nieves
Econometria Jose Nieves
 
Analisis Factorial Paquito
Analisis Factorial PaquitoAnalisis Factorial Paquito
Analisis Factorial Paquito
 
Intervención de la estadística para resolver problemas relacionados al censo ...
Intervención de la estadística para resolver problemas relacionados al censo ...Intervención de la estadística para resolver problemas relacionados al censo ...
Intervención de la estadística para resolver problemas relacionados al censo ...
 
Salud Publica
Salud PublicaSalud Publica
Salud Publica
 

Programacion Cuadratica

  • 1. Programación cuadrática José F. Nieves Mathematical methods research MATH 6350 Prof. Balbino García
  • 2. La programación cuadrática es un problema de optimización matemática. La cual busca minimizar o maximizar una función cuadrática con diferentes variables sujeto a limitaciones lineales sobre estas variables. Definición
  • 3. La programación cuadrática se puede formular de la siguiente forma: Se asume que x representa . .Q es una matriz simétrica nxn y que c es cualquier vector nx1.
  • 4. Examples Find values of x that minimize subject to x1 + x2 ≤ 2–x1 + 2x2 ≤ 22x1 + x2 ≤ 30 ≤ x1, 0 ≤ x2. First, note that this function can be written in matrix notation as where Enter these coefficient matrices. H = [1 -1; -1 2] f = [-2; -6] A = [1 1; -1 2; 2 1] b = [2; 2; 3] lb = zeros(2,1) Next, invoke a quadratic programming routine. [x,fval,exitflag,output,lambda] = ... quadprog(H,f,A,b,[],[],lb) This generates the solution x = 0.6667 1.3333 fval = -8.2222 exitflag = 1 output = iterations: 3 algorithm: 'medium-scale: active-set' firstorderopt: [] cgiterations: [] message: 'Optimization terminated.' lambda = lower: [2x1 double] upper: [2x1 double] eqlin: [0x1 double] ineqlin: [3x1 double] lambda.ineqlinans = 3.1111 0.4444 0 lambda.lowerans = 0 0 Nonzero elements of the vectors in the fields of lambda indicate active constraints at the solution. In this case, the first and second inequality constraints (in lambda.ineqlin) are active constraints (i.e., the solution is on their constraint boundaries). For this problem, all the lower bounds are inactive Ejemplos
  • 5. Quadratic programming codes: BQPD from Roger Fletcher CPLEX Barrier/QP solver CPLEX Simplex/QP solver CPLEX Mixed-integer QP solver The Xpress-MP Newton-barrier QP solver from Dash Optimization HOPDM from JacekGondzio and Anna Altman LINDO The packages QPC, QPB and QPA from GALAHAD The packages VE02, VE09, VE17, HSL_VE12 and HSL_VE19 from HSL (formerly known as the Harwell Subroutine Library) LOQO from Bob Vanderbei MINQ for convex general and non-convex bound constrained problems, in Matlab, by Arnold Neumaier CirCut for finding approximate solutions to certain binary quadratic programs, including the Max-Cut and the Max-Bisection problems, by Yin Zhang The subroutines E04NCF, E04NFF, E04NKF, H02CBF and H02CEF from the NAG fortran library The package nag_qp_sol from the NAG fl90 library The subroutines nag_opt_lin_lsq and nag_opt_sparse_convex_qp from the NAG C library KNITRO from Ziena Optimization Inc. is highly QP-capable. LSSOL from SOL Optimization Software OOQP by Mike Gertz and Steve Wright QPOPT again from SOL Optimization Software The C/Python QP package which is part of CVXOPT The package IQP, by Linda Kaufman and Jessica Hodgins, from the PORT Mathematical Subroutine Library The MOSEK package from Erling and Knud Andersen The subroutine HSQP from John Betts, which is Algorithm 559 from the Collected Algorithms of the ACM The COPL_QP package of Xiong Zhang and Yinyu Ye BerwinTurlach'sQuadProg, a Fortran 77 package for convex QP based on Goldfarb and Idnani's dual active-set method. QuadProg++, a C++ solver for (strictly) convex problems from Luca Di Gaspero The exact solver QP_solver, part of the Computational Geometry Algorithms Library (CGAL) Codigos
  • 6. http://www.mathworks.com/access/helpdesk/help/toolbox/optim/ug/quadprog.html http://www.numerical.rl.ac.uk/qp/qp.html http://wiki.mcs.anl.gov/NEOS/index.php/Quadratic_Programming http://en.wikipedia.org/wiki/Quadratic_programming http://www.wolfram.com/news/operationsres2.html http://wiki.mcs.anl.gov/NEOS/index.php/NEOSWiki Bibliografía