Method and device for quickly acquiring integer programming result

The integer programming problem is transformed by the penalty function and auxiliary variables, and the ADMM algorithm is used to solve the sub-problems separately, which solves the problem of low computing efficiency of big data integer programming and improves the computing performance and result accuracy.

CN118863992APending Publication Date: 2024-10-29SHANSHU TECH (BEIJING) CO LTD +5
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410893349.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-04
Publication Date
2024-10-29

AI Technical Summary

Technical Problem

When existing technologies deal with integer programming problems of big data, matrix decomposition efficiency is low, resulting in reduced computational efficiency and difficulty in obtaining optimization results, especially in high-dimensional sparse problems such as store location selection and logistics scheduling.

Method used

By introducing penalty functions and auxiliary variables, the integer programming problem is converted into equivalent sub-problems, and solved using the ADMM algorithm to separate and solve sub-problems in each dimension, simplifying the processing process and improving parallel performance.

Benefits of technology

It improves the calculation efficiency of integer programming problems and the accuracy of optimization results, reduces the calculation overhead, and ensures the accuracy and reliability of the results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118863992A_ABST
    Figure CN118863992A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a method and a device for quickly acquiring an integer programming result. The method comprises the following steps of: acquiring a problem to be solved and a corresponding target to be optimized; based on the to-be-optimized target, adding a first constraint condition to the to-be-solved problem; based on the to-be-solved problem and the first constraint condition, introducing a penalty function and an auxiliary variable to obtain a sub-problem equivalent to the to-be-solved problem and a corresponding second constraint condition; based on the second constraint condition, adopting an ADMM algorithm to solve the sub-problem, and obtaining an optimization result of the to-be-optimized target; wherein the optimization result enables the result of the problem to be solved to be optimal. According to the method, the processing process of the integer programming problem is simplified, and the parallel performance of a computer during calculation is improved; therefore, the additional memory and the calculation overhead of the computer are reduced, and the operation efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of operations research and optimization, and in particular to a method and device for quickly acquiring integer programming results. Background Art

[0002] In the process of production and operation, enterprises often face planning problems such as store location selection and logistics scheduling tasks. These tasks are generally solved by branch and bound, cutting plane, and branch-cut plane methods.

[0003] At present, mainstream solutions often rely on heuristic algorithms to select branches and use the simplex method as a linear programming sub-problem solver. This solution can often obtain relatively accurate results within a certain period of time when the problem scale is not large. However, the speed of the simplex algorithm depends on the efficiency of matrix decomposition; when dealing with big data problems, matrix decomposition will become a bottleneck and it is difficult to obtain results. The main reason is that big data problems are often high-dimensional and sparse, and in the process of optimizing and obtaining results (for example, store location selection, logistics scheduling, circuit design, etc.), these characteristics will be destroyed after matrix decomposition, resulting in additional memory and computing overhead, reduced efficiency, and making it impossible to perform operations or obtain the final optimization results. Summary of the invention

[0004] In view of this, the purpose of the embodiments of the present invention is to provide a method and device for quickly obtaining integer programming results. The present invention simplifies the processing process of integer programming problems, improves the parallel performance of computer calculations, and improves the accuracy of the optimization results of the problem to be solved.

[0005] In the first aspect, the present application provides the following technical solution through an embodiment:

[0006] A method for quickly obtaining integer programming results, comprising:

[0007] Obtain a problem to be solved and a corresponding target to be optimized; wherein the problem to be solved is an integer programming problem, and the result of the problem to be solved is determined by the target to be optimized; based on the target to be optimized, add a first constraint to the problem to be solved; based on the problem to be solved and the first constraint, introduce a penalty function and an auxiliary variable to obtain a sub-problem equivalent to the problem to be solved and a corresponding second constraint; based on the second constraint, use the ADMM algorithm to solve the sub-problem to obtain the optimization result of the target to be optimized; wherein the optimization result makes the result of the problem to be solved optimal; wherein, the problem to be solved is whether to use each of a plurality of addresses to be selected as a site in the process of store site selection; the target to be optimized is the optimized store revenue in the process of store site selection; the first constraint includes: a store quantity constraint, indicating the number of stores planned to be established; a store consumption ratio constraint, the sum of store consumption ratios is 1; a store supply and demand constraint, indicating that the total consumption of a store cannot exceed the supply of the store.

