#### Abstract

Assignment problem (AP) is an entrenched tool for solving engineering and management problems. The Hungarian method is always used to fathom the AP in crisp cases. This paper presents an algorithm of finding the optimum solution of the fuzzy AP by using the modified Hungarian method. This method is utilized to get a minimum assignment cost in the fuzzy environment for a fuzzy AP. Firstly, we use the fuzzy numbers without any transformation. Secondly, the fuzzy AP is transformed into an interval AP based on the -cut methodology. Then, the interval arithmetic operations and the order relations are applied to get the optimal solution by utilizing the modified Hungarian method. The proposed algorithm requires less efforts and time to reach optimality, compared to the existing methods. Numerical examples are given to ensure the efficiency and the validity of the proposed algorithm. A study on the reuse of many valuable buildings is presented after using different government and service buildings in a manner that does not fit with its original function and heritage value. We offer a solution based on the scientific and realistic basis for requalification according to the variables and requirements of the social, cultural, and economic environments in the environment surrounding the valuable buildings.

#### 1. Introduction

The assignment problem (AP) is a very much evolved advancement issue in engineering and management sciences and has been broadly applied in both assembling and administration frameworks [1, 2]. In an AP, *n* jobs are to be performed by *n* people contingent upon their proficiency to carry out the job. The AP is used to determine the issue of appointing several origins to the equal number of destinations at the very least expense or most extreme benefit in the most ideal manner. It can appoint people to employments, classes to rooms, administrators to machines, drivers to trucks, trucks to conveyance courses, or issues to investigate groups, and so forth.

To deal with the AP, the decision parameters of the model must be fixed at deterministic values. In any case, to show real issues and to perform estimations, we ought to manage vulnerability and vagary. These vulnerability and vagary are a result of estimation botch, unraveling of physical models, assortments of the boundaries of the system, computational bungles, etc. Along these lines, we cannot viably use traditional old-style task issues, and from this time forward, the usage of fuzzy undertaking issues is progressively legitimate [3–8].

Several algorithms have been exhibited to solve APs, such as linear programming [1, 9, 10], Hungarian algorithm [11, 12], and particle swarm optimization [9]. Kar et al. resolved an AP with fuzzy cost by Yager’s ranking index which transforms the fuzzy AP into a crisp one [7]. Different membership functions and the Yager ranking index for solving fuzzy APs and fuzzy travelling salesman problems were introduced by Kumar and Gupta [13]. Tapkan et al. considered a multiobjective generalized AP directly via bee’s algorithm and fuzzy ranking [10]. Emrouznejad set up an algorithm using the data envelopment analysis method to solve the APs with fuzzy costs or fuzzy profits [3]. A new method for solving fuzzy assignment problems was given by Pandian and Kavitha [14]*.* Thorani and Shankar explained in detail the application in the fuzzy AP [15]. Mary and Selvi proposed a model to solve the fuzzy AP using the centroid ranking method [16]. In [17], Traneva and Tranev presented the interval-valued intuitionistic fuzzy AP, in which the costs of assigning jobs to candidates are interval-valued intuitionistic fuzzy, depending on the experience, the education, and the professionalism of the applicants.

A basis in modeling uncertain systems is that an entangled model is not generally important to manage incomplete information and inaccurate data [18]. Interval numbers are a structure which helps to stay away from such an unnecessary complexity. Moore originally introduced interval numbers [19]. An interval number is a number whose exact value is unknown, but a range within which the value lies is known [20]. An interval number permits an expert to make his/her approximations about boundaries on a span as opposed to a crisp number. This adaptability caused interval numbers to have extraordinary applications in optimization issues. The literature studies on the applications of interval number in decision-making problems are so wide [21–23].

In most of the real-world problems, the parameters such as cost, time, and profit may not be precisely known in advance due to several uncontrollable factors such as human judgements and market fluctuations. In such situations, considering the values of uncertain parameters as fuzzy numbers or interval numbers is better than to approximate them as crisp values [21–25]. This led us to introduce the fuzzy AP that we transform into an interval AP.

