A method and device for quickly generating a scenario

By constructing a solution library and problem feature table, and using vectorization technology to calculate similarity, the problem of traditional decision support systems being difficult to generate matching solutions in a rapidly changing environment is solved. Fast and accurate decision support is achieved, and decision-making efficiency and adaptability are improved. sex.

CN118364090BActive Publication Date: 2024-08-27XIAN LINGKONG ELECTRONICS TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410790502.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-19
Publication Date
2024-08-27
Estimated Expiration
2044-06-19

AI Technical Summary

Technical Problem

In a rapidly changing decision-making environment, it is difficult for traditional decision support systems to quickly generate and adjust action plans that best match current problems, resulting in low efficiency and difficulty in responding to new situations.

Method used

By constructing a solution library and problem feature table, vectorization technology is used to describe and store the key information of historical scenarios, calculate the similarity between the query and the solution, and quickly retrieve and adjust the solution to adapt to new problems, including constructing the first and second vectors , calculate the similarity and make corrections according to the specific conditions of the new problem.

Benefits of technology

It realizes the rapid generation of action plans that best match current problems in a rapidly changing decision-making environment, improves decision-making efficiency and accuracy, supports personalized needs, and provides a clear plan list and analysis of pros and cons.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118364090B
    Figure CN118364090B
Patent Text Reader

Abstract

The present application discloses a method and device for quickly generating hypothetical solutions, including: describing and storing key information of past hypothetical solutions, building a solution library; listing a problem feature table containing different problem terms; for each solution in the solution library, identifying and extracting terms that match the problem terms in the problem feature table; using the weight of each matching term in each solution to build multiple first vectors; when receiving a new query, converting the query into a second vector with the same dimension as the number of problem terms in the problem feature table; calculating the similarity of multiple first vectors and second vectors according to the weight, and sorting the solutions according to the similarity; selecting solutions for problems similar to the new problem from the solution list, and adjusting or modifying the solutions according to the specific situation of the new problem. The method solves the problem of how to quickly generate and adjust the action plan that best matches the current problem in a rapidly changing decision-making environment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of decision support technology, and in particular to a method and device for quickly generating a hypothetical scenario. Background Art

[0002] In a complex decision-making environment, decision makers need to respond quickly and generate effective action plans to cope with changing situations. In the field of decision support systems, there are already a variety of technologies used to support decision makers' decision-making process. Among them, rule-based decision support systems guide the decision process through a predefined rule base; model-based decision support systems simulate and predict decision results by establishing mathematical models.

[0003] Traditional decision support systems usually make plans according to preset processes and entry points. This method is time-consuming and inefficient when dealing with rapidly changing environments. Decision makers need to spend a lot of time browsing and selecting appropriate decision options, and it is difficult to adjust plans in real time to adapt to new situations.

[0004] In modern reconnaissance mission planning, it is crucial to quickly and accurately generate solutions that meet specific needs. Therefore, how to quickly generate and adjust the action plan that best matches the current problem in a rapidly changing decision-making environment becomes a problem to be solved. Summary of the invention

[0005] In the embodiments of the present application, a method for quickly generating hypothetical scenarios is provided to solve the problem of how to quickly generate and adjust an action plan that best matches the current problem in a rapidly changing decision-making environment.

[0006] In a first aspect, an embodiment of the present application provides a method for quickly generating hypothetical solutions, the method comprising: describing and storing key information of past historical hypothetical solutions to construct a solution library; listing a problem feature table containing different problem terms; for each solution in the solution library, identifying and extracting terms that match the problem terms in the problem feature table; using the weight of each matching term in each solution to construct multiple first vectors; wherein the dimension of the first vector is the same as the number of problem terms in the problem feature table, and each element of the first vector represents the weight of the corresponding problem term in the solution; when a new query is received, converting the query into a second vector of the same dimension as the number of problem terms in the problem feature table; wherein each element in the second vector represents the weight of the corresponding problem term in the query; calculating the similarity between the multiple first vectors and the second vector according to the weights, and sorting the solutions according to the similarity to form a solution list; selecting solutions for problems similar to the new problem from the solution list, and adjusting or correcting the solutions according to the specific circumstances of the new problem.