[0008] Preferably, the first constraint condition includes: 0, 1 integer constraint, and the step of introducing a penalty function and an auxiliary variable based on the problem to be solved and the first constraint condition to obtain a subproblem equivalent to the problem to be solved and a corresponding second constraint condition includes:

[0009] Convert the 0 and 1 integer constraints into equivalent constraints x i (1-x i )=0; where x i is the target to be optimized; based on the equivalent constraint, the penalty function is introduced into the problem to be solved for optimization to obtain the optimized problem to be solved; the auxiliary variable is introduced to split the optimized problem to be solved to obtain sub-problems equivalent to the problem to be solved and the corresponding second constraint condition.

[0010] Preferably, the penalty function is a penalty function of the LP norm.

[0011] Preferably, based on the equivalent constraint, introducing the penalty function to optimize the problem to be solved to obtain the optimized problem to be solved includes:

[0012] Based on the equivalence constraint, we introduce Optimize the problem to be solved and obtain in, is the penalty function, f(x) is the function corresponding to the problem to be solved, so Maximum or minimum represents the problem to be solved after optimization, and γ is the penalty factor.

[0013] Preferably, the introducing of the auxiliary variable to split the optimized problem to be solved to obtain sub-problems equivalent to the problem to be solved and corresponding second constraints includes:

[0014] Introducing the auxiliary variable Split it and obtain the sub-problem: And the second constraint: Ax = b, xy = 0; where y is an auxiliary variable, so The maximum or minimum represents the sub-problem.

[0015] Preferably, based on the second constraint condition, using the ADMM algorithm to solve the subproblem to obtain the optimization result of the target to be optimized includes:

[0016] The subproblem is convexly optimized according to the Lagrangian function; based on the second constraint condition, the subproblem that has undergone convex optimization is solved using the ADMM algorithm to obtain the optimization result of the target to be optimized.

[0017] In the second aspect, based on the same inventive concept, the present application provides the following technical solution through an embodiment:

[0018] A device for quickly acquiring integer programming results, comprising:

[0019] A problem acquisition module is used to acquire a problem to be solved and a corresponding target to be optimized; wherein the problem to be solved is an integer programming problem, and the result of the problem to be solved is determined by the target to be optimized; a first constraint condition acquisition module is used to add a first constraint condition to the problem to be solved; a problem optimization module is used to introduce a penalty function and an auxiliary variable based on the problem to be solved and the first constraint condition to obtain a sub-problem equivalent to the problem to be solved and a corresponding second constraint condition; a solution module is used to solve the sub-problem based on the second constraint condition using an ADMM algorithm to obtain an optimization result of the target to be optimized; wherein the optimization result makes the result of the problem to be solved optimal; wherein the problem to be solved is whether to use each of a plurality of addresses to be selected as a site in the process of selecting a store location for a shop; the target to be optimized is the optimized store revenue in the process of selecting a store location for a shop; the first constraint condition includes: a store quantity constraint condition, indicating the number of stores planned to be established; a store consumption ratio constraint condition, the sum of store consumption ratios is 1; a store supply and demand constraint condition, indicating that the total consumption of a store cannot exceed the supply of the store.

[0020] Preferably, the first constraint condition includes: 0, 1 integer constraint, and the problem optimization module is further used for:

[0021] Convert the 0 and 1 integer constraints into equivalent constraints x i (1-x i )=0; where x i is the target to be optimized; based on the equivalent constraint, the penalty function is introduced into the problem to be solved for optimization to obtain the optimized problem to be solved; the auxiliary variable is introduced to split the optimized problem to be solved to obtain sub-problems equivalent to the problem to be solved and the corresponding second constraint condition.

[0022] In the third aspect, based on the same inventive concept, the present application provides the following technical solution through an embodiment:

[0023] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the following steps:

[0024] Obtain a problem to be solved and a corresponding target to be optimized; wherein the problem to be solved is an integer programming problem, and the result of the problem to be solved is determined by the target to be optimized; based on the target to be optimized, add a first constraint to the problem to be solved; based on the problem to be solved and the first constraint, introduce a penalty function and an auxiliary variable to obtain a sub-problem equivalent to the problem to be solved and a corresponding second constraint; based on the second constraint, use the ADMM algorithm to solve the sub-problem to obtain the optimization result of the target to be optimized; wherein the optimization result makes the result of the problem to be solved optimal; wherein, the problem to be solved is whether to use each of a plurality of addresses to be selected as a site in the process of store site selection; the target to be optimized is the optimized store revenue in the process of store site selection; the first constraint includes: a store quantity constraint, indicating the number of stores planned to be established; a store consumption ratio constraint, the sum of store consumption ratios is 1; a store supply and demand constraint, indicating that the total consumption of a store cannot exceed the supply of the store.

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

[0026] The present invention provides a method for quickly obtaining integer programming results. By using a penalty function to optimize the problem to be solved, the accuracy of the final optimization result is improved. At the same time, the auxiliary variable is further introduced to realize the decomposition of the problem to be solved, and the sub-problem corresponding to the problem to be solved and the second constraint condition are obtained. Finally, when the ADMM algorithm is used to solve the sub-problem after the penalty function and the auxiliary variable deformation, the sub-problems of each dimension can be solved separately, which simplifies the processing process of the integer programming problem and improves the parallel performance of the computer during calculation. Thereby, the additional memory and computing overhead of the computer are reduced, and the operation efficiency is improved. Since the matrix characteristics of the problem to be solved processed by the method of the present invention will not be destroyed during the calculation process, the optimization result finally obtained is also more accurate and reliable.

[0027] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, preferred embodiments are given below and described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.

[0029] Figure 1 A flowchart of a method for quickly obtaining integer programming results provided by the first embodiment of the present invention;

[0030] Figure 2 A flowchart of a device for quickly acquiring integer programming results provided by the second embodiment of the present invention;

[0031] Figure 3 A module block diagram of a computer storage medium provided for the third embodiment of the present invention. DETAILED DESCRIPTION

[0032] The technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. The components of the embodiments of the present invention generally described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present invention provided in the drawings is not intended to limit the scope of the claimed invention, but merely represents the selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present invention.

[0033] It should be noted that similar reference numerals and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in the subsequent drawings. At the same time, in the description of the present invention, the terms "first", "second", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance.

[0034] First embodiment

[0035] Please refer to Figure 1 In this embodiment, a method for quickly obtaining integer programming results is provided, and the method includes:

[0036] Step S10: obtaining a problem to be solved and a corresponding target to be optimized; wherein the problem to be solved is an integer programming problem, and the result of the problem to be solved is determined by the target to be optimized;

[0037] Step S20: adding a first constraint condition to the problem to be solved based on the target to be optimized;

[0038] Step S30: Based on the problem to be solved and the first constraint condition, a penalty function and an auxiliary variable are introduced to obtain a subproblem equivalent to the problem to be solved and a corresponding second constraint condition;

[0039] Step S40: Based on the second constraint condition, the ADMM algorithm is used to solve the sub-problem to obtain the optimization result of the target to be optimized; wherein the optimization result makes the result of the problem to be solved optimal.

[0040] In step S10, the problem to be solved represents a problem containing one or more variables, and the problem to be solved can achieve an optimal result, such as a maximum value or a minimum value, by adjusting the variables.

[0041] Example 1: In the design of ultra-large-scale gate circuits, it is necessary to connect certain gate circuits to form a directed graph to achieve a certain target function. While completing this function, the designer needs to consider how to reduce energy consumption or reduce costs, and whether to connect each gate circuit becomes a 0-1 problem to be solved. Therefore, the problem to be solved can be determined: how to minimize energy consumption.

[0042] Example 2: When a large supermarket needs to select a store location (including multiple addresses to be selected), for each of the multiple addresses to be selected, whether to use each address as a location becomes a 0-1 problem to be solved; that is, to open a store at a specified location, or not to choose the specified location to open a store. Whether to open a store at each candidate location is the target to be optimized. The purpose of opening a store is to achieve maximum profit, so the maximum profit obtained by opening a store at each location to be selected is a problem to be solved.

[0043] Furthermore, in actual production, due to various restrictions, it is impossible to open a store in every city. Therefore, it is necessary to add restriction conditions to the problem to be solved, that is, execute step S20.

[0044] In step S20, based on the target to be optimized, a first constraint condition is added to the problem to be solved.

