Public facility configuration method based on demand theory

Through the public facilities configuration method based on demand theory, we collect user needs and geographical information, establish a demand model, and use optimization algorithms to optimize facility layout, solving the problem that traditional methods cannot meet diverse needs, achieving efficient resource utilization and improving service quality.

CN118780419APending Publication Date: 2024-10-15XI AN JIAOTONG UNIV +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410776974.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-17
Publication Date
2024-10-15

AI Technical Summary

Technical Problem

Traditional public facilities configuration methods are difficult to effectively meet diverse urban needs, and cannot maximize service coverage and meet user needs under limited resources.

Method used

Based on demand theory, by collecting users' needs and opinions on public facilities, geographical location information and demand quantity information, a demand model is established, and optimization algorithms are used to formulate facility layout plans to optimize the number, location and scale of facilities. The optimization goal is to minimize costs. , maximize service coverage and minimize user waiting time.

Benefits of technology

It achieves a more scientific and comprehensive configuration of public facilities, improves service efficiency and user satisfaction, avoids waste of resources, can more accurately meet user needs, and improves the service quality of public facilities.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118780419A_ABST
    Figure CN118780419A_ABST
Patent Text Reader

Abstract

The invention relates to a public facility configuration method based on a demand theory, which relates to the technical field of data mining, and comprises the following steps: designing an online questionnaire, collecting demands and opinions of users on public facilities, geographical location information and demand quantity information, establishing a demand model based on the collected data, and establishing a demand model based on the demand model; comprising space distribution, time distribution and quantity distribution of user demands, according to an established demand model, a layout plan of public facilities is formulated, the layout plan comprises the quantity, the position and the scale of the facilities, an optimization algorithm is utilized, a facility configuration scheme is optimized, and optimization objectives are cost minimization, service coverage rate maximization and user waiting time minimization. And an optimal solution is found under the condition that constraint conditions comprise budget limitation, land availability and facility capacity, so that user requirements are met to the greatest extent, and the service efficiency 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 data mining, and more specifically, to a public facility configuration method based on demand theory. Background Art

[0002] The theory of demand is an economic theory that studies people's demands for goods and services and how these demands affect market behavior. In the allocation of public facilities, the theory of demand can help determine which facilities are most needed and how to best meet these demands. The assumption behind the theory of demand is that people behave rationally and make decisions based on their own interests.

[0003] With the continuous development of society and the trend of urbanization, cities are facing growing demand pressure. Traditional methods of public facility configuration may not be able to effectively meet diverse needs, so it is necessary to explore more scientific and comprehensive methods to configure public facilities to promote sustainable and healthy development of cities. Summary of the invention

[0004] The present invention aims at the technical problems existing in the prior art and provides a public facility configuration method based on demand theory to solve the problems raised in the above background technology.

[0005] The technical solution of the present invention to solve the above technical problems is as follows: a method for configuring public facilities based on demand theory, specifically comprising the following steps:

[0006] Step 101: Collect users' needs and opinions on public facilities, as well as their geographical location information and quantity information required;

[0007] Step 102: Establish a demand model based on the collected data, including the spatial distribution, temporal distribution and quantity distribution of user demand;

[0008] Step 103: Based on the established demand model, formulate a layout plan for public facilities, including the number, location, and scale of facilities, and use an optimization algorithm to optimize the facility configuration plan to meet user needs to the greatest extent.

[0009] In a preferred embodiment, in step 101, the user's needs and opinions on public facilities, as well as the location information and the quantity information of the needs are collected, and the collected data is cleaned and processed, which can improve the configuration efficiency and quality of public facilities and enhance user satisfaction. The specific steps are as follows:

[0010] Step A1, data collection and integration: Design an online questionnaire, including questions about users' needs and opinions on public facilities, as well as questions about users' geographical location and quantity of demand. Invite users to participate in the survey by posting a link to the questionnaire on social media and website forums. Obtain information about users' use time of public facilities through traffic flow monitoring equipment, and use Excel tools to integrate data from different sources into a unified data platform for subsequent analysis and modeling.

