Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Quadratic programming
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==Problem formulation== The quadratic programming problem with {{mvar|n}} variables and {{mvar|m}} constraints can be formulated as follows.<ref>{{Cite book | last1=Nocedal | first1=Jorge | last2=Wright | first2=Stephen J. | title=Numerical Optimization | url=https://archive.org/details/numericaloptimiz00noce_639 | url-access=limited | publisher=[[Springer-Verlag]] | location=Berlin, New York | edition=2nd | isbn=978-0-387-30303-1 | year=2006 | page=[https://archive.org/details/numericaloptimiz00noce_639/page/n469 449] }}.</ref> Given: * a [[real number|real]]-valued, {{mvar|n}}-dimensional vector {{math|'''c'''}}, * an {{math|''n''Γ''n''}}-dimensional real [[symmetric matrix]] {{mvar|Q}}, * an {{math|''m''Γ''n''}}-dimensional real [[matrix (mathematics)|matrix]] {{mvar|A}}, and * an {{mvar|m}}-dimensional real vector {{math|'''b'''}}, the objective of quadratic programming is to find an {{mvar|n}}-dimensional vector {{math|'''x'''}}, that will :{| cellspacing="10" |- | minimize | <math>\tfrac{1}{2} \mathbf{x}^\mathrm{T} Q\mathbf{x} + \mathbf{c}^\mathrm{T} \mathbf{x}</math> |- | subject to | <math>A \mathbf{x} \preceq \mathbf{b},</math> |} where {{math|'''x'''<sup>T</sup>}} denotes the vector [[transpose]] of {{math|'''x'''}}, and the notation {{math|''A'''''x''' βͺ― '''b'''}} means that every entry of the vector {{math|''A'''''x'''}} is less than or equal to the corresponding entry of the vector {{math|'''b'''}} (component-wise inequality). ===Constrained least squares=== As a special case when {{math|''Q''}} is [[positive definite matrix|symmetric positive-definite]], the cost function reduces to least squares: :{| cellspacing="10" |- | minimize | <math>\tfrac{1}{2} \| R \mathbf{x} - \mathbf{d}\|^2 </math> |- | subject to | <math>A \mathbf{x} \preceq \mathbf{b},</math> |} where {{math|1=''Q'' = ''R''<sup>T</sup>''R''}} follows from the [[Cholesky decomposition]] of {{math|''Q''}} and {{math|1='''c''' = β''R''<sup>T</sup> '''d'''}}. Conversely, any such [[constrained least squares]] program can be equivalently framed as a quadratic programming problem, even for a generic non-square {{math|''R''}} matrix. ===Generalizations=== When minimizing a function {{mvar|f}} in the neighborhood of some reference point {{math|''x''<sub>0</sub>}}, {{mvar|Q}} is set to its [[Hessian matrix]] {{math|'''H'''(''f''('''x'''<sub>0</sub>))}} and {{math|'''c'''}} is set to its [[gradient]] {{math|β''f''('''x'''<sub>0</sub>)}}. A related programming problem, [[quadratically constrained quadratic program]]ming, can be posed by adding quadratic constraints on the variables.
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)