[0045] Continuing with the above example 1, if the power consumption and cost of each gate circuit can be determined, and the gate circuits that must be used are known, the maximum cost of completing the target function is determined, etc. (this is an example, and the constraints of this type of problem are often difficult to list exhaustively). Then according to the above constraints, power consumption, cost, gate circuits that must be used, etc., the first constraint condition of the problem to be solved can be obtained, which can be specifically written as: Ax = b, x i ∈{0,1}, i=1,2,…,n, where x i is the target to be optimized, indicating whether gate circuit i is selected.

[0046] In Example 2, if the revenue of each store in the selected location can be estimated, and the number of stores is a specified number, the cost of each store in the selected location is fixed, and the total investment is determined. At this time, the specific function expression of the problem to be solved can be determined based on the estimated revenue of each store in the selected location. The first constraint condition of the problem to be solved is determined based on the specified number of stores, the fixed cost of each store in the selected location, and the total investment. Specifically, it can be written as: Ax = b, x i ∈{0,1}, i=1,2,…,n, where x i is the target to be optimized, indicating whether address i is selected.

[0047] It should be noted that the content described in Example 1 is only an exemplary description. The problem to be solved in this embodiment often has more complex situations, and the data is massive, which is difficult to be exhaustive in writing. The present invention is not only applicable to the optimization result acquisition of the above-mentioned store location problem, but also applicable to similar integer programming problems and 0, 1 programming problems.

[0048] Step S30: Based on the problem to be solved and the first constraint condition, a penalty function and an auxiliary variable are introduced to obtain a subproblem equivalent to the problem to be solved and a corresponding second constraint condition;

[0049] In step S30, the first constraint condition includes at least: 0, 1 integer constraint, that is, the target to be optimized is 0 or 1. Further, step S30 specifically includes:

[0050] Step S31: Convert the 0 and 1 integer constraints into equivalent constraints x i (1-x i )=0; where x i is the target to be optimized;

[0051] Step S32: Based on the equivalent constraint, the penalty function is introduced into the problem to be solved for optimization to obtain the optimized problem to be solved; the accuracy of the optimization result can be improved to avoid overfitting.

[0052] In step S32, the penalty function may be a penalty function of the LP norm, specifically: Further, step S32 specifically includes: based on the equivalent constraint, introducing Optimize the problem to be solved and obtain in, is the penalty function, f(x) is the function corresponding to the problem to be solved, so Maximum or minimum represents the problem to be solved after optimization, and γ is the penalty factor.

[0053] Step S33: introducing the auxiliary variable to split the optimized problem to be solved, and obtaining sub-problems equivalent to the problem to be solved and corresponding second constraints.

[0054] The second constraint condition includes the constraints between the optimization target and the auxiliary variables.

[0055] In step S33, it specifically includes: introducing the auxiliary variable, Split it and obtain the sub-problem: And the second constraint: Ax = b, xy = 0; where y is an auxiliary variable, so The maximum or minimum represents the sub-problem.

[0056] By introducing auxiliary variables, each sub-problem can be separated and solved in parallel. When the ADMM algorithm is used to solve the sub-problems, the efficiency of solving the sub-problems can be significantly improved, the solution time can be greatly shortened, and the computational overhead can be reduced. It can be applied to the processing of problems to be solved containing massive data.

[0057] Step S40: Based on the second constraint condition, the ADMM algorithm is used to solve the sub-problem to obtain the optimization result of the target to be optimized; wherein the optimization result makes the result of the problem to be solved optimal. In step S40, it specifically includes:

[0058] Step S41: convex optimization is performed on the sub-problem according to the Lagrangian function; step S41 makes the sub-problem easier to solve.

[0059] Step S42: Based on the second constraint condition, the ADMM algorithm is used to solve the sub-problem after convex optimization to obtain the optimization result of the target to be optimized.

[0060] In order to more accurately illustrate the concept of the present invention, a specific example is used for illustration as follows:

[0061] Problems to be solved:

[0062] minf(x);

[0063] stAx=b,

[0064] x i ∈{0,1},i=1,2,…,n.

[0065] Convert the 0 and 1 integer constraints into equivalent constraints x i (1-x i )=0;

[0066] Furthermore, the penalty function of the LP norm is introduced based on the equivalent constraint

