Personnel room matching method and related equipment

Through a personnel room matching method based on a preset element list, the factor matching result of the room is calculated, and the problem of subjective arbitrary room allocation in the prior art is solved, thereby achieving optimal room matching and improving user satisfaction.

CN119904032APending Publication Date: 2025-04-29SHENZHEN DAS INTELLITECH CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411827246.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-11
Publication Date
2025-04-29

AI Technical Summary

Technical Problem

In the fields of hotels, schools and factories, room allocation is still subjective and arbitrary, and cannot meet the specific accommodation needs of people. For example, those with difficulty in falling asleep are not suitable for rooms near the road, those with limited mobility are not suitable for rooms without elevators, and those with claustrophobia are not suitable for rooms without windows or dark light.

Method used

By constructing a personnel room matching method, the conditional element status of the room and the request information of the person to be checked are obtained based on the preset feature list, the element matching result of the allocated room can be calculated, and the most matching room is selected as the target room.

Benefits of technology

The optimal matching of rooms is achieved, user satisfaction is improved, and room allocation is ensured that the specific needs of personnel are met.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119904032A_ABST
    Figure CN119904032A_ABST
Patent Text Reader

Abstract

The invention relates to a personnel room matching method and related equipment. The method comprises the steps that condition element states corresponding to a room are obtained based on a preset element list, the preset element list comprises a plurality of condition elements used for measuring room accommodation conditions, and the condition element states are used for indicating satisfaction conditions of all condition elements in the room; acquiring request information corresponding to the to-be-checked-in person, and acquiring expected states of the to-be-checked-in person for all the condition elements and expected degrees of the to-be-checked-in person for all the condition elements according to a preset element list; obtaining distributable room information, and obtaining an element matching result corresponding to the distributable room based on the expected states of all the condition elements, the condition element states corresponding to the distributable rooms and the expected degrees corresponding to all the condition elements; and according to an element matching result, obtaining a corresponding distributable room as a target room corresponding to the to-be-checked-in person. According to the invention, the optimal matching of the room can be realized, so that the user satisfaction is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of room management, and more specifically, to a personnel room matching method and related equipment. Background Art

[0002] In areas involving accommodation, such as hotels, schools, and factories, administrators still allocate rooms to people in a subjective and arbitrary manner. Since everyone has different personalities and preferences, the configuration characteristics of each room are different. This arbitrary allocation of rooms may not necessarily meet the actual accommodation needs of people. For example, for people who have difficulty falling asleep, it is not appropriate to allocate rooms near the road or noisy streets; for people with limited mobility, it is not appropriate to allocate rooms without elevators or on higher floors; for people with claustrophobia, it is not appropriate to allocate rooms without windows or with dim light. For the above, no effective solution has been proposed yet. Summary of the invention

[0003] The technical problem to be solved by the present invention is to provide a person-room matching method and related equipment in view of the above-mentioned technical defects of the prior art.

[0004] The technical solution adopted by the present invention to solve the technical problem is: constructing a personnel room matching method, the method comprising:

[0005] Acquiring condition element states corresponding to the room based on a preset element list, wherein the preset element list includes a number of condition elements for measuring accommodation conditions of the room, and the condition element states are used to indicate satisfaction of all condition elements in the room;

[0006] Obtaining request information corresponding to the person to be checked in, and obtaining the expected state of all condition elements of the person to be checked in and the expected degree of all condition elements of the person to be checked in according to the preset element list;

[0007] Acquire the information of allocatable rooms, and acquire the element matching results corresponding to the allocatable rooms based on the expected status of all condition elements of the person to be accommodated, the condition element status corresponding to the allocatable rooms, and the expected degree of all condition elements of the person to be accommodated;

[0008] The corresponding allocable room is obtained according to the element matching result as the target room corresponding to the person to be accommodated.

[0009] Preferably, in a specific embodiment of the personnel room matching method of the present invention, it also includes:

[0010] Matching the conditional elements corresponding to the allocatable rooms based on the preset element list, so that when the allocatable room contains the conditional element, the value corresponding to the conditional element in the preset element list is set to a first true value, otherwise, the value corresponding to the conditional element in the preset element list is set to a second true value;

[0011] Matching the expected states of all conditional elements of the person to be accommodated with the preset element list, and when the expected state is positive, setting the value corresponding to the conditional element in the preset element list to a third true value; otherwise, setting the value corresponding to the conditional element in the preset element list to a fourth true value;