[0011] Step A2, data cleaning: After collecting the questionnaires filled out by users, the data is cleaned and processed, including removing duplicate questionnaires, screening invalid information, analyzing the cleaned data, visually displaying users' needs and opinions on public facilities, and information on the quantity of demand in each region, and finding patterns and trends in the data.

[0012] In a preferred embodiment, in step 102, a demand model is established based on the collected data, including the spatial distribution, temporal distribution and quantity distribution of user demand, and the specific steps are as follows:

[0013] Step B1, spatial distribution of user needs: Based on the collected user needs and opinions on public facilities, as well as the geographical location information, the geographic information system tools are used to analyze the spatial distribution characteristics of user needs, and the distance decay function is used to establish a spatial distribution model. The specific calculation formula is as follows:

[0014]

[0015] Where D(x) is the demand weight at location x, d(x) is the distance from user location x to the public facility, and α and β are model parameters used to adjust the speed at which demand changes with distance;

[0016] Step B2, time distribution of user demand: obtain the user's use time information of public facilities through traffic data, use the probability distribution function to establish the time distribution model of user demand, and analyze the user's demand for public facilities in different time periods. The specific calculation formula is as follows:

[0017]

[0018] Where P(t) is the probability of demand at time t, μ is the average time of demand, σ is the standard deviation of demand, and e represents the exponential function;

[0019] Step B3: Quantity distribution of user demand: Based on the collected information on the quantity of public facility demand from users, use the cumulative distribution function to analyze the quantity distribution of demand from different user groups. The specific calculation formula is as follows:

[0020]

[0021] Where N(k) is the probability that the demand quantity is k, λ is the average demand quantity, k! represents the factorial of k, and e represents the exponential function.

[0022] In a preferred embodiment, in step 103, a layout plan of public facilities is formulated according to the established demand model, including the number, location, and scale of facilities, and the facility configuration plan is optimized using an optimization algorithm to meet user needs to the greatest extent and improve service efficiency. The specific steps are as follows:

[0023] Step C1, facility scale design: using the established demand model, calculate the facility demand in different time and space ranges, determine the potential locations of the facilities based on the demand calculation results, and design the scale and capacity of each facility according to the demand and expected service scope of each location;

[0024] Step C2, facility scale optimization: Genetic algorithm is used to optimize the location and scale of facilities. The optimization goal is to minimize cost, maximize service coverage, minimize user waiting time, and find the optimal solution under constraints including budget constraints, land availability, and facility capacity.

[0025] In a preferred embodiment, in the facility scale design of step C1, the established demand model is used to calculate the facility demand in different time and space ranges, the potential location of the facility is determined based on the demand calculation results, and the scale and capacity of each facility are designed according to the demand and expected service scope of each location, further comprising the following steps:

[0026] Step C101, formulate the layout plan of public facilities: according to the demand survey and analysis results, determine the types of public facilities involved, including schools, hospitals, parks, and transportation hubs; divide the expected service scope of each facility according to the demand model and facility type, and determine the user demand within different service scopes;

[0027] Step C102, calculating the facility demand: the calculation of the facility demand in different time and space ranges is to calculate the demand weight D(x, t) for each location x and time t;

[0028] According to the time distribution function P(t) and the quantity distribution function N(k), the demand at time t and spatial location x is calculated. The demand is expressed as: L(x,t) = P(t) × N(k);

[0029] The demand weight D(x) at location x is weighted with the demand L(x, t) at time t to obtain the final demand weight D(x, t), which is calculated as: D(x, t) = D(x) × L(x, t);

[0030] Step C103, determine the potential location of the facility: visualize the calculated demand weight D(x, t) result to generate a demand distribution heat map. The heat map can be used to intuitively see the distribution of demand at different locations and times, helping to determine the potential location of the facility.

[0031] In a preferred embodiment, in the step C2, in the facility scale optimization, the location and scale of the facility are optimized using a genetic algorithm, the optimization goal is to minimize the cost, maximize the service coverage, and minimize the user waiting time, and find the optimal solution under the constraints including budget constraints, land availability, and facility capacity, further comprising the following steps:

[0032] Step C201, problem definition: determine the specific values ​​of the location and scale of the decision variables, define minimizing cost, maximizing service coverage and minimizing user waiting time as the objective function, determine the constraints of budget limit, land availability and facility capacity, and the objective function formula is: Among them, Cost is the objective function, cost·size is the cost minimization, which represents the cost of facility location and size; WaitTime is the service coverage maximization, which represents the degree of coverage of user needs; is the user waiting time minimization, which represents the sum of user waiting time, and ζ are parameters;

[0033] Step C202, initializing the population: randomly generating a certain number of individuals as the initial population, each individual representing a facility configuration scheme;

[0034] Step C203, fitness function: Design a fitness function, calculate the fitness value of each individual according to the objective function and constraints, and evaluate its quality. The fitness function is Among them, Cost is the objective function;

[0035] Step C204, selection operation: using the selection operator to select excellent individuals as parents according to the fitness value;

[0036] Step C205, crossover operation: design a crossover operator to perform a crossover operation on the selected parent individuals to generate new offspring individuals;

[0037] Step C206, replacement operation: select the retained individuals based on the fitness value comparison to replace part of the individuals in the original population;

[0038] Step C207, iterative optimization: repeat the selection, crossover, mutation and replacement operations until the maximum number of iterations is reached;

[0039] Step C208, result analysis: Analyze the final optimization result to evaluate whether the goals of minimizing cost, maximizing service coverage, and minimizing user waiting time are met.

[0040] The beneficial effects of the present invention are as follows: by designing an online questionnaire, users' demands and opinions on public facilities, as well as their geographical location information and demand quantity information are collected; a demand model is established based on the collected data, including the spatial distribution, temporal distribution and quantity distribution of user demands; according to the established demand model, a layout plan for public facilities is formulated, including the number, location and scale of facilities; an optimization algorithm is used to optimize the facility configuration plan; the optimization goal is to minimize costs, maximize service coverage and minimize user waiting time; the optimal solution is found under constraints including budget constraints, land availability and facility capacity, so as to meet user demands to the greatest extent and improve service efficiency; through demand theory analysis, user demands can be obtained more accurately, the optimal configuration of public facilities can be achieved, and resource waste can be avoided; based on the data on user demand quantity and distribution, the actual needs of users can be better met and the service quality of public facilities can be improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] Figure 1 The figure is a flow chart of the method of the present invention. DETAILED DESCRIPTION

[0042] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of this application.

[0043] In the description of this application, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of this application, "plurality" means two or more, unless otherwise clearly and specifically defined.

[0044] In the description of the present application, the term "for example" is used to mean "used as an example, illustration or description". Any embodiment described as "for example" in the present application is not necessarily to be construed as being more preferred or advantageous than other embodiments. The following description is given to enable any technician in the field to implement and use the present invention. In the following description, details are listed for the purpose of explanation. It should be understood that a person of ordinary skill in the art can recognize that the present invention can be implemented without using these specific details. In other examples, well-known structures and processes will not be elaborated in detail to avoid unnecessary details to obscure the description of the present invention. Therefore, the present invention is not intended to be limited to the embodiments shown, but is consistent with the widest scope consistent with the principles and features disclosed in the present application.

[0045] Example 1

[0046] This embodiment provides Figure 1 A method for configuring public facilities based on demand theory is shown, which specifically includes the following steps:

[0047] Step 101: Collect users' needs and opinions on public facilities, as well as their geographical location information and quantity information required;

[0048] Step 102: Establish a demand model based on the collected data, including the spatial distribution, temporal distribution and quantity distribution of user demand;

[0049] Step 103: Based on the established demand model, formulate a layout plan for public facilities, including the number, location, and scale of facilities, and use an optimization algorithm to optimize the facility configuration plan to meet user needs to the greatest extent.

[0050] Preferably, in step 101, collecting users' needs and opinions on public facilities, as well as geographical location information and quantity information of needs, and cleaning and processing the collected data can improve the configuration efficiency and quality of public facilities and enhance user satisfaction. The specific steps are as follows:

[0051] Step A1, data collection and integration: Design an online questionnaire, including questions about users' needs and opinions on public facilities, as well as questions about users' geographical location and quantity of demand. Invite users to participate in the survey by posting a link to the questionnaire on social media and website forums. Obtain information about users' use time of public facilities through traffic flow monitoring equipment, and use Excel tools to integrate data from different sources into a unified data platform for subsequent analysis and modeling.

[0052] Step A2, data cleaning: After collecting the questionnaires filled out by users, the data is cleaned and processed, including removing duplicate questionnaires, screening invalid information, analyzing the cleaned data, visually displaying users' needs and opinions on public facilities, and information on the quantity of demand in each region, and finding patterns and trends in the data.

[0053] Preferably, in step 102, a demand model is established based on the collected data, including the spatial distribution, temporal distribution and quantity distribution of user demand. Through the analysis of quantity distribution, resources can be better allocated to ensure the effective use of public facilities and promote the sustainable development of the city. The specific steps are as follows:

[0054] Step B1, spatial distribution of user needs: Based on the collected user needs and opinions on public facilities, as well as the geographical location information, the geographic information system tools are used to analyze the spatial distribution characteristics of user needs, and the distance decay function is used to establish a spatial distribution model. The specific calculation formula is as follows:

[0055]

[0056] Where D(x) is the demand weight at location x, d(x) is the distance from user location x to the public facility, and α and β are model parameters used to adjust the speed at which demand changes with distance;

[0057] Step B2, time distribution of user demand: obtain the user's use time information of public facilities through traffic data, use the probability distribution function to establish the time distribution model of user demand, and analyze the user's demand for public facilities in different time periods. The specific calculation formula is as follows:

[0058]

[0059] Where P(t) is the probability of demand at time t, μ is the average time of demand, σ is the standard deviation of demand, and e represents the exponential function;

[0060] Step B3: Quantity distribution of user demand: Based on the collected information on the quantity of public facility demand from users, use the cumulative distribution function to analyze the quantity distribution of demand from different user groups. The specific calculation formula is as follows:

[0061]

[0062] Where N(k) is the probability that the demand quantity is k, λ is the average demand quantity, k! represents the factorial of k, and e represents the exponential function.

[0063] Preferably, in step 103, a layout plan of public facilities is formulated according to the established demand model, including the number, location, and scale of facilities, and the facility configuration plan is optimized using an optimization algorithm to meet user needs to the greatest extent and improve service efficiency. The specific steps are as follows:

[0064] Step C1, facility scale design: using the established demand model, calculate the facility demand in different time and space ranges, determine the potential locations of the facilities based on the demand calculation results, and design the scale and capacity of each facility according to the demand and expected service scope of each location;

[0065] Step C2, Facility scale optimization: Use genetic algorithms to optimize the location and scale of facilities to save costs. The optimization goals are to minimize costs, maximize service coverage, and minimize user waiting time. Finding the optimal solution under constraints including budget constraints, land availability, and facility capacity can reduce the blindness of planning and decision-making and avoid waste of resources.

[0066] Preferably, in the facility scale design of step C1, the established demand model is used to calculate the facility demand in different time and space ranges, and the potential location of the facility is determined based on the demand calculation results. According to the demand and expected service range of each location, the scale and capacity of each facility are designed to cover the user demand area to the greatest extent, improve the service range and quality, and the utilization rate of the facility, and further include the following steps:

[0067] Step C101, formulate the layout plan of public facilities: according to the demand survey and analysis results, determine the types of public facilities involved, including schools, hospitals, parks, and transportation hubs; divide the expected service scope of each facility according to the demand model and facility type, and determine the user demand within different service scopes;

[0068] Step C102, calculating the facility demand: the calculation of the facility demand in different time and space ranges is to calculate the demand weight D(x, t) for each location x and time t;

[0069] According to the time distribution function and quantity distribution function, the demand at time t and spatial position x is calculated. The demand is expressed as: L(x,t)=P(t)×N(k); where L(x,t) represents the demand, P(t) is the time distribution function, and N(k) is the quantity distribution function;

[0070] The demand weight D(x) at location x is weighted with the demand L(x, t) at time t to obtain the final demand weight D(x, t), which is calculated as: D(x, t) = D(x) × L(x, t);

