Next Article in Journal
The Efficacy of Selected Sodium Hypochlorite Heating Methods for Increasing and Maintaining Its Intracanal Temperature—An Ex Vivo Study
Previous Article in Journal
Evaluation of Different Internal Designs of Hydraulic Nozzles under an Accelerated Wear Test
Previous Article in Special Issue
Experimental Comparison of Heating Emitters in Mediterranean Climate
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

An α-Model Parametrization Algorithm for Optimization with Differential-Algebraic Equations

Department of Control Systems and Mechatronics, Wrocław University of Science and Technology, Wybrzeże Wyspiańskiego 27, 50-370 Wrocław, Poland
Appl. Sci. 2022, 12(2), 890; https://doi.org/10.3390/app12020890
Submission received: 15 December 2021 / Revised: 10 January 2022 / Accepted: 13 January 2022 / Published: 16 January 2022

Abstract

:
An optimization task with nonlinear differential-algebraic equations (DAEs) was approached. In special cases in heat and mass transfer engineering, a classical direct shooting approach cannot provide a solution of the DAE system, even in a relatively small range. Moreover, available computational procedures for numerical optimization, as well as differential- algebraic systems solvers are characterized by their limitations, such as the problem scale, for which the algorithms can work efficiently, and requirements for appropriate initial conditions. Therefore, an α DAE model optimization algorithm based on an α -model parametrization approach was designed and implemented. The main steps of the proposed methodology are: (1) task discretization by a multiple-shooting approach, (2) the design of an α -parametrized system of the differential-algebraic model, and (3) the numerical optimization of the α -parametrized system. The computations can be performed by a chosen iterative optimization algorithm, which can cooperate with an outer numerical procedure for solving DAE systems. The implemented algorithm was applied to solve a counter-flow exchanger design task, which was modeled by the highly nonlinear differential-algebraic equations. Finally, the new approach enabled the numerical simulations for the higher values of parameters denoting the rate of changes in the state variables of the system. The new approach can carry out accurate simulation tests for systems operating in a wide range of configurations and created from new materials.

1. Introduction

The advanced environments of computational optimization, which can take into account different types of constraints, are the tools that can be used by science and industry to solve the most pressing engineering problems. There are some branches of engineering and technology for which defining complex optimization tasks seems to be a natural issue, such as, e.g., chemical engineering [1,2], biotechnology [3], power engineering [4], or aviation [5] and astronautics [6]. It is worth emphasizing that there is a wide group of defined finitely dimensional optimization tasks with a classical scalar objective function and equality and/or inequality constraints that can arise in various branches of industry. This means that not only the specific scope of the problems belongs to the optimization area, but also well-known formulations reflect a common desire in process design, such as increasing efficiency, the reduction of losses, or reaching a compromise among the chosen goals.
Mathematical modeling, as well as a model-based optimization are important subjects of the heat and mass transfer area. Recently, Singh and Ghoshdastidar considered a new approach for computational simulation of heat transfer in a special case of alumina and cement rotary kilns [7]. The model relations take into account such items and phenomena as: (a) radiation exchange among solids, walls, and gas, (b) convective heat transfer from the gas to the wall and the solids, (c) contact heat transfer between the covered wall and solids, and (d) heat loss to the surrounding, as well as chemical reactions. In particular, the energy equation for the wall was computed by the finite-difference method. Finally, the performed simulations resulted in new insights into axial solids and gas temperature distributions, as well as the axial variation of chemical composition.
Najim and Krishnan designed a new mathematical model to obtain a similarity solution, which can be further applied for heat transfer analysis in progressive freeze-concentration-based desalination [8]. Then, the calculated similarity solution can predict the temperature distributions in the ice, the thickness of the ice, as well as heat flux. An important part of the mathematical model is the Scheil equation, useful in an analysis of simultaneous heat and mass transfer phenomena. The calculated similarity solution was used in a further analysis to investigate, e.g., the effect of the ice–liquid interface speed on heat transfer.
Li et al. designed and analyzed a new mathematical model of a novel evaporator [9]. In the presented new approach, the main rules of the vapor–liquid adjustment evaporator, as well as an appropriated configuration were considered. The authors indicated that the vapor–liquid adjustment evaporator can be further enhanced by an optimization procedure.
Najib and co-workers considered a new approach to calculate the transfer functions (g-functions) for computer simulation for the thermal performance of large-diameter, shallow bore, helical Ground heat exchangers [10]. It was indicated that the g-functions are generated using a validated numerical capacitance resistance model—helical ground heat exchangers for different bore diameters, bore depths, and helical pipe pitches. Moreover, a simplified resistance-based model, for the calculation of traditional borewell temperature-based g-functions, has also been presented.
Ghrissi et al. investigated a new mathematical approach based on the darcien model [11]. The prepared solution enabled the analysis of the influence of effective coupled parameters, which were heat, moisture, and air, on the evaporation performance of a porous layer. Then, to solve the designed system of equations, a combination of the Boltzmann method and the finite-volume method was proposed. Finally, the obtained results indicated that blowing air in winter conditions markedly affects the heat and mass exchanges at the interface between the porous layer and the channel.
The mentioned technological applications resulted in the problem functions expressed by the specified mathematical formulas. There are some important aspects that should be reflected in the problem formulation. In particular, the optimization task can be defined by considered the limitations and additional conditions:
  • The single- and multi-objective optimization is related to the form of the objective function [12];
  • Nonlinear formulas indicate whether local solutions can be detected [13];
  • Optimization with complementarity constraints (mathematical programs with complementarity constraints (MPCC)) considers special pairs of restrictions [14,15,16];
  • Mixed-integer nonlinear programming (MINLP) combines constraints with combinatorial problems [17].