[0012] Perform XOR calculation on the value corresponding to each conditional element to obtain the true value calculation result corresponding to each conditional element;

[0013] Obtaining element matching scores corresponding to the allocable rooms according to the truth value calculation results corresponding to all condition elements and the expected degrees of all condition elements;

[0014] The corresponding allocable room is obtained according to the element matching score as the target room corresponding to the person to be accommodated.

[0015] Preferably, in a specific embodiment of the person-room matching method of the present invention, the first true value and the third true value are 1, and the second true value and the fourth true value are 0.

[0016] Preferably, in a specific embodiment of the personnel room matching method of the present invention, it also includes:

[0017] The value between 1 and 10 is used to identify the expectation level of the condition element, wherein, when the expectation level of the person to be accommodated for the condition element is higher, the value corresponding to the expectation level is larger.

[0018] Preferably, in a specific embodiment of the personnel room matching method of the present invention, obtaining the element matching score corresponding to the assignable room according to the truth value calculation results corresponding to all condition elements and the expected degree of all condition elements includes:

[0019] The product of the square of the value corresponding to the expected degree of the condition factor and the true value calculation result corresponding to the condition factor is obtained as the matching score of the condition factor, and the sum of the matching scores of all the condition factors of the assignable room is obtained as the factor matching score corresponding to the assignable room.

[0020] Preferably, in a specific embodiment of the personnel room matching method of the present invention, the step of obtaining the corresponding allocable room as the target room corresponding to the person to be accommodated according to the element matching score comprises:

[0021] The allocable room with the highest element matching score is obtained as the target room corresponding to the person to be accommodated.

[0022] Preferably, in a specific embodiment of the personnel room matching method of the present invention, the method further includes:

[0023] Based on the preset rules, the accommodation conditions of all rooms are divided respectively, and the conditions are combined to generate the preset element list.

[0024] An electronic device of the present invention includes: a module for executing the above method.

[0025] An electronic device of the present invention comprises a memory and a processor;

[0026] The memory is used to store computer programs;

[0027] The processor is configured to execute the computer program to implement the method described above.

[0028] A computer storage medium of the present invention stores a computer program, which implements the above-mentioned method when executed by a processor.

[0029] The implementation of a personnel room matching method and related equipment of the present invention has the following beneficial effects: it is possible to achieve optimal matching of rooms to improve user satisfaction. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] The present invention will be further described below with reference to the accompanying drawings and embodiments, in which:

[0031] Figure 1 It is a program flow chart of an embodiment of a personnel room matching method of the present invention;

[0032] Figure 2 is a program flow chart of another embodiment of a personnel room matching method of the present invention;

[0033] Figure 3 It is a program flow chart of another embodiment of a personnel room matching method of the present invention. DETAILED DESCRIPTION

[0034] In order to have a clearer understanding of the technical features, purposes and effects of the present invention, specific embodiments of the present invention are now described in detail with reference to the accompanying drawings.

[0035] like Figure 1 FIG. 1 shows an embodiment of a method for matching people and rooms of the present invention. Figure 1In one embodiment of a personnel room matching method of the present invention shown, the method is used for personnel room allocation. The specific method includes the following steps: S1, based on a preset element list, obtaining the condition element status corresponding to the room, wherein the preset element list contains a number of condition elements for measuring the accommodation conditions of the room, and the condition element status is used to indicate the satisfaction of all condition elements in the room; S2, obtaining the request information corresponding to the person to be accommodated, and obtaining the expected status of the person to be accommodated for all condition elements and the expected degree of the person to be accommodated for all condition elements according to the preset element list; S3, obtaining the information of the allocatable room, and based on the expected status of the person to be accommodated for all condition elements, the condition element status corresponding to the allocatable room, and the expected degree of the person to be accommodated for all condition elements, obtaining the element matching result corresponding to the allocatable room; S4, according to the element matching result, obtaining the corresponding allocatable room as the target room corresponding to the person to be accommodated.

[0036] Based on step S1, the satisfaction of the conditional elements of each room is judged to obtain the satisfaction status of the conditional requirements corresponding to the room. It can be understood that a preset element list is set first, and then the corresponding judgment result is obtained by checking whether each room contains the conditional elements in the preset element list. The conditional elements of the room are used to correspond to the accommodation conditions of the room. They can be set as needed. For example, the air conditioning condition corresponding to the room is set as a conditional element of the room, and the conditional element status is used to identify whether the room contains air conditioning. Similarly, the elevator condition corresponding to the room is used as a conditional element of the room, and the conditional element status is used to identify whether the room has an elevator.

