Fuzzy Numbers Applied to a Heat Furnace Control

This chapter presents a trend phenomenon and application of the fuzzy controller for Ordered Fuzzy Numbers (OFNs). The authors propose to use a trend in a combustion process for a simpliﬁed model of a solid fuel ﬁred furnace. Better con-trol over the process translates into reduced CO 2 emission as well as optimal use of the furnace. When carrying out the fuzzy observation of the efﬁciency of the furnace, the authors apply the OFN notation by connecting the trend of furnace temperature changes with the order appropriate for this notation. Thanks to this approach it is possible to enhance information without the additional need to multiply the transmitted data. It is particularly effective in the multidimensional fuzzy observation when monitoring not only the condition of the temperature in the furnace but also the ambient temperature and the temperatures in several rooms of the heated building. The chapter is a continuation of a series of papers published by the authors on multidimensional fuzzy observation using OFN notation. A controller in the conventional fuzzy logic approach is also presented in the chapter. The controller was built using jFuzzyLogic software. The fact that there are more and more OFN applications seems to be a good predictor of the development of this generalization, an example of which is the problem analyzed in this chapter.

Keywords Adaptive systems · Ordered Fuzzy Number · Inference · Defuzzification · Fuzzy hardware · Fuzzy software · Fuzzy control

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. (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 2 O, 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 [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 λ, which is expressed as φ. 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).  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-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-14, 44-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.
where A, B are any Ordered Fuzzy Numbers for which the following equality should occur.
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 easyto-perform arithmetic operations on them and on the real numbers. In addition, one can use direction as the trend of the process.

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
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.

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.
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.

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 ∈ core(A) calculated as the probability of: where λ 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.

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.

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 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: where G R is the defuzzification operator, supp(A) is support for fuzzy set A in universe X , and Φ = 1,618033998875. . . . Mandala factor (MF) method: This is the calculation of the value using the Mandala factor Ψ 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. (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.  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.

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: T w • Stove flue gas temperature: T s • Lambda probe: λ • Increase of temperature: ΔT t Output variables are: • Speed of the blower There are additionally provided auxiliary variables for the solution, T z, 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 T Z1 = [56,56,56,56] informs the controller to "hold temperature of 56" For the number T Z2 = [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 λ 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.

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.   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;

The Controller for the OFNs
The controller operation of the directed OFNs requires the use of up and down borders, which are formulated as 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: 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 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.

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 μ 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.
The second variable is the information on the air excess in the exhaust, Fig. 16.14, which is the λ 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.

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 λ, 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.

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.