Usually, in the optimization tasks related to the technological problems, a mathematical model of the considered process is included. Then, the mathematical model can be considered as a system of constraints. In particular, there are purely dynamical constraints in ordinary differential equation (ODE) form, dynamic constraints with distributed variables (partial differential equations (PDEs)), as well as dynamical constraints with discrete–continuous algebraic path constraints in the differential-algebraic equation (DAE) formulation. The optimization subject to the dynamical constraints is commonly known as dynamical optimization.
Moreover, solving the model equation system is a difficult task, because the obtained solution trajectories depend on many particular situations that may arise. The initial conditions for the performed numerical computations, as well as the course of the input variables can have a decisive influence on the numerical simulations and their final result. In the other words, the features, such as, e.g., model instability and its stiffness, can vary during an iterative optimization procedure. Therefore, in each computation step, there is a possibility that the computations can fail [18]. This is especially true when the initial solution is far from the final result.
In the literature, there are two main perspectives on the optimized equation system treatment. The first one comes from an obvious observation that in the actual process, all physical relations and laws must be always fulfilled. On this basis, the processes can be optimized in such a way that the model equations are always satisfied during the performed numerical calculations [19]. In this case, according to the parametrization methodology used, the dynamical optimization tasks result often in small- or medium-scale nonlinear optimization problems [20]. The second view is definitely different in this aspect. That is, the mathematical equations of a process may be violated during the optimization procedure. However, they should be met at the end of the last iteration to define a useful final solution. This methodology can be observed in the direct transcription method [21]. Therefore, there are two main ways for optimization with dynamical constraints: the sequential, as well as the simultaneous approaches.
The numerical sequential approaches for dynamic optimization are strongly based on the assumption that there is an available numerical procedure that is able to obtain solution trajectories satisfying the model equations. This assumption seems to be difficult to accept, because the observed increasing precision and complexity of technological processes are reflected in mathematical models, which are often highly nonlinear, unstable, numerically ill-conditioned, and possibly multi-stage [22,23,24]. Currently, simulation studies concerning the new solutions in the field of heat and mass transfer engineering indicate that an exact numerical solution of the differential-algebraic model of the system may not be possible [25]. This is especially true for new advanced mathematical models that are built according to the white-box approach. Moreover, by the appropriate selection of the model parameters, one can freely influence the numerical conditioning of the considered model equation system [26].
To improve the required stability condition, the multiple-shooting approach can be applied. This method is often used in numerical simulations of the nonlinear, as well as multi-stage production systems [27]. The multiple-shooting method can be combined together with other modifications, to ensure a failure-free operation of the designed computational algorithms [28]. Recently, to parametrize the trajectory described by the dynamical equations, variability constraints have been proposed [29]. Therefore, the appropriate model of the parametrization procedures can be applied to rewrite the optimization task in a well-tractable form.
Some of the most-often-used parametrization approaches result in large-scale nonlinear optimization tasks. Moreover, methodologies such as the direct transcription method [5] and collocation-based approaches [20] require experience in the numerical treatment of the differential-algebraic constraints. On the other hand, they are independent of the external computational procedures for the DAE system solution. Although the fully parametrization methods are able to efficiently co-operate with large-scale numerical optimization procedures, the computational experience indicates that the external DAE solvers can be applied for some classes of constraints and thus reduce the dimension of the optimization task significantly. It is worth noticing that medium-scale optimization problems can be successfully solved by personal computers. Therefore, the use of specialized computing stations seems not to be necessary.
The problem considered in this article is to overcome the difficulties associated with solving a system of the nonlinear differential-algebraic equations in a sequential optimization approach. One of the most important issues discussed in this work is an improvement of the optimization task’s tractability. This problem was considered in the context of a homotopy method, which was adjusted for solving optimization tasks with the DAE constraints [30].
The main contributions of this article are:
  • The design of the α -model parametrization procedure as a combination of homotopy and the multiple shooting method;
  • The implementation of the α DAE model optimization algorithm;
  • The application of the α DAE model optimization algorithm for the design of a counter-flow exchanger.
In the presented solution method, a well-known homotopy-based approach was used. Additionally, the designed method has never been used before to solve systems of differential- algebraic equations. Therefore, it is a significant extension of the applicability area of homotopy in solving optimization tasks subject to highly nonlinear differential-algebraic constraints.
Based on the possibilities given by the homotopy and multiple-shooting method, an α DAE model optimization algorithm was designed and implemented. The detailed discussion of the considered optimization task, a formula of the model constraints, as well as the features of the new methodology are discussed in the next sections. The optimization problem taken into account is formulated in Section 2. The α -model parametrization procedure is introduced in Section 3. Then, the main steps of the α DAE model optimization algorithm are presented in Section 4. An application of the new approach to the design task of a heat and mass transfer process is described in Section 5. Finally, the presented considerations are concluded in Section 6.

2. The Problem Formulation

