Karush-Kuhn-Tucker conditions Created 2026-09-24 Updated 2026-10-14
The Karush-Kuhn-Tucker conditions combine membership of the feasible set with a balance of gradients and complementary slackness. For a minimization problem with differentiable functions on an open subset of , writeand use the optimization LagrangianA candidate satisfies the KKT conditions exactly when all four requirements hold:
- Primal feasibility: and , so is a feasible point.
- Dual sign feasibility: . The equality Lagrange multipliers are unrestricted real numbers.
- Stationarity: the gradient of the optimization Lagrangian in the decision variables vanishes,
- Complementary slackness: for every inequality optimization constraint.[ref]Lecture 7: Lagrange Multipliers and KKT Conditions. Lecture 7, §L7.1.1, Definition L7.1, printed p. 3: the four KKT requirements
The sign of each inequality Lagrange multiplier follows the chosen convention : on the feasible set, makes the optimization Lagrangian a lower bound on the objective function. An equality contributes zero on the feasible set for either sign of its Lagrange multiplier. Complementary slackness says an inequality with must have , while implies an active constraint. An active constraint can still have zero Lagrange multiplier; the quadratic minimization with a moving upper bound below gives an explicit example.
The name records William Karush's 1939 master's thesis and the 1951 work of Harold W. Kuhn and Albert W. Tucker.[ref]
Convex Optimization by Stephen Boyd and Lieven Vandenberghe. Chapter 5 bibliography, printed p. 272, and bibliography entries KT51 and Kuh76
Dynamic programming Created 2026-09-24 Updated 2026-10-13
Dynamic programming solves a mathematical optimization problem by choosing reusable subproblems, recording their value functions, and combining already solved cases through a recurrence relation. Its attraction is that many possible decision histories can share one continuation calculation. A dynamic programming state must retain everything needed to determine the allowed future choices and their rewards. The 0-1 knapsack problem, for example, needs both the available capacity and which items remain available; capacity alone would lose the restriction that each item can be used at most once.
Two ideas explain when this works. Optimal substructure makes an optimal continuation valid inside a larger optimal solution. When subproblems overlap, storing each answer avoids repeated work: memoization computes entries as needed, while a table fills them in dependency order. Start from known base cases. For a problem indexed by increasing size, compute smaller cases first; for a finite sequence of future decisions, work backwards from the terminal reward, as in the Bellman equation. See Bertsekas, MIT lecture 2: optimality and state augmentation.
Consider a 0-1 knapsack problem with item weights , item values , and capacity . Define the value function to be the largest total item value obtainable from the first items with total weight at most . Here and specify the dynamic programming state. All weights and capacities are nonnegative integers. The empty selection supplies the base case . The recurrence relation isThe two candidates skip or take item . Both use the previous row, so taking item cannot take that same item again. The condition prevents a negative remaining capacity; no entry with is needed. The optimal substructure is concrete: after taking item , its companions must solve the smaller 0-1 knapsack problem on the first items with capacity . Otherwise replacing them by a better feasible selection would improve the whole selection. Compare [ref]
https://ocw.mit.edu/courses/6-006-introduction-to-algorithms-fall-2011/95e744ee64464cb6bc8f8264faeea080_MIT6_006F11_rec21.pdf. MIT 6.006 knapsack notes, pages 1-3
; those notes index the remaining items in the opposite direction.The full computation is small enough to see at once:For example, and . Choosing the feasible item with largest individual value takes weight , earns , and leaves capacity , which cannot fit another item. This greedy algorithm misses the two-item selection of weights and , whose value is . This example tests the largest-individual-value rule; choosing by value divided by weight happens to find the optimum here.
A knapsack table builds the optimal value from smaller subproblems
. The value function of this 0-1 knapsack problem is computed row by row. Outlined entries show the reconstruction of an optimal selection: skip weight 4, take weight 3, then take weight 2. The total weight is 5 and total value is 7. Details.The number is the optimal value, while the choices attaining it form a control policy. To reconstruct one optimal selection, start at . Equality with allows skipping item . At , taking item gives , so continue to . Take item and finish at . In a tie, either maximizing choice suffices to recover one optimum. Recording choices during the calculation or comparing stored entries afterwards recovers the control policy; a final optimal value alone does not describe the selection.
Knapsack dependencies and one optimal reconstruction
. Each node is a dynamic programming state labeled by its value function. Arrows point to the earlier-row entries used in the recurrence relation, forming a Directed acyclic graph. Dashed arrows skip an item; blue arrows take it. The orange graph path reconstructs the optimal selection with value 7. Compute in the opposite direction to the arrows, beginning at the zero base row. Details.For items and integer capacity , the table uses time complexity and space complexity , counting arithmetic operations and stored numbers using Big O notation. This is pseudo-polynomial time: when weights and capacity use the binary numeral system, the capacity needs only digits. A capacity near creates about columns despite needing only about digits. Thus this algorithm is practical for moderate capacities but does not establish polynomial time in the encoded input length. See MIT 6.006 recitation 19: knapsack and input size. For the optimal value alone, one array reduces space complexity to : for each item, update capacities in descending order, from down to . Ascending order would read entries already updated for that item and could reuse it. Reconstruction then requires extra information or recomputation.
The link between the knapsack problem and dynamic programming is already explicit in a 1957 paper by Richard Bellman at RAND: its abstract discusses an exact knapsack problem solution using functional equations and cites his 1957 book. See Bellman, Comment on Dantzig's Paper on Discrete Variable Extremum Problems (1957).
Lagrange sufficiency theorem Created 2026-09-24 Updated 2026-10-06
For maximizing subject to and , suppose a feasible and multipliers satisfy complementary slackness and globally maximizesThen globally maximizes on the feasible set. Convexity or concavity hypotheses are commonly used to prove the required global extremum of the Lagrangian from first-order conditions.
Biopolymer mechanics Created 2026-09-24 Updated 2026-09-24
Biopolymer mechanics studies bending, stretching, thermal fluctuations, and force-induced deformation of filamentous biological macromolecules.
Chemotaxis Created 2026-09-24 Updated 2026-09-24
Biological fluid dynamics Created 2026-09-24 Updated 2026-09-29
Kramers-Moyal expansion Created 2026-09-24 Updated 2026-09-24
The Kramers-Moyal expansion Taylor-expands the gain terms of a jump-process master equation in the jump size. Keeping its first two terms yields a Fokker-Planck equation whose drift and diffusion coefficients are the first two infinitesimal jump moments.
Epidemic threshold Created 2026-09-24 Updated 2026-09-24
Malthusian delay differential equation Created 2026-09-24 Updated 2026-10-13
The scalar equation makes the present growth rate depend on the population one delay time earlier. A history function on is required in place of a single initial value.
This is one linear delay differential equation, rather than the entire delayed-evolution class.
Survival-augmented Ricker map Created 2026-09-24 Updated 2026-09-24
The population iterationcombines annual survival with density-dependent recruitment. Its positive equilibrium iswhich exists when .
Exponential density-dependent birth model Created 2026-09-24 Updated 2026-09-24
If a population has per-capita birth rate and per-capita death rate , thenWhen , its positive equilibrium isand the derivative of the scalar vector field there is , so the equilibrium is locally asymptotically stable.
Cubic saturation population model Created 2026-09-24 Updated 2026-09-24
Autocatalysis Created 2026-09-24 Updated 2026-09-24
Enzyme kinetics Created 2026-09-24 Updated 2026-09-28
Enzyme kinetics models how free enzyme, substrate, enzyme-substrate complexes, and product concentrations evolve through a reaction mechanism.
Law of mass action Created 2026-09-24 Updated 2026-09-24
Age-structured population model Created 2026-09-24 Updated 2026-10-13
An age-structured population model tracks a density transported toward greater age, reduced by age-dependent mortality, and replenished at age zero by births.
The continuous-age transport version is the Von Foerster equation. Discrete age-class models are other members of this broader modeling class.
Per capita Created 2026-09-24 Updated 2026-09-24
Last-orbit frequency of a compact binary Created 2026-09-24 Updated 2026-10-14
As a heuristic approximation, inserting into the circular orbit form of Kepler's third law, with here denoting the total mass, givesThe dominant quadrupole gravitational-wave frequency is twice the orbital frequency, .
Tzitzeica equation Created 2026-09-24 Updated 2026-10-13
Lax pair Created 2026-09-24 Updated 2026-10-03
A Lax pair encodes a nonlinear equation as compatibility of two linear equations depending on an auxiliary spectral parameter.
There are unlisted articles, also show them or only show them.

