Skip to main content

OPTIMIZATION GUIDE

Graphical method for two-variable linear programming

The graphical method is used for continuous two-variable linear programming problems. It helps you turn an optimization question into an objective function, draw or inspect the constraints, identify the feasible region, and compare objective values at corner points.Explore numerical & research methods

FORMULA OR CORE IDEA

Maximize or minimize Z = c₁x + c₂y subject to linear constraints such as ax + by ≤ c.

WORKED EXAMPLE

Maximize Z = 3x + 5y subject to 2x + y ≤ 18, 2x + 3y ≤ 42, 3x + y ≤ 24, and x,y ≥ 0. The feasible corner points are tested, and the best objective value gives the optimum for the bounded continuous model.

STEP BY STEP

01

Write the decision variables

Decide what x and y represent. They might be products, hours, units, ingredients, or any two quantities that can vary in the problem.

02

Build the objective function

Write the value you want to maximize or minimize as Z = c₁x + c₂y. For example, if x gives 3 units of profit and y gives 5 units of profit, the objective is Z = 3x + 5y.

03

Enter every constraint

Each resource limit becomes a linear inequality such as 2x + 3y ≤ 42. Use ≤ for upper limits, ≥ for minimum requirements, and = for exact balance requirements.

04

Include non-negative restrictions when needed

Many real problems cannot have negative quantities, so x ≥ 0 and y ≥ 0 should stay enabled for production, budget, resource, and quantity models.

05

Inspect the feasible region

The feasible region is the overlap of all constraints. If there is no overlap, the model is infeasible. If the region extends forever in a direction that improves the objective, the model can be unbounded.

06

Compare objective values at corner points

For a bounded continuous two-variable linear program, the optimum occurs at a feasible corner point. Evaluate Z at every feasible corner and choose the largest value for maximization or the smallest value for minimization.

07

Interpret the final point in the original problem

The optimum point gives the recommended x and y values. Always check that those values make sense for the real situation, especially if the problem actually needs whole numbers.