Let us consider a classical optimization task subject to the differential-algebraic model equations:
min u ( t ) F ( y ( t ) , z ( t ) , u ( t ) , p , t )
s.t
( D A E ) y ˙ ( t ) = f ( y ( t ) , z ( t ) , u ( t ) , p , t ) 0 = g ( y ( t ) , z ( t ) , u ( t ) , p , t ) t [ t 0 t f ] y ( t 0 ) = y 0 z ( t 0 ) = z 0
where:
F : R n y × R n z × R n u × R n p × R R
is an optimized performance index, R denotes a set of real numbers, y ( t ) R n y is a vector of state variables modeled by differential equations with y ˙ ( t ) = d y ( t ) d t , and z ( t ) R n z represents a vector of state variables described by algebraic constraints. Moreover, u ( t ) R n u denotes a vector of input functions; p R n p is a vector of global constant parameters; t R is an independent variable with a known a priori range t [ t 0 t f ] . The considered relations take the form of the differential-algebraic equations in a semi-explicit form with:
f : R n y × R n z × R n u × R n p × R R n y g : R n y × R n z × R n u × R n p × R R n z
To solve the model equations (2), consistent initial conditions:
[ y ( t 0 ) z ( t 0 ) ] T = [ y 0 z 0 ] T
need to be provided. For a given initial value of the input function u ( t 0 ) , the consistent initial conditions must fulfill the relation:
g ( y 0 , z 0 , u ( t 0 ) , p , t 0 ) = 0 ,
which is equivalent to the algebraic constraints at the point t 0 of the independent variable domain.
It is worth explaining what the main difference between the differential-algebraic equations and differential-algebraic constraints is. The DAEs in their classical understanding can be solved by specialized single- or multi-step numerical schemes [31]. For the given consistent initial conditions (6), the DAEs (2) can be solved by Gear’s method or modified Runge–Kutta procedures [32]. Finally, starting from the consistent initial conditions, a set of feasible pointwise solutions can be found. This set can be further used to construct the solution trajectories y ( t ) and z ( t ) . On the other hand, there is a group of methods that treat the DAE relations as the constraint system. While searching for a solution, the imposed restrictions do not have to be met. Even the starting solution may be infeasible. Finally, only the last result of the searching procedure should meet all of the model equations in the form of the differential-algebraic constraints. Therefore, it is possible to find a feasible solution without the knowledge about an explicit formulation of the constraint functions. The effectiveness of this approach in the context of simultaneous optimization has been described in the literature [33,34].
Although some solution procedures for the differential-algebraic equations have been just listed, it is worth presenting the main features of the direct shooting method—an approach designed for solving the highly nonlinear DAE systems. To solve the system of DAEs (2) characterized by a highly nonlinear dynamics, according to the multiple-shooting approach, the range of the independent variable is divided into an assumed number N of subintervals. Then, in each subinterval t i [ t 0 i t f i ] , for i = 1 , , N and:
t 0 = t 0 1 < t f 1 = t 0 2 < < t f N 1 = t 0 N < t f N = t f ,
the DAE system can be considered independently in each subinterval:
( D A E i ) y ˙ i ( t i ) = f ( y i ( t i ) , z i ( t i ) , u i ( t i ) , p , t i ) 0 = g ( y i ( t i ) , z i ( t i ) , u i ( t i ) , p , t i ) y i ( t 0 i ) = y 0 i z i ( t 0 i ) = z 0 i u i ( t i ) = u i = const t i [ t 0 i t f i ] i = 1 , , N
where y 0 i R n y i and z 0 i R n z i denote the vectors of the initial conditions for the differential and algebraic state trajectories, respectively. It was assumed that the input function u i ( t i ) is constant in each subinterval.
The presented procedure, known as the multiple-shooting method, is a basis for computational optimization algorithms for problems with a highly nonlinear dynamics. This is because the dynamical relations can be solved more accurately on shorter subintervals than over one long range. Moreover, the initial conditions vectors y 0 i and z 0 i , with the state trajectories’ continuity requirements:
y i ( t f i ) y i + 1 ( t 0 i + 1 ) = 0 z i ( t f i ) z i + 1 ( t 0 i + 1 ) = 0 i = 1 , , N 1
can be used to introduce additional discrete process constraints. Therefore, inequality constraints on the differential state trajectory:
y L y ( t ) y U t [ t 0 t f ]
with y L , y U R , can be effectively considered in the following pointwise form:
y L y i ( t 0 i ) y U i = 1 , , N .
The presented multiple-shooting approach enables us to approximate an infinite-dimensional optimization task by a finite-dimensional formulation. The further considerations concern a new approach for optimization according to the sequential approach rules, where the differential-algebraic Equation (8) is fulfilled in each step of a computational procedure.
Finally, the application of the multiple-shooting approach can be used to transform the classical task (1) and (2) to an optimization problem with pointwise-continuous constraints:
min X F ( X )
where X is a matrix of decision variables:
X = ( x y 0 1 ) T ( x z 0 1 ) T ( x u 1 ) T ( x y 0 2 ) T ( x z 0 2 ) T ( x u 2 ) T ( x y 0 N ) T ( x z 0 N ) T ( x u N ) T R N × ( n y + n z + n u )
and the objective function:
F : R N × ( n y + n z + n u ) R
should be optimized subject to the parametrized DAEs:
( D A E i ( X ) ) y ˙ i ( t i ) = f ( y i ( t i ) , z i ( t i ) , u i ( t i ) , p , t i ) 0 = g ( y i ( t i ) , z i ( t i ) , u i ( t i ) , p , t i ) y i ( t 0 i ) = x y 0 i z i ( t 0 i ) = x z 0 i u i ( t i ) = x u i t i [ t 0 i t f i ] i = 1 , , N ,
the continuity constraints of the state trajectories:
y i ( t f i ) x y 0 i + 1 = 0 z i ( t f i ) x z 0 i + 1 = 0 i = 1 , , N 1 ,
as well as the initial conditions consistency constraints (6) in the new parametrized form:
g ( x y 0 i , x z 0 i , x u i , p , t 0 i ) = 0 i = 1 , , N .
The presented reformulation is a consequence of the multiple-shooting approach. Moreover, the continuous model equations can be solved, independently in each subinterval, by an outer numerical procedure. It is worth noticing that the application of the outer DAE solver is easy to implement and more flexible, because various numerical procedures can be used, such as ode15s in MATLAB or NDSolve in Mathematica.
On the other hand, the full parametrization of the state trajectories leads us to a problem formulation that is independent of the outer DAE system solution procedure. Unfortunately, it needs, in many cases, much more computational effort and experience. Then, to obtain a feasible solution, an efficient large-scale nonlinear programming procedure is necessary. In the full-parametrization approach, computational experience seems to be crucial for an efficient solution algorithm design and implementation. Therefore, in the present work, the following assumptions were made.
Assumption 1.
The system of differential-algebraic equations (15) should be solved by an outer numerical procedure.
Assumption 2.
The D A E i ( X ) systems (15) cannot be solved for such initial conditions:
{ [ x y 0 i x z 0 i x u i ] } i = 1 N
which are far from the feasible solution.
Assumption 3.
The co-operated nonlinear programming procedure enables us to solve small- and medium-sized tasks.
Assumptions 1 and 2 indicate that an appropriate numerical procedure for solving the differential-algebraic system (15) is available. Moreover, the consistent initial conditions should be given as well, because a complete (or dense) survey of a multi-dimensional solution space is not an appropriate way for solving real-life technological design and optimization tasks (Assumption 2). Finally, Assumption 3 blocks the possibility of a full parametrization of the optimization problem.
According to the presented multiple-shooting parametrization procedure, as well as Assumptions 1–3, which reflect the available computing resources, the α -model parametrization algorithm is proposed. The α -model parametrization is based on influencing the variability and nonlinearity of the differential-algebraic system:
( α D A E ) y ˙ α ( t ) = α f ( y α ( t ) , z ( t ) , u ( t ) , p , t ) 0 = g ( y α ( t ) , z ( t ) , u ( t ) , p , t ) t [ t 0 t f ] y α ( t 0 ) = y α 0 z ( t 0 ) = z 0 u ( t 0 ) = u 0
with a constant α [ 0 1 ] .