[0067]

[0068] get:

[0069]

[0070] stAx=b

[0071] Introduce the auxiliary variable y, split the problem to be solved after the optimization, and obtain:

[0072]

[0073] stAx=b,

[0074] xy=0;

[0075] Introduce the Lagrangian function for optimization and obtain:

[0076]

[0077] The ADMM algorithm is used to solve and update the variables x, y, and λ in the above problem, k = 0····K, as follows:

[0078] Update the variable x;

[0079] y k+1 =argminL(x k+1 ,y,λ k ), update the variable y;

[0080] Update the variable λ;

[0081] Finally, when the difference between the variables before and after the update is not large, or when the update meets the preset conditions, the update can be stopped and the final x is output. K+1 ,y K+1 .

[0082] When updating the x variable, the specific steps are:

[0083] When solving the problem, a first-order algorithm such as the gradient method, the conjugate gradient method, etc. may be used without limitation.

[0084] The y variable is coordinate separable, and multithreading technology can be used to solve each coordinate sub-problem in parallel. The specific updates are:

[0085]

[0086] Among them, p = a / b is a fraction, and the final sub-problem of each dimension is to solve the root of the following equation:

[0087] β b (xz) b [x(1-x)] b-a =(2x-1) b , the above equations can also be solved in parallel using multiple threads.

[0088] The updating process of the dual variable λ will not be described in detail.

[0089] Finally, the result x K+1 It is the optimal result of the target to be optimized, and can achieve the optimal result of the problem to be solved.

[0090] Furthermore, the optimization problem of store location in Example 2 above is further explained as an example. The specific implementation process is as follows:

[0091] A large retailer is faced with the problem of selecting store locations in a city. There are several consumer groups I and potential locations J. Now it is necessary to select no more than K locations to establish stores and maximize the benefits of setting up stores. That is, a method for quickly obtaining integer programming results in this application is a method for selecting store locations. Specifically:

[0092] Through step S10, the target to be optimized is determined as:

[0093]

[0094] Through step S20, a first constraint condition is added to the problem to be solved for the target to be optimized, as follows:

[0095] Store quantity constraints:

[0096] Constraints on store consumption ratio:

[0097] Store supply and demand constraints:

[0098] Other constraints: x j ∈{0,1};y ij ≥0, (i,j)∈E.

[0099] Among them, x j is a 0-1 variable, which determines whether the jth location has opened a store; ij The proportion of consumer i's needs that are met by stores at location j; I is the set of consumer group locations; J is the set of store alternative locations; c j is the cost of the store at location j; p ij The benefit brought by satisfying the demand of consumer i at j; s j is the total demand of the ith consumer; t j is the total supply of the jth store; E ij It is a 0-1 value, and consumer i can be supplied by the store at address j, which can be regarded as a bipartite graph.

[0100] Among the above constraints, the store quantity constraint indicates the number of stores planned to be established; the store consumption ratio constraint indicates that the sum of store consumption ratios is 1; and the store supply and demand constraint indicates that the total consumption of a store cannot exceed the supply of the store.

[0101] Further, step S30 is performed to optimize the above-mentioned problem to be solved and the first constraint condition, as follows:

[0102] First, y is represented as an |E|-dimensional vector, where |E| is the number of edges in the graph E. This problem is a mixed integer and continuous linear programming problem (MILP). It is transformed into a standard form and slack variables (auxiliary variables) ξ∈R,η∈R are introduced. |J| Convert the inequality into an equality constraint. The first constraint is transformed into the second constraint as follows:

[0103] The store quantity constraint corresponds to: e T x+ξ=K,ξ≥0;

[0104] The store consumption ratio constraint condition corresponds to: Ly = e;

[0105] The store supply and demand constraints correspond to:

[0106] Combine the above constraints and obtain the MILP standard problem equivalent to the problem to be solved:

[0107] min[-p;0;0;c] T [y; ξ; η; x]

[0108] st

[0109] x∈{0,1} k ;

[0110] y,ξ,η≥0;

[0111] Introduce penalty function to optimize the MILP standard problem:

[0112] For the convenience of description, the symbols of the MILP problem are replaced accordingly to obtain:

[0113]

[0114] s.tA1x1+A2x2=b

[0115]

[0116] x2 ≥ 0;