[0007] In a possible implementation, the description and storage of key information of past historical hypothetical solutions and the construction of a solution library include: identifying and defining the main attributes of the problem and using mathematical tools to represent the characteristics of the problem; clarifying the key elements in the solution; wherein the key elements include decision variables and constraints; quantifying and describing the effects after the implementation of the solution and using an objective function to measure the pros and cons of the solution.

[0008] In a possible implementation, the weight of the corresponding question term in the solution and the weight of the corresponding question term in the query are calculated by calculating the weight of the term in the solution or query by multiplying the term frequency and the inverse solution frequency.

[0009] In one possible implementation, the term frequency is calculated by dividing the number of occurrences of a term in a solution or query by the total number of terms in the solution or query; the inverse solution frequency is calculated by calculating the logarithm of the number of solutions or queries containing the term.

[0010] In a possible implementation, calculating the similarities of the multiple first vectors and the second vector according to the weights includes: calculating the dot products of the multiple first vectors and the second vectors; calculating the modulus of the multiple first vectors and the second vectors; and calculating the similarities of the multiple first vectors and the second vector using the dot product and the modulus.

[0011] In one possible implementation, the dot product is used to reflect the degree of overlap between the first vector and the second vector on the same term; the modulus is used to reflect the overall strength of the term in the first vector and the second vector in their respective vectors; and the similarity is used to reflect the similarity in term weight distribution of the solutions or queries represented by the first vector and the second vector.

[0012] In a possible implementation, the method of selecting a solution for a problem similar to the new problem from a list of solutions and adjusting or revising the solution according to the specific circumstances of the new problem includes: analyzing the input parameters of the new problem; wherein the input parameters include resource availability and time constraints; adjusting the scale of the selected solution according to the analysis results of the input parameters; when the logical order of the new problem is not completely consistent with the selected solution, adjusting the feature order of the input parameters; when the solution in the solution library cannot fully meet the requirements of the new problem, redesigning part of the content of the solution; wherein the redesign method includes updating algorithms, strategies and / or processes; applying the revised solution to the new problem and evaluating it according to the test results; wherein the evaluation indicators include the effectiveness, efficiency and cost of the solution.

[0013] In a second aspect, an embodiment of the present application provides a device for quickly generating hypothetical solutions, the device comprising: a construction module, used to describe and store key information of past historical hypothetical solutions, and to construct a solution library; a list module, used to list a problem feature table containing different problem terms; an extraction module, used to identify and extract, for each solution in the solution library, terms that match the problem terms in the problem feature table; a first vector construction module, used to construct multiple first vectors using the weight of each matching term in each solution; wherein the dimension of the first vector is the same as the number of problem terms in the problem feature table, and each element of the first vector represents the weight of the corresponding problem term in the solution; a second vector construction module, used to, when a new query is received, convert the query into a second vector of the same dimension as the number of problem terms in the problem feature table; wherein each element in the second vector represents the weight of the corresponding problem term in the query; a similarity calculation module, used to calculate the similarity of multiple first vectors and second vectors according to the weights, and sort the solutions according to the similarity to form a solution list; an adjustment module, used to select solutions for problems similar to the new problem from the solution list, and adjust or modify the solutions according to the specific circumstances of the new problem.

[0014] In a third aspect, an embodiment of the present application provides a server for quickly generating hypothetical scenarios, comprising a memory and a processor; the memory is used to store computer-executable instructions; the processor is used to execute the computer-executable instructions to implement the method described in the first aspect or any possible implementation method of the first aspect.

[0015] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores executable instructions, and when a computer executes the executable instructions, the method described in the first aspect or any possible implementation method of the first aspect can be implemented.

[0016] One or more technical solutions provided in the embodiments of the present application have at least the following technical effects:

[0017] The embodiment of the present application provides a method for quickly generating a hypothetical solution. Through a pre-built solution library and a problem feature table, a new query request can be quickly responded to without building a solution from scratch. The application of vectorization technology makes similarity calculation efficient, thereby realizing rapid retrieval and solution recommendation. Since the solution library is built based on past historical hypothetical solutions, these solutions have been actually verified and evaluated, so they have high accuracy and reliability. Through the problem feature table and vectorization technology, the key information in the query can be accurately identified and the solution that best matches it can be found. It supports adjusting or modifying the solution to adapt to the specific circumstances of the new problem. And it can provide users with a clear and intuitive list of solutions and sort them according to similarity. This enables users to quickly find the solution that best matches their problem and understand the advantages and disadvantages and scope of application of each solution. At the same time, it also supports adjusting and modifying the solution to meet the personalized needs of users. Thereby solving the problem of how to quickly generate and adjust the action plan that best matches the current problem in a rapidly changing decision-making environment. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments of the present application or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0019] Figure 1 A flowchart of a method for quickly generating a scenario provided in an embodiment of the present application;

