1. Introduction
The increasing need for frequent replanning in production—covering aspects such as reconfiguration, rescheduling, rebalancing, reallocation of human resources, and reprioritization of orders—presents considerable challenges for modern production management [
1]. The increasing complexity of modern production systems calls for intelligent, interactive decision-support tools capable of dynamically handling unexpected disruptions and operational variations [
2,
3]. Recent studies further reinforce this need by proposing hybrid and resilient decision-making frameworks that support real-time reconfiguration and adaptive planning in manufacturing environments [
4,
5]. This need is addressed through the design and validation of a prototype framework that combines line balancing, resilience, and optimization objectives within a Pareto-based multi-criteria model [
6,
7].
The proposed approach uses a declarative framework [
8,
9] to support interactive planning and dispatching, allowing for real-time scenario analysis, adaptive response, and control based on continuous feedback. The possibilities of using declarative modeling initiated in our earlier works [
10,
11] were focused on the problems of balancing machining lines, in which an integrated, single-argument objective function was optimized. The obtained results were extended in this work to include the possibility of robust balancing of production flows resistant to disruptions related to changes in working conditions (e.g., energy and/or tool costs), as well as machine malfunctions. Unlike most existing studies, which focus on individual elements, such as rescheduling, line balancing, or resource reconfiguration, this framework highlights the interconnected nature of these decision areas and addresses a significant gap in the current body of research [
12].
By focusing decision-making efforts on equipment rebalancing and reconfiguration, the proposed framework facilitates interactive replanning, which is particularly well-suited to machining operations in iron casting. Moreover, the incorporation of production line characteristics into a nominal reference model enhances the system’s ability to dynamically adapt to evolving operational conditions, including changes in machine layout, tool wear, energy consumption, and variability in production orders.
The proposed approach develops a declarative, constraint-based decision support framework for dynamic production line balancing that integrates resilience, sustainability, and optimization goals. It models machine-level operational states and their impact on cycle time, tool wear, and energy consumption, enabling the generation of Pareto-optimal configurations under changing production conditions. The framework supports real-time, interactive replanning through scenario-based analysis and is validated via a case study in a machining context. At the core of this approach lies the model’s open architecture, which facilitates the integration of heterogeneous data sources and supports the flexible configuration of operational scenarios. This adaptability empowers dispatchers in determining viable corrective actions in real time, ensuring continuous alignment with operational objectives. In particular, it highlights the opportunities to interactively balance production flows by monitoring to detect deviations from expected performance and using adaptive control to implement corrective strategies to minimize downtime, reduce risk, and maximize throughput. Within this context, several critical research questions arise, which include the following:
Can user-defined scenarios based on machining takt times, tool wear, energy consumption, and layout changes effectively support interactive rebalancing and dispatching?
Does the declarative, computer-implemented model operate efficiently in real-world conditions, supporting timely decisions at an industrial scale?
Which combinations of line configurations and machine parameters deliver optimal trade-offs between cost, efficiency, and resource utilization?
Is there a viable set of Pareto-optimal scenarios that ensures that production remains within defined constraints while maintaining system responsiveness?
Seeking answers to questions such as these justifies the scope and importance of our contribution, which includes the following:
A novel declarative modeling framework, enabling holistic decision-making in dynamic manufacturing environments that unifies proactive line balancing, reactive disruption management, and sustainability-aware multi-criteria optimization.
Dynamic and transparent planning with constraint-based modeling that seamlessly incorporates changing decision-maker objectives, increasing adaptability and transparency in response to changing operational and economic conditions.
A case study demonstrating superiority in a realistic machining context showing the improved responsiveness, robustness, and sustainability of the proposed approach compared to conventional methods.
The implementation of the proposed solution within the Decision Support System (DSS), providing a solid foundation for polyoptimization and trade-off decision-making, integrating domains, process planning, workforce scheduling, and resource allocation, seems to be competitive with the currently available approaches.
The remainder of this paper is organized as follows.
Section 2 reviews the related work.
Section 3 outlines the methodological foundations, including the problem formulation.
Section 4 introduces the modeling framework, which is then applied in
Section 5 to describe the concept of an interactive, follow-up control-driven decision support procedure.
Section 6 discusses the results of computational experiments, demonstrating the applicability of the proposed approach using a case study example. Finally,
Section 7 summarizes the key findings and suggests directions for future research.
3. Problem Formulation
The line balancing problem under consideration pertains to a machining line
(as illustrated in
Figure 1), composed of
machines, denoted as
, where
represents the set of all machines. The machining line
is designated for the serial production of a predetermined number of products, denoted by
.
Each product corresponds to a task , which involves a sequence of operations ,…,,…,, executed in a fixed order across the machines in set . Each operation is characterized by
its processing time (the cycle time of machine ),
the tool lifetime (specific to the machine) used during its execution,
the energy consumption .
The aforementioned parameters are contingent upon the assumed states of the machines within the set , where represents the set of possible states of machine . Formally, the state of machine determines the sequence of its production parameters: ): (where denotes the set of admissible production parameters of machine ). Within this framework, the configuration of the machining line is defined as a sequence of states of the constituent machines, expressed as .
The set of admissible configurations of line is denoted by . Modifications to configuration have a direct impact on the production cycle time , total tool cost , and total energy costs .
The overall production cycle time, defined as determines the production completion date (). This completion date is directly proportional to the available working time ()—which depends on factors such as the number of shifts, overtime, and weekend operations—and inversely proportional to the cycle time of the production line.
The tool consumption costs of the machines constituting line , defined as (where denotes the tool cost associated with machine ), depend on the tool lifetime , which in turn is a function of the adopted operational states of the constituent machines. Typically, as the production rate increases (i.e., the processing time titi decreases), tool wear accelerates significantly, leading to a substantial rise in tool-related costs.
The energy consumption costs of the machines comprising line , defined as (where denotes the energy cost incurred by machine mi), depend on the energy consumption , which is also determined by the adopted operational states of the respective machines. As in the case of tool consumption, a higher production rate (reflected by a lower value of ) typically results in a sharp increase in energy usage, thereby escalating the associated energy costs.
The aforementioned criteria (hereafter referred to as partial criteria) enable the evaluation of the configuration of production line along three primary dimensions: production time, tool consumption costs, and energy costs. In general, additional criteria may be considered depending on the specific characteristics of the line under analysis. Nevertheless, in most practical cases, the considered criteria are mutually conflicting. From this perspective, line balancing becomes a problem of identifying such configurations that minimize the values of the criteria , , and in the Pareto sense—that is, seeking solutions in which improving the value of one criterion is not possible without simultaneously worsening the value of at least one of the remaining two.
The utilization of Pareto-optimal solutions, forming the so-called Pareto front, in production planning is often challenging due to the potentially large number of solutions, which increases sharply with the number of considered dimensions (criteria). To address this issue, an additional criterion—referred to as the aggregated criterion—has been introduced to reduce the number of solutions under consideration in accordance with the current decision-maker’s preferences. This aggregated criterion corresponds to the total operating cost (). The encompasses multiple components, including energy consumption , tool wear , and individual cycle time associated with each machine . These factors collectively affect the labor cost attributed to each machine and hence the overall operational cost of the production line.
Figure 2a presents an example of a production line consisting of three machines, for which the configuration
has been adopted. This configuration ensures Pareto optimality while simultaneously yielding the lowest value of the aggregated criterion,
. In practical terms, this means that among all feasible configurations of line
, the selected solution provides the minimum production cost, with a
value of
[m.u.] (m.u.—monetary units). For this configuration, the energy consumption cost amounts to
[m.u.], the tool wear cost is
[m.u.], and the production cycle time is
[s].
The considered (see
Figure 1) configuration
is one of the admissible configurations that make up the set
. Each configuration
corresponds to a criteria vector
, which forms the objective space
. This is illustrated in
Figure 2b, which shows the space
for the considered line
. The Pareto-optimal solutions have been distinguished by points marked in red and yellow. These points corresponding with the set
containing such configurations
for which the improvement of one partial criterion (e.g.,
) cannot occur without a reduction of at least one of the others (e.g.,
or
).
This means that the set
guarantees a choice from among the Pareto-optimal solutions, i.e.,
. Among the remaining feasible solutions, there are alternative variants characterized by lower values of all the partial criteria. It is worth noting (
Figure 2b) that the Pareto solutions create the so-called Pareto front, which is the edge of the point cloud of feasible solutions
. The considered Pareto front is better visible in
Figure 2c, which shows the projections of the space
onto the planes:
,
and
. The selected sample configuration of line
has been highlighted in green, which makes it easier to assess how a change in the line configuration within one criterion results in a change in the others.
For example, it may occur that the values of the considered criteria do not align with the decision-maker’s expectations—for instance, when the decision-maker seeks a solution that minimizes energy costs
. In such a case, a decision may be made to modify the configuration of the line to an alternative arrangement that yields the following criterion values:
[m.u],
[m.u],
[s], and
[m.u.]—the new configuration
is marked in orange. It is important to note, however, that such a change occurs along the Pareto front, meaning that the improvement of one criterion (e.g.,
) necessarily entails the deterioration of others (e.g.,
), including the aggregated criterion
. In general, other configurations of the solution space can be analyzed. For example, the yellow color indicates those configurations that guarantee
[m.u.]. In a similar way, depending on the decision-maker’s requirements, other subsets can be established. Representations of this type support the decision-maker in the process of interactive (supported by DSS class dialog solutions) search for configuration
that provides both the expected values of partial criteria and the aggregate criterion. In practice, in situations related to the occurrence of multidimensional spaces
, such searches becomes very time-consuming. In response to such needs, a representation in the form of polar charts was introduced—see
Figure 3.
In this representation, the values of individual criteria are presented on separate charts, in which the values of a given criterion increase with the angle α (creating spiral plots). Such a solution allows for an easy, intuitive way of selecting the sought solutions. For example, each of the charts in
Figure 3 shows a ring zone illustrating the range of requirements specified by the decision maker:
(
Figure 3a),
(
Figure 3b), and
(
Figure 3c). The Pareto solutions within these rings correspond to the configurations of lines that satisfy the selected requirements. By changing the range of rings, the decision-maker can easily identify the desired configurations and choose the one that satisfies his requirements.
Thus, the process of identifying a solution that satisfies the decision-maker’s preferences requires continuous analysis within a high-dimensional solution space. For this reason, it is essential to implement mechanisms that enable the selection of admissible solutions, i.e., the reduction of the solution space, to such subsets that effectively correspond to the decision-maker’s priorities.
The complexity of the problem increases further when considering the fact that the values of the aforementioned criteria are also influenced by the adopted structure
of the machining line
. This structure depends on the types of disruptions affecting line operation, such as machine failures, scheduled maintenance downtimes, delays due to staff absenteeism, and other similar factors. The occurrence of a disruption, therefore, affects the effectiveness of the adopted configuration
of line
, i.e., it alters the values of the considered criteria. In other words, each disruption impacts the set Pareto solutions and requires a re-evaluation of the permissible line configuration.
Figure 3 shows a case where disturbances changing the values of all partial criteria take them outside the required range—the adopted configuration (green point) has moved outside the range area limited by rings (moved to point ⊗). In such a situation, it is necessary to either correct the configuration
or change the
structure of the
line.
During the execution of a production order, the structure frequently changes and must be adapted to the current conditions. This continuous adaptation of the line has a significant impact on the considered partial criteria (, , and ) determining production cost () and the completion time (). The structures considered in this study include the following cases: , where the structure corresponds to uninterrupted production flow, while the remaining structures, , , , represent scenarios involving the failure of a single machine. These structures, in particular, reflect the following modes of operation:
Nominal operating mode: All machines from the set
are available, and production is carried out during a single shift—see structure
in
Figure 1.
Machine failure—two-shift operation mode: In the event of a failure of machine
, the operations originally assigned to
are transferred to machine
, which performs them during the second shift—see structure
in
Figure 4a. The resulting semi-finished products are subsequently processed on machines
during the first shift of the following day. This solution is admissible under the assumption that two consecutive machines,
and
, are capable of substituting for one another.
Machine failure—single-shift operation mode with operation merging: In the event of a failure of the
machine, its operations are transferred to machine
, which simultaneously performs both (merged) operations—see structure
in
Figure 4b. This approach is admissible under the assumption that machines
and
, being consecutive in the line, are interchangeable.
Machine failure—single-shift operation mode with the use of an alternative machine: If machine
fails, its operations are redirected to a backup machine
—see structure
in
Figure 4c. This solution is acceptable under the condition that machine
has a designated substitute
, whose utilization does not cause additional losses (e.g., due to the delay of operations in the line in which this machine is deployed).
The above-presented arrangements of the machining line structure do not, of course, exhaust all possible disturbances and related regroupings of the machining line. The above-presented variants correspond to the situations most frequently occurring in the considered bearing production process.
In that context, the primary objective of line balancing is to identify the structure of the machining line and its configuration that satisfies the following condition:
achievement of considered partial criteria: , , , and/or at or below a predefined threshold, i.e., (,
,
) and/or (, ,
Therefore, the set of admissible solutions (admissible production flow scenarios) is the set (where is the set of admissible structures of machining line ; is the set of admissible configurations of ). The ultimate objective is to determine the scenario of production configuration that minimizes one from considered criteria ( or ) while ensuring compliance with the given constraints.
In the considered problem, the continuous adjustment of machining line operations in response to environmental changes (e.g., fluctuations in energy prices) and unforeseen disruptions (e.g., equipment failures) is assumed. In this context, balancing the machining line becomes a process of continuous follow-up control-driven decision-making guided by the following key questions:
- I.
What production scenario of machining line ensures an assumed level of partial and/or aggregated criteria?
- II.
Can the current production scenario be modified to maintain the given and/or level in response to changes in production parameters (e.g., energy costs)?
The questions presented justify the need for an interactive approach to production balancing, enabling both proactive planning of production scenarios and their reactive adjustment to changing operational conditions. The problem under consideration thus reduces to the following key question: Does the computer-based implementation of the proposed model support the planning of restructuring and balancing operations within the machining line in a way that facilitates online adaptation of production plans to emerging disturbances? A proposal for such a method is outlined in the subsequent section.
4. Framework and Modeling Methodology
To address the question of whether a computer-based implementation of the proposed model can support the dynamic restructuring and balancing of machining operations, the problem was formally defined using declarative modeling techniques. This methodological approach enables a precise and compact representation of system behavior and constraints, thereby establishing a robust foundation for real-time simulation and adaptive adjustment of production plans. The proposed framework is grounded in the following assumptions and methodological constructs:
The operations, ,…,,…,, necessary for the production of a single unit of product (task ) are performed sequentially on machines, , which constitute the machining line .
At any given time, a machine can perform only one operation.
The product (task ) releases upon completing the operation and subsequently initiates operation on machine , contingent on its availability.
If the subsequent machine is occupied, the product remains in a waiting state until it becomes available. The machine buffer, which temporarily holds tasks awaiting machine availability, is assumed to have unlimited capacity.
To ensure minimal buffer utilization, machines are assumed to be synchronized, meaning the difference between their cycle times must not exceed a predefined threshold , i.e., , .
It is assumed that within a single working day (), at least units must be produced. If the production cycle time does not allow for this (i.e., production is too slow), overtime is considered.
Total production cost is calculated as the sum of tool wear costs, labor expenses (covering standard shifts and overtime), and energy usage costs incurred throughout the production process.
The mathematical statement of the MLB problem involves the following descriptions.
Parameters:
: set of available machines in line : ;
: number of available machines: ;
number of machine operation states, defined as a sequence , where is the number of states for machine ;
: sequence of admissible cycle times for machine for subsequent states given by , where represents the cycle time ([u.t.]—unit of time) for state (), determining the production time of a single unit of product;
: predefined synchronization margin for machine cycle times;
: sequence of tool lifespan values for machine for subsequent states, given by , where denotes the number of units produced before tool replacement is required;
: sequence of energy consumption values for machine for subsequent states given by , where represents the energy consumption in state ();
: cost of purchasing a tool for machine ;
: labor cost per unit time for an operator working at machine ;
: overtime labor cost per unit time for machine ;
: energy cost of machine ;
: fixed cost of machine ;
: minimum daily production requirement;
: working time per workday [u.t].
Decision variables:
: state of machine , where , for example, indicates that machine operates in state number 2;
: machine cycle time of , dependent on the operating state : ;
: tool lifespan (e.g., lathe knife durability) for machine , dependent on the operating state , where ;
: energy consumption of machine , dependent on the operating state ;
: cost of tools (e.g., lathe knifes) for , calculated per unit of product;
: daily production output (number of units), excluding overtime;
: operating cost of machine during the nominal working period (regular workday) for a given state ;
: overtime cost of machine for a given state ;
: energy cost of machine for a given state ;
: total energy cost for the entire line , calculated per unit of product;
: production cycle time of line
, composed of
machines (see
Figure 1);
: total tool cost for the entire machining line , calculated per unit of product;
: total labor cost for the entire line , calculated per unit of product;
: total operating cost for the machining line .
Constraints:
Constraints that specify the machine cycle time
, tool lifespan
, and energy consumption depending on the adopted state
:
Constraint enforcing the synchronization of machine cycle times:
Production cycle time of line
:
Constraint defining the value of
(tool cost per unit of produced product):
Aggregate cost of tools used across the entire line
, given the configuration
:
Unit output constrained to regular shift duration (excluding overtime):
Labor costs during the nominal working time for an individual machine.
Overtime costs for an individual machine:
Aggregate cost of labor for the entire line
, given the configuration
(per unit of produced product):
Energy costs for an individual machine:
Aggregate cost of energy used across the entire line
, given the configuration
:
Each admissible configuration
must satisfy the condition
, where
is the set of feasible configurations and
is the cost limit.
If
, the problem reduces to identifying a configuration
for the machining line
that minimizes the objective function:
An extension of the presented production line balancing model may involve the searching for solutions optimal in the Pareto sense. Within this multi-objective framework, the goal is to simultaneously minimize three key parameters for the entire production line : the production cycle time (5), the aggregate tool used cost (7), and the aggregate energy used cost (13).
Formally the problem is defined over a decision vector
, where
denotes the set of admissible configurations of the production line. The corresponding vector-valued objective function is defined as
with
—the total production cost (13),
—the total tool usage costs (7),
—the total time cycle for configuration
(5).
A configuration
is called Pareto-optimal if there is no other configuration
such that
where
means that
for all
and
for at least one
.
In the considered case this means
with at least one strict inequality. The set of all Pareto-optimal solutions forms the Pareto-front:
which represents the trade-offs between conflicting objectives and offers a spectrum of optimal alternatives to decision-makers. The set
configurations that are not Pareto-optimal is hereinafter called dominated configurations.
Among the constraints introduced, relations (1)–(3) determine the parameters (
,
) of operation executed on machine
depending on configuration
. Constraints (4) and (5) determine the working cycle
of the machines
and the entire
line. Constraints (6)–(13) relate to production costs (
) depending on the configuration
. Constraint (14) defines the set of admissible solutions
. Constraints (15) and (16) represent the aggregate and multi-criterial objective function. Related problem can be formulated in terms of the following constraint optimization problem (COP):
where
is a set of decision variables representing machines states (
, operations parameters (
,
), cycle time of line
(
), and production costs (
,
,
,
,
);
is a set of domains of decision variables:
,
,
,
,
,
;
is a set of constraints specified in interrelations (1)–(14);
is an objective function (15) or (16).
To solve the (19), the decision variables must be assigned values that satisfy all constraints in the set , thus defining the set of feasible solutions. The problem formulation can involve either a single-objective or a multi-objective function. In the single-objective case, the objective function is minimized to identify the optimal configuration. In the multi-objective scenario, multiple criteria are considered simultaneously, and the solution seeks to satisfy constraints while optimizing a vector-valued objective function. Consequently, solving the entails finding a configuration that meets production requirements and achieves the best trade-offs among competing objectives.
6. Case Study
To evaluate the practical applicability of the proposed approach, consider the following case study. A sequential machining line
comprises four machines,
. Each machine
can operate in one of 100 distinct configurations or states
. Each state is characterized by specific operational parameters, including cycle time
[s], tool lifespan
[units], and energy consumption
[kWh]. These parameter values are provided in
Table 1. The system must maintain operational synchronization, such that the maximum allowable deviation in cycle time between adjacent machines does not exceed
[s].
With these assumptions, a plan for the execution of an order for the production of
[units] of product pieces is sought. The production period is set at 21 working days between 1 June 2025 and 30 June 2025. Assuming a daily working time of
h, the required level of daily production is
[units/day]. In addition, it is required that the unit production cost does not exceed
[m.u.]. The total production cost includes both machine and labor expenses, as described in
Table 2. The presented example illustrates a manufacturing cell from a real-world production process for rolling bearing components. The production line consists of four lathes. The absence of intermediate buffers necessitates the synchronization of machine operations to prevent the accumulation of workpieces in front of the slowest workstation.
The proposed experimental plan assumes the application of the developed approach (
Section 5) to configure the considered machining line
in the following three planning scenarios (
Figure 6):
Proactive planning—enabling the specification of operating conditions for line
under nominal conditions. This is carried out to determine a configuration that guarantees the completion of a given order within a specified deadline. In other words, it allows for the identification of fixed line parameters for each working day (
Section 6.1).
Reactive planning triggered by changes in operating conditions, such as fluctuations in cycle times
. This allows for reconfiguration of the line, starting from the day the disturbance occurs (day 12), to a new configuration that still ensures on-time completion of the order (
Section 6.2).
Reactive planning triggered by changes in line configuration, such as a breakdown of machine
. This allows for restructuring the line, starting from the day the disruption occurs (day 23), to a configuration that maintains the timely completion of the specified order (
Section 6.3).
The sequence of these stages is illustrated in the schedule presented in
Figure 6.
6.1. Proactive Planning
It is assumed that the configuration of the considered production line
corresponds to the structure
, as illustrated in
Figure 1. Referring to the developed algorithm (
Figure 3), a scenario (
) can be sought that guarantees the minimum value of a single-objective function, which is minimizing the total operating cost (
), or a multi-objective Pareto function that aims to minimize three key performance indicators: total cycle time (
), tool consumption cost (
), and energy cost (
). Scenario (
) should additionally meet the requirements set by the decision maker, i.e., the values of partial criteria of the obtained solution should fall within the given ranges:
[s]—achieving these values guarantees daily production at the level of [units/day] (which allows the order to be completed within the given deadline),
[m.u.]—the adopted limit results from economic requirements and the sustainable development strategy,
[m.u.]—the adopted limit is a consequence of the cutting knives available on the market that ensure the given production quality.
To address this problem, the developed declarative model was implemented using the Gurobi solver (version 11.0.3, Gurobi, version 3.13.5, Python API [
26]), executed on a system equipped with an Intel Core i7-M4800MQ (2.7–4.82 GHz) and 32 GB RAM. The total computation time was less than 20 s. Among the evaluated scenarios, the number of admissible configurations satisfying the cost constraint
[m.u.] was
. The optimal scenario minimizing
was identified as
, resulting in
[m.u.]. The obtained solution determines the following machine cycles:
[s],
[s],
[s],
[s], and the production cycle time:
[s]—see
Figure 7.
The adoption of the configuration
for the considered line
ensures obtaining the expected values of partial criteria:
[s],
[m.u.],
[m.u.] (see ring zones on the
Figure 7b), and completion of the order within the specified time of 21 working days (see schedule on the
Figure 7c).
Ensuring the above parameters is possible assuming no disruptions to the production process. In the event of a disruption, the line should be reconfigured (if possible)—as illustrated in the next section.
6.2. Reactive Planning—Disability of One Machine
Let us consider a situation in which, on the 12th day (a working day W9) of executing the considered order (proceeding according to the adopted proactive plan
), a partial failure of machine
occurs. The partially malfunctioning machine may continue to operate on line
, albeit with reduced efficiency, which may be caused, for example, by a slowdown in the execution of scheduled activities deviating from the nominal durations specified in
Table 1. The states of machine
available after the occurrence of the disruption are presented in
Table 3.
An analysis of the current course of the process indicates that the adopted configuration
does not meet the predefined expectations due to desynchronization of the machines (the difference between the cycle times
exceeds 10 s), as evidenced by the cycle time values:
[s],
[s],
[s], and
[s]. This implies that the synchronization condition of the machines, described by constraint (4), is not satisfied. Additionally, the values of two partial criteria have exceeded their acceptable ranges: the production cycle time,
[s]
[s], does not meet the specified requirements; in turn, the energy cost:
, meets the specified requirements, whereas
[m.u.]
does not meet the requirements. The change of point operating position of line
(i.e., the values of the criteria for configuration
) resulting from the occurrence of the disruption is illustrated in
Figure 8.
This situation raises the following question: For the given machine states from set
, does a configuration
exist that allows for the execution of an order that minimizes unit production costs during the remaining 13 working days? The answer obtained in the Gurobi environment, in time
s, is a new configuration
, resulting in new time values:
[s],
[s],
[s],
[s] and
[m.u.]—see
Figure 9.
The designated configuration results in the following values of the partial criteria: [s], [m.u.] and [m.u.]. These values fall within the specified ranges and ensure the completion of production within the required timeframe (production level units/day). In contrast to the nominal plan, configuration leads, however, to higher production costs, [m.u.] (previously [m.u.]), which still remain within the acceptable limit of [m.u.].
It is worth noting that the replanning of the line configuration was completed in less than 10 s, i.e., in online mode. The newly adopted line configuration guarantees timely execution of the production order, although it may naturally be disrupted by subsequent changes in operating conditions—see next section.
6.3. Reactive Planning—Failure of One Machine
Let us consider a case in which machine
experiences a complete failure (day 23, production state
[units]), rendering the continuation of production impossible. In such a situation, it becomes essential to seek alternative solutions that enable the fulfillment of the order within the designated deadline while maintaining cost levels within the predefined limits. This need is addressed by implementing the line structure
—see
Figure 4c—in which the execution of operation
is allowed on a different machine
. In the considered scenario, operation
can be performed on machine
, which results in an extension of the processing time per unit on machine
and an increase in unit costs. The new states of machine
in the reconfigured line
are presented in
Table 4.
The adopted solution, however, implies the question: For the given machine states from the set
, is there a configuration
that allows the execution of an order that minimizes unit production costs within the remaining 5 working days? The answer obtained in the Gurobi environment, in time
[s], is a new configuration
, giving new time values:
[s],
[s],
[s] and
[m.u.]—see
Figure 10.
The designated configuration implies the following values of partial criteria: [s], [m.u.], and [m.u.]. Despite exceeding the value of [s] (for failure of machine , the decision-maker changed the requirement for the production cycle time: ), the unit costs are within the assumed range, i.e., [m.u.], which allows for the introduction of an appropriate reconfiguration of the line structure and replanning of the related production flow.
The reported results correspond to the scale of machining lines typically found in the manufacturing cells of small- and medium-sized enterprises. This implies that the proposed approach can be effectively employed for the evaluation and synthesis of production scenarios in typical manufacturing cells, where the number of machines usually does not exceed ten.
To sum up, the implementation of the proposed approach to proactive–reactive planning of the balanced production flow allowed the order to be completed before the assumed deadline (production was completed on the 25th day). The calculation/reaction time for each of the discussed cases did not exceed 10 [s], which corresponds to the real needs of manufacturing companies.
6.4. Scalability
The presented line balancing examples have demonstrated that the developed approach can be effectively applied in both proactive (offline) and reactive (online) planning, aimed at identifying configurations that ensure desired values of multiple partial criteria (
) as well as the aggregated criterion (
). This approach falls within the domain of multi-criteria optimization. In contrast to the existing approaches available in the literature [
27,
28,
29], emphasis is placed here on a declarative formulation of the modeled problem. The open structure of the developed model, implemented within declarative programming environments, allows for unrestricted modification or updating of the planner’s/operator’s requirements. The scope of proposed changes may include previously unconsidered operating conditions (e.g., a new line structure) as well as new target values for both the partial criteria and the aggregated criterion (e.g., due to the occurrence of a disturbance).
The adopted representation using polar plots significantly facilitates the evaluation and selection of admissible solutions (the space ), notably through the application of rings on the plots—resembling shooting targets—thus enhancing visual assessment.
The presented examples were limited to a line consisting of four machines; subsequent experiments were aimed at evaluating the scalability of the proposed approach. It should be noted that the computational complexity of the considered problem is significantly dependent on the number of assumed potential configuration options and on the complexity of the assumed production flow scenarios satisfying arbitrarily chosen synchronization constraints. The obtained results are summarized in
Figure 11. They show that the computational feasibility of the considered problem (i.e., finding a solution within 10 min) is limited to
machines, assuming that the number of states does not exceed 100;
machines, assuming that the number of states does not exceed 150;
n = 4 machines, assuming that the number of states does not exceed 200;
machines, assuming that the number of states does not exceed 250.
These parameters are representative of a typical single production line, which rarely includes more than three machines.
In summary, it is worth emphasizing that the proposed approach, aligning with the current development trends in DSS systems [
27,
28,
30], finds practical application in the planning of balanced production flow within machining lines for short- and medium-series manufacturing. Its main advantage lies in its potential for use in scenarios requiring dynamic scheduling disruption management [
27]. While this paper limits itself to a qualitative assessment of the proposed approach, we note that the absence of a quantitative evaluation stems from a lack of literature sources presenting numerical research findings in the considered domain. This limitation hinders the ability to compare its competitiveness in terms of computational efficiency, the most frequently occurring disruptions and failures, operator training requirements, and other relevant factors.
7. Conclusions
This paper has proposed a novel declarative framework that unifies proactive production line balancing and reactive disruption management with sustainability-aware optimization in machining environments. By adopting a constraint-based, multi-criteria formulation, the approach addresses critical limitations of traditional sequential planning methods, particularly their inability to cope with dynamic disruptions and conflicting operational objectives. The integration of predictive planning and adaptive dispatching within a single decision-support system represents a significant advancement in the design of intelligent, interactive tools for modern manufacturing.
The framework supports real-time reconfiguration of resources through an open architecture, enabling seamless incorporation of user-defined objectives and operational constraints. The use of Pareto-based optimization facilitates informed trade-offs between key performance indicators, such as takt time, tool wear, energy consumption, and total operating cost. This structure supports both exploratory “what-if” analyses and prescriptive planning strategies without requiring modifications to the model’s core logic. As demonstrated through the case study, the proposed approach not only ensures production continuity under uncertain conditions but also improves system responsiveness, enhances sustainability alignment, and supports operator engagement through interactive visualizations.
Results of this work naturally intersect with the broader concept of sustainable development, going beyond the direct performance indicators of the considered case. For example, effective line balancing supports limiting overproduction, which reduces storage costs and energy usage. Rapid response to disruptions and failures minimizes the risk of delays, mitigates cascading failure effects (the so-called “domino effect”), and improves flow control. An open structure of the proposed model allows easy integration of additional sustainability-related criteria, such as waste generation, carbon footprint, and material efficiency.
In comparison to conventional methods that treat rescheduling, rebalancing, or reallocation as separate and sequential tasks, the presented solution addresses these interrelated challenges in a holistic and flexible manner. This positions the framework as a practical tool for short- and medium-series production, particularly in machining lines with frequent disruptions and high reconfiguration demands.
While the qualitative evaluation confirms the utility and feasibility of the approach, upcoming work will focus on developing quantitative performance benchmarks—particularly in terms of computational efficiency, failure handling patterns, and operator training requirements—while also extending the evaluation scope to include robustness measures, adaptability indices, and sustainability-related metrics.
In sum, this work lays a foundation for next-generation decision support systems that integrate resilience, sustainability, and adaptability as core design principles—bridging the gap between theoretical advances in declarative modeling and their practical application in industrial production systems.
The presented implementation has been validated using only a single case study, which may limit its generalizability to other manufacturing sectors. It is worth noting that the model’s effectiveness depends on the availability and accuracy of input data, which can vary across different industrial environments. This suggests that future research should explore the scalability of the approach in more complex systems , as well as its potential integration with real-time data acquisition systems and adaptive mechanisms based on machine learning.