A method and system for scheduling network product reliability testing based on Gurobi
Mathematical modeling and optimal scheduling are performed through the Gurobi solver, which solves the problems of inaccurate resource evaluation and low utilization in network product reliability testing, and achieves more efficient test resource utilization and planning and scheduling.
Patent Information
- Application Number
- CN202211260633.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-10-14
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2042-10-14
AI Technical Summary
The resource evaluation accuracy of network product reliability testing in the existing technology is not high, resulting in low test plan scheduling efficiency, low resource utilization, and prone to insufficient or wasted resources.
The Gurobi solver is used to optimize the scheduling of network product reliability tests based on mathematical modeling. By determining test items, target resources, availability analysis and outsourcing testing, the utilization of test resources is optimized and the optimal test plan is generated.
It improves test plan scheduling efficiency and resource utilization, ensures full utilization and accuracy of test resources, and reduces test time delays and resource waste.
Smart Images

Figure CN115801646B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of network product testing, and in particular to a method and system for scheduling network product reliability testing based on Gurobi. Background Art
[0002] With the development of computer network technology, the use of network products such as white box switches is increasing. In order to ensure the quality of network product delivery, network products need to be tested for reliability. Taking white box switches as an example, in order to verify the reliability of white box switch prototype operation, storage, and transportation under different environmental stresses, stresses such as temperature, humidity, voltage, and vibration are usually used to accelerate the exposure of design and production, which is a very important part of ensuring product quality.
[0003] The current method of conducting reliability testing on network products usually relies on the experience of engineers to conduct manual test scheduling and dispatching.
[0004] However, in the current reliability testing methods for network products, due to the use of manual test scheduling, it is easy to misjudge the estimation of test resources, resulting in delays in test time nodes, and sometimes it is impossible to complete related tests within the milestone time. In addition, the resource utilization rate is low, and it is easy for some resources to be insufficient, while some resources are indeed idle. Therefore, the current reliability testing methods for network products have low resource utilization, low accuracy of resource evaluation, and low efficiency of test plan scheduling. Summary of the invention
[0005] The present application provides a method and system for scheduling network product reliability testing based on Gurobi, so as to solve the problem that the scheduling method in the prior art makes resource evaluation accuracy insufficient and the test plan scheduling efficiency low.
[0006] In order to solve the above technical problems, the embodiments of the present application disclose the following technical solutions:
[0007] A method for scheduling a network product reliability test based on Gurobi, the method comprising:
[0008] Determine the test items for reliability testing of the network product to be tested based on the obtained test tasks;
[0009] Determine target test resources that match the test items according to the test specifications related to the network product to be tested;
[0010] According to the target test resources, the availability of the test resources in the current laboratory is analyzed to determine whether the test resources in the current laboratory meet the test requirements;
[0011] If yes, mathematical modeling of relevant test parameters in reliability testing;
[0012] If not, decide to perform outsourcing testing;
[0013] After mathematical modeling of the relevant parameters of the reliability test, the Gurobi solver is used to optimize the test items according to the established mathematical model to determine the optimal solution;
[0014] The test items are tested and scheduled according to the optimal solution to generate a reliability test plan for the network product to be tested.
[0015] Optionally, the test resources include: temperature chamber resources, an electromagnetic vibration table, an impact collision table, a drop test machine and a high acceleration life chamber.
[0016] Optionally, the performing mathematical modeling on relevant test parameters in the reliability test includes:
[0017] Define the set of test items as P, where any test item is P i ;
[0018] Define the time set used by the test items as T;
[0019] Define the number of testers as: Q, any tester is q;
[0020] Define the test time used for any test item i as Pt i ;
[0021] Define the tester's energy requirement for test item i as PI i ;
[0022] Define the number of testers required for test item i as Pc i ;
[0023] Define P ij Indicates that test item i and test item j can be executed in parallel;
[0024] Define the set of all test resources as M;
[0025] Defining Pm i Indicates whether the test resource M is available for the test item i. The value is 0 or 1, 0 means unavailable, and 1 means available.
[0026] Define any test resource as m j ;
[0027] Defining Pm ij Indicates that test item i is in test resource m j Finished on;
[0028] Define W qmtIndicates that person q is testing resource m at time t j Go to work;
[0029] Definition L max Represents the maximum effort of tester L.
[0030] Optionally, the method of optimizing and solving the test items using a Gurobi solver according to the established mathematical model to determine the optimal solution includes:
[0031] Determine an objective function for reliability test scheduling, wherein the objective function is to minimize test time or maximize test resource utilization;
[0032] Determining a solution variable according to the objective function;
[0033] According to the objective function and the solution variables, the constraint conditions of the reliability test are set.
[0034] Optionally, the solution variables are determined according to the objective function, specifically:
[0035] When the objective function is to minimize the test time, the test resource utilization is the solution variable;
[0036] When the objective function is to maximize the test resource utilization, the test time is the solution variable.
[0037] Optionally, when the objective function is to minimize the test time, setting the constraint conditions of the reliability test according to the objective function and the solution variables includes:
[0038] Tester constraints:
[0039] Each test item is tracked by at least one tester. ∑ q p i ≥1, where;
[0040] The same person can only track one test at a time. ∑ p W qmt ≤1;
[0041] At the same time, the energy used by the tester cannot exceed the energy limit. p∑ l PI i ≤L max ;
[0042] Test item constraints:
[0043] Each test item must be completed on a test resource that can complete the current test item. ∑ m p mij=1;
[0044] When different test items are tested in parallel on the same test resource, the following conditions must be met: j,∑ q (Pm i +Pm j )≤2.
[0045] A system for scheduling network product reliability testing based on Gurobi, the system comprising:
[0046] A test item determination module is used to determine the test items for reliability testing of the network product to be tested according to the acquired test tasks;
[0047] A target test resource determination module, used to determine a target test resource matching the test item according to a test specification related to the network product to be tested;
[0048] A judgment module is used to perform availability analysis on the test resources in the current laboratory according to the target test resources, and judge whether the test resources in the current laboratory meet the test requirements. If yes, start the model building module; if not, decide to perform outsourcing testing;
[0049] The model building module is used to perform mathematical modeling on relevant test parameters in reliability testing when the test resources in the current laboratory meet the test requirements;
[0050] The optimization solution module is used to mathematically model the relevant parameters of the reliability test, and then optimize and solve the test items using the Gurobi solver according to the established mathematical model to determine the optimal solution;
[0051] The reliability test plan generation module is used to perform test scheduling on the test items according to the optimal solution and generate a reliability test plan for the network product to be tested.
[0052] Optionally, the optimization solution module includes:
[0053] An objective function determination unit, used to determine an objective function for reliability test scheduling, wherein the objective function is to minimize test time or maximize test resource utilization;
[0054] A solution variable determination unit, used to determine the solution variable according to the objective function;
[0055] The constraint condition setting unit is used to set the constraint conditions of the reliability test according to the objective function and the solution variables.
[0056] Optionally, when the objective function is to minimize the test time, the constraint condition setting unit is used to set tester constraints and test item constraints;
[0057] The tester constraints include:
[0058] Each test item is tracked by at least one tester. ∑ q p i ≥1, where;
[0059] The same person can only track one test at a time. ∑ p W qmt ≤1;
[0060] At the same time, the energy used by the tester cannot exceed the energy limit. p∑ l PI i ≤L max ;
[0061] The test item constraints include:
[0062] Each test item must be completed on a test resource that can complete the current test item. ∑ m p mij =1;
[0063] When different test items are tested in parallel on the same test resource, the following conditions must be met: j,∑ q (Pm i +Pm j )≤2.
[0064] The technical solution provided by the embodiments of the present application may have the following beneficial effects:
[0065] The present application provides a method for scheduling network product reliability testing based on Gurobi. The method determines the test items for reliability testing of the network product to be tested according to the acquired test tasks, and determines the target test resources according to the test specifications related to the network product to be tested, and then performs availability analysis according to the target test resources to determine whether the current test resources meet the test requirements. If they meet the test requirements, mathematical modeling is performed on the test parameters in the reliability test, and the test items are optimized and solved by the Gurobi solver according to the established mathematical model to determine the optimal solution. Finally, the test items are tested and scheduled according to the optimal solution to generate a reliability test plan for the network product to be tested. Compared with the prior art, the present embodiment can perform availability analysis in combination with the current test, first determine whether the reliability test is outsourced, and can timely determine the corresponding test strategy according to the test resource situation, thereby greatly improving the scheduling efficiency of the test plan. The various test items are abstracted by using mathematical models, and the test items are optimized and solved in combination with the Gurobi solver to determine the best test schedule that meets the current test task, which can not only make full use of the test resources, but also greatly improve the efficiency and accuracy of the reliability test scheduling, thereby improving the scheduling efficiency of the reliability test.
[0066] The present application also provides a system for scheduling network product reliability testing based on Gurobi, the system comprising: a test item determination module, a target test resource determination module, a judgment module, a model building module, an optimization solution module and a reliability test plan generation module. The system can fully combine the currently acquired test tasks and current test data to determine whether to outsource the test, thereby greatly improving the efficiency of test plan scheduling. When it is determined not to outsource the test, through the setting of the model building module, the optimization solution module and the reliability test plan generation module, various test items are abstracted using mathematical models, and the test items are optimized and solved in combination with the Gurobi solver to determine the best test schedule that meets the current test task, which can fully utilize the test resources and greatly improve the efficiency and accuracy of the reliability test scheduling, thereby improving the scheduling efficiency of the reliability test.
[0067] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0068] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0069] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0070] Figure 1 A flowchart of a method for scheduling network product reliability testing based on Gurobi provided in an embodiment of the present application;
[0071] Figure 2 A schematic diagram of the structure of a system for scheduling network product reliability testing based on Gurobi provided in an embodiment of the present application. DETAILED DESCRIPTION
[0072] In order to enable those skilled in the art to better understand the technical solutions in the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work should fall within the scope of protection of the present application.
[0073] In order to better understand the present application, the implementation methods of the present application are explained in detail below with reference to the accompanying drawings.
[0074] Embodiment 1
[0075] See also Figure 1 , Figure 1 A flowchart of a method for scheduling network product reliability testing based on Gurobi provided in an embodiment of the present application. Figure 1 It can be seen that the method for scheduling network product reliability testing based on Gurobi in this embodiment mainly includes the following processes:
[0076] S1: Determine test items for reliability testing of the network product to be tested based on the acquired test tasks.
[0077] The test item in this embodiment refers to the name of the test experiment performed on the network product to be tested.
[0078] S2: Determine the target test resources that match the test items according to the test specifications related to the network product to be tested.
[0079] The test resources in this embodiment include environmental test resources, such as temperature chamber resources, mechanical test resources, such as electromagnetic vibration table, impact collision table, drop test machine, high acceleration life chamber for HALT test, and seismograph for earthquake test.
[0080] Taking the white box switch as an example, the network product corresponds to the above test resources. The test items include: high temperature operation, low temperature operation, temperature cycle, alternating damp heat, constant damp heat, alternating damp heat, which can be implemented using temperature chamber resources. Power-on vibration test, power-off vibration test, power-on half-sine shock, power-on sine sweep test can be implemented using electromagnetic vibration table, impact collision table, drop test machine. Low temperature step test, high temperature step test, rapid thermal cycle test, vibration stress test and comprehensive stress test can be implemented using high acceleration life chamber.
[0081] Continue to see Figure 1 It can be seen that after determining the target test resources matching the test items, step S3 is executed: according to the target test resources, the availability analysis is performed on the test resources in the current laboratory to determine whether the test resources in the current laboratory meet the test requirements.
[0082] If the test resources in the current laboratory do not meet the test requirements, step S4 is executed: determining to perform outsourcing testing.
[0083] For example, if the test item determined according to the current test task is earthquake testing, and the target test resource is a seismograph, but there is no seismograph test resource in the current laboratory, step S4 is executed to adopt commissioned testing, thereby improving test efficiency.
[0084] If the test resources in the current laboratory meet the test requirements, step S5 is executed: mathematical modeling is performed on the test parameters related to the reliability test.
[0085] In this embodiment, mathematical modeling of test parameters mainly includes: defining a set of test items as P, wherein any test item is P i ; Define the time set used by the test items as T; define the number of testers as Q, any tester is q; define the test time used by any test item i as Pt i ; Define the test item i's requirement on the tester's energy as PI i ; Define the number of testers required for test item i as Pc i ;Define P ij Indicates that test item i and test item j can be executed in parallel; define the set of all test resources as M; define Pm i Indicates whether the test resource M is available for the test item i. The value is 0 or 1, 0 means unavailable, 1 means available. Define any test resource as m j ; Define Pmij Indicates that test item i is in test resource m j Completed above; define W qmt Indicates that person q is testing resource m at time t j Work on; define L max Represents the maximum effort of tester L.
[0086] S6: After mathematical modeling of the relevant parameters of the reliability test, the Gurobi solver is used to optimize and solve the test items according to the established mathematical model to determine the optimal solution.
[0087] Specifically, step S6 includes the following process:
[0088] S61: Determine the objective function of reliability test scheduling, where the objective function is to minimize test time or maximize test resource utilization.
[0089] S62: Determine solution variables according to the objective function.
[0090] In this embodiment, when the objective function is to minimize the test time, the test resource utilization is the solution variable; when the objective function is to maximize the test resource utilization, the test time is the solution variable.
[0091] S63: Setting constraints of reliability testing according to the objective function and solution variables.
[0092] Specifically, the overall test time is usually an important indicator for completing product delivery. When the objective function is to minimize the test time, the method of setting the constraints of the reliability test according to the objective function and the solution variables in this embodiment mainly includes tester constraints and test item constraints.
[0093] Among them, the tester constraints include: each test item must be tracked by at least one tester, ∑ q p i ≥1, where one person can only track one test at a time. ∑ p W qmt ≤1; at the same time, the energy used by the tester cannot exceed the energy limit, p∑ l PI i ≤L max .
[0094] Test item constraints include: each test item must be completed on a test resource that can complete the current test item. ∑ m p mij =1; When different test items are tested in parallel on the same test resource, j,∑ q (Pm i +Pm j )≤2.
[0095] That is, when the objective function is to minimize the test time, the above tester constraints and test item constraints can be used to obtain the minimum test time through the Gurobi solver.
[0096] S7: Schedule the test items according to the optimal solution and generate a reliability test plan for the network product to be tested.
[0097] If the current test resources in the laboratory meet the test requirements, including: the test resources are in an idle period and the test resources are being occupied, through the above steps S5-S7, manual scheduling can be avoided, and the current test tasks and actual test resources are combined. According to the test time and test resource occupancy of each test item, a method combining mathematical modeling and Gurobi solver is used to quickly and accurately evaluate the current test resources and target test resources, determine the priority of the test items, and finally determine the optimal schedule suitable for the current goal, and generate a reliability test plan that meets the current situation, thereby improving resource utilization and greatly improving the efficiency of reliability test scheduling.
[0098] Embodiment 2
[0099] exist Figure 1 Based on the embodiment shown, see Figure 2 , Figure 2 A schematic diagram of the structure of a system for scheduling network product reliability testing based on Gurobi provided in an embodiment of the present application.
[0100] Depend on Figure 2 It can be seen that the system for scheduling network product reliability tests based on Gurobi in this embodiment mainly includes: a test item determination module, a target test resource determination module, a judgment module, a model building module, an optimization solution module and a reliability test plan generation module.
[0101] Among them, the test item determination module is used to determine the test items for reliability testing of the network product to be tested according to the acquired test tasks; the target test resource determination module is used to determine the target test resources matching the test items according to the test specifications related to the network product to be tested; the judgment module is used to perform availability analysis on the test resources in the current laboratory according to the target test resources, and judge whether the test resources in the current laboratory meet the test requirements. If so, start the model building module; if not, determine to perform outsourced testing; the model building module is used to perform mathematical modeling on the relevant test parameters in the reliability test when the test resources in the current laboratory meet the test requirements; the optimization solution module is used to perform mathematical modeling on the relevant parameters of the reliability test, and then optimize and solve the test items according to the established mathematical model using the Gurobi solver to determine the optimal solution; the reliability test plan generation module is used to perform test scheduling on the test items according to the optimal solution, and generate a reliability test plan for the network product to be tested.
[0102] Furthermore, the optimization solution module includes: an objective function determination unit, a solution variable determination unit and a constraint condition setting unit. Among them, the objective function determination unit is used to determine the objective function of the reliability test scheduling, and the objective function is to minimize the test time or maximize the test resource utilization; the solution variable determination unit is used to determine the solution variable according to the objective function; the constraint condition setting unit is used to set the constraint conditions of the reliability test according to the objective function and the solution variable.
[0103] In this embodiment, the working principle and working method of the system for scheduling network product reliability testing based on Gurobi are as follows: Figure 1 The embodiments shown have been described in detail, and the two embodiments can refer to each other, which will not be described again here.
[0104] The above description is only a specific implementation of the present application, so that those skilled in the art can understand or implement the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest range consistent with the principles and novel features disclosed herein.
Claims
1. A method for scheduling network product reliability testing based on Gurobi, It is characterized in that The method comprises: Determine the test items for reliability testing of the network product to be tested based on the obtained test tasks; Determine target test resources that match the test items according to the test specifications related to the network product to be tested; According to the target test resources, the availability of the test resources in the current laboratory is analyzed to determine whether the test resources in the current laboratory meet the test requirements; If yes, mathematical modeling of relevant test parameters in reliability testing; If not, decide to perform outsourcing testing; After mathematical modeling of the relevant parameters of the reliability test, the Gurobi solver is used to optimize the test items according to the established mathematical model to determine the optimal solution; Perform test scheduling on the test items according to the optimal solution to generate a reliability test plan for the network product to be tested; The mathematical modeling of the test parameters related to the reliability test includes: Define the test item set as P, where any test item is ; Define the time set used by the test items as T; Define the number of testers as: Q, any tester is ; Define any test item The test time used is ; Defining test items The energy requirements for testers are ; Defining test items The number of testers required is ; definition Indicates test items With test items Parallel execution; Define the set of all test resources as M; definition Indicates the test resource M for the test item Whether it is available, the value is 0 or 1, 0 means unavailable, 1 means available; Define any test resource as ; definition Indicates test items In testing resources Finished on; definition Indicates the personnel at time t In testing resources Go to work; definition represents the maximum energy of tester L; The method of optimizing and solving the test items according to the established mathematical model and determining the optimal solution using the Gurobi solver includes: Determine an objective function for reliability test scheduling, wherein the objective function is to minimize test time or maximize test resource utilization; Determining a solution variable according to the objective function; According to the objective function and the solution variables, setting the constraint conditions of the reliability test; Determine the solution variables according to the objective function, specifically: When the objective function is to minimize the test time, the test resource utilization is the solution variable; When the objective function is to maximize the test resource utilization, the test time is the solution variable; When the objective function is to minimize the test time, the constraints of the reliability test are set according to the objective function and the solution variables, including: Tester constraints: Each test item is tracked by at least one tester. ,in; The same person can only track one test at a time. ; At the same time, the energy used by the tester cannot exceed the energy limit. ; Test item constraints: Each test item must be completed on a test resource that can complete the current test item. ; When different test items are tested in parallel on the same test resource, the following conditions must be met: .
2. According to claim 1, a method for scheduling network product reliability testing based on Gurobi, It is characterized in that The testing resources include: temperature chamber resources, electromagnetic vibration table, impact collision table, drop test machine and high acceleration life chamber.
3. A system for scheduling network product reliability tests based on Gurobi, It is characterized in that The system comprises: A test item determination module is used to determine the test items for reliability testing of the network product to be tested according to the acquired test tasks; A target test resource determination module, used to determine a target test resource matching the test item according to a test specification related to the network product to be tested; A judgment module is used to perform availability analysis on the test resources in the current laboratory according to the target test resources, and judge whether the test resources in the current laboratory meet the test requirements. If yes, start the model building module; if not, decide to perform outsourcing testing; The model building module is used to perform mathematical modeling on relevant test parameters in reliability testing when the test resources in the current laboratory meet the test requirements; The optimization solution module is used to mathematically model the relevant parameters of the reliability test, and then optimize and solve the test items using the Gurobi solver according to the established mathematical model to determine the optimal solution; A reliability test plan generation module, used to perform test scheduling on the test items according to the optimal solution and generate a reliability test plan for the network product to be tested; The mathematical modeling of the test parameters related to the reliability test includes: Define the test item set as P, where any test item is ; Define the time set used by the test items as T; Define the number of testers as: Q, any tester is ; Define any test item The test time used is ; Defining test items The energy requirements for testers are ; Defining test items The number of testers required is ; definition Indicates test items With test items Parallel execution; Define the set of all test resources as M; definition Indicates the test resource M for the test item Whether it is available, the value is 0 or 1, 0 means unavailable, 1 means available; Define any test resource as ; definition Indicates test items In testing resources Finished on; definition Indicates the personnel at time t In testing resources Go to work; definition represents the maximum energy of tester L; The optimization solution module includes: An objective function determination unit, used to determine an objective function for reliability test scheduling, wherein the objective function is to minimize test time or maximize test resource utilization; A solution variable determination unit, used to determine the solution variable according to the objective function; A constraint condition setting unit, used to set the constraint conditions of the reliability test according to the objective function and the solution variables; When the objective function is to minimize the test time, the constraint condition setting unit is used to set tester constraints and test item constraints; The tester constraints include: Each test item is tracked by at least one tester. ,in, The same person can only track one test at a time. ; At the same time, the energy used by the tester cannot exceed the energy limit. ; The test item constraints include: Each test item must be completed on a test resource that can complete the current test item. ; When different test items are tested in parallel on the same test resource, the following conditions must be met: .
