Description Usage Arguments Details Value Examples
View source: R/QuadraticProgramming.R
Minimize Quadratic with Linear Constraints
Minimizes x^T A x + x^T B
under equality constraint E x = F
and inequality constraint G x >= H
1 2 3 4 5 6 7 8 9 10 |
A |
A symmetric matrix describing the quadratic coefficients |
B |
A vector describeing the linear coefficients |
E |
A matrix for equality constraint |
F |
A vector for equality constraint |
G |
A matrix for inequality constraint |
H |
A vector for inequality constraint |
tol |
Tolerance. Number whose absolute value is less than |
Uses Karush-Kuhn-Tucker method internally.
A list containing:
x
: the desired x
, see main description
value
: the minimum value of x^T A x + x^T B
lambda
: (optional) the Lagrangian multipliers for the equality constraints
lambda
: (optional) the Lagrangian multipliers for the inequality constraints
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.