[0020] Figure 2 A specific flow chart for describing and storing key information of past historical scenarios provided in the embodiments of the present application, and constructing a scenario library;

[0021] Figure 3 A specific flow chart for calculating the similarity between a plurality of first vectors and a second vector according to weights provided in an embodiment of the present application;

[0022] Figure 4 A specific flow chart for selecting a solution to a problem similar to the new problem from a list of solutions provided in the embodiment of the present application, and adjusting or modifying the solution according to the specific circumstances of the new problem;

[0023] Figure 5 A schematic diagram of a device for quickly generating a scenario provided in an embodiment of the present application;

[0024] Figure 6 A schematic diagram of a server for quickly generating a hypothetical solution provided in an embodiment of the present application. DETAILED DESCRIPTION

[0025] The technical solutions in the embodiments of the present application will be described clearly and completely below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0026] The following describes some of the techniques involved in the embodiments of the present application to facilitate understanding, and they should be considered as merely exemplary. Therefore, it should be appreciated by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present application. Similarly, for the sake of clarity and conciseness, some descriptions of well-known functions and structures are omitted in the following description.

[0027] The present application embodiment provides a method for quickly generating a scenario, such as Figure 1 As shown, the method includes steps S101 to S107. Among them, Figure 1 This is only an execution order shown in the embodiment of the present application, and does not represent the only execution order of a method for quickly generating a scenario. If the final result can be achieved, Figure 1 The steps shown may be performed in parallel or reversed.

[0028] S101: Describe and store key information of past historical scenarios and build a scenario library.

[0029] Specifically, when building a reconnaissance mission solution library, we first need to collect and organize the data of historical reconnaissance missions. These data include mission type, target area, execution time, reconnaissance tools and techniques used, reconnaissance satisfaction, etc. By analyzing these data, we can identify the common characteristics and patterns of successful reconnaissance missions.

[0030] Furthermore, the key information of past historical scenarios can be described and stored in a structured manner, wherein the key information includes the characteristics of the problem, the key elements in the solution, and the effects after the solution is implemented.

[0031] Figure 2 The specific flow chart for describing and storing the key information of the past historical scenarios provided in the embodiment of the present application and constructing the scenario library is as follows: Figure 2 As shown, it includes steps S201 to S203.

[0032] S201: Identify and define the main attributes of the problem and use mathematical tools to represent the problem characteristics.

[0033] Specifically, problem features are the main attributes that define and distinguish a problem. In the process of building a solution library, it is first necessary to identify the problem features of each historical scenario. For example, in building a new reconnaissance mission, it is necessary to identify the main attributes of the problem, such as the target area (R), reconnaissance tools (D), execution time (t), etc. Mathematical tools (such as sets, vectors, matrices, real numbers, etc.) are used to represent these features so that they can be processed and compared by computers. For example, the target area (R) can be represented as a set: .in, For each different target area. For example, the reconnaissance tool (D) can be represented as a vector: .in, Corresponding to each different target area For example, the execution time (t) can be expressed as a real number: .in, Of course, the problem features can be represented by mathematical tools and can also be defined as other definitions, and this application is not limited to the above definition.

[0034] S202: Clarify the key elements of the solution, including decision variables and constraints.

[0035] Specifically, in constructing a reconnaissance mission, the decision variables can be reconnaissance tools, which are the allocations to each target area, and the constraints are that the total amount of reconnaissance tools cannot exceed it or the demand must be met, etc. These elements together define an optimization problem, the goal of which is to find the best reconnaissance mission allocation solution under certain conditions (i.e., constraints).

[0036] For example, you can use the reconnaissance tool ( ) is defined as: .in is the reconnaissance tool assigned to the requirement, and T represents a column vector. The constraints can be defined as: and , indicating all resources The sum of the reconnaissance tools assigned to each reconnaissance task cannot exceed the total number of reconnaissance tools R, ensuring that the total number of available reconnaissance tools will not be exceeded when allocating reconnaissance tools. And for each requirement, the number of reconnaissance tools allocated to it Must at least meet its demand Of course, the reconnaissance tool can also be defined in other ways, and this application is not limited to the definition of the reconnaissance tool.