3. The α-Model Parametrization Algorithm

The differential equation in ordinary form:
y ˙ α ( t ) = α f ( y α ( t ) , z ( t ) , u ( t ) , p , t )
with α [ 0 1 ] , can be treated according to an explicit definition, as the variability of the state trajectory y α ( t ) . In other words, the right-hand side of Equation (20) indicates how rapidly the state y α ( t ) varies or changes its value. This interpretation seems to be valid for these particular equations, especially if the state variability is constant or strictly constrained. Moreover, a comparison between the original dynamical equation with its approximation can result in some insight into the range of their similarity.
In a general nonlinear case, the variability rate, as well as its direction cannot be assumed to be constant even on a relatively small subinterval. This situation is often met in the design of heat and mass transfer processes. The proposition discussed in this work is to influence the variability by the α -parameter multiplication. Then, the obtained solution, which is feasible for a given value of α , can be used as an initial point in further computations with higher α values.
The α -model parametrization approach enables us to consider the α DAE model in three special cases:
  • If α = 0 , then the DAE model (2) takes the form:
    ( α D A E ) y ˙ α ( t ) = 0 0 = g ( y α ( t ) , z ( t ) , u ( t ) , p , t ) t [ t 0 t f ] y α ( t 0 ) = y α 0 z ( t 0 ) = z 0 u ( t 0 ) = u 0
    In this case, the dynamics of the system is completely reduced. For the assumed values y α 0 , the problem is transformed into an optimization task with a pure algebraic system of constraints;
  • If α = 1 , then the α DAE model (19) is equivalent to the original one (2);
  • If α ( 0 , 1 ) , then the α DAE system (19) can be characterized by a dynamics similar to one of the extreme cases (1 or 2). The similarity can be influenced directly by the α -parameter. Moreover, the value of α can reflect the robustness and efficiency of the applied numerical method for solving the differential-algebraic equations, as well as the progress of the optimization procedure.
The similarity between the original DAEs (2) and α DAE models (19) can be approximated with the trapezoidal rule:
t 0 t f y ˙ ( t ) y ˙ α ( t ) d t t 0 t f | y ˙ ( t ) y ˙ α ( t ) | d t i = 0 m 1 1 2 | y ˙ ( t i ) y ˙ α ( t i ) | + | y ˙ ( t i + 1 ) y ˙ α ( t i + 1 ) | | t f t 0 | m = | t f t 0 | m i = 0 m 1 1 2 | f ( · ; t i ) α f ( · ; t i ) | + | f ( · ; t i + 1 ) α f ( · ; t i + 1 ) | = | t f t 0 | m i = 0 m 1 1 2 | f ( · ; t i ) | ( 1 α ) + | f ( · ; t i + 1 ) | ( 1 α ) = | t f t 0 | m i = 0 m 1 1 2 | f ( · ; t i ) | + | f ( · ; t i + 1 ) | ( 1 α ) = | t f t 0 | m ( 1 α ) i = 0 m 1 1 2 | f ( · ; t i ) | + | f ( · ; t i + 1 ) |
with an assumed value of m N + , and N + denotes a set of natural numbers greater than zero. The terms ( 1 α ) and | f ( · ; t i ) | + | f ( · ; t i + 1 ) | clearly indicate that the similarity is dependent on the following features:
  • The variability of the original system of DAEs (2);
  • The actual considered value of the α -parameter.
It can be clearly observed that the value of α can be used to influence the similarity between the original and α DAE, as well as to change the variability of the considered α DAE model (19). The α -parameter can be modified iteratively, depending on the available numerical procedures.

3.1. An Extension for a Multiple-Shooting Method

