Bca S2 Maths U4
Bca S2 Maths U4
MATHEMATICS
SEMESTER 2
UNIT 4
HI COLLEGE
SYLLABUS
Subject to:
Ax = b
x≥0
Suppose we want to determine the optimal production plan for a company that
produces two products, A and B. The company has a limited capacity of 100 units
per day and wants to maximize its profit.
Let x1 be the number of units of product A produced per day and x2 be the
number of units of product B produced per day.
x1 + x2 ≤ 100
x1 ≥ 0 and x2 ≥ 0
Subject to:
x1 + x2 ≤ 100
x1 ≥ 0 and x2 ≥ 0
Suppose we have a linear programming problem with two variables x and y, and two
constraints:
Maximize: 2x + 3y
Subject to:
x+y≤4
x ≥ 0, y ≥ 0
To solve this problem using the graphical method, we would first graph the constraints
on a coordinate plane:
x+y≤4
y = -x + 4
2x + 3y
The feasible region is bounded by the constraint line and the non-negativity
constraints. The optimal solution would be the point where the objective function
intersects one of the constraint lines.
In this case, the optimal solution is found at (x, y) = (2, 0), which corresponds to an
optimal value of Z = 4.
|2 1 ||3|
| 1 -1 | | 2 |
| -1 2 | | 1 |
We can use either the Gauss-Seidel or Gauss-Jacobi method to solve this system.
x(0) = [0, 0, 0]
x(1) = [3/2, 2/2, -1/2]
x(2) = [5/4, 7/4, -3/4]
x(3) = [23/16, 31/16, -13/16]
x(0) = [0, 0, 0]
x(1) = [3/2, 2/2, -1/2]
x(2) = [5/4, 7/4, -3/4]
x(3) = [23/16, 31/16, -13/16]
As we can see, both methods converge to the same solution: x = [23/16, 31/16,
-13/16].
The first step is to write the initial tableau, which is a table that represents the
linear programming problem. The tableau has the following format:
| | x1 | x2 | ... | xn | RHS |
| --- | --- | --- | ... | --- | --- |
| 1 | c1 | c2 | ... | cn | -c |
| 2 | a11 | a12 | ... | a1n | b1 |
| 3 | a21 | a22 | ... | a2n | b2 |
| ... | ... | ... | ... | ... | ... |
| n | an1 | an2 | ... | ann | bn |
where:
Minimization Problem
The Simplex Method can also be used to solve linear programming problems that
have a minimization objective function. To do this, we can use a modified version
of the Simplex Method.
The modified version of the Simplex Method involves adding a new variable to the
problem, called a slack variable. The slack variable is used to convert the
minimization problem into a maximization problem.
For example, suppose we have a linear programming problem that has a
minimization objective function:
Minimize: c1x1 + c2x2 + ... + cnxn
Subject to: Ax ≤ b
We can add a slack variable s to convert this problem into a maximization
problem:
Maximize: -c1x1 - c2x2 - ... - cnxn + s
Subject to: Ax ≤ b + s
Now we can use the Simplex Method to solve this problem. The optimal solution
will be found at the point where the objective function intersects one of the
constraint lines.
The transportation problem deals with the optimal distribution of a single good
from multiple sources (origins) to various destinations with specific demands. The
objective is to minimize the total transportation cost while satisfying supply and
demand constraints.
Key Elements:
Sources: Locations with a certain quantity of the good to be transported
(supply).
Destinations: Locations requiring a specific quantity of the good (demand).
Transportation Cost: The cost (per unit) of transporting the good from each
source to each destination.
Decision Variables: The amount of the good to be shipped from each source to
each destination.
Solution Procedure:
Several methods exist to solve transportation problems, with the most common
being:
Northwest Corner Method: A simple but potentially suboptimal approach that
starts at the upper-left corner of the transportation table and assigns the
maximum possible amount to each cell while satisfying row (supply) and
column (demand) constraints.
Least Cost Method: This method prioritizes assigning goods from the source
with the lowest transportation cost to a destination that still needs the good.
The Northwest Corner Method, Least Cost Method, and Vogel's Approximation
Method are all techniques for finding an initial feasible solution that satisfies
supply and demand constraints. You can then use more advanced algorithms like
the simplex method to refine this initial solution and reach the optimal
transportation cost.
Once you have a solution, you need to check if it's optimal (the minimum
transportation cost). This is achieved by introducing artificial variables and
analyzing their shadow prices. If all shadow prices are non-negative, the solution
is optimal. If any shadow price is negative, it indicates a potential improvement
direction for the simplex method.
2. Assignment Problem:
Solution Procedure:
Notation:
Let `n` be the number of supply nodes (sources) and `m` be the number of
demand nodes (destinations).
Let `a_i` be the amount of supply available at each supply node `i` (i.e., the
supply capacity).
Let `b_j` be the demand at each demand node `j` (i.e., the demand
requirement).
Let `c_ij` be the cost of transporting one unit of supply from node `i` to node
`j`.
Formulation:
Minimize:
∑∑ c_ij x_ij
Subject to:
Formulation:
Maximize:
∑∑ r_ij x_ij
Subject to:
Here, `r_ij` represents the revenue or profit generated by transporting one unit of
supply from node `i` to node `j`.
1. Linear Programming (LP) methods, such as the Simplex Method or the Dual
Simplex Method.
2. Decomposition methods, such as Benders' Decomposition.
3. Column Generation methods, which are particularly useful when the number of
variables is large.
Restrictions on Assignment:
In addition to the standard assignment constraints, there may be other restrictions that
need to be considered when solving an Unbalanced Assignment Problem. These can
include:
Capacity Constraints: The resources available have limited capacity or capacity
utilization.
Task Priority: Some tasks may have higher priority than others, and should be assigned
accordingly.
Resource Compatibility: Some resources may be compatible with certain tasks, but not
with others.
Assignment Cycles: The assignment may need to avoid cycles or loops in the assignment
process.
To solve these restrictions, we can use various techniques, such as:
Graph Theory: Representing the assignment problem as a graph and using graph theory
algorithms to solve it.
Integer Programming: Formulating the problem as an integer programming problem
and using specialized algorithms to solve it.
Heuristics: Using approximation algorithms or heuristics to find a good solution.
Real-World Applications:
Unbalanced Assignment Problems have numerous applications in various fields, including:
Logistics and Supply Chain Management: Allocating goods and materials between
warehouses, factories, and customers.
Energy Distribution: Allocating energy resources between power plants, transmission
lines, and consumers.
Transportation Systems: Allocating passengers or goods between different modes of
transportation (e.g., buses, trains, planes).