The urban design and the architectural character represent an expressive characteristic of the prevailing culture in the society for the civilized value; the civilized value in architecture and urbanism reaches its highest levels when it is related to cultural connotations and concepts, so the negligence or neglect of civilizational heritage that enriches architecture and urbanism is only a lack of national awareness of civilized values wasting national wealth and retreating to the cultural dimension of the society [26–31]. As a result of accelerated urban development which is not indifferent to civilizational and heritage values during the second half of the twentieth century in Egypt, many distinguished buildings began to disappear to be replaced by other buildings that do not rise to the same architectural value, for example, the use of many valuable buildings as various government and service buildings in a manner that is not commensurate with their original function and heritage value, which led to deformation and visual pollution that has become a phenomenon in many Egyptian cities. We use some valuable buildings in the Arab Republic of Egypt as a comparative study. Their value is defined as being one of the philosophical concepts that can be described as “the criterion governing the degree to which a person accepts what is around him according to his desires and needs.” This is because the value is a relative influence that depends on the nature of the recipient and the constituent conditions of his personality and on the temporal and spatial conditions. Also, most forms of the value are not acquired by the building during its design but rather over time [26–31]. The goal of reuse is to preserve historical buildings that are considered national wealth and part of the national economy, creating positive change in the population through contact with visitors, learning about new habits and lifestyles, and cultural exchange; however, the presence of some tourist establishments in areas of a somewhat conservative social nature does not contradict customs and traditions. It is preferable to reuse valuable buildings with an activity similar to the original activity for which the building was established as possible or by studying the needs of the surrounding environment and adapting the new activity according to the requirements of the surrounding environment.

In this article, the modified Hungarian method is introduced to solve the fuzzy AP. In our proposed model, due to several uncontrollable factors such as human judgements and market fluctuations, the cost is considered as a fuzzy number. The primary objective of this study is to propose a new method for solving the AP under an uncertain situation. Firstly, the fuzzy numbers are used without any transformation. Secondly, the fuzzy AP is transformed into an interval AP based on the -cut methodology. Then, the interval arithmetic operations are applied to obtain the optimal solution by utilizing the modified Hungarian method. Also, the reuse and employment of the valuable buildings in Egypt are studied. It is used to clarify the impact on neighboring urban entities, which may help to find an economic basis on which to maintain those buildings to enter within the organic entity of the old city.

The composition of the article is organized as follows: preliminaries and notions of the fuzzy and interval numbers are reviewed in Section 2. Section 3 presents the mathematical formulation of the fuzzy AP. Section 4 provides the procedures for the modified Hungarian method. Also, numerical examples are presented in Section 4. In Section 5, we study the reuse and employment of the valuable buildings in Egypt. Finally, the conclusion is given in Section 6.

#### 2. Preliminaries and Notions

In this section, some essential ideas and preparatory outcomes utilized as a part of this paper are quickly presented.

*Definition 1. *(fuzzy numbers). Let be the set of all real numbers. Then, a real fuzzy number is defined by its membership function that satisfies [4, 32, 33](1)A continuous mapping from to the closed internal (2) for all (3)Strictly increasing and continuous on (4) for all (5)Strictly decreasing and continuous on (6) for all [8]

*Definition 2. *(triangular fuzzy number). is a triangular fuzzy number, where is the smallest value, is the main value, and is the highest value. The membership function , where is the maximum value and . Then [4, 32, 33],

*Definition 3. *(the level set). The *α*-level set of the fuzzy number is defined as an ordinary set for which the degree of its membership function exceeds the level set where [6, 32, 33]where , , and and represent the lower and upper cuts, respectively, as shown in Figure 1.

*Definition 4. *(interval numbers). An interval number is a number whose exact value is unknown, but a range within which the value lies is known [20]. Interval number is a number with both lower and upper bounds, , where . The interval is also denoted by its center and width aswhere and are, respectively, the center and half width of [20, 21, 23].

The main arithmetic operations can be defined on interval numbers. Let and .

*Definition 5. *The order relation between and is defined as [21, 23]This order relation represents the decision maker’s preference for the alternative with lower minimum cost and maximum cost, that is, if , then *A* is preferred to *B*.

*Definition 6. *The order relation between and is defined as [20, 21]This order relation represents the decision maker’s preference for the alternative with lower minimum cost and maximum cost, that is, if , then A is preferred to B.

We use the sum of all elements of the interval/fuzzy number as a scale to compare between intervals/fuzzy numbers. Zero interval/zero fuzzy number is the sum of all elements of the interval/fuzzy number which is equal to zero.

#### 3. Fuzzy Assignment Problem

In a general AP, “” works are to be performed by “” people depending on their efficiency to do the job in one-one basis such that the assignment cost is minimum or maximum [24, 34]. If the objective of an AP is to minimize fuzzy cost , then we provide the AP of matrix each cell having a fuzzy number in Table 1.

Firstly, we transform the fuzzy cost into the interval cost by utilizing the -cut methodology. Thus, the fuzzy AP can be transformed into an interval AP with interval cost as shown in Table 2.

