Linear_Programming_Guiding_Notes
Linear_Programming_Guiding_Notes
Linear Programming
Introduction to Optimization and Linear Programming
Optimization refers to the process of finding the best solution to a problem, given a set of
constraints. It is commonly used in fields such as economics, operations research, and
engineering to maximize or minimize an objective, such as profit or cost. For example,
businesses often use optimization to determine the most cost-effective way to allocate
resources or to determine the optimal amount of production to maximize profit.
Applications of Optimization
Resource Allocation: In manufacturing, companies aim to optimize how resources like labor
and materials are allocated to maximize production or minimize costs.
Supply Chain Management: Optimization can minimize transportation, storage, and logistics
costs while ensuring that products are delivered to customers on time.
Finance: In the financial world, optimization techniques can be used to maximize returns on
investments while minimizing risk.
These applications often require solving complex problems that involve finding the best
possible decision within a set of constraints.
Linear programming is a method used to solve optimization problems where both the
objective function (what you want to maximize or minimize) and the constraints (the limits
within which you need to operate) are linear. This means that the relationships between the
decision variables (the things you can control) are represented by straight lines or planes.
In an LP problem, you are typically trying to maximize or minimize an objective, such as
profit or cost, subject to certain constraints like resource availability, budget, or time limits.
Linear programming can be used to solve a wide range of problems in manufacturing,
transportation, finance, and many other fields.
1. Identify Decision Variables: The first step is to clearly define what the decision
variables represent. In our chocolate problem, the decision variables are the number of
units of chocolate A and B to produce.
2. Construct the Objective Function: This is the function that you want to maximize or
minimize. In our case, the objective function is the total profit, Z = 6X + 5Y, that needs to be
maximized.
3. List the Constraints: The next step is to list all the constraints that limit or restrict the
decision variables, such as the availability of Milk and Choco in our example.
4. Non-Negativity Restrictions: Ensure that the decision variables are non-negative, as
producing negative quantities of a product is not feasible.
5. Solve the Problem: Once you have defined the objective function and constraints, you
can solve the problem using various methods, such as the Simplex Method or Graphical
Method.
There are several common types of LP problems, each with its own unique focus:
1. Manufacturing Problems: These aim to optimize production decisions to maximize
profit or minimize cost, considering factors such as resource availability and production
rates.
2. Diet Problems: These involve minimizing the cost of a diet while meeting nutritional
requirements. A nutritionist may use LP to find the least expensive combination of foods
that meets a person’s dietary needs.
3. Transportation Problems: In these problems, the objective is to minimize
transportation costs while fulfilling supply and demand at various locations.
4. Optimal Assignment Problems: These problems involve efficiently assigning tasks or
resources. For instance, managers may use LP to assign employees to projects in a way that
minimizes time or cost.
The graphical method is one of the simplest ways to solve LP problems, especially when
there are only two decision variables. The key idea is to plot the constraints as lines on a
graph, identify the feasible region (the area where all constraints are satisfied), and then
find the optimal solution at one of the vertices of this region.
The steps to solving an LP problem using the graphical method are:
1. Plot the Constraints: First, you plot each of the constraints as straight lines on a graph.
2. Identify the Feasible Region: This is the area where all the constraints overlap. The
feasible region represents all the possible solutions that satisfy the constraints.
3. Locate the Vertices (Corner Points): The optimal solution will always be at one of the
vertices (corner points) of the feasible region.
4. Evaluate the Objective Function: Once you have the vertices, evaluate the objective
function at each vertex to determine which one gives the maximum or minimum value.
5. Verify the Solution: Finally, ensure that the solution satisfies all the constraints,
including the non-negativity conditions.
A farmer has a 110-hectare piece of land and needs to decide how much land to allocate to
Wheat and Barley, given certain constraints such as cost, labor, and budget. The farmer’s
goal is to maximize profit.
By solving this problem graphically, the optimal allocation of land would be to plant 60
hectares of Wheat and 20 hectares of Barley. This maximizes the farmer’s profit, which
would be $5400.