UNIT12345
UNIT12345
1. Design Constraints
In optimization, design constraints are the essential boundaries or limits that the solution
must satisfy to be feasible in practical scenarios. These constraints arise from physical,
economic, or operational limitations in real-world problems.
🔷 Definition:
Constraints are mathematical expressions representing conditions that solutions must satisfy.
They are typically expressed as:
🔷 Types of Constraints:
1. Physical Constraints:
o Due to limitations in size, shape, or strength of materials.
o Example: A beam’s deflection must be below a certain value.
2. Economic Constraints:
o Related to budget, cost limitations, or resource availability.
o Example: Total production cost should not exceed ₹50,000.
3. Performance Constraints:
o Related to performance criteria like speed, output, efficiency.
o Example: An engine must produce at least 200 HP.
4. Operational Constraints:
o Imposed due to process or system operations.
o Example: Maximum load that can be transported.
5. Environmental Constraints:
o Related to pollution, emissions, and sustainability goals.
o Example: CO₂ emissions must not exceed 100 g/km.
🔷 Mathematical Representation:
🔷 Example:
Here, the constraints define the permissible region in which the cost function is minimized.
Optimization problems can be categorized in various ways based on the nature of the
objective function, variables, constraints, etc.
🔷 Based on Constraints:
1. Constrained Optimization:
o Subject to equality or inequality constraints.
o Example: f(x), s.t. g(x)≤0f(x), \text{ s.t. } g(x) \leq 0f(x), s.t. g(x)≤0
2. Unconstrained Optimization:
o No constraints are present.
o Example: Maximize f(x)=x2−3x+5f(x) = x^2 - 3x + 5f(x)=x2−3x+5
🔷 Based on Variables:
1. Continuous Optimization:
o Variables can take any real value.
o Example: x∈Rx \in \mathbb{R}x∈R
2. Integer Optimization:
o Variables take only integer values.
o Example: x∈Zx \in \mathbb{Z}x∈Z
3. Mixed-Integer Optimization:
o Some variables are integers, others are continuous.
🔷 Based on Determinism:
1. Deterministic Optimization:
o All inputs and parameters are known and fixed.
2. Stochastic Optimization:
o Some data is uncertain or random.
1. Static Optimization:
o Conditions do not change with time.
2. Dynamic Optimization:
o Conditions vary over time (e.g., inventory levels).
🔷 Summary Table:
Criteria Type
Objective Function Linear / Nonlinear
Constraints Constrained / Unconstrained
Variables Continuous / Integer / Mixed
Data Deterministic / Stochastic
Time Static / Dynamic
🔷 Problem Form:
Given a function:
f(x1,x2,...,xn)f(x_1, x_2, ..., x_n)f(x1,x2,...,xn),
find the values of xix_ixi that minimize or maximize fff.
Evaluate definiteness:
o Positive definite: Local minimum.
o Negative definite: Local maximum.
o Indefinite: Saddle point.
🔷 Example:
Step 1:
∂f∂x=2x−4=0⇒x=2\frac{\partial f}{\partial x} = 2x - 4 = 0 \Rightarrow x = 2∂x∂f
=2x−4=0⇒x=2
∂f∂y=2y−6=0⇒y=3\frac{\partial f}{\partial y} = 2y - 6 = 0 \Rightarrow y = 3∂y∂f
=2y−6=0⇒y=3
Step 2:
Hessian = [2002]\begin{bmatrix} 2 & 0 \\ 0 & 2 \end{bmatrix}[2002] → Positive definite →
Minimum at (2, 3)
This method is used to solve constrained optimization problems with equality constraints.
🔷 Problem:
🔷 Steps:
1. Form Lagrangian:
🔷 Example:
Step 1:
Lagrangian: L(x,y,λ)=xy+λ(10−x−y)L(x, y, \lambda) = xy + \lambda (10 - x -
y)L(x,y,λ)=xy+λ(10−x−y)
Step 2:
∂L∂x=y−λ=0⇒y=λ\frac{\partial L}{\partial x} = y - \lambda = 0 \Rightarrow y = \
lambda∂x∂L=y−λ=0⇒y=λ
∂L∂y=x−λ=0⇒x=λ\frac{\partial L}{\partial y} = x - \lambda = 0 \Rightarrow x = \
lambda∂y∂L=x−λ=0⇒x=λ
∂L∂λ=10−x−y=0\frac{\partial L}{\partial \lambda} = 10 - x - y = 0∂λ∂L=10−x−y=0
Step 3:
Substitute: x=y,⇒x+x=10⇒x=5⇒y=5x = y, \Rightarrow x + x = 10 \Rightarrow x = 5 \
Rightarrow y = 5x=y,⇒x+x=10⇒x=5⇒y=5
🔷 Problem:
Minimize f(x)f(x)f(x)
Subject to: gi(x)≤0g_i(x) \leq 0gi(x)≤0, hj(x)=0h_j(x) = 0hj(x)=0
🔷 KKT Conditions:
🔷 Geometrical Interpretation:
🔷 Example:
UNIT – II
Linear Programming (LP) involves optimizing a linear objective function subject to linear
constraints. The geometric interpretation offers visual insight into LP solutions, especially in
two-variable problems.
🔷 LP Problem Structure:
🔷 Geometric Concepts:
1. Feasible Region:
o Formed by the intersection of all constraint inequalities.
o A convex polygon (or polyhedron in 3D).
2. Objective Function Line:
o Lines of constant Z values: Z=c1x1+c2x2Z = c_1x_1 + c_2x_2Z=c1x1+c2x2
o Moved in the direction of increasing/decreasing Z to find optimal point.
3. Corner Point Theorem:
o Optimal solution lies at a vertex (corner point) of the feasible region.
o Evaluate Z at all vertices to find the maximum or minimum.
🔷 Graphical Example:
🔷 Properties:
This is a key step in solving LP problems using the Simplex Method by converting equations
to canonical (pivoted) form.
🔷 Purpose:
Transform the system into a basic feasible solution using pivot operations.
Represent the LP problem in a tableau form.
🔷 Steps:
🔷 Pivot Element:
🔷 Example:
Initial Tableau formed. Perform row operations to obtain pivot form and proceed with
simplex iterations.
3. Simplex Algorithm
🔷 Characteristics:
🔷 Steps:
🔷 Example Tableau:
s s
Basic x y RHS
₁ ₂
s₁ 1 2 1 0 6
s₂ 3 2 0 1 12
Z -3 -2 0 0 0
UNIT – III
Definition:
NWCR is a method to compute an initial basic feasible solution (IBFS) for the
transportation problem. This method is based on a simplistic rule: allocate as much as
possible to the top-left (north-west) corner of the cost matrix and move accordingly to the
next cell until all supplies and demands are satisfied.
Step-by-Step Procedure:
1. Start with the cell in the top-left (north-west) of the cost matrix.
2. Allocate minimum of supply and demand for that cell.
3. Reduce the supply and demand accordingly:
o If supply = demand, move diagonally to the next cell.
o If supply < demand, move down to the next row.
o If demand < supply, move right to the next column.
4. Repeat the allocation process for the reduced matrix until all values are allocated.
Example:
Given:
D1 D2 D3 Supply
S1 4 6 8 50
S2 5 3 7 60
S3 6 8 5 25
30 50 55
Advantages:
Limitations:
Does not consider cost – hence, not optimal.
Can result in high-cost solutions.
Definition:
VAM is an improved method to determine an initial feasible solution by considering
penalties associated with not choosing the least cost route.
Procedure:
Example:
For a cost matrix, calculate penalties and proceed to allocate with cost consideration.
Advantages:
Steps:
1. Assign values u_i and v_j for rows and columns such that u_i + v_j = c_ij for
allocated cells.
2. For unallocated cells, calculate opportunity cost:
Δij=cij−(ui+vj)\Delta_{ij} = c_{ij} - (u_i + v_j)Δij=cij−(ui+vj)
3. If all Δij≥0\Delta_{ij} \geq 0Δij≥0, the solution is optimal.
4. If any Δij<0\Delta_{ij} < 0Δij<0, perform improvement:
o Construct closed loop path.
o Add and subtract allocations alternately along the loop.
o Update allocations to improve cost.
✅ UNIT – IV
1. Fibonacci Method
Definition:
Fibonacci method is an optimization technique used to find the minimum or maximum of a
unimodal function in a 1D continuous interval using Fibonacci numbers.
Key Concepts:
Steps:
Benefits:
Fewer evaluations.
Efficient compared to exhaustive search.
2. Univariate Method
Definition:
This method optimizes a multivariable function by improving one variable at a time while
keeping others constant.
Algorithm:
1. Choose initial point and small step size Δ\DeltaΔ.
2. Optimize along x1x_1x1, then fix it and optimize x2x_2x2, etc.
3. After each full cycle, update the direction and repeat.
4. Stop when the improvement is below threshold.
Advantages:
Disadvantages:
Slow convergence.
May not find global optimum.
Types:
Key Characteristics:
Solution Techniques:
Lagrange Multipliers
Karush-Kuhn-Tucker (KKT) conditions
Penalty and barrier methods
These are indirect methods used to convert constrained problems into unconstrained ones.
✅ UNIT – V
Definition:
Dynamic Programming (DP) is a method for solving complex problems by breaking them
into simpler sub-problems and solving them sequentially.
Characteristics:
Recursive Formulation:
Applications:
Shortest path
Inventory control
Resource allocation
2. Computational Procedure in Dynamic Programming (Numerical Example)
Problem:
Steps:
Example Table:
Resources Return from Project 1 Return from Project 2 Return from Project 3
0 0 0 0
1 1 2 2
2 2 4 4
... ... ... ...
Start from last project, compute maximum return at each stage, and move backward to
determine optimal allocations.