The above formulation of the problem is used in finding the optimal assignment when the values of parameters such as cost, time, and profit are precisely known in advance. However, in most of the realistic situations, the parameters such as cost, time, and profit may not be precisely known in advance due to several uncontrollable factors such as human judgements and market fluctuations. In such situations, considering the values of uncertain parameters as fuzzy numbers or interval numbers is better than to approximate them as crisp values. Mathematically, the fuzzy AP can be stated as [5, 7, 35]where denotes the fuzzy cost function, (one work is done by the person, ), and (only one person must be assigned to work, ), where denotes that work is to be assigned to the person. After applying the -cut methodology to the fuzzy AP, the following interval AP is obtained:where are the lower and upper cuts of the fuzzy cost. In this study, we solve both fuzzy APs by converting them into the interval AP by using the modified Hungarian method. Making best use of the interval arithmetic operations and order relations, the modified Hungarian method solves the interval AP.

#### 4. The Proposed Algorithm

The Hungarian method solves the minimization APs with workers and jobs. It has been presented in [11, 12, 25]. So, in this section, we explain how the modified Hungarian method deals with the fuzzy AP by using the fuzzy number without transforming or converting it into interval APs. We apply the -cut method to obtain the interval AP and use the interval arithmetic operations and the order relations to solve it. The modified Hungarian algorithm consists of the following four steps. The first two steps are executed once, while Steps 3 and 4 are repeated until an optimal assignment is found. The input of the algorithm is an square matrix with only nonnegative elements. If the number of lines equals the number of rows (and columns), the test for the optimality is satisfied [17].

*Step 1. *Subtract row minima:

For each row, find the lowest interval and subtract it from each interval in that row based on interval arithmetic operations.

*Step 2. *Subtract column minima:

Similarly, for each column, find the lowest interval and subtract it from each interval in that column using interval arithmetic operations.

*Step 3. *Cover all zeros with a minimum number of lines:

Cover all zero or negative intervals in the resulting matrix using the minimum number of horizontal and vertical lines. If lines are required, an optimal assignment exists among the zeros or negative interval. The algorithm stops (an assignment can be made). If less than lines are required, continue with Step 4.

*Step 4. *Create additional zeros:

Determine the minimum uncovered interval (call it H): Subtract H from uncovered intervals.(a)Add H to intervals covered by two lines(b)Intervals covered by one line remain the same(c)Then, go to Step 3

#### 5. Numerical Examples

*Example 1. *Let us consider an AP with rows representing people, and columns representing jobs, job , job , job , and job . The cost matrix is given whose elements are interval numbers. The problem is to find the optimal assignment so that the total cost of the job assignment becomes minimum, see Table 3.

The minimum interval is [1, 5] in column 1, [3, 7] in column 2, [1, 5] in column 3, and [0, 4] in column 4. By using interval arithmetic operations, we get Table 4.

The minimum interval is [−4, 4] in row 1, [−4, 4] in row 2, [−4, 4] in row 3, and [−2, 6] in row 4. By using interval arithmetic operations, we get Table 5.

The optimal assignment is . Cost .

*Example 2. *(see [25]). Let us consider a fuzzy AP with rows representing people, and columns representing jobs, job , job , job , and job . The fuzzy cost matrix is given whose elements are triangular fuzzy numbers. The problem is to find the optimal assignment so that the total cost of the job assignment becomes minimum, shown in Table 6. This example is solved by the method found in [25], in which the fuzzy assignment problem has been transformed into a crisp assignment problem using Robust’s ranking indices [5].

Firstly, we apply the modified Hungarian method to the fuzzy cost matrix utilizing the arithmetic operations of fuzzy numbers to get the optimal assignment, see Table 7.

The optimal assignment is . The fuzzy optimal total cost = (5, 10, 15) + (5, 10, 15) + (5, 10, 15) + (5, 10, 15) = (20, 40, 60).

Secondly, we apply the -cut methodology to obtain the interval cost matrix. Then, the modified Hungarian method is utilized with the help of the arithmetic operations of interval numbers to get the optimal assignment. We can transform the above problem elements into intervals at , shown in Table 8.

We apply the proposed method on Table 8 to get Table 9 by using the arithmetic operations of the interval to get the optimal assignment.

The optimal assignment is . We see the solution of the AP by our two methods is the same as the solution found in [25].