[0117] Introduce a penalty function for the above subproblem to obtain a subproblem equivalent to the problem to be solved:

[0118]

[0119] s.tA1x1+A2x2=b

[0120]

[0121] x2=y2;y2≥0

[0122] The corresponding Lagrangian function is:

[0123]

[0124] For the variable x in the above problem 0 ,y 0 ,θ 0 , 0 Solve and update respectively, k = 0, 1, 2, 3... do, as follows:

[0125]

[0126] Through the above loop iteration, the sub-problem can be solved, where y k+1 =argmin g L(x k , y, λ k , α k ) Some of them have closed expressions:

[0127] Among them, x k+1 =argmin x L(x,y k+1 ,λ k , α k ) is updated to solve a positive definite system as follows:

[0128] (ρ+A T A)x k+1 =ρA T b+ρy k+1 -c-λ k -A T α k .

[0129] When the iteration is completed and the optimal result is obtained, the optimal solution to the problem to be solved can be determined, and the number and location of stores can be determined.

[0130] In summary, the present invention provides a method for quickly obtaining integer programming results. By using a penalty function to optimize the problem to be solved, the accuracy of the final optimization result is improved; at the same time, the auxiliary variables are further introduced to realize the decomposition of the problem to be solved, and the sub-problems corresponding to the problem to be solved and the second constraint condition are obtained. Finally, when the ADMM algorithm is used to solve the sub-problems after the deformation of the penalty function and the auxiliary variables, the sub-problems of each dimension can be separated and solved, which simplifies the processing process of the integer programming problem and improves the parallel performance of the computer during calculation; thereby reducing the additional memory and computing overhead of the computer and improving the computing efficiency. Since the matrix characteristics of the problem to be solved processed by the method of the present invention will not be destroyed during the calculation process, the optimization result finally obtained is also more accurate and reliable.

[0131] Second embodiment

[0132] See also Figure 2 Based on the same inventive concept, in this embodiment, a device 300 for quickly acquiring integer programming results is provided, and the device 300 comprises:

[0133] The problem acquisition module 301 is used to acquire the problem to be solved and the corresponding target to be optimized; wherein the problem to be solved is an integer programming problem, and the result of the problem to be solved is determined by the target to be optimized;

[0134] A first constraint condition acquisition module 302, used to add a first constraint condition to the problem to be solved;

[0135] A problem optimization module 303, for introducing a penalty function and an auxiliary variable to obtain a subproblem equivalent to the problem to be solved and a corresponding second constraint condition based on the problem to be solved and the first constraint condition;

[0136] The solution module 304 is used to solve the sub-problem based on the second constraint condition and adopt the ADMM algorithm to obtain the optimization result of the target to be optimized; wherein, the optimization result makes the result of the problem to be solved optimal; wherein, the problem to be solved is whether to use each of the multiple addresses to be selected as a site in the process of store site selection; the target to be optimized is the optimized store revenue in the process of store site selection; the first constraint condition includes: store quantity constraint condition, which indicates the number of stores planned to be established; store consumption ratio constraint condition, the sum of store consumption ratio is 1; store supply and demand constraint condition, which indicates that the total consumption of the store cannot exceed the supply of the store.

[0137] As an optional implementation, the first constraint condition includes: 0, 1 integer constraint, and the problem optimization module 303 is further used to:

[0138] Convert the 0 and 1 integer constraints into equivalent constraints x i (1-x i )=0; where x i is the target to be optimized;

[0139] Based on the equivalent constraint, the penalty function is introduced into the problem to be solved for optimization to obtain the optimized problem to be solved;

[0140] The auxiliary variable is introduced to split the optimized problem to be solved, so as to obtain sub-problems equivalent to the problem to be solved and corresponding second constraints.

[0141] As an optional implementation, the penalty function is a penalty function of the LP norm.

[0142] As an optional implementation manner, the problem optimization module 303 is further used to:

[0143] Based on the equivalence constraint, we introduce Optimize the problem to be solved and obtain in, is the penalty function, f(x) is the function corresponding to the problem to be solved, so Maximum or minimum represents the problem to be solved after optimization, and γ is the penalty factor.

[0144] As an optional implementation manner, the problem optimization module 303 is further used to:

[0145] Introducing the auxiliary variable Split it and obtain the sub-problem: And the second constraint: Ax = b, xy = 0; where y is an auxiliary variable, so The maximum or minimum represents the sub-problem.

[0146] As an optional implementation, the solution module 304 is further used to:

[0147] Performing convex optimization on the subproblem according to the Lagrangian function;

[0148] Based on the second constraint condition, the ADMM algorithm is used to solve the subproblem after convex optimization to obtain the optimization result of the target to be optimized.

[0149] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0150] Third embodiment

[0151] Based on the same inventive concept, Figure 3 As shown, this embodiment provides a computer-readable storage medium 500, on which a computer program 511 is stored. When the computer program 511 is executed by a processor, the following steps are implemented:

[0152] Obtaining a problem to be solved and a corresponding target to be optimized; wherein the problem to be solved is an integer programming problem, and the result of the problem to be solved is determined by the target to be optimized;

[0153] Based on the target to be optimized, adding a first constraint condition to the problem to be solved;

[0154] Based on the problem to be solved and the first constraint condition, a penalty function and an auxiliary variable are introduced to obtain a subproblem equivalent to the problem to be solved and a corresponding second constraint condition;

[0155] Based on the second constraint, the ADMM algorithm is used to solve the sub-problem to obtain the optimization result of the target to be optimized; wherein, the optimization result makes the result of the problem to be solved optimal; wherein, the problem to be solved is, in the process of store site selection, for each of a plurality of addresses to be selected, whether to use each of the addresses as a site selection; the target to be optimized is the optimized store revenue in the process of store site selection; the first constraint includes: store quantity constraint, indicating the number of stores planned to be established; store consumption ratio constraint, the sum of store consumption ratios is 1; store supply and demand constraint, indicating that the total consumption of a store cannot exceed the supply of the store.

[0156] In the specific implementation process, when the computer program 511 is executed by the processor, any implementation method in the first embodiment (or the second embodiment) can be implemented, which will not be described in detail here.

[0157] In several embodiments provided in the present application, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device embodiments described above are merely schematic. For example, the flowcharts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the devices, methods and computer program products according to multiple embodiments of the present invention. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of a code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.

[0158] In addition, the functional modules in the various embodiments of the present invention may be integrated together to form an independent part, or each module may exist independently, or two or more modules may be integrated to form an independent part.

[0159] If the method function in the present invention is implemented in the form of a software function module 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 is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program code. It should be noted that in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "comprises," "comprising," or any other variation thereof are intended to encompass non-exclusive inclusion, such that a process, method, article, or apparatus that includes a list of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article, or apparatus. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article, or apparatus that includes the element.

[0160] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention. It should be noted that similar numbers and letters represent similar items in the following drawings. Therefore, once an item is defined in one drawing, it does not need to be further defined and explained in the subsequent drawings.

[0161] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

Claims

1. A method for quickly obtaining integer programming results, characterized in that: include: Obtaining a problem to be solved and a corresponding target to be optimized; wherein the problem to be solved is an integer programming problem, and the result of the problem to be solved is determined by the target to be optimized; Based on the target to be optimized, adding a first constraint condition to the problem to be solved; Based on the problem to be solved and the first constraint condition, a penalty function and an auxiliary variable are introduced to obtain a subproblem equivalent to the problem to be solved and a corresponding second constraint condition; Based on the second constraint condition, the sub-problem is solved by using the ADMM algorithm to obtain an optimization result of the target to be optimized; wherein the optimization result makes the result of the problem to be solved optimal; Among them, the problem to be solved is whether to take each of the multiple addresses to be selected as a site in the process of store site selection; the target to be optimized is the optimal store revenue in the process of store site selection; the first constraint condition includes: store quantity constraint condition, which indicates the number of stores planned to be established; store consumption ratio constraint condition, the sum of store consumption ratios is 1; store supply and demand constraint condition, which indicates that the total consumption of the store cannot exceed the supply of the store.

2. The method according to claim 1, characterized in that The first constraint condition includes: 0, 1 integer constraints, and the introduction of penalty functions and auxiliary variables based on the problem to be solved and the first constraint condition to obtain a subproblem equivalent to the problem to be solved and the corresponding second constraint condition includes: Convert the 0 and 1 integer constraints into equivalent constraints x i (1-x i )=0; where x i is the target to be optimized; Based on the equivalent constraint, the penalty function is introduced into the problem to be solved for optimization to obtain the optimized problem to be solved; The auxiliary variable is introduced to split the optimized problem to be solved, so as to obtain sub-problems equivalent to the problem to be solved and corresponding second constraints.