[0071] Step C103, determine the potential location of the facility: visualize the calculated demand weight D(x, t) result to generate a demand distribution heat map. The heat map can be used to intuitively see the distribution of demand at different locations and times, helping to determine the potential location of the facility.

[0072] Preferably, in the step C2, in the facility scale optimization, the location and scale of the facility are optimized using a genetic algorithm, the optimization goal is to minimize the cost, maximize the service coverage, and minimize the user waiting time, and find the optimal solution under the constraints including budget constraints, land availability, and facility capacity, further comprising the following steps:

[0073] Step C201, problem definition: determine the specific values ​​of the location and scale of the decision variables, define minimizing cost, maximizing service coverage and minimizing user waiting time as the objective function, determine the constraints of budget limit, land availability and facility capacity, and the objective function formula is: Among them, Cost is the objective function, cost·size is the cost minimization, which represents the cost of facility location and size; WaitTime is the service coverage maximization, which represents the degree of coverage of user needs; is the user waiting time minimization, which represents the sum of user waiting time, and ζ are parameters;

[0074] Step C202, initializing the population: randomly generating a certain number of individuals as the initial population, each individual representing a facility configuration scheme;

[0075] Step C203, fitness function: Design a fitness function, calculate the fitness value of each individual according to the objective function and constraints, and evaluate its quality. The fitness function is Among them, Cost is the objective function;

[0076] Step C204, selection operation: using the selection operator to select excellent individuals as parents according to the fitness value;

[0077] Step C205, crossover operation: design a crossover operator to perform a crossover operation on the selected parent individuals to generate new offspring individuals;

[0078] Step C206, replacement operation: select the retained individuals based on the fitness value comparison to replace part of the individuals in the original population;

[0079] Step C207, iterative optimization: repeat the selection, crossover, mutation and replacement operations until the maximum number of iterations is reached;

[0080] Step C208, result analysis: Analyze the final optimization result to evaluate whether the goals of minimizing cost, maximizing service coverage, and minimizing user waiting time are met.

[0081] It should be noted that in the above embodiments, the description of each embodiment has its own emphasis, and for parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0082] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0083] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded computer, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0084] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0085] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0086] Although the preferred embodiments of the present invention have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention.

[0087] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.

Claims

1. A method for configuring public facilities based on demand theory, characterized in that: The specific steps include: Step 101: Collect users' needs and opinions on public facilities, as well as their geographical location information and quantity information required; Step 102: Establish a demand model based on the collected data, including the spatial distribution, temporal distribution and quantity distribution of user demand; Step 103: Based on the established demand model, formulate a layout plan for public facilities, including the number, location, and scale of facilities, and use an optimization algorithm to optimize the facility configuration plan to meet user needs to the greatest extent.

2. The method for configuring public facilities based on demand theory according to claim 1, characterized in that: In step 101, the user's needs and opinions on public facilities, as well as the location information and the quantity information of the needs are collected, and the collected data is cleaned and processed. The specific steps are as follows: Step A1, data collection and integration: Design an online questionnaire covering public facility needs and opinions, geographic location and quantity information, and publish links to social media and websites to invite public participation. Obtain usage time data through traffic flow equipment and integrate data from different sources into a unified data platform to facilitate subsequent analysis and modeling; Step A2, data cleaning: After collecting the questionnaires filled out by users, the data is cleaned and processed, including removing duplicated questionnaires and filtering out invalid information. The cleaned data is used to visualize users' needs and opinions on public facilities, as well as the quantity of demand in each region.

3. A method for configuring public facilities based on demand theory according to claim 2, characterized in that: In step 102, a demand model is established based on the collected data, including the spatial distribution, time distribution and quantity distribution of user demand. The step of establishing the spatial distribution model of user demand includes: using geographic information system tools to analyze the spatial distribution characteristics of user demand based on the collected user demand and opinions on public facilities and the geographical location information, and using the distance decay function to establish the spatial distribution model. The specific calculation formula is as follows: Where D(x) is the demand weight at location x, d(x) is the distance from user location x to the public facility, and α and β are model parameters.