[0037] Specifically, the basic parts of a plan include the conditions that are necessary to describe the plan. The necessary conditions for each plan vary according to its purpose. For example, the basic parts of a resource allocation plan include the total amount of resources, demand, time limit, etc.

[0038] S203: Quantify and describe the effects of the implementation plan, and use the objective function to measure the pros and cons of the plan.

[0039] Specifically, the objective function can be set as This objective function is used to quantify and describe the effect of implementing the solution in meeting the requirements, where: represents the amount of reconnaissance tools assigned to the i-th reconnaissance task, represents the demand allocated to the i-th reconnaissance task. For each reconnaissance task i, represents the actual demand met, if (amount of reconnaissance tools allocated) greater than or equal to (demand), then that is ;if Less than ,but that is , that is, the demand is only partially met. Objective function is for all reconnaissance missions i The sum is calculated. The result of this sum represents the total degree to which all reconnaissance tasks are satisfied. If all reconnaissance tasks are fully satisfied, then The value of is the sum of all reconnaissance tasks; if any reconnaissance task is not fully satisfied, then The value of will be less than the sum of all reconnaissance tasks. Since the optimization problem of the objective function is to maximize the objective function, the goal is to find a reconnaissance task allocation scheme so that the total degree of satisfaction of all reconnaissance tasks is maximized under the premise of satisfying the constraints. Of course, the objective function can also be set to other, and this application is not limited to this objective function.

[0040] S102: List a question feature table containing different question terms.

[0041] Specifically, the problem feature table should contain important features or attributes related to past historical scenarios. For example, in the reconnaissance task allocation problem, the problem feature table may contain the following entries: task type, target area, execution time, reconnaissance tools used, reconnaissance satisfaction, etc.

[0042] S103: For each solution in the solution library, identify and extract terms that match the problem terms in the problem feature table.

[0043] Specifically, for example, in the reconnaissance task allocation problem, a plan may contain the following information: plan ID: 1, 2, 3, total target area: 10, number of reconnaissance tools: [2, 3, 5], execution time limit: 2 hours, allocation strategy: allocation on demand, satisfaction target: 90%. For this plan, the terms that match the problem feature table can be extracted.

[0044] S104: construct multiple first vectors using the weight of each matching term in each solution, wherein the dimension of the first vector is the same as the number of question terms in the question feature table, and each element of the first vector represents the weight of the corresponding question term in the solution.

[0045] S105: When a new query is received, the query is converted into a second vector having the same dimension as the number of question terms in the question feature table, wherein each element in the second vector represents the weight of the corresponding question term in the query.

[0046] Specifically, the weight of the corresponding question term in the solution and the weight of the corresponding question term in the query are calculated by multiplying the term frequency and the inverse solution frequency. The term frequency is calculated by dividing the number of occurrences of the term in the solution or query by the total number of terms in the solution or query. The inverse solution frequency is calculated by calculating the logarithm of the number of solutions or queries containing the term.

[0047] Furthermore, the weight of the corresponding question terms in the solution and the weight of the corresponding question terms in the query are calculated as follows: Calculate the weight of the term in the solution or query. is the weight of the term in the scheme or query, is the word frequency, is the inverse scheme frequency. .in, is the word frequency, is the number of occurrences of term t in the solution or query d, is the total number of terms in the solution or query d. .in, is the inverse solution frequency, N is the total number of solutions or queries, is the number of solutions or queries containing term t.

[0048] S106: Calculate similarities between the first vectors and the second vectors according to the weights, and sort the solutions according to the similarities to form a solution list.

[0049] Specifically, a question feature vector can be established to store key information of new query requests, such as reconnaissance targets, expected execution time windows, available technical resources, etc. When a new query request is received, the system will also convert the information in the request into a vector and compare it with the solutions in the solution library using a pre-set similarity calculation method (such as cosine similarity or Euclidean distance).

[0050] Figure 3 A specific flow chart of calculating the similarity of a plurality of first vectors and a second vector according to weights provided in an embodiment of the present application, such as Figure 3 As shown, it includes steps S301 to S303.

[0051] S301: Calculate the dot products of a plurality of first vectors and a second vector.