3. The method according to claim 2, characterized in that The penalty function is a penalty function of the LP norm.

4. The method according to claim 2, characterized in that: The step of introducing the penalty function to optimize the problem to be solved based on the equivalent constraint to obtain the optimized problem to be solved includes: Based on the equivalence constraint, we introduce Optimize the problem to be solved and obtain in, is the penalty function, f(x) is the function corresponding to the problem to be solved, so Maximum or minimum represents the problem to be solved after optimization, and γ is the penalty factor.

5. The method according to claim 4, characterized in that The introducing of the auxiliary variable to split the optimized problem to be solved to obtain sub-problems equivalent to the problem to be solved and corresponding second constraints includes: Introducing the auxiliary variable Split it and obtain the sub-problem: And the second constraint: Ax = b, xy = 0; where y is an auxiliary variable, so The maximum or minimum represents the sub-problem.

6. The method according to claim 1, characterized in that The step of solving the subproblem based on the second constraint condition by using the ADMM algorithm to obtain the optimization result of the target to be optimized includes: Performing convex optimization on the subproblem according to the Lagrangian function; Based on the second constraint condition, the ADMM algorithm is used to solve the subproblem after convex optimization to obtain the optimization result of the target to be optimized.

7. A device for quickly obtaining integer programming results, characterized in that: include: A problem acquisition module, used to acquire a problem to be solved and a corresponding target to be optimized; wherein the problem to be solved is an integer programming problem, and the result of the problem to be solved is determined by the target to be optimized; A first constraint condition acquisition module, used for adding a first constraint condition to the problem to be solved; A problem optimization module, used for introducing a penalty function and an auxiliary variable to obtain a subproblem equivalent to the problem to be solved and a corresponding second constraint condition based on the problem to be solved and the first constraint condition; A solution module, configured to solve the sub-problem by using an ADMM algorithm based on the second constraint condition to obtain an optimization result of the target to be optimized; wherein the optimization result makes the result of the problem to be solved optimal; Among them, the problem to be solved is whether to take each of the multiple addresses to be selected as a site in the process of store site selection; the target to be optimized is the optimal store revenue in the process of store site selection; the first constraint condition includes: store quantity constraint condition, which indicates the number of stores planned to be established; store consumption ratio constraint condition, the sum of store consumption ratios is 1; store supply and demand constraint condition, which indicates that the total consumption of the store cannot exceed the supply of the store.

8. The device according to claim 7, characterized in that The first constraint condition includes: 0, 1 integer constraint, and the problem optimization module is further used for: Convert the 0 and 1 integer constraints into equivalent constraints x i (1-x i )=0; where x i is the target to be optimized; Based on the equivalent constraint, the penalty function is introduced into the problem to be solved for optimization to obtain the optimized problem to be solved; The auxiliary variable is introduced to split the optimized problem to be solved, so as to obtain sub-problems equivalent to the problem to be solved and corresponding second constraints.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the following steps are implemented: Obtaining a problem to be solved and a corresponding target to be optimized; wherein the problem to be solved is an integer programming problem, and the result of the problem to be solved is determined by the target to be optimized; Based on the target to be optimized, adding a first constraint condition to the problem to be solved; Based on the problem to be solved and the first constraint condition, a penalty function and an auxiliary variable are introduced to obtain a subproblem equivalent to the problem to be solved and a corresponding second constraint condition; Based on the second constraint condition, the sub-problem is solved by using the ADMM algorithm to obtain an optimization result of the target to be optimized; wherein the optimization result makes the result of the problem to be solved optimal; Among them, the problem to be solved is whether to take each of the multiple addresses to be selected as a site in the process of store site selection; the target to be optimized is the optimal store revenue in the process of store site selection; the first constraint condition includes: store quantity constraint condition, which indicates the number of stores planned to be established; store consumption ratio constraint condition, the sum of store consumption ratios is 1; store supply and demand constraint condition, which indicates that the total consumption of the store cannot exceed the supply of the store.