Bill combination recommendation method and device, electronic equipment and program product
By generating target-related intervals to filter bills, calculating dynamic convergence indices, and executing a pruning mechanism, the problems of excessively long response time and high memory consumption in bill combination filtering methods are solved, achieving efficient processing of large-scale bill pools and compatibility with complex business rules.
Patent Information
- Application Number
- CN202611371469.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-04
- Publication Date
- 2026-11-27
AI Technical Summary
Existing technologies for selecting bill combinations have excessively long response times and high memory consumption, making it difficult to handle large-scale bill pools and complex business rules, resulting in poor system stability.
By analyzing user needs, generating target-related intervals, filtering candidate ticket sets, calculating dynamic convergence indices, executing dynamic pruning mechanisms, generating effective candidate combination paths, performing multi-objective comprehensive scoring, and outputting the optimal ticket combination scheme.
It reduces search complexity, decreases memory usage, improves response speed, supports efficient processing of large-scale bill pools, is compatible with complex business rules, and improves the utilization rate of bill assets.
Smart Images

Figure CN123181127A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of financial technology or other related fields, and more specifically, to a method and apparatus for recommending bill portfolios, electronic equipment and program products. Background Technology
[0002] With the deepening of fintech and enterprise digital transformation, bill pooling management systems and corporate cash management platforms have become core infrastructures for the financial management of large enterprises. In daily operations, enterprises typically hold massive amounts of bill assets as payment methods or financing tools. These bill assets are diverse, mainly including electronic bank acceptance bills, commercial acceptance bills, letters of credit, accounts receivable vouchers, and internal settlement vouchers. When enterprises face specific payment or financing needs, they need to quickly and accurately select a set of bills from the vast bill pool to meet specific amount targets and other business constraints.
[0003] In related technologies, the screening and optimization of bill combinations typically employs either manual selection or exhaustive combination algorithms. Manual selection relies on financial personnel manually selecting bills based on experience, which is inefficient, susceptible to subjective influence, and unsuitable for handling high-frequency, small-amount, or complex fund transfer needs. Exhaustive combination algorithms, on the other hand, attempt to list all possible bill combinations and verify each one against the agreed-upon amount and constraints.
[0004] Both of the above-mentioned methods for selecting combinations of invoices have obvious drawbacks: the computational complexity increases exponentially, the response time is too long, the memory consumption is too high, and the system stability is poor. As the scale of the enterprise's invoice pool continues to expand (the number of invoices can reach thousands or even tens of thousands), and the rules of invoice business become increasingly complex, the manual selection mode or the exhaustive combination algorithm needs to traverse a huge search space, which takes a long time.
[0005] There is currently no effective solution to the above problems. Summary of the Invention
[0006] This invention provides a method, apparatus, electronic device, and program product for recommending bill combinations, in order to at least solve the technical problems of excessively long response time and high memory consumption in related technologies for bill combination screening methods.
[0007] To achieve the above objectives, according to one aspect of this application, a bill combination recommendation method is provided, comprising: parsing user payment or financing needs, determining the required target amount and target bill selection strategy, and forming a set of objective functions; generating a target relevance interval based on the target amount, and selecting bills falling into the target relevance interval from a mixed-constraint bill pool to obtain an initial candidate bill set; calculating the dynamic convergence index of all candidate bills based on the target bill selection strategy to obtain a comprehensive convergence index, and outputting the final converged candidate bill set when the comprehensive convergence index meets a preset convergence condition, wherein the dynamic convergence index includes at least: candidate amount coverage, bill utilization rate, and target amount deviation rate; performing combination search on the bills in the candidate bill set and executing a dynamic pruning mechanism to generate a set of effective candidate combination paths; performing multi-objective comprehensive scoring on the set of effective candidate combination paths, and outputting the optimal bill combination scheme and alternative bill combination schemes based on the scoring results.
[0008] Optionally, the step of parsing user payment or financing needs, determining the required target amount and target bill selection strategy, and forming a set of objective functions includes: parsing the target amount value in the user's payment or financing needs; reading the target bill selection strategy selected by the user in the user's payment or financing needs, wherein the target bill selection strategy includes any one or a combination of: minimum number of bills mode, maximum number of bills mode, minimum split mode, minimum remaining mode, and minimum risk mode; mapping each mode in the target bill selection strategy to a mathematical optimization objective function to form a set of objective functions containing at least one constraint.
[0009] Optionally, the step of generating a target relevance interval based on the target amount and filtering bills falling into the target relevance interval from the hybrid constraint bill pool to obtain an initial candidate bill set includes: setting an initial search interval centered on the target amount to obtain the target relevance interval; extracting all bills whose amounts fall within the target relevance interval from the hybrid constraint bill pool to form an initial candidate bill set; and, if the initial candidate bill set is empty or insufficient, gradually expanding the range of the target relevance interval by a fixed ratio until a preset maximum search range is reached.
[0010] Optionally, the step of performing a combination search on the bills in the candidate bill set and executing a dynamic pruning mechanism to generate a set of valid candidate combination paths includes: performing a combination search simulation on the bills in the candidate bill set; for each generated intermediate combination path, executing a dynamic pruning mechanism, wherein the dynamic pruning mechanism includes: a first pruning mechanism, terminating the intermediate combination path if the current combination amount is greater than the product of the target amount and the preset allowable error rate; a second pruning mechanism, terminating the intermediate combination path if the current combination number of bills is greater than the sum of the currently known optimal solution number of bills and the preset cumulative number of bills default value; a third pruning mechanism, terminating the intermediate combination path if the cumulative number of splits is greater than the maximum allowed number of splits; and a fourth pruning mechanism, terminating the intermediate combination path if the cumulative risk value of the combination is greater than a set risk threshold; retaining all valid combination paths that have not been terminated to generate a set of valid candidate combination paths.
[0011] Optionally, the step of performing a multi-objective comprehensive scoring on the set of effective candidate combination paths and outputting the optimal bill combination scheme and alternative bill combination schemes based on the scoring results includes: traversing each effective candidate combination path in the set of effective candidate paths, calculating the number of bills score, splitting score, amount matching score, risk score, and remaining amount score of the effective candidate combination path, and weighting and summing the scores according to the weights in the objective function set to obtain the comprehensive score of each effective candidate combination path; sorting the comprehensive scores, selecting the path with the highest comprehensive score as the optimal bill combination scheme; and selecting the path with the second highest comprehensive score that meets specific differentiation conditions as the alternative bill combination scheme.
[0012] According to another aspect of the present invention, a bill combination recommendation device is also provided, comprising: a demand analysis unit, configured to analyze user payment or financing needs, determine the required target amount and target bill selection strategy, and form a set of objective functions; a candidate bill selection unit, configured to generate a target relevance interval based on the target amount, and select bills falling into the target relevance interval from a mixed-constraint bill pool to obtain an initial candidate bill set; a candidate bill convergence unit, configured to calculate the dynamic convergence index of all candidate bills based on the target bill selection strategy, obtain a comprehensive convergence index, and output the final converged candidate bill set when the comprehensive convergence index meets a preset convergence condition, wherein the dynamic convergence index includes at least: candidate amount coverage, bill utilization rate, and target amount deviation rate; a pruning unit, configured to perform combination search on the bills in the candidate bill set and execute a dynamic pruning mechanism to generate a set of effective candidate combination paths; and a comprehensive scoring unit, configured to perform multi-objective comprehensive scoring on the set of effective candidate combination paths, and output the optimal bill combination scheme and alternative bill combination schemes according to the scoring results.
[0013] According to another aspect of the present invention, a computer-readable storage medium is also provided, the computer-readable storage medium including a stored computer program, wherein, when the computer program is executed, it controls the device where the computer-readable storage medium is located to perform the ticket combination recommendation method of any one of the above.
[0014] According to another aspect of the present invention, an electronic device is also provided, including one or more processors and a memory, the memory being used to store one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors cause the one or more processors to implement the ticket combination recommendation method of any of the above.
[0015] According to another aspect of the present invention, a computer program product is also provided, including a computer program that, when executed by a processor, implements the steps of the ticket combination recommendation method described in any one of the above embodiments.
[0016] In this disclosure, user payment or financing needs are analyzed to determine the required target amount and target bill selection strategy, forming a set of objective functions. Based on the target amount, a target relevance interval is generated, and bills falling into the target relevance interval are selected from a mixed-constraint bill pool to obtain an initial candidate bill set. Based on the target bill selection strategy, dynamic convergence indices for all candidate bills are calculated to obtain a comprehensive convergence index. If the comprehensive convergence index meets preset convergence conditions, the final converged candidate bill set is output. The dynamic convergence indices include at least: candidate amount coverage, bill utilization rate, and target amount deviation rate. A combination search is performed on the bills in the candidate bill set, and a dynamic pruning mechanism is executed to generate a set of effective candidate combination paths. The set of effective candidate combination paths is evaluated using a multi-objective comprehensive score, and the optimal bill combination scheme and alternative bill combination schemes are output based on the scoring results.
[0017] Based on the aforementioned publicly available information, a pre-constructed hybrid constraint ticket pool can be used to filter tickets with high priority and good matching, narrowing the search range and avoiding indiscriminate traversal of all tickets. This reduces the initial search space size and introduces a dynamic candidate domain generation and convergence mechanism to avoid redundant calculations in a large, ineffective space, significantly reducing the amount of ticket data to be processed. This reduces search complexity, memory consumption, and computation time. Furthermore, a dynamic pruning mechanism is used to eliminate a large number of invalid or inferior search paths, effectively controlling memory consumption and accelerating the convergence to the optimal solution. Finally, a multi-objective decision scoring mechanism is used to efficiently sort and filter the limited candidate combinations, directly outputting the best solution. This supports efficient processing in large-scale ticket pool scenarios, thereby solving the technical problems of excessively long response time and high memory consumption in related technologies for ticket combination filtering. Attached Figure Description
[0018] The accompanying drawings, which are included to provide a further understanding of the invention and form part of this application, illustrate exemplary embodiments of the invention and, together with their description, serve to explain the invention and do not constitute an undue limitation thereof. In the drawings:
[0019] Figure 1 A hardware structure block diagram of a computer terminal (or mobile device) for implementing a ticket combination recommendation method is shown.
[0020] Figure 2 This is a flowchart of an optional ticket combination recommendation method according to an embodiment of the present invention;
[0021] Figure 3 This is an architecture diagram of an optional bill combination optimization method according to an embodiment of the present invention;
[0022] Figure 4 This is a schematic diagram of an optional unified bill processing model according to an embodiment of the present invention;
[0023] Figure 5 This is a structural diagram of an optional hybrid constraint bill pool according to an embodiment of the present invention;
[0024] Figure 6 This is a flowchart of an optional candidate domain convergence according to an embodiment of the present invention;
[0025] Figure 7 This is a schematic diagram of an optional ticket combination recommendation device according to an embodiment of the present invention;
[0026] Figure 8 This is a structural block diagram of an electronic device that performs a ticket combination recommendation method according to an embodiment of this application. Detailed Implementation
[0027] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.
[0028] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0029] To facilitate understanding of the present invention by those skilled in the art, some terms or nouns involved in the various embodiments of the present invention are explained below:
[0030] Treasury Management (TM) refers to the management activities of planning, controlling, and monitoring a company's funds, financial resources, and risks.
[0031] A Treasury Management System (TMS) is a software system used to centrally manage a company's cash, liquidity, financing, and financial risks.
[0032] A bill pool, or BP for short, refers to a collection of assets held by a company that are centrally managed for unified inquiry, pledging, discounting, and financing of various bills.
[0033] A splittable bill (SB) is a negotiable instrument that allows for partial withdrawal or transfer of its amount when used for payment or financing.
[0034] Non-splittable bills (NSBs) are negotiable instruments that must be used as a whole for payment or financing and cannot be partially withdrawn or transferred.
[0035] Hybrid Constraint Bill Pool (HCBP) refers to a multi-layered bill data structure that includes both divisible and indivisible bills and comprehensively handles various business constraints.
[0036] The Target Related Interval (TRI) refers to the range of amounts set around a target amount for prioritizing the search of candidate bills.
[0037] The Comprehensive Convergence Index (CCI) is a weighted metric used to quantitatively evaluate the convergence of candidate domain searches.
[0038] Dynamic Pruning Mechanism (DPM) refers to a mechanism that optimizes computational efficiency by prematurely terminating invalid search paths based on preset conditions during the search process.
[0039] It should be noted that the bill portfolio recommendation method and apparatus disclosed herein can be used in the financial technology field to achieve bill portfolio optimization based on unified modeling of mixed-constraint bills, and can also be used in any field other than the financial technology field to achieve bill portfolio optimization based on unified modeling of mixed-constraint bills. This disclosure does not limit the application field of the bill portfolio recommendation method and apparatus.
[0040] It should be noted that the information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, and displayed data, etc.) collected in this public disclosure are information and data authorized by the user or fully authorized by all parties. Furthermore, the collection, storage, use, processing, transmission, provision, disclosure, and application of related data are handled with corresponding access points, allowing users to choose to authorize or refuse. For example, this system has interfaces with relevant users or organizations. Before obtaining relevant information, a request to obtain the information needs to be sent to the aforementioned user or organization through the interface, and the relevant information is obtained only after receiving consent from the aforementioned user or organization.
[0041] It should be noted that in this disclosure, customer information is collected and analyzed, and users are provided with corresponding operation entry points to choose whether to agree to or reject the automated decision results; if the user chooses to reject, the process will proceed to the expert decision-making process.
[0042] The following embodiments of the present invention can be applied to various systems / applications / devices for recommending bill combinations. The present invention is applicable to manufacturers of treasury management, bill management, fund allocation, and intelligent decision-making systems, such as enterprise treasury cloud platforms, treasury systems, bill pool management systems, and enterprise fund management platforms. Application scenarios can cover situations where enterprises holding a large amount of bill assets need to quickly select bill combinations from a large bill pool that meet specific amount targets and complex constraints (such as a mix of divisible and indivisible bills, risk levels, maturity dates, etc.) to complete payment settlements, financing applications, or asset optimization allocation.
[0043] This invention can reduce search complexity, reduce memory usage, improve real-time response capabilities, support efficient processing in large-scale bill pool scenarios, be compatible with complex business rules, and improve the utilization rate of bill assets.
[0044] The present invention will now be described in detail with reference to various embodiments.
[0045] Example 1
[0046] According to an embodiment of the present invention, an embodiment of a ticket combination recommendation method is provided. It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. Furthermore, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than that shown here.
[0047] The bill combination recommendation method embodiment provided in Embodiment 1 of this application can be executed on a mobile terminal, computer terminal or similar computing device. Figure 1 A hardware block diagram of a computer terminal (or mobile device) for implementing a ticket combination recommendation method is shown. Figure 1 As shown, computer terminal 10 (or mobile device) may include one or more ( Figure 1 The processor 102 (which may include, but is not limited to, a microprocessor MCU (Microcontroller Unit) or a programmable gate array (FPGA)) is shown as 102a, 102b, ..., 102n. It also includes a memory 104 for storing data and a transmission device 106 for communication functions. In addition, it may include: a display, an input / output interface (I / O interface), a Universal Serial Bus (USB) port (which may be included as one of the ports of a BUS bus), a network interface, a power supply, and / or a camera. Those skilled in the art will understand that... Figure 1 The structure shown is for illustrative purposes only and does not limit the structure of the aforementioned electronic device. For example, computer terminal 10 may also include... Figure 1 The more or fewer components shown, or having the same Figure 1 The different configurations shown.
[0048] It should be noted that the aforementioned one or more processors 102 and / or other data processing circuits are generally referred to herein as "data processing circuits". These data processing circuits may be embodied, in whole or in part, in software, hardware, firmware, or any other combination thereof. Furthermore, the data processing circuits may be a single, independent processing module, or may be integrated, in whole or in part, into any other element within the computer terminal 10 (or mobile device). As involved in the embodiments of this application, the data processing circuits serve as a processor control mechanism (e.g., selection of a variable resistor termination path connected to an interface).
[0049] The memory 104 can be used to store software programs and modules of application software, such as the program instructions / data storage device corresponding to the bill combination recommendation method in this embodiment. The processor 102 executes various functional applications and data processing by running the software programs and modules stored in the memory 104, thereby realizing the aforementioned bill combination recommendation method. The memory 104 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include memory remotely located relative to the processor 102, and these remote memories can be connected to the computer terminal 10 via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.
[0050] The transmission device 106 is used to receive or send data via a network. Specific examples of the network described above may include a wireless network provided by the communication provider of the computer terminal 10. In one example, the transmission device 106 includes a Network Interface Controller (NIC), which can connect to other network devices via a base station to communicate with the Internet. In another example, the transmission device 106 may be a Radio Frequency (RF) module, used for wireless communication with the Internet.
[0051] The display can be, for example, a touchscreen liquid crystal display (LCD), which allows the user to interact with the user interface of the computer terminal 10 (or mobile device).
[0052] Under the aforementioned operating environment, this application provides the following: Figure 2 The method for recommending combination of notes is shown. Figure 2 This is a flowchart of an optional ticket combination recommendation method according to an embodiment of the present invention, such as... Figure 2 As shown, the method includes the following steps S201 to S205. The present invention will be described in detail below with reference to each implementation step.
[0053] Optionally, before parsing user payment or financing needs, the process also includes: receiving the original bill data set, entering it into the original bill pool, and traversing each bill in the original bill pool to extract the bill's attribute fields. The attribute fields include at least: numeric fields, whether splitting the attribute field is allowed, and business attribute fields. The attribute fields are then standardized according to a preset data format specification, including: standardization cleaning and transformation. Based on whether splitting the attribute is allowed, the bills are marked as either splittable or indivisible types, and the business attributes of the bills are retained. The results are then encapsulated into a standard bill object collection with a unified interface and attribute structure.
[0054] Numerical fields can include quantitative indicators such as bill amount and remaining available amount; the "split allowed" attribute field indicates whether the bill can be partially used for payment or financing; business attribute fields can cover key business information such as bill type (e.g., electronic bank acceptance bill, commercial acceptance bill), maturity date, risk level, and priority. By traversing the original bill pool and extracting these core fields, unstructured or semi-structured raw data can be transformed into identifiable structured data, thereby improving the standardization and consistency of data processing.
[0055] It should be noted that the attribute fields are standardized according to the preset data format specifications. This standardization process includes standardization cleaning and transformation. In this embodiment, standardization cleaning and transformation operations help eliminate noise, missing values, or format inconsistencies that may exist in the original data. Standardization cleaning can remove invalid characters and correct erroneous data; standardization transformation can unify fields from different sources and with different formats into the standard format defined internally by the system (e.g., unifying the date format to YYYY-MM-DD, and unifying the monetary unit to the standard currency unit), reducing calculation errors caused by data format differences and improving the reliability of data quality. Furthermore, marking the invoice as divisible or indivisible based on whether the attribute allows splitting helps to quickly distinguish the processing logic of the invoice in subsequent combinatorial optimization algorithms, avoiding incorrect splitting calculations for indivisible invoices or imposing unnecessary overall constraints on divisible invoices. Then, the business attributes of the tickets can be retained and encapsulated into a standard collection of ticket objects, establishing a data model with a unified interface and attribute structure. This simplifies the way subsequent modules (such as candidate domain generation, dynamic pruning, and scoring mechanisms) call ticket data, helps reduce the coupling between system modules, improves code maintainability and extensibility, and helps support efficient operations under large-scale ticket pools.
[0056] Optionally, after encapsulating the bills into a standard bill object collection with a unified interface and attribute structure, the method further includes: classifying divisible bills into a first bill pool and indivisible bills into a second bill pool; executing a preset filtering logic on each bill in the first and second bill pools, wherein the preset filtering logic includes at least one of the following conditions: the bill amount is within a specified range of the target amount, the bill amount belongs to the amount range with a hit rate ranking before a predetermined position in the historical bill recommendation combination, the bill risk level is lower than a set risk threshold, and the remaining available amount of the bill is greater than a specified proportion of the target amount; classifying the enhanced candidate bill set formed after filtering into a third bill pool; and combining the first, second, and third bill pools to generate a hybrid constraint bill pool.
[0057] The first bill pool is dedicated to storing divisible bills, while the second bill pool is dedicated to storing indivisible bills. Different processing strategies are adopted for different types of bills. For example, the amount of divisible bills is calculated by splitting the bills, while the indivisible bills are matched and judged as a whole. This avoids confusion in the logical processing of different types of bills and helps to improve the orderliness of bill management and the targeted nature of algorithm execution.
[0058] It should be noted that the types of bills mentioned in this embodiment include, but are not limited to: electronic bank acceptance bills, commercial acceptance bills, letters of credit, accounts receivable vouchers, and internal settlement vouchers. When an enterprise needs to complete a certain amount of payment or financing, it needs to select a combination of bills from the bill pool that meets the target amount.
[0059] Furthermore, a pre-defined screening logic is applied to each bill in the first and second bill pools. This embodiment introduces multi-dimensional pre-defined screening logic to help accurately identify high-value candidate bills from the basic bill pool. Bills with amounts within a specified range of the target amount (e.g., 80%-120%) can be prioritized for those closest to the payment needs; bills with amounts within a range with a high historical hit rate in recommended combinations can quickly locate high-frequency, effective bills using historical data patterns; bills with risk levels below a set threshold help exclude high-risk assets in the early stages of combination optimization, meeting the risk control requirements of treasury management; and bills with remaining available amounts exceeding a specified percentage of the target amount help ensure sufficient payment capacity or financing space. By applying these screening conditions, inefficient bills that clearly do not meet business needs are filtered out, thereby narrowing the initial scope of the subsequent search space. The enhanced candidate bill set formed after screening is then incorporated into the third bill pool, combining the first, second, and third bill pools to generate a hybrid-constrained bill pool.
[0060] This embodiment establishes a three-layer structure comprising a basic bill pool and an enhanced candidate pool, forming a multi-layered bill organization method of "basic bill pool + enhanced candidate pool". The third bill pool, as the enhanced candidate set, is not an independently added set of bills, but rather a priority subset selected from the first and second bill pools. This aggregation operation systematically focuses the search on bills with a high probability of success, helping to improve search efficiency. The resulting hybrid-constrained bill pool can accelerate the convergence process, reduce invalid computation, and improve the overall response speed and processing efficiency of bill combination optimization in large-scale bill pool scenarios by prioritizing high-quality bills.
[0061] Step S201: Analyze the user's payment or financing needs, determine the required target amount and target invoice selection strategy, and form a set of objective functions.
[0062] Optionally, the step of parsing the user's payment or financing needs, determining the required target amount and target bill selection strategy, and forming a set of objective functions includes: parsing the target amount value in the user's payment or financing needs; reading the target bill selection strategy selected by the user in the user's payment or financing needs, wherein the target bill selection strategy includes any one or a combination of: minimum number of bills mode, maximum number of bills mode, minimum split mode, minimum remaining mode, and minimum risk mode; mapping each mode in the target bill selection strategy to a mathematical optimization objective function to form a set of objective functions containing at least one constraint.
[0063] This embodiment establishes an optimized quantitative benchmark by extracting the amount data from the specific payment or financing request initiated by the user. The target amount can be an integer or a decimal, representing the amount of funds the user wants to be covered by the bill portfolio. By accurately parsing this value, the vague business requirements are transformed into processable and precise numerical parameters, ensuring that the bill portfolio optimization algorithm can calculate around the specific funding gap. Furthermore, the system reads the target bill selection strategy selected by the user in their payment or financing needs. This strategy includes any one or a combination of the following: minimum number of bills mode, maximum number of bills mode, minimum split mode, minimum remaining amount mode, and lowest risk mode. Specifically, this embodiment obtains the user's specific preferences or business constraints regarding bill combinations to clarify the optimization direction. The minimum number of bills mode reduces the complexity of bill management; the maximum number of bills mode can diversify the default risk of a single bill or meet specific financial structure requirements; the minimum split mode reduces operating costs and the complexity of subsequent settlements; the minimum remaining amount mode maximizes capital utilization and reduces idle funds; and finally, the lowest risk mode helps to prioritize high-credit-rating bills, meeting risk control requirements. It should be noted that these modes can be selected individually or in weighted combinations, reflecting differentiated needs under different business scenarios, making the generated bill combination scheme more aligned with the user's actual management intentions.
[0064] Furthermore, this embodiment, by establishing a mathematical model, helps to transform business strategies into logical instructions executable by the algorithm. The minimum number of bills pattern can be mapped to an objective function that minimizes the number of bills; the maximum number of bills pattern can be mapped to an objective function that maximizes the number of bills; the minimum splitting pattern can be mapped to an objective function that minimizes the number of splits; the minimum remaining amount pattern can be mapped to an objective function that minimizes the difference between the combined amount and the target amount; and the lowest risk pattern can be mapped to an objective function that minimizes the cumulative risk value of the combination. By formalizing these strategies into objective functions and combining them with conditions as hard constraints (such as the total amount must be greater than the target amount, and the overall constraint of indivisible bills), a complete set of objective functions is formed.
[0065] Step S202: Generate a target relevance interval based on the target amount, and select bills that fall into the target relevance interval from the mixed constraint bill pool to obtain an initial candidate bill set.
[0066] Optionally, step S202 includes: setting an initial search interval centered on the target amount to obtain a target relevant interval; extracting all bills whose amounts fall within the target relevant interval from the mixed constraint bill pool to form an initial candidate bill set; and gradually expanding the range of the target relevant interval at a fixed ratio when the initial candidate bill set is empty or insufficient, until the preset maximum search range is reached.
[0067] The target relevance interval can be set as the range of the target amount multiplied by a preset percentage, such as 90% to 110% of the target amount. This interval setting method centered on the target amount helps to prioritize bills with amounts closest to the payment requirement, avoiding wasting computational resources on invalid bills with significantly different amounts. Furthermore, all bills whose amounts fall within the target relevance interval are extracted from the hybrid constraint bill pool to form an initial candidate bill set. In this embodiment, filtering bills falling within the target relevance interval helps to form a preliminary high-quality candidate pool. The hybrid constraint bill pool includes divisible, indivisible, and priority-processing bills. Extracting bills with amounts within the specified interval helps to further filter out inefficient bills that clearly do not meet the amount requirements. This filtering operation limits the search scope to the most promising subset of bills, reduces the number of bills traversed by the algorithm, accelerates the convergence process, and minimizes memory usage and computation time while ensuring the relevance of the solution.
[0068] It should be noted that when the initial candidate ticket set is empty or insufficient, the scope of the target relevant interval is gradually expanded at a fixed ratio until the preset maximum search range is reached. This embodiment helps to address situations where there are no suitable tickets or insufficient ticket resources within the initial interval by dynamically expanding the search interval. For example, when the initial candidate ticket set cannot meet business needs, the boundary of the target relevant interval can be gradually expanded at a fixed ratio (such as expanding by 5% or 10% each time), for example, from 80%-120% to 75%-125%, until the system's preset maximum search range (such as 70%-130%) is reached. This gradual expansion mechanism can smoothly introduce tickets within the suboptimal matching range when no ideal match can be found, avoiding performance crashes caused by directly performing a full search, thereby maintaining the orderliness and controllability of the search space. It helps to maintain priority on high-quality tickets while expanding the search range, improving robustness under different ticket pool sizes.
[0069] Step S203: Calculate the dynamic convergence index of all candidate bills based on the target bill screening strategy to obtain the comprehensive convergence index. If the comprehensive convergence index meets the preset convergence conditions, output the final converged candidate bill set. The dynamic convergence index includes at least: candidate amount coverage rate, bill utilization rate and target amount deviation rate.
[0070] This embodiment determines whether the search space has fully covered the requirements by quantitatively evaluating the status of the current candidate bill set. The candidate amount coverage rate reflects the ratio of the total amount of candidate bills to the target amount; the bill utilization rate reflects the proportion of bills that have been selected or have a high probability of being selected in the total candidate pool; and the target amount deviation rate reflects the degree of difference between the current combined amount and the target amount. By calculating these indicators, the abstract search status is transformed into quantifiable values, objectively evaluating the effectiveness of the current search progress and avoiding premature termination or over-searching due to subjective judgment.
[0071] This embodiment constructs a comprehensive convergence index, which helps integrate evaluation results from multiple dimensions to form a unified convergence judgment standard. The comprehensive convergence index can be calculated using the formula S = w1 × candidate amount coverage rate + w2 × bill utilization rate - w3 × target amount deviation rate, where w1, w2, and w3 are configurable weight coefficients. A weighted calculation method balances the impact of different indicators on convergence judgment; for example, increasing the coverage rate weight helps ensure sufficient amount, while decreasing the deviation rate weight helps improve the accuracy of amount matching, thus enhancing the accuracy and scientific rigor of the convergence judgment. Furthermore, this embodiment automates the search process by setting a clear convergence threshold. Preset convergence conditions may include: the comprehensive convergence index changing rate being lower than a specific threshold for multiple consecutive rounds, the candidate coverage rate being higher than a specific proportion, and the amount deviation rate being lower than a specific limit. When the currently calculated comprehensive convergence index meets these conditions, the candidate domain is determined to have converged, further bill screening or interval expansion is stopped, and the current candidate bill set is output. This timely termination upon reaching a satisfactory solution or a local optimum significantly reduces computation time and memory consumption.
[0072] Step S204: Perform a combination search on the tickets in the candidate ticket set and execute a dynamic pruning mechanism to generate a set of valid candidate combination paths.
[0073] Optionally, the step of performing a combination search on the bills in the candidate bill set and executing a dynamic pruning mechanism to generate a set of valid candidate combination paths includes: performing a combination search simulation on the bills in the candidate bill set; for each generated intermediate combination path, executing a dynamic pruning mechanism, wherein the dynamic pruning mechanism includes: a first pruning mechanism, terminating the intermediate combination path if the current combination amount is greater than the product of the target amount and the preset allowable error rate; a second pruning mechanism, terminating the intermediate combination path if the current combination number of bills is greater than the sum of the currently known optimal solution number of bills and the preset cumulative default number of bills; a third pruning mechanism, terminating the intermediate combination path if the cumulative number of splits is greater than the maximum allowed number of splits; and a fourth pruning mechanism, terminating the intermediate combination path if the cumulative risk value of the combination is greater than a set risk threshold; retaining all valid combination paths that have not been terminated to generate a set of valid candidate combination paths.
[0074] This embodiment introduces a dynamic pruning mechanism to monitor the effectiveness of paths in real time during the combination generation process. The combination search simulation can be understood as a process of gradually building ticket combinations. Each time a ticket is added or a splitting operation is performed, the current intermediate state is evaluated. By checking during execution rather than only after the final result is generated, it helps to identify and eliminate paths that do not meet the constraints as early as possible, avoids invalid calculations from spreading to subsequent steps, reduces the depth and width of the search tree, helps optimize the allocation of computing resources, and improves the overall execution efficiency of the search algorithm.
[0075] The first trimming mechanism quickly eliminates combination paths with severely excessive amounts by setting upper limit trimming rules. A preset allowable error rate (e.g., 5%) defines a reasonable deviation range of the combination amount from the target amount. When the cumulative amount of an intermediate combination path exceeds the threshold obtained by multiplying the target amount by the error rate, the path is determined to no longer meet the constraints of amount control, thereby terminating further expansion of the path. This prevents the amount from deviating further from the target due to the addition of subsequent invoices, narrows the range of effective solution space, and reduces unnecessary amount matching calculations. The second pruning mechanism introduces a deterioration pruning rule based on the number of tickets. When pursuing the minimum number of tickets or a balanced number of tickets strategy, it optimizes the search path. A default cumulative number of tickets (e.g., 2 tickets) is preset to provide a tolerance threshold, allowing the current path to have a certain number of tickets more than the known optimal solution. Once the number of tickets in the intermediate combination path exceeds the sum of this threshold and the known optimal number of tickets, it is determined that the path is significantly inferior to the existing best solution in terms of the number of tickets, thus terminating the expansion. This helps to prune branches that may match in terms of amount but perform poorly in terms of quantity control, guides the search algorithm to converge toward a better solution space in terms of the number of tickets, improves the competitiveness of the final solution in terms of the number of tickets, and helps to reduce the exploration of inefficient paths. The third trimming mechanism, by limiting the number of splits, helps control the complexity and business costs of bill operations. The maximum allowed number of splits (e.g., 5 times) is a hard constraint set according to business rules. During the portfolio construction process, the number of split operations executed is recorded. Once the cumulative number exceeds this limit, the path is immediately terminated. This prevents the generation of overly cumbersome and difficult-to-execute portfolio solutions, maintains the simplicity of bill pool management, and reduces the probability of errors when manually intervening or automatically executing splitting instructions. It should be noted that the fourth trimming mechanism, by setting risk threshold trimming rules, strengthens the risk control capabilities in treasury management. The cumulative risk value of the portfolio can be the sum of the risk levels of all bills constituting the portfolio, or a weighted sum. Setting a risk threshold (e.g., 80 points) represents the upper limit of acceptable risk for the enterprise. When the cumulative risk value of an intermediate portfolio path exceeds this threshold, it is determined that the portfolio has excessively high risk exposure, thus terminating the path. This trimming helps ensure that all generated candidate solutions meet the enterprise's risk control standards, prevents high-risk bills from entering the final recommendation list, protects the enterprise's capital security, and improves the robustness of bill portfolio solutions.
[0076] This embodiment filters out all paths that pass through the dynamic pruning mechanism, forming a high-quality result set. Paths not pruned by the aforementioned amount, number of bills, number of splits, or risk thresholds are considered valid solutions that meet the basic constraints. Retaining these paths provides sufficient candidate samples for the subsequent multi-objective decision-making scoring mechanism. By filtering out a large number of invalid or inferior combinations, the size of the candidate set entering the scoring stage is reduced, improving the accuracy and efficiency of subsequent scoring calculations. This ensures that the final output solution not only meets business constraints but also has a high comprehensive score, increasing the probability of users selecting a satisfactory solution and thus optimizing the user experience of overall bill combination optimization.
[0077] Step S205: Perform multi-objective comprehensive scoring on the set of effective candidate combination paths, and output the optimal bill combination scheme and alternative bill combination schemes based on the scoring results.
[0078] Optionally, the steps of performing multi-objective comprehensive scoring on the set of effective candidate combination paths and outputting the optimal bill combination scheme and alternative bill combination schemes based on the scoring results include: traversing each effective candidate combination path in the set of effective candidate paths, calculating the number of bills score, splitting score, amount matching score, risk score, and remaining amount score of the effective candidate combination path, and weighting and summing the scores according to the weights in the objective function set to obtain the comprehensive score of each effective candidate combination path; sorting the comprehensive scores and selecting the path with the highest comprehensive score as the optimal bill combination scheme; and selecting the path with the second highest comprehensive score that meets specific differentiation conditions as the alternative bill combination scheme.
[0079] This embodiment comprehensively quantifies various business indicators for different combination paths by establishing a multi-dimensional scoring system. The number of bills scored is calculated based on the total number of bills in the combination; fewer bills result in a higher score. The splitting score is calculated based on the number of times the bills in the combination are split; fewer splits result in a higher score, reducing operational complexity. The amount matching score is calculated based on the deviation rate between the total amount of the combination and the target amount; a smaller deviation results in a higher score, improving capital utilization. The risk score is calculated based on the sum or weighted value of the risk levels of all bills in the combination; a lower risk value results in a higher score, controlling financial risk. The remaining amount score is calculated based on the portion of the total amount of the combination that exceeds the target amount; less remaining amount results in a higher score, reducing idle funds. By calculating these individual scores separately, abstract business preferences are transformed into concrete numerical indicators, reflecting the performance differences of different combinations across multiple business dimensions.
[0080] Furthermore, the scores are weighted and summed based on the weights in the objective function set. By introducing weight coefficients, flexible configuration and balance of multi-objective strategies are achieved. The objective function set predefines weight parameters corresponding to different optimization modes (such as minimum number of sheets, minimum risk, etc.). When calculating the comprehensive score, each individual score can be multiplied by its corresponding weight coefficient and then summed to obtain the final comprehensive score. For example, under the "minimum risk mode," the risk score has a higher weight, while under the "minimum number of sheets mode," the number of sheets score has a higher weight. This weighted summation mechanism helps to integrate diverse user business needs into a unified scoring standard, making the scoring results more in line with users' actual preferences. This achieves a shift from single-indicator optimization to multi-objective balanced optimization, thereby generating a comprehensive evaluation result that better meets user expectations.
[0081] It should be noted that by ranking the comprehensive scores and selecting the path with the highest comprehensive score as the optimal bill combination scheme, this embodiment can quickly locate the best solution through a ranking mechanism. Furthermore, the comprehensive scores of all valid candidate combination paths are ranked from highest to lowest. The path ranked first is the optimal solution under the current constraints and scoring criteria. Selecting the highest-scoring path as the optimal bill combination scheme provides users with the preferred recommendation result, improving the accuracy of the scheme recommendation and enabling users to obtain high-quality bill combinations to meet their immediate needs for optimal asset allocation. In addition, this embodiment introduces differentiated conditions to screen alternative schemes, providing diversified choices to address different scenarios. The alternative schemes are not simply selected from the second-highest-scoring paths, but rather paths that meet specific differentiated conditions. For example, alternative schemes may differ significantly from the optimal scheme in terms of bill type composition, maturity date distribution, or risk level distribution, or they may have a slightly lower score than the optimal scheme but have an advantage in a specific dimension (such as zero splitting or extremely low risk). This differentiated screening avoids alternative solutions from being too similar to the optimal solution and lacking reference value. It provides users with comparable alternative options, meets users' needs for quick switching when the optimal solution is unavailable (such as when the ticket status changes), enriches the hierarchy of solution recommendations, and thus adapts to complex and ever-changing actual business environments.
[0082] Through the above steps, user payment or financing needs can be analyzed to determine the required target amount and target bill selection strategy, forming a set of objective functions. Based on the target amount, a target relevance interval is generated, and bills falling into the target relevance interval are selected from the mixed-constraint bill pool to obtain an initial candidate bill set. Based on the target bill selection strategy, the dynamic convergence index of all candidate bills is calculated to obtain a comprehensive convergence index. If the comprehensive convergence index meets the preset convergence conditions, the final converged candidate bill set is output. The dynamic convergence index includes at least: candidate amount coverage, bill utilization rate, and target amount deviation rate. A combination search is performed on the bills in the candidate bill set, and a dynamic pruning mechanism is executed to generate a set of effective candidate combination paths. The set of effective candidate combination paths is then evaluated using a multi-objective comprehensive scoring method, and the optimal bill combination scheme and alternative bill combination schemes are output based on the scoring results. In this embodiment, a pre-constructed hybrid constraint ticket pool can be used to filter tickets with high priority and good matching, narrowing the search range and avoiding indiscriminate traversal of all tickets, thus reducing the size of the initial search space. A dynamic candidate domain generation and convergence mechanism is introduced to avoid redundant calculations in a large, ineffective space, significantly reducing the amount of ticket data to be processed, thereby reducing search complexity, memory consumption, and computation time. Furthermore, a dynamic pruning mechanism is used to eliminate a large number of invalid or inferior search paths, effectively controlling memory consumption and accelerating the convergence to the optimal solution. Finally, a multi-objective decision scoring mechanism is used to efficiently sort and filter the limited candidate combinations, directly outputting the best solution. This supports efficient processing in large-scale ticket pool scenarios, thereby solving the technical problems of excessively long response time and high memory consumption in related technologies for ticket combination filtering.
[0083] The following describes in detail another optional implementation method.
[0084] This embodiment provides a bill combination optimization method based on hybrid constraint bill pool and dynamic candidate domain convergence, which can be applied to financial management, bill management and fund allocation systems, etc. This method realizes real-time intelligent bill selection under large-scale bill pool by constructing a multi-layer bill pool model, dynamic candidate domain generation and convergence mechanism, dynamic pruning strategy and multi-objective decision scoring system.
[0085] Figure 3 This is an architecture diagram of an optional bill combination optimization method according to an embodiment of the present invention, such as... Figure 3 As shown, the method includes: user requirements, target strategy parsing, ticket constraint modeling, hybrid constraint ticket pooling, candidate domain generation, candidate domain convergence, dynamic pruning, multi-objective scoring, and solution output (best solution, recommended solution, or alternative solution). Each implementation step is described in detail below.
[0086] Part 1: Constraint Modeling and Standardization of Bill Pools
[0087] First, the system receives the original invoice data set and enters it into the original invoice pool. For each invoice in the original invoice pool, the system iterates through and extracts the following attribute fields to form a standard invoice object.
[0088] Numeric fields include invoice amount, remaining available amount, etc.
[0089] Allow splitting of attribute field: Indicates whether the invoice supports partial amount usage.
[0090] Business attribute fields include bill type (electronic bank acceptance bill, commercial acceptance bill, etc.), maturity date, minimum split unit, risk level, priority, etc.
[0091] The extracted attributes are standardized, cleaned, and transformed according to preset data format specifications (such as unified date format and currency unit) to eliminate data noise. Subsequently, based on "whether attribute splitting is allowed," the tickets are marked as splittable or non-splittable types and encapsulated into a collection of standard ticket objects with a unified interface and attribute structure.
[0092] Figure 4 This is a schematic diagram of an optional unified bill processing model according to an embodiment of the present invention, such as... Figure 4 As shown, for the original bill pool, divisible bills are processed by the splitting rule engine, while indivisible bills are processed by the whole bill rule engine. Then, they are imported into the unified bill model and input into the combinatorial optimization model.
[0093] Part Two: Construction of a Hybrid Constraint Ticket Pool.
[0094] Figure 5 This is a structural diagram of an optional hybrid constraint bill pool according to an embodiment of the present invention, such as... Figure 5 As shown, based on the standardized set of standard ticket objects, the system constructs a three-tiered hybrid constraint ticket pool: The first ticket pool (divisible ticket pool): stores all standard ticket objects marked as divisible. The second ticket pool (non-divisible ticket pool): stores all standard ticket objects marked as non-divisible. The third ticket pool (priority processing ticket pool / enhanced candidate pool): this is a dynamically selected subset formed from the first and second ticket pools according to a unified priority rule. Finally, tickets from the divisible ticket pool, non-divisible ticket pool, and priority ticket pool are entered into the candidate domain engine.
[0095] The selection logic for the third bill pool is as follows: bills must meet at least one of the following conditions to be included in the third bill pool:
[0096] 1. The amount of the bill is between 80% and 120% of the target amount;
[0097] 2. The bill amount falls within the top 30% of the historical combination hit rate;
[0098] 3. The risk level of the bill is lower than the risk threshold set by the system;
[0099] 4. The remaining available amount of the bills is greater than 10% of the target amount.
[0100] Tickets that meet the criteria are entered into the third ticket pool and are given priority in the search for candidate domains.
[0101] The above structure forms a multi-layered organization of "basic ticket pool (first and second) + enhanced candidate pool (third)," laying the foundation for efficient subsequent searches.
[0102] It should be noted that the third bill pool is not an independently added bill pool, but rather an enhanced candidate set formed by selecting bills from the first and second bill pools according to a unified priority rule. The third bill pool has an inclusion relationship with the first and second bill pools; that is, the first and second bill pools are the basic bill sets, and the third bill pool is the priority processing subset of the aforementioned basic bill sets.
[0103] Part Three: Target Strategy Analysis and Candidate Domain Generation.
[0104] 3.1 Target Strategy Analysis: The system analyzes the payment or financing requests initiated by users to determine the target amount and the target invoice selection strategy.
[0105] The target amount refers to the specific amount of funds that the user needs to cover.
[0106] Among them, the target bill screening strategy is an optimization-oriented approach selected by the user, including: minimum number of bills mode, maximum number of bills mode, minimum split mode, minimum remaining mode, and minimum risk mode.
[0107] Any combination of the above patterns maps these strategies to mathematical optimization objective functions, forming a set of objective functions that include at least one constraint (such as total amount ≥ target amount) and at least one optimization objective (such as minimizing the number of sheets).
[0108] 3.2 Dynamic candidate domain generation.
[0109] Centered on the target amount, set an initial search interval and construct a target-related interval (determine the initial candidate domain, which includes: high-amount candidate domain, medium-amount candidate domain, and low-amount candidate domain).
[0110] Initial range setting: For example, set it to ±10% of the target amount (i.e., 90%-110%). Prioritize selecting candidate bills from the target-related range. If the target-related range is insufficient, it can be gradually expanded by ±5%, up to a maximum of ±30%.
[0111] Initial candidate set extraction: Extract all bills whose amounts fall within the target relevant range from the mixed-constraint bill pool (preferably from the third bill pool, followed by the first and second bill pools) to form an initial candidate bill set.
[0112] 3.3, Dynamic expansion mechanism for candidate domains.
[0113] If the initial candidate ticket set is empty or insufficient to meet business needs, the system initiates a dynamic expansion mechanism: a step-by-step expansion rule, gradually increasing the range of the target relevance interval by a fixed proportion. For example, the first expansion: 85%-115%; the second expansion: 80%-120%; the third expansion: 75%-125%... until the system's preset maximum search range is reached (e.g., ±30%).
[0114] Filtering and updating: After each expansion, re-filter the bills falling into the new interval from the mixed-constraint bill pool and update the candidate bill set.
[0115] 3. Candidate domain convergence mechanism.
[0116] When the candidate domain meets the convergence condition, the search range is stopped from being expanded, thus forming a dynamic convergence process.
[0117] The specific convergence mechanism is defined by the target correlation interval: [target amount × 90%, target amount × 110%].
[0118] For example, if the target amount is 10,000 yuan, then the relevant range for the target is 9,000 to 11,000 yuan, and the system will prioritize selecting invoices from this range.
[0119] Figure 6 This is a flowchart of an optional candidate domain convergence according to an embodiment of the present invention, such as... Figure 6 As shown, during the expansion search process, the system continuously calculates dynamic convergence indicators to determine whether to stop the expansion. These dynamic convergence indicators include: candidate amount coverage rate, which is the ratio of the total amount of candidate bills to the target amount; bill utilization rate, which is the proportion of selected or highly probable selected bills in the candidate pool; and target amount deviation rate, which is the degree of deviation between the current best combination amount and the target amount.
[0120] The system's comprehensive convergence index can be calculated using the formula S = w1 × candidate amount coverage rate + w2 × bill utilization rate - w3 × target amount deviation rate, where w1, w2, and w3 are configurable weight coefficients. The weighted calculation method balances the influence of different indicators on the convergence judgment.
[0121] Convergence criteria:
[0122] The candidate domain is considered to have converged and the search space should be stopped when the following conditions are met: the rate of change of the comprehensive convergence index over three consecutive rounds is ≤3%; the candidate coverage rate is ≥95%; and the amount deviation rate is ≤1%.
[0123] If the convergence condition is not met and the maximum search range is reached, output the current largest set of candidate tickets to proceed to the next step.
[0124] Part Four: Combined Search and Dynamic Pruning Mechanisms.
[0125] The system performs a combined search on the tickets in the candidate ticket set (such as using backtracking, branch and bound, or heuristic search algorithms), and executes a dynamic pruning mechanism in real time when generating intermediate combined paths to remove invalid paths.
[0126] First trimming mechanism (amount constraint): If the current combined amount > target amount × (1 + allowable error rate), the current path is terminated. Note: The allowable error rate is set to 5% by default. This mechanism prevents the combined amount from significantly exceeding the limit. For example: if the target amount is 10,000 yuan and the combined amount exceeds 10,500 yuan, the process will stop immediately.
[0127] The second pruning mechanism (number of sheets constraint): If the number of sheets in the current combination > the number of sheets in the currently known optimal solution + the preset cumulative number of sheets, then the current path is terminated. Explanation: The preset cumulative number of sheets (e.g., 2 sheets) is used to tolerate a certain degree of degradation. This mechanism is particularly effective when pursuing the minimum number of sheets strategy, preventing the search from getting stuck in inefficient long paths.
[0128] The third pruning mechanism (splitting and risk constraints): The system simultaneously performs the following two parallel judgments: Splitting count exceeded: If the cumulative number of splits > the system's maximum allowed number of splits (default 5), the current path is terminated. Risk level exceeded: If the combined cumulative risk value > the system's set risk threshold (default 80 points), the current path is terminated.
[0129] Through the above multi-dimensional pruning, the system retains all paths that have not been terminated, generating a set of valid candidate path combinations.
[0130] Part 5: Multi-objective scoring and solution output.
[0131] The system iterates through each path in the set of valid candidate path combinations and calculates the following five individual scores:
[0132] Number of documents scoring: Based on the total number of combined documents, the fewer the number of documents, the higher the score.
[0133] Split score: Based on the number of splits, the fewer the splits, the higher the score.
[0134] Amount matching score: Based on the deviation between the combined amount and the target amount, the smaller the deviation, the higher the score.
[0135] Risk score: Based on the portfolio's cumulative risk value, the lower the risk, the higher the score.
[0136] Remaining Amount Score: Based on the portion of the combination that exceeds the target amount, the less remaining, the higher the score.
[0137] Then, based on the weights in the formed objective function set, the five scores are weighted and summed to obtain the comprehensive score for each path.
[0138] Optimal ticket combination scheme: Select the path with the highest comprehensive score as the optimal scheme.
[0139] Alternative bill combination schemes: Select the path with the second highest comprehensive score and that meets specific differentiation conditions as the alternative scheme.
[0140] Examples of differentiated conditions: Alternative options may differ significantly from the optimal option in terms of bill type composition, maturity date distribution, or risk level distribution, or provide different business characteristics (such as zero splitting, extremely low risk, etc.) without significantly reducing the overall score.
[0141] The system will eventually return the optimal solution and alternative solutions to the user for selection or automatic execution.
[0142] Through the above implementation scheme, this invention significantly reduces the search space by using a three-layer bill pool structure and a dynamic candidate domain convergence mechanism, avoiding exhaustive search of all bills. By setting a target relevance interval based on the target amount and dynamically expanding or converging it as the search progresses, it focuses only on a subset of bills highly correlated with the target amount, avoiding invalid traversal of all bills. Simultaneously, a dynamic pruning mechanism can be used to prune in real time during the search process, reducing the storage and processing of invalid paths and lowering memory consumption. During the search process, if the current path is detected to violate constraints such as the amount limit, deterioration in the number of bills, excessive splitting, or excessive risk, the expansion of that path is immediately terminated and related resources are released, avoiding the accumulation of invalid computation states and significantly reducing peak memory usage during algorithm execution.
[0143] The above implementation method solves the problem of unified processing of heterogeneous bills and supports complex mixed scenarios. Since corporate bill pools usually contain multiple types such as electronic bank acceptance bills, commercial acceptance bills, and letters of credit, and some can be split while others cannot, this invention abstracts different types of bills into standard bill objects with unified interfaces and attribute structures, and clearly distinguishes between "splittable" and "indivisible" attributes. In the combined search, the algorithm can simultaneously handle the amount division of split bills and the overall matching of indivisible bills without writing independent logic branches for each type of bill. This achieves standardized and unified processing of heterogeneous bill assets, supports complex mixed business scenarios, improves the system's versatility and business adaptability, and reduces logical conflicts or errors caused by different bill types.
[0144] In addition, the bill combination scheme generated by the embodiments of the present invention not only meets the requirements in terms of amount, but also achieves an optimal balance between management cost (minimum number of bills / splits), risk control (low-risk combination) and capital efficiency (minimum surplus), thereby improving the overall utilization efficiency of bill assets.
[0145] The following is a detailed description with reference to another embodiment.
[0146] Example 2
[0147] The bill combination recommendation device provided in this embodiment includes multiple implementation units, each of which corresponds to a specific implementation step in the above embodiment one. The specific implementation method and beneficial effects can be referred to the foregoing method embodiment, and will not be repeated here.
[0148] Figure 7 This is a schematic diagram of an optional ticket combination recommendation device according to an embodiment of the present invention, as shown below. Figure 7 As shown, the bill combination recommendation device may include: a demand analysis unit 71, a candidate bill screening unit 72, a candidate bill convergence unit 73, a trimming unit 74, and a comprehensive scoring unit 75.
[0149] Among them, the demand analysis unit 71 is used to analyze the user's payment or financing demand, determine the required target amount and target invoice screening strategy, and form a set of objective functions.
[0150] The candidate bill screening unit 72 is used to generate a target relevance interval based on the target amount, and to screen bills that fall into the target relevance interval from the mixed constraint bill pool to obtain an initial candidate bill set.
[0151] The candidate bill convergence unit 73 is used to calculate the dynamic convergence index of all candidate bills based on the target bill screening strategy, obtain the comprehensive convergence index, and output the final converged candidate bill set when the comprehensive convergence index meets the preset convergence conditions. The dynamic convergence index includes at least: candidate amount coverage rate, bill utilization rate and target amount deviation rate.
[0152] The pruning unit 74 is used to perform a combined search on the tickets in the candidate ticket set and execute a dynamic pruning mechanism to generate a set of valid candidate combined paths.
[0153] The comprehensive scoring unit 75 is used to perform multi-objective comprehensive scoring on the set of effective candidate combination paths, and output the optimal bill combination scheme and alternative bill combination schemes based on the scoring results.
[0154] The aforementioned bill combination recommendation device can analyze user payment or financing needs through the demand analysis unit 71, determine the required target amount and target bill selection strategy, and form a set of objective functions; generate a target relevance interval based on the target amount through the candidate bill selection unit 72, and select bills falling into the target relevance interval from the mixed constraint bill pool to obtain an initial candidate bill set; calculate the dynamic convergence index of all candidate bills based on the target bill selection strategy through the candidate bill convergence unit 73, obtain a comprehensive convergence index, and output the final converged candidate bill set when the comprehensive convergence index meets the preset convergence conditions, wherein the dynamic convergence index includes at least: candidate amount coverage rate, bill utilization rate, and target amount deviation rate; perform combination search on the bills in the candidate bill set through the trimming unit 74, and execute a dynamic trimming mechanism to generate a set of effective candidate combination paths; and perform multi-objective comprehensive scoring on the set of effective candidate combination paths through the comprehensive scoring unit 75, and output the optimal bill combination scheme and alternative bill combination schemes based on the scoring results. In this embodiment, a pre-constructed hybrid constraint ticket pool can be used to filter tickets with high priority and good matching, narrowing the search range and avoiding indiscriminate traversal of all tickets, thus reducing the size of the initial search space. A dynamic candidate domain generation and convergence mechanism is introduced to avoid redundant calculations in a large, ineffective space, significantly reducing the amount of ticket data to be processed, thereby reducing search complexity, memory consumption, and computation time. Furthermore, a dynamic pruning mechanism is used to eliminate a large number of invalid or inferior search paths, effectively controlling memory consumption and accelerating the convergence to the optimal solution. Finally, a multi-objective decision scoring mechanism is used to efficiently sort and filter the limited candidate combinations, directly outputting the best solution. This supports efficient processing in large-scale ticket pool scenarios, thereby solving the technical problems of excessively long response time and high memory consumption in related technologies for ticket combination filtering.
[0155] Optionally, the demand parsing unit includes: a demand parsing module, used to parse the target amount value in the user's payment or financing demand; a bill screening strategy reading module, used to read the target bill screening strategy selected by the user in the user's payment or financing demand, wherein the target bill screening strategy includes any one or a combination of: minimum number of bills mode, maximum number of bills mode, minimum split mode, minimum remaining mode, and minimum risk mode; and a function mapping module, used to map each mode in the target bill screening strategy to a mathematical optimization objective function, forming a set of objective functions containing at least one constraint.
[0156] Optionally, the candidate bill screening unit includes: a search interval setting module, used to set an initial search interval centered on the target amount to obtain the target relevant interval; a bill initial search module, used to extract all bills whose amounts fall within the target relevant interval from the mixed constraint bill pool to form an initial candidate bill set; and an interval range expansion module, used to gradually expand the range of the target relevant interval at a fixed ratio when the initial candidate bill set is empty or insufficient, until the preset maximum search range is reached.
[0157] Optionally, the trimming unit includes: a dynamic trimming module, used to perform combination search simulation on the bills in the candidate bill set, and execute a dynamic trimming mechanism for each generated intermediate combination path, wherein the dynamic trimming mechanism includes: a first trimming mechanism, terminating the intermediate combination path if the current combination amount is greater than the product of the target amount and the preset allowable error rate; a second trimming mechanism, terminating the intermediate combination path if the current combination number of bills is greater than the sum of the currently known optimal solution number of bills and the preset cumulative number of bills default value; a third trimming mechanism, terminating the intermediate combination path if the cumulative number of splits is greater than the maximum allowed number of splits; and a fourth trimming mechanism, terminating the intermediate combination path if the cumulative risk value of the combination is greater than the set risk threshold; and a combination path retention module, used to retain all valid combination paths that have not been terminated and generate a set of valid candidate combination paths.
[0158] Optionally, the comprehensive scoring unit includes: a path traversal module, used to traverse each valid candidate combination path in the valid candidate path set, calculate the number of bills score, split score, amount matching score, risk score, and remaining amount score of the valid candidate combination path, and perform a weighted summation of each score according to the weights in the objective function set to obtain the comprehensive score of each valid candidate combination path; an optimal bill combination scheme screening module, used to sort the comprehensive scores and select the path with the highest comprehensive score as the optimal bill combination scheme; and a candidate bill combination scheme screening module, used to select the path with the second highest comprehensive score and that meets specific differentiation conditions as the candidate bill combination scheme.
[0159] Optionally, the bill combination recommendation device further includes: a raw bill receiving unit, used to receive a raw bill data set, enter it into a raw bill pool, and traverse each bill in the raw bill pool before parsing the user's payment or financing needs, extracting the bill's attribute fields, wherein the attribute fields include at least: numeric fields, whether splitting the attribute field is allowed, and business attribute fields; a standardization processing unit, used to standardize the attribute fields according to a preset data format specification, wherein the standardization processing includes: standardization cleaning and conversion; and a bill type marking unit, used to mark the bill as a splittable or non-splittable type according to whether splitting the attribute is allowed, and retain the bill's business attributes, encapsulating it into a standard bill object collection with a unified interface and attribute structure.
[0160] Optionally, the bill combination recommendation device further includes: a first bill allocation module, used to allocate divisible bills into a first bill pool and indivisible bills into a second bill pool; a bill pool filtering module, used to execute preset filtering logic on each bill in the first and second bill pools, wherein the preset filtering logic includes at least one of the following conditions: the bill amount is within a specified range of the target amount, the bill amount belongs to the amount range with a hit rate ranking before a predetermined position in the historical bill recommendation combination, the bill risk level is lower than a set risk threshold, and the remaining available amount of the bill is greater than a specified proportion of the target amount; a second bill allocation module, used to allocate the enhanced candidate bill set formed after filtering into a third bill pool; and a hybrid constraint bill pool generation module, used to combine the first, second, and third bill pools to generate a hybrid constraint bill pool.
[0161] The aforementioned bill combination recommendation device may also include a processor and a memory. The aforementioned demand parsing unit 71, candidate bill screening unit 72, candidate bill convergence unit 73, trimming unit 74, comprehensive scoring unit 75, etc., are all stored in the memory as program units, and the processor executes the aforementioned program units stored in the memory to realize the corresponding functions.
[0162] The aforementioned processor contains a kernel, which retrieves the corresponding program units from memory. One or more kernels can be configured, and kernel parameters can be adjusted to achieve ticket combination optimization based on a hybrid constraint ticket pool.
[0163] The aforementioned memory may include non-permanent memory in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.
[0164] Example 3
[0165] Embodiments of this application may provide an electronic device. Figure 8This is a structural block diagram of an electronic device for implementing a ticket combination recommendation method according to an embodiment of this application. Figure 8 As shown, the electronic device may include: one or more ( Figure 8 (Only one is shown) processor 802, memory 804, memory controller, and peripheral interface, wherein the peripheral interface is connected to the radio frequency module, audio module and display.
[0166] The memory can be used to store software programs and modules, such as the program instructions / modules corresponding to the bill combination recommendation method and apparatus in this application embodiment. The processor executes various functional applications and data processing by running the software programs and modules stored in the memory, thereby realizing the aforementioned bill combination recommendation method. The memory may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory may further include memory remotely located relative to the processor, and these remote memories can be connected to the terminal via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.
[0167] The processor can access information and applications stored in memory via a transmission device to perform the following steps: parse user payment or financing needs, determine the required target amount and target bill selection strategy, forming a set of objective functions; generate a target relevance interval based on the target amount, and select bills falling into the target relevance interval from a mixed-constraint bill pool to obtain an initial candidate bill set; calculate the dynamic convergence index of all candidate bills based on the target bill selection strategy to obtain a comprehensive convergence index, and output the final converged candidate bill set if the comprehensive convergence index meets preset convergence conditions. The dynamic convergence index includes at least: candidate amount coverage, bill utilization rate, and target amount deviation rate; perform a combination search on the bills in the candidate bill set and execute a dynamic pruning mechanism to generate a set of effective candidate combination paths; perform a multi-objective comprehensive scoring on the set of effective candidate combination paths, and output the optimal bill combination scheme and alternative bill combination schemes based on the scoring results.
[0168] Those skilled in the art will understand that Figure 8 The structure shown is for illustrative purposes only. Electronic devices can also be smartphones, tablets, handheld computers, mobile internet devices (MIDs), PADs, and other terminal devices. Figure 8 This does not limit the structure of the aforementioned electronic device. For example, electronic devices may also include components that are more... Figure 8 The more or fewer components shown (such as network interfaces, display devices, etc.), or having the same Figure 8The different configurations shown.
[0169] Those skilled in the art will understand that all or part of the steps in the various ticket combination recommendation methods of the above embodiments can be implemented by a program instructing the hardware related to the terminal device. The program can be stored in a computer-readable storage medium, which may include: flash drive, read-only memory (ROM), random access memory (RAM), disk or optical disk, etc.
[0170] Example 4
[0171] Embodiments of this application also provide a storage medium. Optionally, in this embodiment, the storage medium can be used to store the program code executed by the ticket combination recommendation method provided in Embodiment 1.
[0172] According to another aspect of the present invention, a computer-readable storage medium is also provided, the computer-readable storage medium including a stored computer program, wherein, when the computer program is executed, it controls the device where the computer-readable storage medium is located to execute the ticket combination recommendation method of any one of the above embodiments.
[0173] Optionally, in this embodiment, the storage medium may be located in any computer terminal in a group of computer terminals in a computer network, or in any mobile terminal in a group of mobile terminals.
[0174] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the ticket combination recommendation method described in various embodiments of this application.
[0175] This application also provides a computer program product, including a non-volatile computer-readable storage medium storing a computer program that, when executed by a processor, implements the steps of the ticket combination recommendation method described in various embodiments of this application.
[0176] The sequence numbers of the above embodiments of the present invention are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.
[0177] In the above embodiments of the present invention, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments.
[0178] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. The device embodiments described above are merely illustrative; for example, the division of units can be a logical functional division, and in actual implementation, there may be other division methods. For instance, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the displayed or discussed mutual coupling, direct coupling, or communication connection may be through some interfaces; the indirect coupling or communication connection between units or modules may be electrical or other forms.
[0179] Furthermore, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0180] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, read-only memory (ROM), random access memory (RAM), portable hard drives, magnetic disks, or optical disks.
[0181] The above description is only a preferred embodiment of the present invention. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the principle of the present invention, and these improvements and modifications should also be considered within the scope of protection of the present invention.
Claims
1. A method for recommending ticket combinations, characterized in that, include: Analyze user payment or financing needs, determine the required target amount and target invoice selection strategy, and form a set of objective functions; Based on the target amount, a target relevance interval is generated, and bills falling into the target relevance interval are selected from the mixed-constraint bill pool to obtain an initial candidate bill set; Based on the target bill screening strategy, the dynamic convergence index of all candidate bills is calculated to obtain the comprehensive convergence index. When the comprehensive convergence index meets the preset convergence conditions, the final converged candidate bill set is output. The dynamic convergence index includes at least: candidate amount coverage rate, bill utilization rate and target amount deviation rate. A combination search is performed on the tickets in the candidate ticket set, and a dynamic pruning mechanism is executed to generate a set of valid candidate combination paths; The effective candidate combination path set is evaluated using a multi-objective comprehensive score, and the optimal bill combination scheme and alternative bill combination schemes are output based on the score results.
2. The method for recommending ticket combinations according to claim 1, characterized in that, The steps involved in analyzing user payment or financing needs, determining the required target amount and target invoice selection strategy, and forming a set of objective functions include: Analyze the target amount in a user's payment or financing request; Read the target bill selection strategy selected by the user in the user's payment or financing request, wherein the target bill selection strategy includes any one or a combination of the following: minimum number of bills mode, maximum number of bills mode, minimum split mode, minimum remaining mode, and minimum risk mode; Each pattern in the target ticket screening strategy is mapped to a mathematical optimization objective function, forming a set of objective functions containing at least one constraint.
3. The method for recommending ticket combinations according to claim 1, characterized in that, The steps of generating a target relevance interval based on the target amount and filtering bills falling into the target relevance interval from the hybrid constraint bill pool to obtain an initial candidate bill set include: Using the target amount as the center, an initial search interval is set to obtain the target-related interval; Extract all bills whose amounts fall within the target relevant interval from the hybrid constraint bill pool to form an initial candidate bill set; If the initial candidate ticket set is empty or insufficient, the range of the target relevant interval is gradually expanded at a fixed ratio until the preset maximum search range is reached.
4. The method for recommending ticket combinations according to claim 1, characterized in that, The steps of performing a combined search on the tickets in the candidate ticket set and executing a dynamic pruning mechanism to generate a set of valid candidate combined paths include: A combination search simulation is performed on the bills in the candidate bill set. For each generated intermediate combination path, a dynamic pruning mechanism is executed, which includes: a first pruning mechanism, terminating the intermediate combination path if the current combination amount is greater than the product of the target amount and the preset allowable error rate; a second pruning mechanism, terminating the intermediate combination path if the current combination number of bills is greater than the sum of the currently known optimal solution number of bills and the preset cumulative number of bills default value; a third pruning mechanism, terminating the intermediate combination path if the cumulative number of splits is greater than the maximum allowed number of splits; and a fourth pruning mechanism, terminating the intermediate combination path if the cumulative risk value of the combination is greater than a set risk threshold. Retain all valid combination paths that have not been terminated, and generate a set of valid candidate combination paths.
5. The method for recommending ticket combinations according to claim 1, characterized in that, The steps of performing multi-objective comprehensive scoring on the set of effective candidate combination paths, and outputting the optimal bill combination scheme and alternative bill combination schemes based on the scoring results, include: Traverse each valid candidate combination path in the set of valid candidate paths, calculate the number of sheets score, split score, amount matching score, risk score and remaining amount score of the valid candidate combination path, and perform a weighted summation of each score according to the weight in the objective function set to obtain the comprehensive score of each valid candidate combination path. The comprehensive scores are sorted, and the path with the highest comprehensive score is selected as the optimal ticket combination scheme; The path with the second-highest overall score and that meets specific differentiation conditions is selected as the alternative bill combination scheme.
6. The method for recommending ticket combinations according to claim 1, characterized in that, Before analyzing a user's payment or financing needs, the process also includes: Receive the original invoice data set, enter it into the original invoice pool, and traverse each invoice in the original invoice pool to extract the attribute fields of the invoice. The attribute fields include at least: numeric fields, whether the attribute fields and business attribute fields can be split. The attribute fields are standardized according to a preset data format specification, wherein the standardization process includes: standardization cleaning and transformation; The ticket is marked as either divisible or indivisible based on whether the splitting attribute is allowed, and the business attributes of the ticket are preserved and encapsulated into a standard ticket object collection with a unified interface and attribute structure.
7. The ticket combination recommendation method according to claim 6, characterized in that, After being encapsulated into a standard collection of ticket objects with a unified interface and property structure, it also includes: Divisible bills are assigned to the first bill pool, and indivisible bills are assigned to the second bill pool. For each bill in the first bill pool and the second bill pool, a preset filtering logic is executed, wherein the preset filtering logic includes at least one of the following conditions: the bill amount is within a specified range of the target amount, the bill amount belongs to the amount range in the historical bill recommendation combination with a hit rate ranking before a predetermined position, the bill risk level is lower than a set risk threshold, and the remaining available amount of the bill is greater than a specified proportion of the target amount. The enhanced candidate bill set formed after screening is included in the third bill pool; The first bill pool, the second bill pool, and the third bill pool are combined to generate the hybrid constraint bill pool.
8. A ticket combination recommendation device, characterized in that, include: The demand analysis unit is used to analyze user payment or financing needs, determine the required target amount and target invoice selection strategy, and form a set of objective functions. The candidate bill screening unit is used to generate a target relevance interval based on the target amount, and to screen bills that fall into the target relevance interval from the mixed constraint bill pool to obtain an initial candidate bill set; The candidate bill convergence unit is used to calculate the dynamic convergence index of all candidate bills based on the target bill screening strategy, obtain the comprehensive convergence index, and output the final converged candidate bill set when the comprehensive convergence index meets the preset convergence conditions. The dynamic convergence index includes at least: candidate amount coverage rate, bill utilization rate and target amount deviation rate. The pruning unit is used to perform a combined search on the tickets in the candidate ticket set and execute a dynamic pruning mechanism to generate a set of valid candidate combined paths. The comprehensive scoring unit is used to perform multi-objective comprehensive scoring on the set of effective candidate combination paths, and output the optimal ticket combination scheme and alternative ticket combination schemes based on the scoring results.
9. An electronic device, characterized in that, It includes one or more processors and a memory, the memory being used to store one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors cause the one or more processors to implement the ticket combination recommendation method according to any one of claims 1 to 7.
10. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the ticket combination recommendation method according to any one of claims 1 to 7.