For an assumed value of the parameter α , the α DAE (19) model can be solved with a multiple-shooting approach. The reformulation takes the following form:
( α D A E i ( X α ) ) y ˙ α i ( t i ) = α f ( y α i ( t i ) , z i ( t i ) , u i ( t i ) , p , t i ) 0 = g ( y α i ( t i ) , z i ( t i ) , u i ( t i ) , p , t i ) y α i ( t 0 i ) = x y α 0 i z i ( t 0 i ) = x z 0 i u i ( t i ) = x u i t i [ t 0 i t f i ] i = 1 , , N .
The matrix of decision variables is similar to the matrix X (13), designed for the original DAE in the multiple-shooting formulation:
X α = ( x y α 0 1 ) T ( x z 0 1 ) T ( x u 1 ) T ( x y α 0 2 ) T ( x z 0 2 ) T ( x u 2 ) T ( x y α 0 N ) T ( x z 0 N ) T ( x u N ) T R N × ( n y + n z + n u )

3.2. The Context of the Homotopy Method

The α -model parametrization approach can be considered as a special case of the homotopy method. In its classical approach, homotopy is treated as a way to solve a difficult task with an appropriate initial solution. The initial solution should be a result obtained for an easier task, which in some sense is similar to the original one. Then, the solution of the difficult task can be obtained iteratively by solving combined difficult and easy problems. The homotopy for a system of dynamical equations in the formula (19) is defined as follows.
Let f, f ˜ , and H be continuous transformations such that:
f , f ˜ : R n y × R n z × R n u × R n p × R R n y
α [ 0 1 ] R
H ( f , α ) = α f ( · )
H ( f , α ) : R n y × R R n y
with:
y ˙ ( t ) = f ( · ) , y ˙ α ( t ) = α f ( · ) , y ˙ 0 n y × 1 ( t ) 0 n y × 1 = f ˜ ( · )
and:
H ( f , α = 0 ) = α f ( · ) 0 n y × 1 = f ˜ ( · )
H ( f , α = 1 ) = α f ( · ) = f ( · )
then:
f f ˜
Example 1.
The presented approach can be treated as a special case of the general homotopy relation:
H ( f , α ) = f ˜ ( · ) + α f ( · ) f ˜ ( · ) = 0 n y × 1 + α f ( · ) + 0 n y × 1 = α f ( · )
where:
  • for α = 0 :     H ( f , α = 0 ) 0 n y × 1 = f ˜ ( · ) ;
  • for α = 1 :     H ( f , α = 1 ) = f ( · ) .
The homotopy relation of the dynamical parts of α DAE (19) and the original DAE (2) will result in a valuable guess of the initial solutions y α i ( t 0 i ) and z i ( t 0 i ) for i = 1 , , N . The appropriate guess of the decision variables X α is crucial for the effective performance of the optimization procedure. Then, the obtained solution can be iteratively improved together with the changed value of the α -parameter.

4. The New Solution Procedure

The stated optimization problem subject to the nonlinear differential-algebraic constraints takes a new form according to the multiple-shooting approach. Then, the optimization task is reformulated by the α -model parametrization procedure. Finally, the ordered processing and computational steps of the designed procedure are presented as the α DAE model optimization algorithm.
The α DAE model optimization algorithm:
Step 1. Define the optimized objective function according to Equation (1) with the system
            of differential-algebraic constraints (2)
Step 2. Define N R and apply the multiple-shooting approach to obtain:
            - a parametrized form of the objective function (12),
            - the matrix of the initial solution (13).
            - the systems of the D A E i , for i = 1 , , N , (15)
            - the continuity constraints (16),
            - the initial conditions’ consistency constraints (17)
Step 3. Apply the α -model parametrization algorithm to obtain:
            - the systems α D A E i , for i = 1 , , N , (23)
            - a matrix X α (24)
Step 4. Define n N + and a sequence { α k } k = 1 n with α 1 = 0 and α n = 1
Step 5. For k = 1 to n, solve
                   min X α k F ( X α k )
            subject to
                   α k D A E i ( X α k ) , for i = 1 , , N , (23)
                  the continuity constraints (16),
                  the initial conditions’ consistency constraints (17),
            to obtain X α k , and substitute X α k + 1 0 = X α k
Step 6. The matrix X α n is a final solution.
The finite number of n iterations needs to be assumed. Then, the unknown values in the decision variables’ matrix X α n can be obtained.
The computational complexity of the proposed algorithm is related to two main aspects:
  • The complexity of the algorithm applied to solve finite-dimensional optimization tasks with pointwise-continuous constraints;
  • The number n of { α k } with k = 1 , , n .
The computational effort related to the application of the α DAE model optimization algorithm is dependent on the sequence of the α k parameters, the number of multiple-shooting subintervals, as well as the size of the DAE system:
n sequence of the { α k } parameters × N shooting subintervals × ( n y + n z + n u ) size of the DAE system
The computational effort related to the problem solving with the proposed algorithm can improve the efficiency of the applied numerical optimization procedure. The appropriate values of the initial solution can prevent long-term calculations and the possibility of the premature termination of the algorithm as a result of finding a local minimum. The efficiency of the proposed procedure was tested in the task of a heat and mass transfer system’s design.

5. An Application in the Design of a Heat and Mass Transfer Process