*Example 3. *(see [4]). Let us consider a fuzzy AP with rows representing people, , and columns representing jobs, job I, job II, job III, and job IV. The fuzzy cost matrix is given whose elements are trapezoidal fuzzy numbers. The problem is to find the optimal assignment so that the total fuzzy cost of the job assignment becomes minimum, shown in Table 10. This example is solved by the method found in [4]. In [4], the fuzzy AP was transformed into a crisp AP in the LPP form.

Firstly, we apply the modified Hungarian method to the fuzzy cost matrix utilizing the arithmetic operations of fuzzy numbers to get the optimal assignment, see Tables 11–13.

The optimal assignment is . The fuzzy optimal total cost is calculated as .

Secondly, we apply the -cut methodology to obtain the interval cost matrix. Then, the modified Hungarian method is utilized with the help of the arithmetic operations of interval numbers to get the optimal assignment. If the fuzzy number in the above problem transformed into interval at , shown in Table 14.

We apply the proposed method on Table 14 to get Table 15 by using the arithmetic operations of the interval. Also, we get Tables 16 and 17.

The optimal assignment is . We see the solution of the AP by our two methods is the same as the solution found in [25].

In the above examples, the fuzzy optimal total cost obtained by our two methods remains the same as that obtained by other methods.

#### 6. Practical Application

In this section, we get acquainted with some basic definitions for the application study. First, a building of value (with a distinct architectural style) is defined as a building or facility that is distinguished by the historical, symbolic, architectural, artistic, urban, or social value. Also, it has been agreed that buildings and heritage installations of distinct architectural style should be characterized by accepting and positively interacting with the community, being expressive of material, moral, or intellectual phenomena in a specific period (social or cultural phenomenon). Its condition allows to be present and able to deal with it, and this is known as persistence and continuity. Heritage buildings are classified according to their condition into several levels, some of which are good, partially degraded, and totally degraded. The aim of this classification is to set priorities for dealing with heritage buildings as most important buildings are placed on top of the priorities of conservation plans [26–31]. A strategy for re-employment of valuable buildings is the creation of a job for the building other than the one for which it was established, and this employment may be accompanied by making some fundamental changes to the building to fit with the newly created job and an optional re-employment of buildings in the case of valuable buildings whose original function still exists until now. It is mandatory for buildings with the value of original extinct function such as ancient Egyptian temples and cemeteries. The methods of rehabilitating the building are multiple such as modification in the formation of internal voids by deleting part of the building or by creating architectural elements and shapes to which each of these methods is added. The aim is to reach to provide the maximum possible space required for the new activity while giving freedom and flexibility to exploit existing surfaces, resizing the interior space of the building, taking into account the proportions between the elements, height, and scale, ensuring that the essence of the artistic content is not compromised.

The desired objectives of reuse and employment of valuable buildings are numerous, whether they relate to the archaeological building itself by preserving its heritage and architectural values or related to its surroundings and its urban environment or related to the social aspect. We will address in the research study the means of optimal reuse of the building in terms of social and the built environment. Therefore, there are several social and urban goals for reuse that are clear as follows.

Opening the building of value to the public makes it relevant to the surrounding environment and enables us to link the past to the present. The social goals are given as follows: Developing the national awareness to preserve the monumental buildings as a cultural heritage that must be preserved Achieving the national social affiliation through focusing on the symbolic value Upgrading the general taste of individuals, especially children Preserving the historical character of the city and reinforcing the sense of pride of the citizens Finding interconnectedness and communication between the building and its users through the job the building performs for the surrounding community

Preserving historic buildings aims to protect them as artistic works and historical evidence. Therefore, it must be developed and transformed to perform new jobs that meet the renewable needs of the society and achieve urban and environmental goals through Development of the community surrounding the archaeological building, which helps to preserve the distinctive urban character of the historic district Reuse of historical buildings and areas within the framework of the reality of land use determined by the city’s planning studies Forming a merger and cohesion between the old and new urban fabric of the historical areas of the existing cities Achieving the sustainability goals by providing the raw materials as one of the environmental goals for reuse, as the reuse of an existing building achieves

There is a problem in achieving a balance between preserving valuable buildings and society benefiting from them, especially according to previous experiences. So, we suggest that “in case the cultural job is preserved, it should be reformulated as part of a development plan that benefits the residents of the region.” One of the global models for re-employing valuable buildings, including distinguished models such as converting the historic Presidio Hospital in San Francisco, USA, into a residential building that includes 154 apartments, is now a distinctive sign in the region; dining tables have been placed between pumps, and some equipment have been added without affecting the original design of the building.

##### 6.1. Case Study