[0037] Based on step S2, according to the request information of the person to be accommodated, the information of the person to be accommodated on the accommodation conditions is obtained. Specifically, the conditional elements that the person to be accommodated hopes that the room can meet can be obtained. For example, the person to be accommodated hopes that the room has air conditioning and hot water, then it can be understood that the air conditioning is a conditional element, and the hot water is another conditional element. The expected state of all conditional elements of the person to be input includes the conditional elements corresponding to the air conditioning and the conditional elements corresponding to the hot water. They are all in a positive state. It can be understood that the expected state of all conditional elements of the person to be accommodated is obtained in the preset element list. When necessary, it includes but is not limited to modifying the preset element list to cover the newly emerged conditional elements or as close to the user's needs as possible. It can also be obtained according to the request information. The expected degree of all conditional elements in the preset element list of the person to be accommodated can be obtained. For example, if the person to be accommodated has a high requirement for hot water, then it can be understood that the person has a high expectation degree for the conditional element of hot water. If the person to be accommodated does not care so much about the air conditioning, then it can be understood that the person has a low expectation degree for the conditional element of air conditioning.

[0038] Based on step S3 and step S4, considering that the arrangement of the person to be accommodated must be based on the allocatable rooms, therefore, in the specific matching process, it is necessary to match based on the allocatable rooms. Among them, the corresponding condition element state is obtained for each allocatable room, so as to obtain the accommodation conditions of each allocatable room. Then, according to the expected state of all condition elements of the person to be accommodated and the expected degree of all condition elements of the person to be accommodated, calculation is performed to obtain the element matching result of each allocatable room. Here, the requirements of the person to be accommodated and the satisfaction of the actual room are comprehensively considered for matching, and the matching result of each allocatable room is obtained. Finally, according to the obtained matching result, a suitable room is selected from the allocatable rooms as the target room of the person to be accommodated, so as to arrange the person to be accommodated.

[0039] like Figure 2 As shown, in one embodiment, in the personnel room matching method of the present invention, it also includes: SA1, matching the condition elements corresponding to the assignable rooms based on the preset element list, so that when the assignable room contains the condition elements, the value corresponding to the condition elements in the preset element list is set to a first true value, otherwise the value corresponding to the condition elements in the preset element list is set to a second true value; SA2, matching the expected state of the person to be accommodated for all condition elements based on the preset element list, when the expected state is positive, the value corresponding to the condition elements in the preset element list is set to a third true value, otherwise the value corresponding to the condition elements in the preset element list is set to a fourth true value; SA3, performing XOR calculation on the value corresponding to each condition element to obtain the truth value calculation result corresponding to each condition element; SA4, obtaining the element matching score corresponding to the assignable room according to the truth value calculation results corresponding to all condition elements and the expectation degree of all condition elements; SA5, obtaining the corresponding assignable room as the target room corresponding to the person to be accommodated according to the element matching score.

[0040] That is, in the process of calculating the element matching results, the preset element list is matched one by one with the conditional elements of the allocatable room. When the allocatable room contains the conditional element, the state of the conditional element in the conditional element state corresponding to the allocatable room can be identified by the first truth value. When the allocatable room does not contain the conditional element, the state of the conditional element in the conditional element state corresponding to the allocatable room can be identified by the second truth value. After the one-to-one matching, a first truth table for identifying the conditional element state corresponding to the allocatable room can be obtained. According to the first truth table, the satisfaction of all conditional elements in the allocatable room can be obtained. In a specific embodiment, the first truth value is 1 and the second truth value is 0. In one embodiment, the matching result of the conditional element corresponding to the allocatable room can be corresponded to the first truth table.

[0041] At the same time, the preset element list is matched one by one with the expected states of all condition elements of the person to be accommodated. The third truth value indicates that the expected state of the condition element of the person to be accommodated is a positive state, and the fourth truth value indicates that the expected state of the condition element is a negative state. After one-to-one matching, a second truth table for identifying the expected states of all condition elements of the person to be accommodated can be obtained. In a specific embodiment, the third truth value is 1 and the fourth truth value is 0. In an embodiment, the second truth table can correspond to the matching results of the expected states of all condition elements of the person to be accommodated.