4. A method for configuring public facilities based on demand theory according to claim 3, characterized in that: The demand model is established based on the collected data, including the spatial distribution, time distribution and quantity distribution of user demand. The step of establishing the time distribution model of user demand includes: obtaining the user's use time information of public facilities through traffic data, using the probability distribution function to establish the time distribution model of user demand, and analyzing the user's demand for public facilities in different time periods. The specific calculation formula is as follows: Where P(t) is the probability of demand at time t, μ is the average time of demand, σ is the standard deviation of demand, and e represents the exponential function.

5. A method for configuring public facilities based on demand theory according to claim 4, characterized in that: The demand model is established based on the collected data, including the spatial distribution, temporal distribution and quantity distribution of user demand. The step of establishing the quantity distribution model of user demand includes: according to the collected information on the quantity of public facility demand of users, using the cumulative distribution function to analyze the quantity distribution of demand of different user groups. The specific calculation formula is as follows: Where N(k) is the probability that the demand quantity is k, λ is the average demand quantity, k! represents the factorial of k, and e represents the exponential function.

6. A method for configuring public facilities based on demand theory according to claim 5, characterized in that: In step 103, a layout plan of public facilities is formulated according to the established demand model, and the facility configuration plan is optimized using an optimization algorithm. The specific steps are as follows: Step C1, facility scale design: using the established demand model, calculate the facility demand in different time and space ranges, determine the location of the facility based on the demand calculation results, and design the scale and capacity of each facility according to the demand and expected service scope of each location; Step C2, facility scale optimization: use genetic algorithm to optimize the location and scale of facilities.

7. A method for configuring public facilities based on demand theory according to claim 6, characterized in that: The step C1 facility scale design further includes the following steps: Step C101, formulate the layout plan of public facilities: determine the types of public facilities involved according to the demand survey and analysis results, divide the expected service scope of each facility according to the demand model and facility type, and determine the user demand within different service scopes; Step C102, calculate the demand for facilities: the calculation of the demand for facilities in different time and space ranges is to calculate the demand weight D(x, t) for each position x and time t; according to the time distribution function and the quantity distribution function, calculate the demand at time t and spatial position x, and the demand is expressed as: L(x, t) = P(t) × N(k); wherein L(x, t) represents the demand, P(t) is the time distribution function, and N(k) is the quantity distribution function; The demand weight D(x) at location x is weighted with the demand L(x, t) at time t to obtain the final demand weight D(x, t), which is calculated as: D(x, t) = D(x) × L(x, t); Step C103, determine the location of the facility: visualize the calculated demand weight D(x, t) result, generate a demand distribution heat map, and determine the location of the facility through the heat map.

8. A method for configuring public facilities based on demand theory according to claim 7, characterized in that: In the step C2 of optimizing the scale of facilities, the location and scale of the facilities are optimized using a genetic algorithm, further comprising the following steps: Step C201, problem definition: determine the specific values ​​of the location and scale of the decision variables, define minimizing cost, maximizing service coverage and minimizing user waiting time as the objective function, determine the constraints of budget limit, land availability and facility capacity, and the objective function formula is: Among them, Cost is the objective function, cost·size is the cost minimization; WaitTime is the service coverage maximization; is the user waiting time minimization, and ζ are parameters; Step C202, initializing the population: randomly generating a group of individuals as the initial population, each individual representing a facility configuration scheme; Step C203, fitness function: Design a fitness function, calculate the fitness value of each individual according to the objective function and constraints, and evaluate its quality. The fitness function is Among them, Cost is the objective function; Step C204, selection operation: using the selection operator to select excellent individuals as parents according to the fitness value; Step C205, crossover operation: design a crossover operator to perform a crossover operation on the selected parent individuals to generate new offspring individuals; Step C206, replacement operation: select the retained individuals based on the fitness value comparison to replace the individuals in the original population; Step C207, iterative optimization: repeat the selection, crossover, mutation and replacement operations until the maximum number of iterations is reached; Step C208, result analysis: Analyze the final optimization result to evaluate whether the goals of minimizing cost, maximizing service coverage, and minimizing user waiting time are met.