L 2 3 4 Formulation
L 2 3 4 Formulation
L-2-3-4-Formulation of LP
Contents
• LP Formulations
• Scheduling problems
• Transportation Problems
• Assignment Problems
• Multi-period Problems
• Balancing Problems
• Assumptions of LP
Scheduling Problems
• Scheduling problems are common in the field of Operations Research
• Used to determine the most efficient way to allocate resources and time to various tasks.
• There are different types of scheduling problems, and the solution methods can vary
depending on the specific characteristics of the problem.
• Common types of scheduling problems:
1. Job Scheduling:
• Single Machine Scheduling: One machine processes a set of jobs. The objective is
usually to minimize makespan (total completion time).
• Parallel Machine Scheduling: Multiple machines process a set of jobs
simultaneously. The goal is often to minimize makespan or the total time all machines spend
processing jobs.
2. Project Scheduling:
• Project Network Analysis (PERT/CPM): Involves scheduling and coordinating the
activities of a project.
It helps to identify the critical path and estimate project duration.
LP formulation for Scheduling Problems
xA1+xA2+xA3 ≤ 1
xB1+ xB2+xB3 ≤ 1
•
Example: Machine Scheduling Problem
• Objective Function
• Minimize the makespan. The makespan is the maximum completion time of the jobs on both
machines:
Makespan = max (Completion Time on Machine A, Completion Time on Machine B)
Let 𝐶𝐴 and 𝐶𝐵 represent the total processing times on Machine A and Machine B, respectively.
The objective function becomes :
Minimize max(CA, 𝐶𝐵)
Where
Subject to:
xA1 + xB1 = 1
xA2 + xB2 = 1
xA3 + xB3 = 1
xA1+xA2+xA3 ≤ 1
xB1+xB2+xB3 ≤ 1
𝑥𝑖𝑗∈{0,1} for all 𝑖 and 𝑗
Transportation Problems
• A transportation problem involves finding
• the most cost-effective way to transport goods from several suppliers (sources) to
multiple consumers (destinations),
• considering the supply at each source,
• the demand at each destination,
• and the transportation cost per unit between each source and destination.
• The objective is to minimize the total transportation cost while satisfying supply and
demand constraints.
Transportation Problems
• Here are the basic components of the Transportation Problem:
1. Suppliers (Sources):
Locations where goods are available or produced.
2. Destinations (Sinks):
Locations where goods need to be delivered.
3. Supply:
The amount of goods available at each supplier.
4. Demand:
The amount of goods required at each destination.
5. Transportation Cost:
The cost associated with transporting one unit of the product from
a supplier to a destination.
LP formulation for Transportation Problems
• The goal is to determine the optimal transportation plan that minimizes the total
transportation cost, considering the
• supply and demand constraints. The decision variables represent the amount of goods to be
transported from each supplier to each destination.
• The transportation problem can be solved using various algorithms, such as the Simplex
Method or specialized algorithms like the Northwest Corner Method, Vogel’s
Approximation Method (VAM), or MODI Method.
LP formulation for Transportation Problems
• Example
Suppliers (Sources):
Source 1: 20 Units available
Source 2: 30 Units available
Consumers (Destinations):
Destination A: 25 Units needed
Destination B: 15 Units needed
Destination C: 10 Units needed
Transportation Costs (per unit):
• Demand Constraints: (The total amount transported to each destination must meet its demand.)
x1A+ x2A = 25 [Demand at Destination A]
x1B+ x2B = 15 [Demand at Destination B]
x1C+ x2C = 10 [Demand at Destination C]
• Non-negativity Constraints:
xij ≥ 0 for all i , j
Example: Transportation Problem
• LP formulation Summary
• Objective Function:
• Example
Suppose there are 3 workers (W1, W2, W3) and 3 tasks (T1, T2, T3). The cost matrix for
assigning workers to tasks is given as follows:
T1 T2 T3
W1 10 12 18
W2 14 15 13
W3 16 11 17
Example: Assignment Problem
• Decision Variables
• Let
𝑥𝑖𝑗 be a binary variable
where: 𝑥𝑖𝑗=1 if worker i is assigned to task j , 𝑥𝑖𝑗= 0 otherwise
• For this example,
𝑥11 =1 [ if worker 1 is assigned to Task 1 , 0 otherwise]
𝑥12 =1 [ if worker 1 is assigned to Task 2, 0 otherwise]
𝑥13 =1 [ if worker 1 is assigned to Task 3, 0 otherwise]
𝑥21 =1 [if worker 2 is assigned to Task 1, 0 otherwise]
𝑥22 =1 [if worker 2 is assigned to Task 2, 0 otherwise]
𝑥23 =1 [if worker 2 is assigned to Task 3, 0 otherwise]
𝑥31 =1 [if worker 3 is assigned to Task 1, 0 otherwise]
𝑥32 =1 [if worker 3 is assigned to Task 2, 0 otherwise]
𝑥33 =1 [if worker 3 is assigned to Task 3, 0 otherwise]
Example: Assignment Problem
• Objective Function
Minimize the total assignment cost
Minimize 𝑍= 10𝑥11+12𝑥12+18𝑥13+14𝑥21+15𝑥22+13𝑥23+16𝑥31+11𝑥32+17𝑥33
• Constraints
• Each worker is assigned exactly one task:
x11 + x12 + x13 = 1 [Worker 1]
x21 + x22 + x23 = 1 [Worker 2]
x31 + x32 + x33 = 1 [Worker 3]
• Each task is assigned exactly one worker:
x11 + x21 + x31 = 1 [Task 1]
x12 + x22 + x32 = 1 [Task 2]
x13 + x23 + x33 = 1 [Task 3]
• Binary Constraints:
𝑥𝑖𝑗 ∈ {0,1} for all i , j
Multi-period Problems
• A Multi-Period Problem generally refers to an optimization or decision problem where decisions
need to be made over multiple time periods or stages. This concept is often applied in Operations
Research, dynamic programming, and various areas of management and engineering. A few
examples to illustrate the idea of multi-period
1. Multi-Period Production Planning:
Decision makers need to determine the production levels for each product in each
period to meet demand while considering factors like inventory holding costs, production
setup costs, and production capacity.
2. Multi-Period Financial Planning:
In finance, individuals or companies may face decisions over multiple time periods, such as
investment planning, portfolio management, or budget allocation over several years.
3. Multi-Period Inventory Management:
Businesses with inventory may need to make decisions on how much to order, when to order,
and how much to keep in stock over several periods, taking into account carrying costs, order
costs, and demand variability.
LP formulation for Multi-period Problem
• Example
Consider a company that needs to plan its production over three months to meet the demand
for its product while minimizing costs. The company can produce units in each month, but
there are costs associated with production, storage, and unmet demand. The following data is
provided by the company to minimize the total cost
The maximum production capacity in each month is 160 Units and initial inventory is 20 units
Example: Multi-period Problem
• Decision Variables
• Let
𝑥t = Number of units produced in month 𝑡 (where 𝑡 = 1, 2, 3 for June, July, August,
respectively)
It = Inventory level at the end of month t
• Objective Function
Minimize the total cost, which includes production and storage costs over the three
months:
• Example
Suppose a company needs to schedule workers across 5 days (Monday to Friday) to cover
required daily shifts while minimizing the cost of assigning employees and ensuring that the
workload is evenly distributed. The daily shifts requirements are on Monday: 3 shifts ,
Tuesday: 2 shifts , Wednesday: 4 shifts , Thursday: 2 shifts and Friday: 3 shifts . Further more
the cost of per shift of each worker is given below