The α DAE model optimization algorithm was implemented in the MATLAB R2021b environment. Although the considered counter-flow exchanger design task has been discussed previously in other articles [26,35,36], the problem formulation, as well as the solution procedure considered in this work were substantially different.
The problem consisted of the objective function and the system of differential-algebraic equations in a semi-explicit form:
min y 1 ( 0 ) ( y 1 ( t f ) 30 ) 2
subject to
y ˙ 1 ( t ) = B · ( z 1 ( t ) y 1 ( t ) ) / t f y ˙ 2 ( t ) = C · ( z 2 ( t ) y 2 ( t ) ) / t f y ˙ 3 ( t ) = C · ( z 3 ( t ) y 3 ( t ) ) / t f 0 = E 1 B · ( z 1 ( t ) y 1 ( t ) ) / t f C · ( z 2 ( t ) y 2 ( t ) ) / t f E 2 C · ( z 3 ( t ) y 3 ( t ) ) / t f 0 = z 2 ( t ) ( z 1 ( t ) D · ( y 1 ( t ) z 1 ( t ) ) ) 0 = z 3 ( t ) 0.622 · z 4 ( t ) P b z 4 ( t ) 0 = z 4 ( t ) 6.107 · e 0.0726 · z 2 ( t ) 2.912 · 10 4 · ( z 2 ( t ) ) 2 + 8.33 · 10 7 · ( z 2 ( t ) ) 3
The physical interpretation of the variables in the DAE model (36) is presented in Table 1.
Additionally, a vector of the initial conditions was considered:
y ( 0 ) = c y 1 ( 0 ) 24.0 10.4 · 10 3
with global parameters:
p = B C D E 1 E 2 P b = 40.0 40.0 0.058 1.0 2.5 × 10 3 1000.0
Moreover, a range of the independent variable domain was assumed:
t [ 0.0 t f ] = [ 0.0 1.0 ] .
The considered objective function with the system of differential-algebraic equations was solved according to the rules of the α DAE model optimization algorithm:
  • The number of shooting subintervals N = 20 ;
  • It was assumed that the α parameter takes the following values:
    α = { 0.0 , 0.1 , 0.2 , 0.3 , 0.4 , 0.5 , 0.6 , 0.7 , 0.8 , 0.9 , 1.0 } ;
  • The solution trajectories of the parametrized α D A E i models were computed by an outer function ode15s, which belongs to the MATLAB computational environment. The applied solver delivers support to the calculations of the consistent initial conditions;
  • The MATLAB function fmincon was applied as a numerical optimization procedure to solve the new optimization task with the parametrized model constraints. The numerical values of the objective, as well as constraint functions were calculated with the outer ode15s solver.
The chosen value of N = 20 subintervals resulted in:
N × n y 1 + ( N 1 ) × n y 2 + ( N 1 ) × n y 3 = 58
decision variables related to the initial values of the differential variables. In this special case, the number of decision variables was not affected by the size of z ( t ) because the initial values of the algebraic state trajectories were computed by the ode15s procedure. However, to improve the computations, it is worth delivering the approximated values of z i ( t 0 i ) for i = 1 , , N .
The parameters B and C are related to the rate of change of the state variables. Therefore, they can represent the physical features of the exchanger, such as, e.g., the number of transfer units. Unfortunately, the approaches such as single- or multiple-shooting were unable to solve the considered task for the higher values of the parameters B and C. The applicability range of the classical procedures has been clearly indicated in the previous research. In particular, in [26], it was numerically tested that a single-shooting procedure is efficient for B and C less than 16. Recently, a multiple-shooting approach was used to solve this task for values of B and C equal to 30 [35]. Now, this task is for the first time solved for higher values of the parameters B and C. Therefore, an extension of the computational capabilities in the multiple-shooting approach is a milestone of this research.
The obtained solution trajectories, for various values of α , are graphically presented in Figure 1, Figure 2 and Figure 3, where the shooting subintervals are depicted by the dotted lines. Then, the α DAE i equations were solved by the applied DAE solver. Finally, the continuity of the trajectories was forced by the imposed continuity constraints. The presented results cannot be compared with other solutions, because the computations were not performed for these special values in the vector p (38). The presented results have a very original character and can be treated as a reference for further research in this field in the future.

6. Conclusions

In the present study, two main computational difficulties were considered: the problem dimensionality and the lack of an appropriate initial solution. The problem dimensionality was related to the selected way of the task parametrization. The mere fact of parametrization has the effect that an infinitely dimensional problem has a finite size. Then, the size of the problem can be adjusted according to the solution procedure used, as well as the available computing resources. The combination of the multiple-shooting method with the sequential approach for the optimization results with medium-sized nonlinear optimization problems can be solved on a personal computer. It is important to notice that the application of an outer DAE solution approach is necessary. The numerical optimization algorithm should co-operate with the outer DAE solver to obtain information about an objective function and its gradient. The appropriate initial conditions can be provided by the iterative steps of the homotopy-based approach.
Finally, the presented components were used to create a general method for solving difficult dynamical optimization tasks. The α DAE model optimization algorithm can be implemented according to the main rules given in this work, but a specialized numerical procedures can be freely chosen by the user. The steps of the solution method were strictly defined, but this does not eliminate the possibility of adapting it to a specific real-life task.
The effectiveness of the new algorithm was tested on a heat and mass transfer design problem. This is one of a large number of engineering tasks where physical laws can be used to build a computer simulation model. This classical problem is difficult from a computational point of view, because the wanted solution features are reflected in the nonlinear problem functions. The observed nonlinear relations, as well as the lack of a trustworthy initial solution justify the need for the research presented in this work, as well as and the necessity to develop advanced numerical optimization algorithms.

Funding

This research was funded by the Department of Control Systems and Mechatronics at Wrocław University of Science and Technology.

Acknowledgments

The author would like to thank the anonymous Reviewers for thoroughly reading the manuscript and providing valuable comments.

Conflicts of Interest

The author declares no conflict of interest. The foundershad no role in the design of the study; in the collection, analyses, or interpretation of the data; in the writing of the manuscript; nor in the decision to publish the results.

Abbreviations

F scalar-valued performance index
N + set of natural numbers greater than zero
R set of real numbers
B, C, D, E 1 , E 2 parameters of the counter-flow exchanger model
Fscalar-valued objective function
Nnumber of shooting subintervals
P b atmospheric pressure
Tmatrix transposition
X matrix of decision variables
eNeper number
f, f ˜ functions used to describe the differential part in the DAE system
gfunction used to describe the algebraic part in the DAE system
nlength of a series { α k }
n a size of vector a
pvector of global constant parameters
tindependent variable
uvector of input functions
yvector of differential state trajectory
zvector of algebraic state trajectory
x vector of decision variables
α factor in the parametrization approach
superscripts
Llower bound
Uupper bound
ii-th subinterval
solution in a current iteration
subscripts
0initial value
ffinal value
knumber of current iterations
α variable in α -parametrization