[0052] Specifically, the dot product is a dot multiplication operation between two vectors, which is used to calculate the similarity of the two vectors in direction.

[0053] S302: Calculate the modulus lengths of a plurality of first vectors and second vectors.

[0054] S303: Calculate similarities between the first vectors and the second vectors using dot products and modulus lengths.

[0055] Specifically, the dot product is used to reflect the degree of overlap between the first vector and the second vector on the same term. The modulus is used to reflect the overall strength of the term in the first vector and the second vector in their respective vectors. The similarity is used to reflect the similarity of the solutions or queries represented by the first vector and the second vector in the term weight distribution.

[0056] Specifically, the similarity calculation can use the cosine similarity formula, which is the dot product of two vectors divided by the product of their moduli. The result is a value between [-1, 1], where 1 means that the two vectors are completely similar, -1 means that the two vectors are completely opposite, and 0 means that the two vectors are orthogonal (i.e., not similar or opposite).

[0057] Furthermore, the similarities between the first vectors and the second vectors are calculated according to the weights, and the calculation formula is as follows: .in, is the similarity between the first vector and the second vector, d is the first vector, q is the second vector, is the dot product operation, is the modulus of the first vector, is the magnitude of the second vector. .in, is the weight of the term in the scheme. .in, The weight of the term in the query. .in, The first vector With the second vector Perform a dot product operation.

[0058] It should be noted that once the similarities between all first vectors and second vectors are calculated, the solutions can be sorted according to these similarity values ​​to form a list of solutions arranged from high to low (or from low to high) in terms of similarity. In this way, users can quickly find the most relevant (or least relevant) solution to the query based on this list.

[0059] Specifically, based on the calculated similarity, several reconnaissance mission solutions that best match the new query can be quickly retrieved and presented to the user in the form of a list. The user can see detailed information about each recommended solution, including the mission type, target area, execution time, reconnaissance tools used, reconnaissance satisfaction, etc.

[0060] S107: Select solutions to problems similar to the new problem from the solution list, and adjust or modify the solutions according to the specific situation of the new problem.

[0061] Figure 4 A specific flow chart for selecting a solution to a problem similar to the new problem from a list of solutions provided in the embodiment of the present application, and adjusting or modifying the solution according to the specific circumstances of the new problem, such as Figure 4 As shown, it includes steps S401 to S405.

[0062] Specifically, in order to meet the personalized needs of users, the system also provides a solution adjustment function. Users can fine-tune the recommended solution according to actual conditions, such as changing the reconnaissance tool, adjusting the execution schedule, or adding additional reconnaissance targets. The system will recalculate the similarity based on the user's adjustment and update the recommendation list.

[0063] S401: Analyze the input parameters of the new problem. The input parameters include resource availability and time constraints. Specifically, analyzing the input parameters of the new problem includes understanding the specific requirements and constraints of the new problem. The input parameters usually include resource availability (such as the type of task, target area, reconnaissance tools used, etc.) and time constraints (such as the time of the reconnaissance task). It is also necessary to evaluate the adequacy of resources, the urgency of time, and other factors that may affect the implementation of the plan.

[0064] S402: Adjust the scale of the selected solution according to the analysis results of the input parameters.

[0065] Specifically, the scale of the selected solution can be adjusted according to the analysis results of the input parameters to ensure that the solution is feasible under resource and time constraints. The scale of the selected solution can be adjusted to expand or reduce the characteristic range of the input parameters to better adapt to the current situation.

[0066] S403: When the logical order of the new problem is not completely consistent with the selected solution, the characteristic order of the input parameters is adjusted.

[0067] Specifically, in some cases, although a solution to a problem similar to the new problem is found, the execution logic order of the solution may not be completely consistent with the logic order of the new problem. In order to apply the selected solution to the new problem, the feature order of the input parameters of the new problem (such as reconnaissance tool availability, time constraints, input variables, etc.) needs to be adjusted to ensure that they can be properly processed and utilized in the logical order of the selected solution. If the logical order of the new problem is fundamentally different from that of the selected solution, it may be necessary to redesign some steps or add / delete some steps to adapt to the logical order of the new problem. In this case, the feature order of the input parameters also needs to be adjusted accordingly.

[0068] S404: When the solutions in the solution library cannot fully meet the requirements of the new problem, part of the solution is redesigned, wherein the redesign method includes updating the algorithm, strategy and / or process.

