1. Introduction
Energy use and power demand are major cost factors in modern manufacturing. In the United States, the manufacturing sector was responsible for about 76% of all industrial energy use in 2022 [
1]. Because many production processes are energy-intensive, even small efficiency improvements may ensure significant cost savings.
Electricity costs for factories depend not only on the total amount of energy consumed but also on the highest level of power used at any time. If production leads to sudden peaks in power demand, these short spikes can increase costs for months afterwards. This makes it important for plants to not only reduce overall energy use but also smooth out their power demand. Managing both factors, energy and power, helps companies lower costs and increase their flexibility in how they run their operations.
Recent price trends make energy management even more critical. In Europe, industrial electricity prices rose sharply during the 2021–2022 energy crisis and remain above pre-crisis levels despite some stabilisation [
2]. Companies that improve efficiency and manage their power use are more resilient to such volatility. Climate policies impose additional pressure.
In this context, coupling production planning with energy and power management is a promising approach. Traditional production planning methods focus on scheduling activities, balancing workload and capacity, and minimising material, labour, transport, and inventory costs. This paper presents a method for optimally solving the Economic Lot Scheduling Problem (elsp), extended to take into account both energy consumption and power demand.
The elsp is one of the fundamental production planning models. Its goal is to determine a cyclic plan, lot sizes, and their schedule for several items produced on a single machine. It assumes that the demand and production rate are constant, the planning horizon is infinite, and the objective is to minimise average machine set-up costs and inventory holding costs per unit of time.
In the classic
elsp, production rates are known and can not be changed; here, however, they are variables that have an impact not only on machine utilisation and inventory increment but also on power demand. Moreover, it is assumed that changes in production rates are limited only by the maximum allowed power demand and do not generate any additional unit costs or costs related to product quality or waste [
3].
A broad review of research on energy-efficient production planning is presented in [
4]. Most researchers consider various machine scheduling problems, in which the sizes of production lots are fixed in advance; the decision-maker must only assign production activities to machines and determine their sequence and timing. For example, Masmoudi et al. [
5] propose integer linear programming models for the job-shop scheduling problem, which minimise energy costs while ensuring that power demand does not exceed a predefined upper bound. Böning et al. [
6] propose a metaheuristic algorithm for the flexible job-shop problem, which minimises the power peak costs.
There are only two papers considering the energy-efficient
elsp. Beck et al. [
7] considered the common-cycle
elsp with energy cost and developed a heuristic algorithm. Ferretti et al. [
8] extended this model with variable production rates and power demand costs. They presented a general Mixed-Integer Non-Linear Programming (
minlp) model, noted that even its subproblem is non-convex, and concluded that “it is not possible to determine a closed form that permits obtaining the optimal value of
T [cycle length] and
[production rates]”. They determined a heuristic solution with a Matlab solver.
The literature on the Economic Lot Scheduling Problem (
elsp) is very rich [
9,
10]. However, only a few papers consider variable production rates, in which researchers propose specialised algorithms for special cases [
11]. For example, Silver [
12] proposed a specialised algorithm for the case where machine operating costs are non-zero and constant, increasing production rates and reducing production times and costs. The optimisation approach proposed in this paper is the first method for the common-cycle
elsp with variable production rates that provides an optimal solution in a general case.
In the past, only some
elsp subproblems were solved using mathematical programming methods [
9,
13]. Recently, Ferretti et al. [
8] made an attempt to solve a general
minlp model of the common-cycle
elsp using a general-purpose solver, but they built a straightforward general
minlp model, which is hard to solve, and applied a solver that can not guarantee optimal solutions. Kaczmarczyk [
14] also considered a special case of the common-cycle
elsp but reformulated its model into an
miqcp model so that it could be optimally solved using a general-purpose solver.
There are many general-purpose solvers for the
minlp problems. However, globally optimal solutions for non-convex non-linear problems may ensure solvers that use the spatial branch-and-bound algorithm. It makes a complete search of the entire decision space and branches the problem on continuous variables, to enable better approximation of non-convex non-linear constraints. Such solvers are built on top of the Mixed-Integer (Linear) Programming (
mip) solvers [
15], and they also apply piecewise relaxation techniques, bilinear programming techniques, and several other techniques specific to non-linear problems.
This paper attempts to apply a similar approach to a problem that takes into account energy and power costs. It shows how to reformulate the general
minlp model proposed by Ferretti et al. [
8] into an
miqcp model, which may be solved optimally with a general-purpose solver. Computational experiments prove that this approach ensures better production schedules, mainly thanks to a lower and better-levelled power demand.
Figure 1 illustrates the framework proposed in this paper to solve the
elsp with energy and power costs [
8]. In the old approach, if researchers had to solve a new extended version of the
elsp, they designed and coded a new specialised algorithm dedicated solely to this problem, which requires a high level of expertise and is very labour-intensive. Moreover, developed algorithms are, in most cases, heuristic; that is, they do not ensure optimal solutions [
9,
10], which can lead to significantly higher costs.
The new approach [
14] applied in this paper is to reformulate the
elsp model so that a general-purpose solver can be used. Currently, general-purpose procedures for the
miqcp models are much faster and more effective than for the general
minlp models. Therefore, in this paper, the
minlp model of the
elsp with energy and power costs [
8] is reformulated into an
miqcp model.
For this purpose, general logical conditions should be described using binary variables and so-called big M constraints, e.g., must be replaced by . Moreover, general non-linear expressions, like (where , and z are variables), must be replaced by quadratic expressions like (where , and are new auxiliary variables). Most expressions describing energy consumption and peak power demand required such reformulation.
The rest of this article is organised as follows:
Section 2 describes the
elsp following the common-cycle approach, taking into account variable production rates, costs of energy consumption, and power demand.
Section 3 and
Section 4 present the known
minlp model proposed in [
8] and the new
miqcp model, respectively.
Section 5 presents the results of the computational experiments.
Section 6 gives the summary.
2. Problem Description and Notation
Several products j with a constant and deterministic demand rate are produced on a single machine at a rate . Before changing the product being made, the machine must be set up, which takes some time and cost , both independent of the sequence of products. The inventory holding cost is proportional to the inventory level and unit holding cost . The goal is to set the production rates and the cycle length T, which uniquely determines the size of production lots equal to . The lists below present all lot-sizing parameters and variables of the considered problem:
Lot-sizing parameters:
= —Set of products, where n is their number;
—Demand rate of item j [units/h];
—Set-up cost of item j [USD/set-up];
—Set-up time of item j [h/set-up];
—Unit inventory holding cost of item j [USD/h/unit].
Lot-sizing variables:
The modelling of energy and power costs in production planning models [
7,
8] is based on several assumptions. When the machine is idle, not processing any products and not being prepared for processing, but is in "ready for production" mode, then it requires constant power
W [
16]. When the machine is idle long enough, it may be shut down to save energy. However, it is profitable only if the machine’s shutdown and start-up take less time and energy than the considered idle time interval in ready mode. A sufficiently long idle time interval is called a
break-even duration [
17] and depends on the actual production rates
. The ratio
g of the power required during the machine’s shutdown and start-up to the idle power
W is constant [
17]. The power required to process one unit of product
j is a sum of the constant element, the idle state power
W, and a variable element linearly depending on the production rate
[
18]. The ratio
of the power needed to set up the machine for product
j to the idle state power
W is constant but product-dependent [
19]. The list below presents all parameters and variables related to energy and power management:
Energy- and power-related parameters:
e—Unit cost of energy consumption [USD/kWh];
—Unit cost of maximal power [USD/kW/h];
—Total duration of shutdown and start-up of the machine [h];
—Maximum possible power [kW];
W—Standby power (power required when the machine is idle) [kW];
g—Ratio of power required during the shutdown and start-up of the machine to the standby power W [–];
—Ratio of the power required during the machine’s set-up for product j to the standby power W [–];
—Energy needed to process one unit of item j [kWh/unit];
, —Minimum and maximum permissible production rate [units/h], where ;
—Lower and upper bounds of the cycle length T.
Auxiliary variables:
C—Total cost;
, , , —Total set-up, inventory, energy, and power costs;
—Break-even duration for the actual production rates;
x—Machine’s idle time at the end of the production cycle [USD/h/unit];
z = 1 if the idle time x is shorter than the break-even duration ; otherwise, .
Figure 2 presents an example of an
elsp schedule with power demand. A single cycle
T stretches between points A and H on the time axis. Before point A ends the previous cycle, and after H starts the next cycle. During the interval AB, the set-up activity before product X is executed, of duration
. During the interval BC, product X is processed, and its inventory rises to a level that ensures the demand will be satisfied until the end of the entire cycle. Similarly, during intervals CD and EF, the machine is set up for products Y and Z, which are processed during intervals DE and FG. During the interval GH, the machine remains idle but in a standby mode.
The lower part of the chart shows the power demand on the vertical axis. The light grey rectangle represents the standby power demand W. The set-up activities require the power ; here, , and the processing of products requires the power . In the standby mode, the machine needs only power W. At a constant cycle length T, increasing the production rate results in shorter processing times and increased power demand; decreasing the production rate has the opposite effect.
3. minlp Model
The common-cycle
elsp with the model of energy consumption costs proposed by Beck et al. [
7], and with the model of power demand peak costs proposed by Ferretti et al. [
8], may be described as the following
minlp model:
minimise
subject to
where the break-even duration
, depending on actual production rates
, equals
and the production rate bounds are equal:
In Model (1)–(14), there are two decision variables (one scalar variable T, and one continuous vector variable ) and three auxiliary scalar variables (one binary z, and two continuous and x). The objective function (1) determines the average total cost per unit of time. Equation (2) provides the machine set-up costs, and (3) determines the inventory holding cost.
Inequality (4) ensures that the binary variable
z equals one when the idle time
x at the end of the production cycle is shorter than the break-even duration
, which, in turn, is determined by function (12) [
7,
17]. “The break-even duration
is used to decide on whether the machine should be switched off or be kept in the idle mode” [
17]. “The machine should be shut down (
…) if the energy required to shut the machine down and start it up again is lower than the energy required to keep the machine in the idle state” [
8]. Detailed derivation of (12) is presented in two papers. Beck et al. [
7] derived the formula for
considering only the energy consumption costs. Ferretti et al. [
8] added the power demand cost.
Equation (5) sums four kinds of energy costs, using their average values per unit of time. The first element, product j’s processing cost, is determined as the product of the power demand and cycle fraction necessary to meet demand during the entire cycle. The second element is the cost of machine set-up before processing product j. When the idle time is shorter than the break-even duration , the binary variable , the machine is idle during the time interval x, and the third element of Equation (5) determines the standby cost. When , the machine will be shut down for some time interval, and the fourth element of (5) determines the cost of the energy needed to start the machine after a shutdown.
Equation (6) gives the cost of the maximum required power, depending on the variable production rates. This may be either the power necessary to process products, the standby power, or the power needed to start the machine after a shutdown.
Constraint (7) ensures that the sum of the total set-up time, machine workload, and idle time does not exceed the cycle length. Constraints (8)–(11) define the domains of all variables. Equations (13) and (14) set bounds for production rates. The lower and upper bounds of the cycle length bound, and , are hard to set. Therefore, they may be set fully arbitrarily by managers based on their experience and expertise. The lower bound is derived from constraint (7), and the upper bound is due to the maximum possible power demand .
4. miqcp Model
Taking an example from [
14], Model (1)–(14) may be solved optimally after reformulation to a Mixed-Integer Quadratically Constrained Programming (
miqcp) model. To do this, it is necessary to reformulate all non-linear and non-quadratic terms into linear or quadratic ones. Several constraints in Model (1)–(14) contain division by
T or
, along with products of three or four variables. All of them may be reformulated into an
miqcp model using bilinear constraints [
15]. Moreover, function (12) must be reformulated using an additional binary variable to represent two cases of this function.
A function is bilinear if it is linear in x when y is fixed and linear in y when x is fixed. The square of a variable is a quadratic term, but not a bilinear one. A quadratic term does not have to be bilinear, but each bilinear term is quadratic.
The number of bilinear and quadratic expressions in the model should be minimised, as they are much harder to handle by the solver than the linear terms. To do this, auxiliary variables are necessary, aggregating many variables before multiplying them by another variable.
Additional derived parameters:
Additional variables:
= —Inverse of cycle length;
—Inverse of production rate of product j [h/unit]; that is, the processing time for one unit of product;
—Binary variable used to model the break-even duration function (12);
—Break-even duration for the actual production rates;
V =—The maximal required power, an auxiliary variable necessary to build a minimax constraint;
—Auxiliary variables used to reduce the order of polynomials and reduce the number of quadratic terms.
The common-cycle elsp with costs of energy consumption and power demand peaks describes the following miqcp model, where the hash sign precedes the comments:
# Inverse variables:
# Set-up cost:
# Inventory holding cost:
# Energy consumption costs:
# Break-even duration:
# Power demand costs:
# Machine workload:
# Variables’ domains:
where the upper bounds equal:
The objective function (15) is linear and does not have to be modified. Bilinear constraints (16) and (17) couple the new variable with T and with . The set-up cost (18) and inventory holding cost (19) are determined using the new inverse variables. Determining the inventory holding cost is split into two constraints (19) and (20), to prevent multiplying each variable by T separately. The first one (19) aggregates all of the variables into one variable, to have only one quadratic (bilinear) expression in the second one (20). A similar approach is applied to reformulate the energy cost constraint (5). Bilinear constraints (21) and (22) reduce the order of the polynomial in (23), which determines the average energy costs. Substituting in (23) for , , and , the expressions from (17), (21), and (22), after some reformulation, one obtains (5).
Constraints (24)–(28) replace function (12). The minimax constraint (24) determines the . Constraints (25) and (26) reduce the order of polynomials. The big M constraint (27) determines the binary variable necessary to describe the two cases of the break-even duration in (28). The big M parameter for constraint (27) is defined in (41).
The big M constraint (29) defines the value of the binary variable z. Its big M parameter is explicitly defined in (42), as an upper bound for the second value in (12) for any feasible values of variables and T. Constraints (30) and (31) ensure that the maximum power will be equal to or higher than the power needed during any period of the schedule. The constraint (7), ensuring that the workload does not exceed capacity, is here split into two equations (32) and (33) to reduce the number of quadratic terms.
Constraints (34)–(40) define the domain of the variables. Two variables, and , are unconstrained. The cycle length bounds, and , should be set by managers based on their experience and expertise. Bounds of production rates are given in (13) and (14).
5. Experiments and Results
The new Model (15)–(42) was tested on a problem instance proposed by Beck et al. [
7] and Ferretti et al. [
8], based on a real case of a metal stamping process described by Bomberger [
20], which researchers often use to evaluate new optimisation methods for the
elsp.
A decrease in production rates by 50% or an increase by 200% may be unrealistic. The original rate bounds, described by Equations (13) and (14), practically do not limit the solution. Therefore, four additional problem instances have been solved using the miqcp Model (15)–(42), with production rate changes bounded to , , , and .
All cases were solved with the help of the Gurobi 11.0.3 solver on an Intel Core i9-7900X processor with a 3.3 GHz clock speed, 16 GB RAM, 10 physical cores, and 20 logical processors, utilising up to 20 threads, with a time limit of 60 s.
5.1. Parameters of the Problem Instance
Table 1 contains all parameters of the considered problem instance [
7,
8,
20], where
is the original production rate [
7,
20]. The cycle length bounds were set to
and
days. To improve the scaling of the model, all monetary values (
,
,
e,
) were multiplied by 100, i.e., expressed in cents, not USD [
15].
5.2. Results for Basic Case
To solve the basic case, the solver explored 51,475 nodes (159,908 simplex iterations) in 1.18 s (0.34 work units).
Table 2a compares results obtained with four methods: the
classic elsp optimal solution, ignoring energy or power costs; the
energy method, optimising only energy costs, proposed in [
7]; the
power method, optimising both energy and power costs, proposed in [
8]; and the new
miqcp Model (15)–(42). The experiments confirmed all results presented in [
7,
8]. The
classic and
energy methods use the original production rates
[
7,
20], while in the
power and
miqcp methods, the production rates are optimised.
Column C presents the total cost, including costs of energy consumption and power demand peaks. The miqcp model delivered an optimal solution that ensures a total cost 3.27% lower than that of the power method.
In the miqcp solution, the cycle length T is slightly longer than in the power solution. More interestingly, in the miqcp solution, the machine is fully utilised; that is, the machine utilisation u, determined as the sum of the set-up and processing times divided by the cycle length, equals 100%.
Table 2b presents the components of total costs for the two methods, optimising both energy and power. The decrement in set-up costs
and increment in inventory holding costs
practically offset each other, which may be explained by the increment in cycle length and machine utilisation. Most importantly, the new model decreased the power demand costs by 10.7%.
Table 3 compares the production rates and power demand obtained with the
power and
miqcp methods. The production rates
in the
miqcp solution are lower than in the
power solution reported in [
8], except for product 8, which explains the longer production cycle.
The decrement in production rates, compared to the original values , for most products in both solutions is very high, which ensures reductions in power demand and cost. For the second product, the production rates are decreased by 54.8% and 56.7%. Interestingly, in the miqcp solution, the power needed to produce is the same for all products, again except for product 8. Moreover, the power demand peak in the miqcp solution is 10.8% lower than in the power solution, explaining the decrease in power costs. Thanks to the new miqcp model, the power demand is lowered and equalised more effectively.
Figure 3 shows the changes in the power demand in three solutions. In the
classic solution, the highest power demand is 60.7% higher than the lowest; in the
power solution [
8], it is 23.7% higher; and in the
miqcp solution, obtained using the proposed Model (15)–(42), it is only 7.9% higher. The new model almost perfectly equalises the power demand.
5.3. Results for Tight Bounds of Production Rates
The results for production rate changes bounded to
,
,
, and
are presented in
Table 4. The cycle length
T increases and set-up costs
decrease when the rate increment bounds become wider. The inventory holding costs
and energy consumption cost
change moderately. Most importantly, when the rates may change only by
, the power costs
are 27.8% higher than in the case with the original bounds, and they decrease for wider bounds. The total cost
C is 7% higher for bounds
, and it decreases when the bounds become wider.