Keywords

1 Introduction

The development of civilization is associated with an increase in energy demand. In modern times a variety of technologies is used for generating electricity. Nuclear power is one of these technologies supposed to solve the problem of energy shortage. Assumptions proved to be wrong, as for the atom and other fuels [59]. People should look for alternatives. An important factor in obtaining energy is the amount of carbon dioxide produced, which contributes to climate change. It is assumed that it is impossible fully to eliminate fuel combustion resulting in carbon dioxide. Reducing emissions of CO \(_2\) in industrial processes is the optimal solution with regard to the interests of individual countries. The main activities that can reduce CO \(_2\) emissions include reduction of energy consumption, but significant reduction seems unlikely. There is also the possibility of increasing the use of carbon-free renewable energy sources such as solar, wind, hydropower, and geothermal resources [59]. Increasing the efficiency of energy conversion to useful energy, as the last element affecting the reduction of CO \(_2\) is a proposal the authors intend to develop based on the capabilities of artificial intelligence, in particular based on fuzzy logic. According to the authors the possibility of such process control, which improves combustion efficiency, whether in domestic or industrial stoves, and will reduce emissions of harmful compounds, is remarkable. The combustion process is a chemical reaction of oxidation that takes place between fuel and oxygen. The result is an exotherm and the formation of flue gases. The general process of burning coal is shown in a simplified chemical formula below.

$$\begin{aligned} C+O_2\rightarrow CO_2 + released \; heat \end{aligned}$$
(16.1)

The highest combustion temperature is obtained using the least amount of oxygen at which there is no free oxygen in the exhaust gas. In other words, the idea is that all the ingredients are oxidized to CO \(_2\), \(H_2O\), \(SO_2\). Oxygen-enriched combustion lowers the temperature giving a cooling effect. Combustion with oxygen depletion also reduces the temperature, thereby contributing to a partial combustion of the fuel. In contrast, a process that is desirable according to the literature [37] is called a stoichiometric process. The mixture in this embodiment is burned completely and exhaust gases contain neither fuel nor oxygen. Ensuring proper combustion, which depends on many factors (e.g., the calorific value of the fuel, the construction and function of the stove), may be a difficult control problem. Redefining Eq. 16.1 as the basic equation describing the relationship between the combustion components is represented by Eq. 16.2.

$$\begin{aligned} \frac{100}{CO_2}*\left[ CO_2 \right] +\frac{100}{21}*\left[ O_2 \right] +\left[ \frac{100}{CO_2}-\frac{79}{21} \right] *\left[ CO \right] =100 \end{aligned}$$
(16.2)

Equally Eq. 16.2 can be represented as an Ostwald graph [63], where this relationship for lignite is shown in Fig. 16.1. Using this graph allows regulation of the combustion process. When the measuring point is on the line between the axes of the carbon dioxide and oxygen, the carbon monoxide content is 0%. If a point is above the line it means that an error has occurred. The situation when the point is below the line in the combustion means that there is incomplete combustion and in the exhaust gas there is carbon monoxide in addition to carbon dioxide. Accordingly, Fig. 16.1 shows a coefficient \(\lambda \), which is expressed as \(\phi \). The general model of the stove on solid fuel for the purpose of this work is shown below Fig. 16.2. The diagram shows the essential elements, which are discussed later. Imprecision of factor borders accompanying the combustion process has contributed to the use of fuzzy logic. This is confirmed by numerous publications, where examples of the work are [30, 56]; especially important in the context of this article there is the study by [56]. Depicting a fuzzy system of monitoring carbon dioxide in the combustion process is a Takagi-Sugeno inference model [62]. Combining fuzzy logic with any process or phenomenon, in which we use a linguistic description of reality is a broad field of research. Lotfi A. Zadeh can be considered the creator of fuzzy logic. In 1965 this American professor published an article “Fuzzy Sets” [65] in the journal, Information and Control, defining the notion of a fuzzy set, where inaccurate information is described by values from the interval (0, 1).

Fig. 16.1
figure 1

