Optimization · Lecture 1

Introduction to Linear Programming for Engineering Optimization

Linear Programming

Dr. Mithun Mondal

What is Linear Programming?

Definition

Linear programming (LP) is a mathematical optimization technique to achieve the best outcome (e.g., maximum profit or minimum cost) in a model defined by linear relationships. It is a cornerstone of operations research and convex optimization.

  • Objective Function: Linear expression to optimize, e.g., \(Z = c_1x_1 + c_2x_2 + \dots + c_nx_n\).

  • Constraints: Linear equations/inequalities, e.g., \(a_{i1}x_1 + \dots + a_{in}x_n \leq b_i\).

  • Decision Variables: Non-negative quantities ( \(x_i \geq 0\)) representing choices.

SECTION 01

History of Linear Programming

Brief History of LP

  • 1930s-1940s: Developed during World War II for logistics and resource allocation (e.g., military supply chains).

  • George Dantzig (1947): Introduced the Simplex Method, revolutionizing LP solving.

  • Modern Era: LP underpins AI, machine learning, and large-scale engineering optimization.

Why It Matters

LP’s ability to solve complex, real-world problems efficiently has made it a foundational tool in engineering and beyond.

SECTION 02

Key Components of LP

  • Decision Variables: Quantities to be determined (e.g., production levels, resource allocations).

  • Objective Function: Linear goal to maximize (e.g., profit) or minimize (e.g., cost).

  • Constraints: Linear restrictions (e.g., resource limits, production capacities).

  • Feasible Region: Set of all solutions satisfying constraints; optimal solution lies at a vertex.

Example:

A factory produces chairs (\(x_1\)) and tables (\(x_2\)). Maximize profit \(Z = 3x_1 + 5x_2\) subject to: \[\begin{aligned} 2x_1 + 4x_2 &\leq 100 \quad (\text{labor hours}), \\ x_1 + 3x_2 &\leq 90 \quad (\text{material units}), \\ x_1, x_2 &\geq 0. \end{aligned}\]

Visualizing the Feasible Region

Feasible Region in LP Problem
Visualizing the Feasible Region in LP Problem

Interpretation

The shaded area is the feasible region. The optimal solution occurs at a vertex, here at \((x_1, x_2) = (10, 20)\), yielding \(Z = 3 \cdot 10 + 5 \cdot 20 = 130\).

SECTION 03

Importance of Linear Programming

Why is Linear Programming Important?

  • Scalability: Handles problems with thousands of variables/constraints (e.g., supply chain optimization).

  • Precision: Enables data-driven decisions over intuition.

  • Versatility: Applicable across engineering, logistics, finance, and more.

  • Computational Efficiency: Algorithms like Simplex and Interior-Point solve LP problems rapidly.

  • Foundation: Supports advanced optimization (e.g., integer programming, machine learning).

SECTION 04

Applications of Linear Programming

Applications in Engineering Optimization

  • Production Planning: Optimize product mix under resource constraints (e.g., maximizing output in a factory).

  • Transportation Networks: Minimize shipping costs while meeting demand (e.g., logistics networks).

  • Energy Systems: Allocate power generation to minimize costs/emissions (e.g., smart grids).

  • Structural Engineering: Optimize material usage in designs (e.g., bridge construction).

  • Control Systems: Optimize feedback loops for performance (e.g., robotics).

Broader Applications

  • Finance: Portfolio optimization balancing risk and return.

  • Agriculture: Maximize crop yield under land/water constraints.

  • Healthcare: Optimize hospital resource allocation (e.g., staff scheduling).

  • Environmental Engineering: Minimize emissions under regulatory constraints.

  • Telecommunications: Optimize data routing to reduce latency.

SECTION 05

Mathematical Formulation

Standard LP Formulation

Canonical Form

\[\begin{aligned} \text{Maximize } & Z = \mathbf{c}^T\mathbf{x} \\ \text{Subject to } & A\mathbf{x} \leq \mathbf{b} \\ & \mathbf{x} \geq \mathbf{0} \end{aligned}\] Where:

  • \(\mathbf{x}\): Vector of decision variables.

  • \(\mathbf{c}\): Coefficients of the objective function.

  • \(A\): Constraint coefficient matrix.

  • \(\mathbf{b}\): Right-hand side of constraints.

For the factory example:

\[\begin{aligned} \text{Maximize } & Z = 3x_1 + 5x_2 \\ \text{Subject to } & \begin{bmatrix} 2 & 4 \\ 1 & 3 \end{bmatrix} \begin{bmatrix} x_1 \\ x_2 \end{bmatrix} \leq \begin{bmatrix} 100 \\ 90 \end{bmatrix}, \\ & x_1, x_2 \geq 0. \end{aligned}\]

SECTION 06

Summary

Key Takeaways

  • Linear programming optimizes linear objectives under linear constraints.

  • Critical for resource allocation, cost reduction, and engineering design.

  • Foundation for advanced optimization techniques (e.g., integer programming, nonlinear programming).

Next Steps

Next lecture: Explore the Simplex Method, duality, and solving LP problems computationally.