References

  1. Burnak, B.; Pistikopoulos, E.N. Integrated process design, scheduling, and model predictive control of batch processes with closed-loop implementation. AIChE J. 2020, 66, e16981. [Google Scholar] [CrossRef]
  2. Atmaram, L.L.; Kodamana, H. Successive Linearization based Stochastic Model Predictive Control for batch processes described by DAEs. IFAC-PapersOnLine 2020, 53, 380–385. [Google Scholar] [CrossRef]
  3. Fidanova, S.; Roeva, O. Influence of Ant Colony Optimization Parameters on the Algorithm Performance. In Large-Scale Scientific Computing LSSC 2017; Lirkov, I., Margenov, S., Eds.; Lecture Notes in Computer Science; Springer: Cham, Switzerland, 2018; Volume 10665. [Google Scholar] [CrossRef]
  4. Pandelidis, D.; Drąg, M.; Drąg, P.; Worek, W.; Cetin, S. Comparative analysis between traditional and M-Cycle based cooling tower. Int. J. Heat Mass Transf. 2020, 159, 1–13. [Google Scholar] [CrossRef]
  5. Betts, J.T. Practical Methods for Optimal Control and Estimation Using Nonlinear Programming; SIAM: Philadelphia, PA, USA, 2010. [Google Scholar] [CrossRef]
  6. Gong, Y.; Guo, Y.; Ma, G.; Guo, M. Mars entry guidance for mid-lift-to-drag ratio vehicle with control constraints. Aerosp. Sci. Technol. 2020, 107, 106361. [Google Scholar] [CrossRef]
  7. Singh, A.P.; Ghoshdastidar, P.S. Computer Simulation of Heat Transfer in Alumina and Cement Rotary Kilns. ASME J. Thermal Sci. Eng. Appl. 2022, 14, 031001. [Google Scholar] [CrossRef]
  8. Najim, A.; Krishnan, S. A similarity solution for heat transfer analysis during progressive freeze-concentration based desalination. Int. J. Therm. Sci. 2022, 172, 107328. [Google Scholar] [CrossRef]
  9. Li, J.; Chen, J.; Chen, Y.; Luo, X.; Liang, Y.; Yang, Z. Effectiveness of actively adjusting vapour-liquid in the evaporator for heat transfer enhancement. Appl. Therm. Eng. 2022, 200, 117696. [Google Scholar] [CrossRef]
  10. Najib, A.; Zarrella, A.; Narayanan, V. Development of g-functions for large diameter shallow bore helical ground heat exchangers. Appl. Therm. Eng. 2022, 200, 117620. [Google Scholar] [CrossRef]
  11. Ghrissi, W.; Promis, G.; Langlet, T.; Douzane, O.; Chouikh, R.; Guizani, A. Study of the influence of input parameters in an air channel on mass and heat transfer phenomena within a wall saturated with water: Application to the renovation of old wet buildings. J. Build. Perform. Simul. 2021, 15, 81–96. [Google Scholar] [CrossRef]
  12. Miettinen, K. Nonlinear Multiobjective Optimization; Springer: Boston, MA, USA, 1998. [Google Scholar] [CrossRef]
  13. Nocedal, J.; Wright, S. Numerical Optimization; Springer: New York, NY, USA, 2006. [Google Scholar] [CrossRef] [Green Version]
  14. Fletcher, R.; Leyffer, S. Solving mathematical programs with complementarity constraints as nonlinear programs. Optim. Methods Softw. 2004, 19, 15–40. [Google Scholar] [CrossRef]
  15. Hu, J.; Mitchell, J.E.; Pang, J.-S.; Yu, B. On linear programs with linear complementarity constraints. J. Glob. Optim. 2012, 53, 29–51. [Google Scholar] [CrossRef]
  16. Ye, J.J. Optimality conditions for optimization problems with complementarity constraints. SIAM J. Optim. 1999, 9, 374–387. [Google Scholar] [CrossRef]
  17. Sahinidis, N.V. Mixed-integer nonlinear programming. Optim. Eng. 2019, 20, 301–306. [Google Scholar] [CrossRef] [Green Version]
  18. Beykal, B.; Onel, M.; Onel, O.; Pistikopoulos, E.N. A data-driven optimization algorithm for differential algebraic equations with numerical infeasibilities. AIChE J. 2020, 66, e16657. [Google Scholar] [CrossRef] [PubMed]
  19. Caspari, A.; Lüken, L.; Schäfer, P.; Vaupel, Y.; Mhamdi, A.; Biegler, L.T.; Mitsos, A. Dynamic optimization with complementarity constraints: Smoothing for direct shooting. Comput. Chem. Eng. 2020, 139, 106891. [Google Scholar] [CrossRef]
  20. Yancy-Caballero, D.M.; Biegler, L.T.; Guirardello, R. Large-scale DAE-constrained optimization applied to a modified spouted bed reactor for ethylene production from methane. Comput. Chem. Eng. 2018, 113, 162–183. [Google Scholar] [CrossRef]
  21. Kelley, M.T.; Baldick, R.; Baldea, M. A direct transcription-based multiple-shooting formulation for dynamic optimization. Comput. Chem. Eng. 2020, 140, 106846. [Google Scholar] [CrossRef]
  22. Cao, Y.; Acevedo, D.; Nagy, Z.K.; Laird, C.D. Real-time feasible multi-objective optimization based nonlinear model predictive control of particle size and shape in a batch crystallization process. Control. Eng. Pract. 2017, 69, 1–8. [Google Scholar] [CrossRef]
  23. Hara, K.; Watanabe, M. Application of the DAE approach to the nonlinear sloshing problem. Nonlinear Dyn. 2020, 99, 2065–2081. [Google Scholar] [CrossRef]
  24. Xia, S.; Ding, Z.; Shahidehpour, M.; Chan, K.W.; Bu, S.; Li, G. Transient Stability-Constrained Optimal Power Flow Calculation With Extremely Unstable Conditions Using Energy Sensitivity Method. IEEE Trans. Power Syst. 2021, 36, 355–365. [Google Scholar] [CrossRef]
  25. Pandelidis, D.; Cichoń, A.; Pacak, A.; Drąg, P.; Drąg, M.; Worek, W.; Cetin, S. Water desalination through the dewpoint evaporative system. Energy Convers. Manag. 2021, 229, 1–19. [Google Scholar] [CrossRef]
  26. Drąg, P.; Styczeń, K. A chain smoothing Newton method for heat and mass transfer control with discrete variability DAE models. Int. Commun. Heat Mass Transf. 2021, 120, 105056. [Google Scholar] [CrossRef]
  27. Assassa, F.; Marquardt, W. Dynamic o optimization using adaptive direct multiple-shooting. Comput. Chem. Eng. 2014, 60, 242–259. [Google Scholar] [CrossRef]
  28. Drąg, P. A shortened time horizon approach for optimization with differential-algebraic constraints. In Proceedings of the 16th Conference on Computer Science and Intelligence Systems, Sofia, Bulgaria, 2–5 September 2021; pp. 211–215. [Google Scholar]
  29. Drąg, P.; Styczeń, K. The new approach for dynamic optimization with variability constraints. In Recent Advances in Computational Optimization: Results of the Workshop on Computational Optimization WCO 2017; Fidanova, S., Ed.; Springer: Cham, Switzerland, 2019; pp. 35–46. [Google Scholar] [CrossRef]
  30. Zanelli, A.; Quirynen, R.; Jerez, J.; Diehl, M. A Homotopy-based Nonlinear Interior-Point Method for NMPC. IFAC-PapersOnLine 2017, 50, 13188–13193. [Google Scholar] [CrossRef]
  31. Brenan, K.E.; Campbell, S.L.; Petzold, L.R. Numerical Solution of Initial-Value Problems in Differential-Algebraic Equations; Society for Industrial and Applied Mathematics; SIAM: Philadelphia, PA, USA, 1995. [Google Scholar] [CrossRef]
  32. Hairer, E.; Lubich, C.; Roche, M. The Numerical Solution of Differential-Algebraic Systems by Runge–Kutta Methods; Lecture Notes in Mathematics; Springer: Cham, Switzerland, 1989; Volume 1409. [Google Scholar]
  33. Ma, Y.; Chen, X.; Eason, J.P.; Biegler, L.T. Dynamic optimization for grade transition processes using orthogonal collocation on molecular weight distribution. AIChE J. 2019, 65, 1198–1210. [Google Scholar] [CrossRef]
  34. Lin, X.; Chen, X.; Biegler, L.T.; Feng, L.F. A modified collocation modeling framework for dynamic evolution of molecular weight distributions in general polymer kinetic systems. Chem. Eng. Sci. 2021, 237, 116519. [Google Scholar] [CrossRef]
  35. Drąg, P. A direct optimization algorithm for problems with differential-algebraic constraints: Application to heat and mass transfer. Appl. Sci. 2020, 10, 9027. [Google Scholar] [CrossRef]
  36. Pandelidis, D.; Anisimov, S.; Worek, W.M. Performance study of counter-flow indirect evaporative air coolers. Energy Build. 2015, 109, 53–64. [Google Scholar] [CrossRef]
