SlideShare una empresa de Scribd logo
1 de 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

Más contenido relacionado

La actualidad más candente

Asymptotic notations
Asymptotic notationsAsymptotic notations
Asymptotic notations
Ehtisham Ali
 
Time complexity (linear search vs binary search)
Time complexity (linear search vs binary search)Time complexity (linear search vs binary search)
Time complexity (linear search vs binary search)
Kumar
 

La actualidad más candente (18)

Divide and Conquer - Part II - Quickselect and Closest Pair of Points
Divide and Conquer - Part II - Quickselect and Closest Pair of PointsDivide and Conquer - Part II - Quickselect and Closest Pair of Points
Divide and Conquer - Part II - Quickselect and Closest Pair of Points
 
Asymptotic notations
Asymptotic notationsAsymptotic notations
Asymptotic notations
 
Ki2518101816
Ki2518101816Ki2518101816
Ki2518101816
 
Algorithm.ppt
Algorithm.pptAlgorithm.ppt
Algorithm.ppt
 
Asymptotic Notation and Complexity
Asymptotic Notation and ComplexityAsymptotic Notation and Complexity
Asymptotic Notation and Complexity
 
Matlab Assignment Help
Matlab Assignment HelpMatlab Assignment Help
Matlab Assignment Help
 
Limit, Continuity and Differentiability for JEE Main 2014
Limit, Continuity and Differentiability for JEE Main 2014Limit, Continuity and Differentiability for JEE Main 2014
Limit, Continuity and Differentiability for JEE Main 2014
 
algorithm Unit 3
algorithm Unit 3algorithm Unit 3
algorithm Unit 3
 
Daa unit 4
Daa unit 4Daa unit 4
Daa unit 4
 
Time complexity (linear search vs binary search)
Time complexity (linear search vs binary search)Time complexity (linear search vs binary search)
Time complexity (linear search vs binary search)
 
Computational Complexity
Computational ComplexityComputational Complexity
Computational Complexity
 
algorithm Unit 4
algorithm Unit 4 algorithm Unit 4
algorithm Unit 4
 
GATE Engineering Maths : Limit, Continuity and Differentiability
GATE Engineering Maths : Limit, Continuity and DifferentiabilityGATE Engineering Maths : Limit, Continuity and Differentiability
GATE Engineering Maths : Limit, Continuity and Differentiability
 
APLICACIONES DE LA DERIVADA EN LA CARRERA DE (Mecánica, Electrónica, Telecomu...
APLICACIONES DE LA DERIVADA EN LA CARRERA DE (Mecánica, Electrónica, Telecomu...APLICACIONES DE LA DERIVADA EN LA CARRERA DE (Mecánica, Electrónica, Telecomu...
APLICACIONES DE LA DERIVADA EN LA CARRERA DE (Mecánica, Electrónica, Telecomu...
 
a decomposition methodMin quasdratic.pdf
a decomposition methodMin quasdratic.pdfa decomposition methodMin quasdratic.pdf
a decomposition methodMin quasdratic.pdf
 
Knapsack problem using fixed tuple
Knapsack problem using fixed tupleKnapsack problem using fixed tuple
Knapsack problem using fixed tuple
 
Q
QQ
Q
 
Limits
LimitsLimits
Limits
 

Destacado (12)

Presentacion expo optimizacion
Presentacion expo optimizacionPresentacion expo optimizacion
Presentacion expo optimizacion
 
Métodos de programación no lineal
Métodos de programación no linealMétodos de programación no lineal
Métodos de programación no lineal
 
u2
u2u2
u2
 
El Metodo Simplex
El Metodo SimplexEl Metodo Simplex
El Metodo Simplex
 
Investigación de Operaciones 2/2
Investigación de Operaciones 2/2Investigación de Operaciones 2/2
Investigación de Operaciones 2/2
 
Programacion Convexa Presentacion Definitivo
Programacion Convexa Presentacion DefinitivoProgramacion Convexa Presentacion Definitivo
Programacion Convexa Presentacion Definitivo
 
ejercicios método simplex
ejercicios método simplexejercicios método simplex
ejercicios método simplex
 
Metodo Simplex
Metodo SimplexMetodo Simplex
Metodo Simplex
 
Funciones CuadráTicas
Funciones CuadráTicas Funciones CuadráTicas
Funciones CuadráTicas
 
solucionario Investigación de operaciones Hamdy a. Taha
 solucionario Investigación de operaciones Hamdy a. Taha solucionario Investigación de operaciones Hamdy a. Taha
solucionario Investigación de operaciones Hamdy a. Taha
 
Analisis de Redes - Investigacion de Operaciones
Analisis de Redes - Investigacion de OperacionesAnalisis de Redes - Investigacion de Operaciones
Analisis de Redes - Investigacion de Operaciones
 
Investigacion de operaciones taha opti3
Investigacion de operaciones   taha opti3Investigacion de operaciones   taha opti3
Investigacion de operaciones taha opti3
 

Similar a Programacion Cuadratica

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
dakccse
 

Similar a 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
 
Spark summit talk, july 2014 powered by reveal
Spark summit talk, july 2014 powered by revealSpark summit talk, july 2014 powered by reveal
Spark summit talk, july 2014 powered by reveal
 
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
 

Más de paquitootd (9)

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
 
Programacion Cuadratica
Programacion CuadraticaProgramacion Cuadratica
Programacion Cuadratica
 
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
 

Último

Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
ciinovamais
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
heathfieldcps1
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
kauryashika82
 

Último (20)

psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docx
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
Role Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptxRole Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptx
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
Asian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptxAsian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptx
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 

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