KKTvillkor
KKTvillkor, an acronym for Karush-Kuhn-Tucker conditions, is a set of necessary conditions for a solution in nonlinear programming to be optimal. These conditions were first formulated by Harold W. Kuhn and Albert W. Tucker in 1951, and later extended by William Karush in 1939. The KKT conditions provide a way to test whether a given point is a local minimum of a nonlinear optimization problem.
The KKT conditions are typically stated for a problem of the form:
subject to g_i(x) = 0, i = 1, ..., m
where f(x) is the objective function, g_i(x) are the equality constraints, and h_j(x) are the inequality constraints.
1. Stationarity: The gradient of the Lagrangian function L(x, λ, μ) with respect to x is zero at
2. Primal feasibility: The optimal point x* must satisfy the equality constraints g_i(x*) = 0 and the
3. Dual feasibility: The Lagrange multipliers μ_j must be non-negative, i.e., μ_j >= 0.
4. Complementary slackness: For each inequality constraint h_j(x*), either h_j(x*) = 0 or μ_j = 0, or both.
If a point (x*, λ*, μ*) satisfies all these conditions, then x* is a candidate for a local