Figure 1. The trajectory of the state variable y 1 ( t ) .
Figure 1. The trajectory of the state variable y 1 ( t ) .
Applsci 12 00890 g001
Figure 2. The trajectory of the state variable y 2 ( t ) .
Figure 2. The trajectory of the state variable y 2 ( t ) .
Applsci 12 00890 g002
Figure 3. The trajectory of the state variable y 3 ( t ) .
Figure 3. The trajectory of the state variable y 3 ( t ) .
Applsci 12 00890 g003
Table 1. The physical interpretation of the state variables in the model of a counter-flow exchanger.
Table 1. The physical interpretation of the state variables in the model of a counter-flow exchanger.
VariableDescriptionType
y 1 ( t ) temperature in the 1st channel (°C)differential state
y 2 ( t ) temperature in the 2nd channel (°C)differential state
y 3 ( t ) humidity ratio in the 2nd channel (kg/kg)differential state
z 1 ( t ) temperature of the plate surface in the 1st channel (°C)algebraic state
z 2 ( t ) temperature of the plate surface in the 2nd channel (°C)algebraic state
z 3 ( t ) humidity ratio on the plate surface in the 2nd channel (kg/kg)algebraic state
z 4 ( t ) the static pressure (h Pa)algebraic state
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Drąg, P. An α-Model Parametrization Algorithm for Optimization with Differential-Algebraic Equations. Appl. Sci. 2022, 12, 890. https://doi.org/10.3390/app12020890

AMA Style

Drąg P. An α-Model Parametrization Algorithm for Optimization with Differential-Algebraic Equations. Applied Sciences. 2022; 12(2):890. https://doi.org/10.3390/app12020890

Chicago/Turabian Style

Drąg, Paweł. 2022. "An α-Model Parametrization Algorithm for Optimization with Differential-Algebraic Equations" Applied Sciences 12, no. 2: 890. https://doi.org/10.3390/app12020890

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop