In this blog post, we’ll examine the basic structure of optimization problems and the concept of linear approximation, and based on this, explore how to use linear programming to find optimal results within limited resources.
Driven by the remarkable advancements in the natural sciences during the 18th and 19th centuries, the 20th century saw monumental inventions and innovations across countless engineering fields, making our lives more convenient. However, as we entered the 21st century, commercial products across the entire engineering spectrum—led by electronic devices—have reached a plateau of standardization, leading some to claim that “there is no further innovation.” In this context, companies are pursuing product optimization to gain a competitive edge. This involves not merely creating “good” products using “good” technology, but rather producing products with “the best possible performance given the current state of technology”; more broadly, it means finding ways to derive the highest utility from the resources currently available. However, optimization is by no means an easy task, and even linear programming—which can be considered its simplest form—is a field requiring considerable mathematical depth. Nevertheless, linear programming can be understood intuitively without complex equations, and this understanding will be of great help in maximizing efficiency across all applied disciplines, including engineering.
Let’s consider a typical optimization problem. First, there will be variables that influence our problem, along with constraints on these variables and an objective we wish to optimize. This optimization objective is usually a function composed of variables, which is called the objective function. In engineering problems, it is not particularly difficult to identify real-world counterparts for these variables, constraints, and objective functions. For example, suppose you have only rice and flour as ingredients and must use them to make porridge or bread to eat. In this problem, the variables can be considered the quantities of porridge and bread to be made. Furthermore, if the goal is to maximize the feeling of fullness after eating, this can be considered the objective function. However, within limited resources, it is not possible to produce an unlimited amount of both porridge and bread at the same time. This is the constraint of the optimization problem. Of course, in general problems, the amount of resources or the level of technology varies depending on the situation, so these constraints can also change; furthermore, since consumer preferences vary according to the era or social conditions, the objective function can also change. In fact, a completely new problem may arise in which new variables emerge or existing ones disappear. In this problem, if the recipes for porridge and bread were to change, if oats were added as a resource, or if an entirely new food—such as oatmeal—were to appear, the problem itself would change.
Naturally, such optimization problems are not easy to solve. In most cases, the constraints and objective function are expressed as complex equations involving variables, and even with the current state of modern mathematics, we do not have a general method for finding solutions to or understanding the properties of complex equations with multiple variables. However, in most problems, rather than considering the entire range of possible variables, we first focus only on the regions expected to be optimal and find the optimal solution within that region. In the previous example, it is unlikely that someone would want to eat only porridge or only bread. In such cases, we only consider regions where the quantities of porridge and bread are reasonably similar. When focusing only on such a localized region, even the most complex graph can be approximated by a flat shape, such as a straight line. This is called linear approximation. Even with two variables, the original complex function can be approximated by a linear form around a specific point. Since the original function and the linear approximation function exhibit very similar shapes around a given point, if we examine the problem only in that vicinity, using a linear graph instead of a complex graph—whose overall properties are difficult to grasp—does not significantly alter the problem.
A function that can be plotted as a flat shape in this way is called a linear function. A linear function is a first-order function of each variable, such as z = 3x + 9y—that is, a function composed of the sum of z = 3x and z = 9y—and we know exactly how to handle such linear functions or linear expressions. Linear programming is an optimization problem in which both the objective function and the constraints are expressed as linear functions or linear expressions. Furthermore, as we saw earlier, most optimization problems can be transformed into linear programming problems through linear approximation to obtain an approximate solution.
What characteristics do problems that satisfy the conditions of linear programming have? First, let’s consider the constraints, excluding the objective function. Generally, constraints can be expressed as equations, but they are usually expressed as inequalities. For example, let’s say the amount of porridge produced is x, and the amount of bread produced is y. Suppose that making 1 kg of porridge requires 2 kg of rice and 0.5 kg of flour, while making 1 kg of bread requires 0.5 kg of rice and 2 kg of flour. However, there is a constraint that the amounts of rice and flour are each limited. These constraints can be expressed as inequalities involving x and y. If there are only 5 kg of rice, the constraint on the amount of rice is 2x + 0.5y < 5. Let’s draw a coordinate plane and keep only the region that satisfies this inequality. This is like cutting a sheet of paper in half, discarding one half, and keeping the other half. Similarly, if there are only 7 kg of flour, the constraint on the amount of flour is 0.5x + 2y < 7. Then, in the same way, if we cut the remaining part in half and keep only one half, the resulting region will satisfy both constraints. What happens if we repeat this process for multiple constraint equations? No matter how we cut it, the resulting shape will be a polygon with no holes—that is, a convex polygon. Furthermore, this shape represents the region that satisfies all constraints. We call this region the feasible set of the linear programming problem.
Now let’s consider the objective function. The objective function of a linear programming problem is a linear equation involving the variables. If eating 1 kg of rice increases satiety by 5 and eating 1 kg of bread increases it by 4, then the satiety—that is, the objective function—is expressed as z = 5x + 4y. Since our goal was to maximize satiety, our objective is to maximize the value of z. Although we cannot directly plot this objective function on a coordinate plane, if its value is fixed—such as z = 5x + 4y = 4—the graph will be a straight line, and all such lines are parallel regardless of their values. Therefore, we can vary the value of the objective function by moving along the same straight line.
Now, let’s imagine placing the convex polygon—the feasible set mentioned earlier—on a two-dimensional plane and moving along the line corresponding to the objective function equation. Naturally, since we can only select points on the feasible set as solutions, a solution can only exist at the points where the line intersects the convex polygon. If the goal is to maximize the objective function, then when the line is moved continuously in the direction in which the objective function increases, the final point where it intersects the convex polygon is the optimal solution. This is the fundamental idea behind linear programming. In this process, moving the line upward and to the right increases the objective function, and point D—the final point where the line intersects the convex polygon—becomes the optimal solution.
Our discussion began with a very general optimization problem, and we saw that such optimization problems can be transformed into linear programming problems through linear approximation. We also observed that, since linear programming uses only linear equations, it is relatively easy to handle among optimization problems. Therefore, the methodology of linear programming can be widely applied to engineering optimization problems.