Lecture 12: Linear and Non-Linear Programming

Lecture 12: Linear Programming (LP) and Non-Linear Programming (NLP)

1. Introduction

Optimization is the process of finding the best solution (minimum or maximum) for a given objective function subject to certain constraints.

2. Linear Programming (LP)

General Form:

Maximize (or Minimize): Z = cTx
Subject to: A x ≤ b , x ≥ 0

Example of LP:

Maximize profit: Z = 40x + 30y
Subject to:
x + y ≤ 12
2x + y ≤ 16
x, y ≥ 0

Here, x and y are decision variables, and constraints form a feasible region (polygon). The optimal solution lies on the boundary.

Applications of LP:

3. Non-Linear Programming (NLP)

General Form:

Minimize (or Maximize): f(x)
Subject to: gi(x) ≤ 0, hj(x) = 0

Example of NLP:

Minimize: f(x, y) = x2 + y2
Subject to: x + y = 1, x ≥ 0, y ≥ 0

Here, the objective is quadratic (non-linear), but the constraint is linear.

Applications of NLP:

4. Difference Between LP and NLP

AspectLinear Programming (LP)Non-Linear Programming (NLP)
Objective functionLinearNon-linear
ConstraintsLinearCan be non-linear
ComplexityRelatively simpleHarder, may have local minima
Solution MethodsSimplex, Interior-pointGradient descent, Newton, KKT conditions

5. Relevance in Machine Learning

6. Summary