[0069] Specifically, if the processing of a new problem requires a specific algorithm or algorithm optimization, you can consider updating or replacing the existing algorithm in the solution, which involves adjusting the algorithm parameters, modifying the algorithm structure, or completely replacing it with a new algorithm. Strategy is the principle and method that guides the implementation of the solution. When a new problem has new requirements for the strategy, it is necessary to adjust the strategy in the solution according to the characteristics of the new problem, including modifying the decision rules, optimizing the resource allocation strategy, or changing the course of action. The process is the specific steps and sequence of the implementation of the solution. When a new problem has new requirements for the process, it is necessary to optimize the process in the solution, which involves adding new steps, deleting unnecessary steps, changing the execution order of steps, or adjusting the logical relationship between steps.

[0070] S405: Apply the revised solution to the new problem and evaluate it based on the test results, where the evaluation indicators include the effectiveness, efficiency and cost of the solution.

[0071] Specifically, before implementing the revised solution, you need to ensure that all relevant resources and support are ready. During the testing process, you should simulate the real environment and conditions as much as possible to more accurately evaluate the performance of the solution. When evaluating the performance of the solution, you should consider multiple indicators comprehensively to avoid focusing on one aspect and ignoring the importance of other aspects.

[0072] An example is given below to illustrate a method for quickly generating a hypothetical scenario provided in an embodiment of the present application.

[0073] First, a solution library containing historical reconnaissance mission solutions is built. Each solution records in detail the mission's objectives, execution environment, technologies and equipment used, action steps, and final results and feedback. Each solution in the solution library is represented as a structured data form to facilitate subsequent feature extraction and similarity calculation. When a new reconnaissance mission request is received, key features such as target type, geographical location, expected threat level, available resources, etc. are extracted from the mission description. Similarity calculation is performed between the features of the new mission and the solutions in the solution library to find several historical cases that best match the new mission. Based on the most matching historical cases, corresponding reconnaissance solutions are recommended for the new mission. These solutions can be complete action steps or partial strategies or suggestions. For example, if the new mission is to conduct reconnaissance of communication facilities in an urban environment, solutions such as using drones for aerial surveillance, electronic reconnaissance equipment for signal listening, and ground reconnaissance teams for field confirmation will be recommended. These recommended solutions are extracted from missions that have been successfully performed in similar environments in the past. Users can select the solution that best meets current needs based on the recommended solution list and adjust and optimize it according to specific circumstances. A detailed analysis report is provided for each recommended solution, including the advantages, potential risks, and possible improvement measures. Users can evaluate the solutions based on this information and feed back the actual execution results to the solution library for subsequent case updates and learning. By leveraging the experience and knowledge of historical solutions, solutions can be quickly provided for new reconnaissance missions to improve the efficiency of mission planning. Similarity calculation-based methods can ensure that the recommended solutions have a high degree of match with new tasks, improving the accuracy and success rate of task execution. Users can adjust and optimize the recommended solutions based on actual conditions to adapt to different task requirements and environmental changes. With the continuous updating and learning of the solution library, the system can gradually adapt to new task types and requirements, improving overall adaptability and scalability.

[0074] The method for rapidly generating scenario plans provided by the present application is an efficient, accurate, flexible and adaptable task planning method, which can not only improve the efficiency and accuracy of task planning, but also enhance the flexibility and adaptability of task execution.

[0075] The present application also provides a device 500 for quickly generating a scenario. Figure 5 As shown, the device includes: a construction module 501, a list module 502, an extraction module 503, a first vector construction module 504, a second vector construction module 505, a similarity calculation module 506 and an adjustment module 507.

[0076] The construction module 501 is used to describe and store key information of past historical scenarios and construct a scenario library.

[0077] The list module 502 is used to list a question feature table containing different question terms.

[0078] The extraction module 503 is used to identify and extract, for each solution in the solution library, terms that match the question terms in the question feature table.

[0079] The first vector construction module 504 is used to construct multiple first vectors using the weight of each matching term in each solution, wherein the dimension of the first vector is the same as the number of question terms in the question feature table, and each element of the first vector represents the weight of the corresponding question term in the solution.

[0080] The second vector construction module 505 is used to convert the query into a second vector with the same dimension as the number of question terms in the question feature table when receiving a new query, wherein each element in the second vector represents the weight of the corresponding question term in the query.