We present the practical application study of several valuable buildings of Egypt. We study many places from the community and the surrounding environment’s viewpoint, and an economic view, such as the Khedive Abbas I Palace in the city of Benha, Arab Republic of Egypt. It was established in the nineteenth century AD and reused as a school; then, the activity was changed from an educational to an administrator and reused as an administrative building for Benha University, see Figure 2.

The Saffron Palace in Cairo was reused as an administrative building for Ain Shams University, see Figure 3.

Al-Jazzar Palace, Shibin El-Kom, was reused as an administrative building for Menoufia University, see Figure 4.

Al-Jazeera Palace was established by Khedive Ismail to receive guests at the opening of the Suez Canal in 1869 AD, and in 1879, the palace was sold to Egyptian Hotels Company to pay part of the debt of Khedive Ismail and was transferred to Al-Jazeera Palace Hotel. After the collapse of the tourist movement in Egypt during the First World War, the palace was sold in 1919 to one of the Lebanese princes, Prince Habib Lotfallah, who turned it into a private residence. In 1962, the palace was nationalized and converted again to a hotel in the name of Omar Khayyam Hotel. Then, in the early seventies, Marriott International took over the management of the hotel (Figure 5).

The questionnaire was distributed to the users of each building and the surrounding environment and a group of specialists to determine the extent of the reality of the new use of the building and its suitability for the surrounding community environment and its suitability for its artistic, symbolic, and architectural value. The questionnaire was carried out in two phases: the first stage at the level of specialists and the suitability of the building for the new activity in design, urban, and planning and the second phase of the questionnaire at the level of the surrounding environment and the users of the building after changing the activity. The questionnaire was divided into four phases of evaluation for each building activity (inappropriate, acceptable, appropriate, and very appropriate) which are shown in Table 18. The activity that received less than 50% of the votes is considered inappropriate, the activity that obtained between 50 and 60% of the votes is considered acceptable, the activity with a percentage ranging from 60 to 80% of the votes is considered appropriate, and the activity with more than 80% of the votes is a very appropriate activity, see Table 19. The graph indicates the extent of approval of the new activity of the building according to the view of the surrounding environment and users which is shown in Figure 6. The flowchart indicates the extent of approval of the new activity of the building according to the viewpoint of the specialists which is shown in Figure 7.

The proposed method was used to solve the application with the same steps explained before and applied in the illustrative examples. The results were continuously advising the use of the Khedive Abbas I Palace as an administrative building for Benha University and searching for a new use of the Saffron Palace and the use of Al-Jazzar Palace as a cultural building for Menoufia Governorate and the continuation of the Al-Jazeera Palace to be used as a hotel building. This is according to the view of the surrounding environment, dealers, and specialists.

The research study resulted in the success of some cases of reuse of valuable buildings through thinking out of the ordinary and finding unconventional solutions and the failure of some attempts through the deterioration of the construction status of the building and the general condition of the building. The principle of community participation must be adopted in developing plans for reuse operations so that local communities are involved in all stages of these operations and even make local communities’ part of them. Also, valuable buildings should be reused with an activity similar to the original activity for which the building was established or by studying the needs of the surrounding environment and adapting the new activity according to the requirements of the surrounding environment.

#### 7. Conclusions

In this paper, we introduce the modified Hungarian method for solving the interval and fuzzy AP. It is a novel and simple algorithm for solving the fuzzy and interval AP. We discussed finding a solution of an assignment problem in which cost coefficients are fuzzy numbers or intervals. The total optimal cost obtained by our method remains the same as that obtained by other researchers that convert the fuzzy cost into a crisp one by applying the ranking method. Also, we apply the modified Hungarian method in reuse of the valuable buildings in Egypt by making comparison between four valuable buildings that are reused in several activities for reaching the best benefit of building reuse, which should be matching with the basic purpose of the building and preserve on the value of the building. This method may be used in solving other types of optimization problems such as project schedules, transportation problems, and network flow problems.

#### Data Availability

All the data used to support the findings of this study are included within the article.

#### Conflicts of Interest

The authors declare that there are no conflicts of interest.

#### Authors’ Contributions

M. A. Elsisy conceived the presented idea. M. A. Elsisy and M. A. El Sayed developed the theoretical framework and performed the numerical calculations. A.S. Elsaadany and M. A. Elsisy carried out the rehabilitation problem of valuable buildings in Egypt. M. A. Elsisy, A.S. Elsaadany, and M. A. El Sayed worked out almost all the technical details, performed the numerical calculations for the suggested application, and wrote the manuscript. All authors discussed the results, commented on the manuscript, and contributed to the ﬁnal manuscript.