[0042] According to the obtained first truth table and the second truth table, the value of each conditional element is calculated by XOR to obtain the truth value calculation result of each conditional element, and the truth value calculation result corresponding to each conditional element is calculated with the expected degree corresponding to the conditional element, and finally the corresponding element matching score is obtained to obtain the target room according to the element matching.

[0043] In one embodiment, in the method of the present invention, a value including but not limited to 1 to 10 is used to identify the expectation level of the condition element, wherein the higher the expectation level of the person to be accommodated for the condition element, the greater the value corresponding to the expectation level. For example, between 1 and 10, the values ​​are arranged from low to high according to the expectation level, and are 1, 2, 3, 4, 5, 6, 7, 8, 9, and 10 in sequence. In one embodiment, a finer division can also be performed, such as setting in steps of 0.5.

[0044] In one embodiment, the step of obtaining the element matching score corresponding to the assignable room according to the truth value calculation results corresponding to all condition elements and the expected degree of all condition elements includes: obtaining the product of the square of the expected degree corresponding value of the condition element and the truth value calculation result corresponding to the condition element as the matching score of the condition element, and obtaining the sum of the matching scores of all condition elements of the assignable room as the element matching score corresponding to the assignable room. Specifically, the matching score is calculated for each condition element in the preset element list, and the sum of the matching scores of all condition elements is used as the element matching score of the room.

[0045] In one embodiment, the step of obtaining the corresponding allocable room as the target room corresponding to the person to be accommodated according to the element matching score includes: obtaining the allocable room with the highest element matching score as the target room corresponding to the person to be accommodated. After obtaining the element matching scores of the rooms, the room with the highest score is selected as the target room. It should be emphasized that after a room is set as a target room, it can be considered that the room is no longer an allocable room.

[0046] In one embodiment, if Figure 3As shown, the personnel room matching method of the present invention also includes: S0, splitting the accommodation conditions of all rooms respectively based on preset rules, and performing conditional union to generate the preset element list. That is, when generating the corresponding preset element list, it is necessary to include as many conditions as possible. Therefore, it is necessary to split the accommodation conditions of all rooms to obtain the accommodation conditions of each room, and use the union of the accommodation conditions of all rooms as the preset element list. For example, the accommodation conditions of some rooms are that there are elevators but no air conditioners, the accommodation conditions of some rooms are that there are hot water but no elevators, and the accommodation conditions of some rooms are that there are air conditioners but no elevators and hot water. When constructing the preset element list, the preset element list is set to include conditional elements corresponding to hot water, air conditioners and elevators respectively.

[0047] In a specific embodiment, based on the accommodation conditions of the rooms, statistical classification is performed to obtain a corresponding preset element list C, and each condition element C is set for each room. i The status is SR(C i ). In which, it is assumed that there are m elements in the preset element list C. i represents the i-th element. And, i∈[1,2,...,m]. SR(C i ) indicates the selected condition element C i The state of SR(C i )∈[0,1], that is, when the room satisfies the conditional element, the state value of the conditional element corresponding to the room is set to 1, otherwise it is set to 0. For example, when the conditional element corresponds to an elevator, if the room has an elevator, the state value of the conditional element in the room is 1, and if there is no elevator, the state value of the conditional element in the room is 0. For the conditional element corresponding to a window, the state value of the conditional element in the room is 1 when there is a window, and the state value of the conditional element in the room is 0 when there is no window. For the conditional element corresponding to an air conditioner, the state value of the conditional element in the room is 1 when there is air conditioning, and the state value of the conditional element in the room without air conditioning is 0.

[0048] Then, obtain all the conditional elements C of the personnel to be assigned to the room i The expected state SER(C i ) and the expected degree SEW(C i ), the data source can be realized through questionnaire survey, on-site consultation and other unlimited forms. i )∈[0,1], the state value rule is the same as SR(C i). For example, when a person expects the room to have an elevator, the expected state of the condition factor is 1, and if there is no elevator, the expected state is 0. For example, when a person expects the room to have a window, the expected state of the condition factor is 1, and if there is no window, the expected state is 0. For example, when a person expects the room to have an air conditioner, the expected state of the condition factor is 1, and if there is no air conditioner, the expected state is 0. At the same time, through SEW (C i )∈[1,2,3,4,5,6,7,8,9,10], which indicates the degree of expectation of personnel for each condition factor, and can also be understood as a weight score. The higher the value, the more importance is attached to a condition factor. For example, when the weight score of personnel's expectation of having an elevator is 8, having windows is 5, and having air conditioning is 2, it means that personnel attach the most importance to having an elevator in the room, followed by having windows, and attaching the least importance to having air conditioning.