[0081] The similarity calculation module 506 is used to calculate the similarities of the plurality of first vectors and the second vectors according to the weights, and sort the solutions according to the similarities to form a solution list.

[0082] The adjustment module 507 is used to select solutions to problems similar to the new problem from the solution list, and adjust or modify the solutions according to the specific situation of the new problem.

[0083] Some modules in the apparatus described in the present application can be described in the general context of computer executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, classes, etc. that perform specific tasks or implement specific abstract data types. The present application can also be practiced in distributed computing environments, in which tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules can be located in local and remote computer storage media including storage devices.

[0084] The devices or modules described in the above application embodiments can be implemented by computer chips or entities, or by products with certain functions. For the convenience of description, the above devices are described in various modules according to their functions. When implementing the embodiments of the present application, the functions of each module can be implemented in the same or multiple software and / or hardware. Of course, the module that implements a certain function can also be implemented by combining multiple sub-modules or sub-units.

[0085] The methods, devices or modules described in this application can be implemented in the form of computer-readable program codes. The controller can be implemented in any appropriate manner. For example, the controller can take the form of a microprocessor or processor and a computer-readable medium storing computer-readable program codes (such as software or firmware) that can be executed by the (micro)processor, logic gates, switches, application-specific integrated circuits (English: Application Specific Integrated Circuit, referred to as: ASIC), programmable logic controllers and embedded microcontrollers. Examples of controllers include but are not limited to the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20 and Silicone Labs C8051F320. The memory controller can also be implemented as part of the control logic of the memory. Those skilled in the art also know that in addition to implementing the controller in the form of pure computer-readable program codes, the controller can be implemented in the form of logic gates, switches, application-specific integrated circuits, programmable logic controllers and embedded microcontrollers by logically programming the method steps. Therefore, this controller can be considered as a hardware component, and the devices included in it for implementing various functions can also be regarded as structures within the hardware component. Or even, the means for realizing various functions may be regarded as both a software module for realizing the method and a structure within a hardware component.

[0086] like Figure 6 As shown, an embodiment of the present application also provides a server for quickly generating hypothetical scenarios, including a memory 601 and a processor 602; the memory 601 is used to store computer-executable instructions; the processor 602 is used to execute computer-executable instructions to implement a method for quickly generating hypothetical scenarios described above in an embodiment of the present application.

[0087] An embodiment of the present application also provides a computer-readable storage medium, which stores executable instructions. When a computer executes the executable instructions, it can implement a method for quickly generating a hypothetical scenario described above in the embodiment of the present application.

[0088] It can be seen from the description of the above implementation methods that those skilled in the art can clearly understand that the present application can be implemented by means of software plus necessary hardware. Based on this understanding, the technical solution of the present application can be essentially or partly contributed to the prior art in the form of a software product, or it can be reflected in the implementation process of data migration. The computer software product can be stored in a storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a mobile terminal, a server, or a network device, etc.) to execute the method described in the embodiment of the present application.

[0089] The various embodiments in this specification are described in a progressive manner, and the same or similar parts between the various embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. All or part of this application can be used in many general or special computer system environments or configurations.

[0090] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit the present application. Although the present application has been described in detail with reference to the aforementioned embodiments, a person of ordinary skill in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some or all of the technical features thereof may be replaced by equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the present application.

Claims

1. A method for quickly generating a scenario, characterized in that: include: Describe and store key information of past historical scenarios and build a scenario library; The description and storage of key information of past historical scenarios and the construction of a scenario library include: identifying and defining the main attributes of the problem and using mathematical tools to represent the characteristics of the problem; clarifying the key elements in the solution; wherein the key elements include decision variables and constraints; quantifying and describing the effects of the solution after implementation and using an objective function to measure the pros and cons of the solution; List a table of problem characteristics containing different problem terms; For each solution in the solution library, identifying and extracting terms that match the problem terms in the problem feature table; Constructing multiple first vectors using the weight of each matching term in each solution; wherein the dimension of the first vector is the same as the number of problem terms in the problem feature table, and each element of the first vector represents the weight of the corresponding problem term in the solution; When a new query is received, the query is converted into a second vector having the same dimension as the number of question terms in the question feature table; wherein each element in the second vector represents the weight of the corresponding question term in the query; Calculating similarities between the first vectors and the second vectors according to the weights, and sorting the solutions according to the similarities to form a solution list; Select solutions to problems similar to the new problem from the list of solutions, and adjust or modify the solutions according to the specific circumstances of the new problem; The method of selecting a solution for a problem similar to the new problem from the solution list and adjusting or revising the solution according to the specific situation of the new problem includes: analyzing the input parameters of the new problem; wherein the input parameters include resource availability and time constraints; adjusting the scale of the selected solution according to the analysis results of the input parameters; when the logical order of the new problem is not completely consistent with the selected solution, adjusting the feature order of the input parameters; when the solution in the solution library cannot fully meet the requirements of the new problem, redesigning part of the content of the solution; wherein the redesign method includes updating the algorithm, strategy and / or process; applying the revised solution to the new problem and evaluating it according to the test results; wherein the evaluation indicators include the effectiveness, efficiency and cost of the solution.