Ostwald diagram for lignite based on [63]

Fig. 16.2
figure 2

Indicative graph of a solid fuel stove

It can also be said that the precursor of Zadeh’s achievements is the Polish mathematician Jan Łukasiewicz, who in the 1950s published an article on three-valued logic [39]. The formulation of the foundations of fuzzy logic and the involvement of the scientific community have contributed to the creation of many theories expanding this subject. One of them is the representation of the L-R fuzzy set. The authors Dubois and Prade in [16] introduced the limited membership functions of the two functions of the shape of L and R. The linear shape function operations on the numbers L-R gave the partial opportunity to reproduce results for the triangular membership function. In the case of multiplication, the resulting number of L-R led to enlarging the range introducing imprecise intervals.

We now depart from the genealogy of fuzzy logic development to address again the original problem, the process of controlling the stove on solid fuel. The authors’ inspiration to write this chapter was that the combustion process can benefit from the trend. The trend is visible when the stove water temperature rises to a specified level; the upward trend may be shaken by the excess of supplied oxidant. Oxygen contained in the exhaust gases and the quantitative composition result in the combustion process. For example, reaching the required water temperature during firing of the stove is associated with the fan modulation to 80–100% of power and leads to too lean a mixture. The effect of an excessive amount of oxidant is the cooling of the heat transfer medium. The water temperature decreases instead of increasing. Temporary and long-term ups and downs translate into the trend of the process [7,8,9, 11,12,13,14,15]. Another example might be the work of [6, 21, 38, 41,42,43, 57, 58], in which the authors use the trend as a direction in the problems of management accounting and in determining the internal rate of return (IRR) for investment or other issues of recognition attack computer networks described in [1,2,3,4], and also when talking about engineering solutions [7,8,9,10,11,12,13,14, 44,45,46,47,48,49, 60, 61, 68]. The opportunity to study the behavior of phenomena expressed as a trend in fuzzy logic is possible thanks to directing as proposed by the team of Professor W. Kosiński. The authors’ proposal [34] concerns the redefinition of fuzzy numbers as directed fuzzy numbers OFNs (Ordered Fuzzy Numbers), where the main advantage is the ability to solve a linear equation 16.3.

$$\begin{aligned} A+B=C \end{aligned}$$
(16.3)

where A, B are any Ordered Fuzzy Numbers for which the following equality should occur.

$$\begin{aligned} A=C-B \end{aligned}$$
(16.4)

In the case of using numbers proposed by Dubois and Prade, Eq. 16.4 will be false. This is because of fuzzy number imprecision expansion. Using OFNs enables easy-to-perform arithmetic operations on them and on the real numbers. In addition, one can use direction as the trend of the process.

2 Selected Definitions

2.1 The Essence of Ordered Fuzzy Numbers

The basic concept of Ordered Fuzzy Numbers has been described in the introduction. In this chapter a deeper concept of OFNs is presented. This is essential for understanding the solutions used in the chapter. The authors of OFN are the team of Professor W. Kosiński, P. Prokopowicz, and D. Ślęzak [31,32,33,34,35,36, 51,52,53,54,55]. The problem of increasing imprecision with the increasing number of performed operations and the lack of solutions to Eqs. 16.3 and 16.4 in fuzzy logic has been noted by the authors. Redefining classic fuzzy sets, which is according to Zadeh to postulate an ordered pair, expanded the definition of an ordered pair of functions. The number is defined there as follows.

Definition 1

Ordered Fuzzy Number A is an ordered pair of functions

$$\begin{aligned} A=(x_{up},x_{down}) \end{aligned}$$
(16.5)

where \(x_{up}, x_{down}:[0, 1]\rightarrow R\) are continuous functions.

These functions are called, respectively, the up- and down-parts. These two parts are connected via a constant function equal to 1 on the interval. The direction of a fuzzy number is called the orientation: the up-part of the OFN is the beginning and the down- part is the end of this number. A graphic interpretation of Ordered Fuzzy Numbers is presented on the left side of Fig. 16.3, and the right side is the directed number with a reference to classical fuzzy numbers.