[0049] Define an ordered array SA of length n. Where n is the total number of available houses. The houses are numbered 1, 2, ..., n and each room number is unique. j represents the room numbered j (j∈[1,2,...,n]), SA[R j ] represents the sum of the matching scores of each element of the room numbered j (j∈[1,2,...,n]). According to the personnel's expected score SER(C i )(i∈[1,2,...,m]) and weight score SEW(C i )(i∈[1,2,...,m]), select room R with number j in the house j (j∈[1,2,...,n]), calculate the final matching score of each element of the room. The specific calculation formula is:

[0050] SA[R j ]=∑((SR(C i )⊙SER(C i ))×SEW(C i ) 2 );

[0051] Among them, ⊙ represents the same or same operation, which equals 1 when the two operands are the same and equals 0 when they are different; SR(C i )⊙SER(C i ) There are two results: 0 and 1. When the state of the condition element corresponding to the room is the same as the person's expected state of the condition element, it is 1, otherwise it is 0. For example, the score is 1 when the room has an elevator and the person expects the room to have an elevator, 1 when the room has no elevator and the person expects there is no elevator, 0 when the room has an elevator but the person expects there is no elevator, and 0 when the room has no elevator but the person expects there is an elevator.

[0052] Similarly, after all the matching scores of n rooms are calculated, a valid array SA containing all the matching scores of rooms is obtained. Sort the array SA from high to low according to the scores. The sorting can be done by public algorithms such as bubble sort or quick sort, without limitation. Take the first element R after SA is sorted in descending order x (x∈[1,2,...,n]), which means that the room numbered x has the highest score after calculating the factor weights of each room based on the expected scores of each factor of the person. Then the room numbered x is the best matching room for this person.

[0053] In another embodiment, assume that the house has 3 rooms, numbered 1, 2, and 3. The rooms have 3 conditional elements, numbered 1, 2, and 3, which respectively represent elevator, window, and air conditioning. Assume that the 3 rooms are room 1 with elevator, no window, and no air conditioning, room 2 with elevator, no window, and air conditioning, and room 3 without elevator, window, and air conditioning. This is shown in Table 1-1.

[0054] Room / Element Status <![CDATA[SR(C1)]]> <![CDATA[SR(C2)]]> <![CDATA[SR(C3) <!-- 5 -->]]> Room 1 1 0 0 Room 2 1 0 1 Room 3 0 1 1

[0055] Table 1-1

[0056] Assume that a person's expectations for each factor are that there is an elevator, no windows, and air conditioning, and the weights are 8 points, 5 points, and 2 points respectively. As shown in Table 1-2:

[0057]

[0058] Table 1-2

[0059] Define an ordered array SA of length 3, according to the formula (SR (C i )⊙SER(C i ))×SEW(C i ) 2 Calculate the matching score and total score of each room. As shown in Table 1-3:

[0060]

[0061] Table 1-3

[0062] Calculate the total matching score of each room: Room 1 matching score SA[R1] = 64+25+0 = 89, Room 2 matching score SA[R2] = 64+25+4 = 93, Room 3 matching score SA[R3] = 0+0+4 = 4, that is: SA = [SA[R1], SA[R2], SA[R3]] = [89, 93, 4]. Arrange the array SA in descending order to get SA' = [SA[R2], SA[R1], SA[R3]]. It can be seen that the first element is SA[R2]. The subscript 2 of R2 indicates room numbered 2, so the person should be assigned to room numbered 2.

[0063] In addition, an electronic device of the present invention has the function of implementing the corresponding steps performed in the above method. Each function can be implemented by hardware, or by hardware executing corresponding software. The corresponding hardware or software includes one or more modules corresponding to the above functions. That is, the steps in the above method are respectively executed by one or more modules. The specific coordination operations between the modules can refer to the specific process of the above method, which will not be repeated here.

[0064] In addition, an electronic device of the present invention may also include a memory and a processor; the memory is used to store a computer program; the processor is used to execute the computer program to implement any of the above methods. Specifically, according to an embodiment of the present invention, the process described with reference to the flowchart above can be implemented as a computer software program. For example, an embodiment of the present invention includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed by an electronic device and when executed, it performs the above functions defined in the method of the embodiment of the present invention. The electronic device in the present invention can be a terminal such as a notebook, a desktop, a tablet computer, a smart phone, or a server.