2. The method for rapid scenario generation according to claim 1, characterized in that: The weight of the corresponding question term in the solution and the weight of the corresponding question term in the query are calculated as follows: the weight of the term in the solution or query is calculated by multiplying the term frequency and the inverse solution frequency.

3. The method for rapid scenario generation according to claim 2, characterized in that: The term frequency is calculated by dividing the number of occurrences of a term in a solution or query by the total number of terms in the solution or query; The inverse scheme frequency is calculated by calculating the logarithm of the number of schemes or queries containing the term.

4. The method for rapid scenario generation according to claim 1, characterized in that: The calculating the similarities between the plurality of first vectors and the second vector according to the weights comprises: Calculate dot products of a plurality of first vectors and a second vector; Calculate the magnitudes of a plurality of first vectors and second vectors; The similarity between the first vector and the second vector is calculated using the dot product and the modulus.

5. The method for rapid scenario generation according to claim 4, characterized in that: The dot product is used to reflect the degree of overlap between the first vector and the second vector on the same term; The modulus is used to reflect the overall strength of the term in the first vector and the second vector in their respective vectors; The similarity is used to reflect the similarity between the solutions or queries represented by the first vector and the second vector in the term weight distribution.

6. A device for quickly generating a scenario, characterized in that: include: The construction module is used to describe and store key information of past historical scenarios and build a scenario library; The description and storage of key information of past historical scenarios and the construction of a scenario library include: identifying and defining the main attributes of the problem and using mathematical tools to represent the characteristics of the problem; clarifying the key elements in the solution; wherein the key elements include decision variables and constraints; quantifying and describing the effects of the solution after implementation and using an objective function to measure the pros and cons of the solution; List module, used to list a question feature table containing different question terms; An extraction module, for identifying and extracting, for each solution in the solution library, terms that match the problem terms in the problem feature table; A first vector construction module is used to construct multiple first vectors using the weight of each matching term in each solution; wherein the dimension of the first vector is the same as the number of problem terms in the problem feature table, and each element of the first vector represents the weight of the corresponding problem term in the solution; A second vector construction module is used to, when receiving a new query, convert the query into a second vector having the same dimension as the number of question terms in the question feature table; wherein each element in the second vector represents the weight of the corresponding question term in the query; A similarity calculation module is used to calculate the similarity of the plurality of first vectors and the second vector according to the weights, and sort the solutions according to the similarity to form a solution list; An adjustment module is used to select solutions to problems similar to the new problem from a list of solutions, and adjust or modify the solutions according to the specific circumstances of the new problem; the selection of solutions to problems similar to the new problem from the list of solutions, and the adjustment or modification of the solutions according to the specific circumstances of the new problem, include: analyzing the input parameters of the new problem; wherein the input parameters include resource availability and time constraints; adjusting the scale of the selected solution according to the analysis results of the input parameters; when the logical order of the new problem is not completely consistent with the selected solution, adjusting the feature order of the input parameters; when the solutions in the solution library cannot fully meet the requirements of the new problem, redesigning part of the content of the solution; wherein the redesign method includes updating algorithms, strategies and / or processes; applying the revised solution to the new problem and evaluating it according to the test results; wherein the evaluation indicators include the effectiveness, efficiency and cost of the solution.

7. A scenario rapid generation server, characterized in that: including memory and processor; The memory is used to store computer executable instructions; The processor is used to execute the computer executable instructions to implement the method according to any one of claims 1 to 5.

8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores executable instructions, and when a computer executes the executable instructions, the method according to any one of claims 1 to 5 can be implemented.