Fractional knapsack problem 2026-10-06
This linear programming relaxation allows a fraction of each item. With positive weights, sort decreasing profit-to-weight ratios and fill capacity in that order, using at most one fractional item. An exchange argument proves optimality. Negative-profit items are omitted and positive-profit zero-weight items are included for free.
Past exam of the mathematics course of the University of Cambridge 2004 ib Paper 3 12G Solution Created 2026-09-24 Updated 2026-09-24
Past exam of the mathematics course of the University of Cambridge 2015 iii Paper 38 2 b Solution Created 2026-10-03 Updated 2026-10-06
For the converse, construct a phase-I linear program with a common violation variable:where is unrestricted. This linear program is feasible for sufficiently large , bounded below by zero, and attains its optimum. If the two linear polyhedra are disjoint, its optimum is strictly positive: an attained zero optimum would give a common point.
For nonnegative vectors , its optimization Lagrangian isTaking the infimum over and gives the Lagrangian dual problemBy strong duality for linear programming, an optimal dual pair exists and has objective . It supplies the infeasibility certificateTake . Every and obeysThe assumed nonemptiness of each linear polyhedron also ensures : if , their feasibility would force both and to be nonnegative. This proves the strict separation of disjoint linear polyhedra using Lagrangian duality.
Semidefinite programming 2026-10-05
A semidefinite program optimizes a linear function subject to equalities between affine functions and positive semidefinite matrix inequalities. It generalizes linear programming: a diagonal matrix is a positive semidefinite matrix exactly when its diagonal entries are nonnegative. Matrix trace expresses the objective as for real symmetric matrices.
Simplex basis Created 2026-10-05 Updated 2026-10-06
For standard-form linear programming constraints of full row rank, a simplex basis is a set of columns forming an invertible square matrix . The remaining variables are nonbasic; setting them to zero gives the basic solution . It is feasible if these basic variables are nonnegative. A pivot exchanges one basic and one nonbasic column while maintaining this representation.