Fig. 16.3
figure 3

a OFN example, b OFN presented with a reference to classical fuzzy number, and c simplified mark denoting the order of inverted functions

2.2 Fuzzy Controller

The formulation of fuzzy controller mathematical foundations can be found in the literature [28, 29, 40, 64, 66, 67]. These subject-related concepts using linguistic variables assume the role of describing input and output states, which we intend to express and assess a linguistic description. Linguistic value directly affects the verbal assessment of the linguistic object. For example, the linguistic variable ”voltage” takes the linguistic values of “small, medium, and high.” The process of fuzzy control is shown in Fig. 16.4, which includes operations such as fuzzification, inference, and defuzzification. The fuzzification operation is carried out in the first stage. It is associated with the calculation of the degree of membership to particular fuzzy sets. In the inference stage, based on the input degree of membership we calculate the resulting membership function. An important conclusion is that the expected outcome is to define the system resulting in the membership function. Both fuzzification and inference operations contain a number of specific elements.

Fig. 16.4
figure 4

Schematic diagram of the fuzzy controller

The closing operation of the system is the defuzzification block. It is characterized in that the output is a specific (not fuzzy) value. This value is the product of the method operating on the resulting membership function and enables the activation of the actuator in the desired manner.

Defuzzification is therefore a function that assigns a crisp value to a fuzzy number. There are several well-described fuzzification functionals, which are utilized in many arithmetics used in fuzzy logic, including the following.

FOM: First of Maxima

The FOM method is a method of selecting the smallest element of the set A kernel, where the fuzzification value is described in Eq. 16.6.

$$\begin{aligned} { FOM}(A)= min \, core(A) \end{aligned}$$
(16.6)

LOM: Last of Maxima

Accordingly selecting the highest value of the set A kernel, we use the LOM method; the formula is as below:

$$\begin{aligned} { LOM}(A)= max \, core(A) \end{aligned}$$
(16.7)

MOM: Mean of Maxima

Equation 16.8 shows the use of LOM and FOM as a method for which the fuzzification value includes the minimum and maximum elements of the A fuzzy set kernel. This value is the average of these two methods.

$$\begin{aligned} { MOM}(A)= \frac{min \, core(A)+max \, core(A)}{2} \end{aligned}$$
(16.8)

RCOM: Random Choice of Maxima

The method is also called kernel fuzzification because the fuzzification value is always contained in the kernel of a fuzzy set. The fuzzification value of this method is a random element \(x\in core (A)\) calculated as the probability of:

$$\begin{aligned} { RCOM}(A)=P(x)= \frac{\lambda ({x})}{\lambda ({core(A)})} \end{aligned}$$
(16.9)

where \(\lambda \) is the Lebesgue measure in universe X.

MOS: Mean of Support

This method shows the fuzzification value is the average of the A number medium.

$$\begin{aligned} { MOM}(A)=\frac{supp(A)}{2} \end{aligned}$$
(16.10)

COG: Center of Gravity

This is the most common method in cases where it is important to determine the center of gravity of the considered system. In the fuzzification process of an A fuzzy number, the COG method is expressed as Eq. 16.11.

$$\begin{aligned} { COG}(A)=\frac{\int _{a}^{b}x\mu _A(x)\mathrm {d}x}{\int _{a}^{b}\mu _A(x)\mathrm {d}x} \end{aligned}$$
(16.11)

BADD: Basic Defuzzification Distribution

The method of fuzzification was proposed in [20] as an extension of the COG and MOM methods. The fuzzification value of the fuzzy set A is obtained as

$$\begin{aligned} { BADD}(A)=\frac{\int _{a}^{b}x\mu _{A}^{\gamma }(x)\mathrm {d}x}{\int _{a}^{b}\mu _{A}^{\gamma }(x)\mathrm {d}x} \end{aligned}$$
(16.12)

It is also worth paying attention to the methods dedicated to OFN arithmetic, which are inherently sensitive to directing. These include: Fuzzification method called the Golden Ratio (GR): It was established as a result of implementation of an ancient division used in Greek architecture. The GR value for the fuzzy number A is given by the equation:

$$\begin{aligned} { GR}(A)= & {} \left\{ \begin{array}{ll} min(supp(A))+\frac{|supp(A)|}{\varPhi } &{} ,if\, order \,(A)\, is\, positive \\ max(supp(A))-\frac{|supp(A)|}{\varPhi } &{} ,if\, order \,(A)\, is\, negative \end{array} \right. \end{aligned}$$
(16.13)

where GR is the defuzzification operator, supp(A) is support for fuzzy set A in universe X, and \(\varPhi = \) 1,618033998875\(\dots \).

Mandala factor (MF) method: This is the calculation of the \(\mathfrak {R}\) value using the Mandala factor \(\varPsi _A \) sum of function integrals of a rising edge, falling edge, and a core set. The resulting value is scaled from the center of the coordinate system by adding it to the beginning value of a fuzzy number support set. When fuzzification is carried out in OFN arithmetic, in the case of a positive directing procedure described as above, and in the case of negative directing a calculated negative value should be subtracted from the first coordinate of an OFN number being the OFN number support right edge.

$$\begin{aligned} { MF}(A)= & {} \left\{ \begin{array}{ll} c+r &{} ,if\, order \,(A)\, is\, positive \\ c-r &{} ,if\, order \,(A)\, is\, negative \end{array} \right. \end{aligned}$$
(16.14)

where

$$\begin{aligned} r=\frac{1}{d-c}\int _{c}^{d}x\, dx -\frac{c}{d-c}\int _{c}^{d}dx+\frac{f}{f-e}\int _{f}^{e}dx \nonumber \\ -\frac{1}{f-e}\int _{e}^{f}x\, dx + \int _{d}^{e}dx \end{aligned}$$
(16.15)

Modified center of gravity: This is the result of modifications introduced by Kosiński and Bednarek [5] in the classical COG method in order to adapt it to work in OFN arithmetic.

$$\begin{aligned} \varPsi _{COG}(\zeta ,f,g)= & {} \frac{\int _{0}^{1}(\zeta g(s)+(1- \zeta )f(s))|g(s)-f(s)|ds}{\int _{0}^{1}|g(s)-f(s)|ds}, \nonumber \\ \, if\, f(s)\ne g(s) \end{aligned}$$
(16.16)
$$\begin{aligned} \varPsi _{COG}(\zeta ,f,g)= & {} \frac{\int _{0}^{1}f(s)ds}{\int _{0}^{1}ds},\, if\, f(s)= g(s) \end{aligned}$$
(16.17)

Figure 16.5a, b are drawings showing different fuzzification results for the same OFN directed positively in Fig. 16.5a, and directed negatively in Fig. 16.5b. Calculations were performed using selected fuzzification functionals.

Fig. 16.5
figure 5

Graphical representation of selected fuzzification functionals for the same OFN number directed a positively and b negatively

2.3 Control of the Stove on Solid Fuel

Referring to the example of the stove fuzzy controller, a diagram of such a system is shown in Fig. 16.6, where S1 is a heater temperature sensor, S2 a temperature or exhaust lambda sensor, and S3 an optional gas analyzer. The stove uses an air blower. In this example it is called a blower regulator R1. The basic concept of the work of the control system is as follows. Input variables that were selected are:

  • Water coil temperature: Tw

  • Stove flue gas temperature: Ts

  • Lambda probe: \(\lambda \)

  • Increase of temperature: \(\varDelta Tt\)

Output variables are:

  • Speed of the blower

Fig. 16.6
figure 6

Fuzzy logic controller dedicated to solid fuel stove

There are additionally provided auxiliary variables for the solution, Tz, set temperature, which says what temperature the user prefers, or what temperature is optimal for a particular stove. For example, the OFN describing set temperature \(TZ1 = [56, 56, 56, 56]\) informs the controller to “hold temperature of 56” For the number \(TZ2 = [56, 58, 60, 72]\) the directing means, “I prefer temperature 72, but may be no less than 56.” For the reverse OFN number there is the statement, “I prefer 56, but nothing will happen if it is 72.”

Linguistic variables selected for this problem depend on the concept of the control operation. For example, the observed coil temperature is lower than the preset temperature. The stove driver starts the blower and observes the flue gas temperature or \(\lambda \) probe. In both cases, the sensors provide information about the progress of the operation of the stove. Based on this information, the controller determines the amount of air sent by the blower.

3 Classic Fuzzy Controller

The controller in the classic use of fuzzy logic was done using jFuzzyLogic. The technical details are available at http://jfuzzylogic.sourceforge.net. The input linguistic variables as described in the previous chapter are provided as fuzzy sets. Accordingly, we have Figs. 16.7 and 16.8.

Fig. 16.7
figure 7

Input variable ‘coil temperature’ and its fuzzy set

Fig. 16.8
figure 8

Input variable ‘lambda’ and its fuzzy set

Fig. 16.9
figure 9

Output variable ‘power’ and its fuzzy set

Fig. 16.10
figure 10

Ordered Fuzzy Number limit values a positively ordered, b negatively ordered

The output variable in the example is the power of the blower regulator. Figure 16.9 shows a membership function of this variable.

On the basis of expert knowledge concerning the combustion process a set of rules used by the controller was created. Different rules express the state of the process as a set of conditions and the effects that are recommendations for change. RULE 1: IF Tw IS low AND lambda IS rich THEN power IS power_100; RULE 2: IF Tw IS low AND lambda IS optimal THEN power IS power_60; RULE 3: IF Tw IS low AND lambda IS poor THEN power IS power_20;

4 The Controller for the OFNs

The controller operation of the directed OFNs requires the use of up and down borders, which are formulated as

$$\begin{aligned} \mu _A(l_A)=0,\, \mu _A(l^-_A)=1,\, \mu _A(l^+_A)=1,\, \mu _A(p_A)=0 \end{aligned}$$
(16.18)

A graphical interpretation is shown in Fig. 16.10, in which the Ordered Fuzzy Numbers are marked with characteristic border points. Generally it can be assumed that each of the Ordered Fuzzy Numbers can be described by four real numbers:

$$\begin{aligned} A=(l_A,l^-_A,l^+_A,p_A) \end{aligned}$$
(16.19)

In a classic fuzzy controller the resulting membership function is generally a not convex fuzzy set. The use of existing t-norm operators in the inference process will not help to create an OFN according to border points [65]. In [50] there is a proposal which says that instead of t-norm, algebraic operation of multiplication can be used. This is illustrated in Fig. 16.11. A sample controller for OFNs, in particular the inference block and a way to calculate the degree of activation amounts to the operation presented above. Having calculated degrees of compliance with each of the rules, an OFN controller can start to cumulate into a single set which is the result. In a classic controller there are s-norm operators. In the controller for OFNs there will be the arithmetic operation of addition. For example, for an ordered number A, B, which is a product of aggregation, addition is shown in Fig. 16.12.

Fig. 16.11
figure 11

Multiplication of two OFNs

Fig. 16.12
figure 12

Addition of two OFNs

4.1 Directed OFN as a Combustion Trend

Linking the trend with the directing is associated with reaching the objective of a certain state. In the case when the water temperature of the stove is low, the OFN describing this variable should be positive: Fig. 16.10a, which seeks directing to the boundary point \(\mu _A(p_A) = 0\). Selecting “down” of the OFN emphasizes what value the OFN is going to achieve. For example, the stove water temperature can be a linguistic variable, as shown in Fig. 16.13. A fuzzy number A indicates that the water is cool but tends to a higher temperature, whereas the number B informs us of the optimum state with a downward trend. The number C is specified for high temperatures, which should not be achieved.

Fig. 16.13
figure 13

Fuzzy set of input variable ‘coil temperature’ according to the OFN

The second variable is the information on the air excess in the exhaust, Fig. 16.14, which is the \(\lambda \) ratio. A number says that the mixture is rich and has a small amount of oxidant. In this case the trend as the directing is trying to strive for the B number. Number B describes a mixture where the composition is stoichiometric, that is, everything is burned, causing high efficiency, and the number C contains information about a large amount of oxygen in the exhaust gas and lean fuel mixture. Directing of number C tends to the desired state, which is determined by the B number.

Fig. 16.14
figure 14

Fuzzy set of input variable \(\lambda \) according to the OFN

5 Modeling Trend in the Inference Process

The basis for the construction of a fuzzy controller for OFN, according to the assumption that the number is located within the limits of OFN arms (see Fig. 16.7), is the reconstruction of an inference apparatus in such a way that the resulting product that is the function was the OFN. The proposal of such a construction is shown in this section, where the expert has a method of modeling the direction of the OFN. In the first stage we can say that the output fuzzy set is the CFN convex number. As an example, it is Fig. 16.15 showing the output variable of a blower regulator power. The D number covers the entire range of the blower controller operation. Directing this number at this stage is not established, because this is a convex fuzzy number. In contrast, expert judgment is expressed in the set of rules as a degree of compliance with the rule, that is, a percentage of the convex CFN. For example, evaluation of \(+ 20\% \) is shown in Fig. 16.16. The number of D was reduced by \( 20\% \) on the figure’s left side. In contrast, expert judgment −20% reduces the vehicle from the right side; this case is shown in Fig. 16.17. For example, having two linguistic variables Tw and \(\lambda \), taking into account expert judgment expressed as the degree of compliance with the percentage share of the output number, a set of rules will form as in Table 16.1. Signs in front of the percentages can be interpreted as the imposed direction to CFN from Fig. 16.15. In other words, modeling the trend in the inference process is reduced to the use of OFNs in the form of CFNs as shown in Fig. 16.15. The result of running the rules is imposed orientation: positive when we have a plus, and negative when we have a minus. Accordingly, for Fig. 16.15 it will be Fig. 16.18, For Fig. 16.17, we have directing presented as in Fig. 16.19. The added value of this solution is the ability to regulate the OFN direction at the inference stage. The percentages given by an expert can be regarded as a temporary modification. Directing of OFNs will be established when we accumulate all the rules. The established resulting OFN will allow us to go into the process of defuzzification. Another feature of this solution is the ability to reduce the surface area of the OFN. This feature can be particularly important from the perspective of defuzzification. Using the method of defuzzification associated with the surface area narrows the result already at the inference stage.

Table 16.1 Rules for inference process
Fig. 16.15
figure 15

Fuzzy set of output variable ‘power’ according to CFN

Fig. 16.16
figure 16

CFN number for the expert proposal \( +20\% \)

Fig. 16.17
figure 17

CFN number for the expert proposal \( -20\% \)

Fig. 16.18
figure 18

Example OFN, the result of the \( +20\% \) rule

Fig. 16.19
figure 19

Example OFN, the result of the \( -20\% \) rule

6 Conclusions

Handling of the Ordered Fuzzy Number in engineering applications is an alternative to convex fuzzy numbers. Meeting this task entails building an ordered fuzzy controller, which uses directing. In the context of this chapter ‘ordered’ expresses the trend of the studied phenomenon. And trend describes the tendency of a given variable. With the construction of a classic controller the authors introduced a variable associated with the increase in temperature per unit of time. The observed increase would allow determination of the short-term changes in water temperature. The use of OFN enabled following the trend in every other variable describing the combustion process. Returning to the main thread of the work, the aim of which was to use the trend in the combustion process, the authors focused on the inference process. The ability to model the directing of the OFN, which can be seen in the penultimate section, expands the possibilities of using the trend. Applying this approach will emphasize the trend in the inference process. By manipulating the percentage value of the medium of the output OFN, we received a modification of the resulting function. The use of this manipulation can be helpful when we want to change directing or reduce the OFN medium. Reducing the medium of a number, that is, fuzzification process input information, and applying methods such as MCOG, MF, or GR [15] sensitive to directing contribute to a better reflection of the process trend.