[0065] In addition, a computer storage medium of the present invention stores a computer program thereon, and when the computer program is executed by a processor, any of the above methods is implemented. Specifically, it should be noted that the above-mentioned computer-readable medium of the present invention may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, device or device. In the present invention, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer readable signal media may also be any computer readable medium other than computer readable storage media, which may send, propagate, or transmit programs for use by or in conjunction with an instruction execution system, apparatus, or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.

[0066] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.

[0067] It can be understood that the above embodiments only express the preferred implementation modes of the present invention, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the patent scope of the present invention. It should be pointed out that, for ordinary technicians in this field, the above technical features can be freely combined without departing from the concept of the present invention, and several deformations and improvements can be made, which all belong to the protection scope of the present invention. Therefore, all equivalent changes and modifications made to the scope of the claims of the present invention should belong to the coverage of the claims of the present invention.

Claims

1. A method for matching a person to a room, characterized in that: The method comprises: Acquiring condition element states corresponding to the room based on a preset element list, wherein the preset element list includes a number of condition elements for measuring accommodation conditions of the room, and the condition element states are used to indicate satisfaction of all condition elements in the room; Obtaining request information corresponding to the person to be checked in, and obtaining the expected state of all condition elements of the person to be checked in and the expected degree of all condition elements of the person to be checked in according to the preset element list; Acquire the information of allocatable rooms, and acquire the element matching results corresponding to the allocatable rooms based on the expected status of all condition elements of the person to be accommodated, the condition element status corresponding to the allocatable rooms, and the expected degree of all condition elements of the person to be accommodated; The corresponding allocable room is obtained according to the element matching result as the target room corresponding to the person to be accommodated.

2. The personnel room matching method according to claim 1, characterized in that: The method further comprises: Matching the conditional elements corresponding to the allocatable rooms based on the preset element list, so that when the allocatable room contains the conditional element, the value corresponding to the conditional element in the preset element list is set to a first true value, otherwise, the value corresponding to the conditional element in the preset element list is set to a second true value; Matching the expected states of all conditional elements of the person to be accommodated with the preset element list, and when the expected state is positive, setting the value corresponding to the conditional element in the preset element list to a third true value; otherwise, setting the value corresponding to the conditional element in the preset element list to a fourth true value; Perform XOR calculation on the value corresponding to each conditional element to obtain the true value calculation result corresponding to each conditional element; Obtaining element matching scores corresponding to the allocable rooms according to the truth value calculation results corresponding to all condition elements and the expected degrees of all condition elements; The corresponding allocable room is obtained according to the element matching score as the target room corresponding to the person to be accommodated.

3. The personnel room matching method according to claim 2, characterized in that: The first truth value and the third truth value are 1, and the second truth value and the fourth truth value are 0.

4. The personnel room matching method according to claim 2, characterized in that: The method further comprises: The value between 1 and 10 is used to identify the expectation level of the condition element, wherein, when the expectation level of the person to be accommodated for the condition element is higher, the value corresponding to the expectation level is larger.

5. The personnel room matching method according to claim 4, characterized in that: The step of obtaining the element matching score corresponding to the allocatable room according to the truth value calculation results corresponding to all condition elements and the expected degree of all condition elements comprises: The product of the square of the value corresponding to the expected degree of the condition factor and the true value calculation result corresponding to the condition factor is obtained as the matching score of the condition factor, and the sum of the matching scores of all the condition factors of the assignable room is obtained as the factor matching score corresponding to the assignable room.

6. The personnel room matching method according to claim 5, characterized in that: The step of obtaining the corresponding allocable room as the target room corresponding to the person to be accommodated according to the element matching score comprises: The allocable room with the highest element matching score is obtained as the target room corresponding to the person to be accommodated.

7. The personnel room matching method according to claim 1, characterized in that: The method further comprises: Based on the preset rules, the accommodation conditions of all rooms are divided respectively, and the conditions are combined to generate the preset element list.

8. An electronic device, characterized in that: The electronic device comprises: a module for executing the method according to any one of claims 1 to 7.

9. An electronic device, characterized in that: including memory and processor; The memory is used to store computer programs; The processor is configured to execute the computer program to implement the method according to any one of claims 1 to 7.

10. A computer storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.