A satellite time-frequency resource scheduling method, computer equipment and readable medium
Through the improved quantum particle swarm algorithm based on resource matrix update, the problems of high algorithm complexity and poor stability in satellite time-frequency resource scheduling methods are solved, efficient resource scheduling is achieved, and the resource allocation efficiency of the satellite communication system is significantly improved.
Patent Information
- Application Number
- CN202210315994.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-29
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2042-03-29
AI Technical Summary
Existing satellite time-frequency resource scheduling methods have problems such as high algorithm complexity, difficulty in parameter adjustment, and poor algorithm stability, which seriously affects the efficiency and communication quality of wireless resource scheduling in satellite communication systems.
A satellite time-frequency resource scheduling method based on resource matrix update and improved quantum particle swarm algorithm is adopted. By matrixing satellite time-frequency resources, a test task set is generated, the rate of return weighted priority of each task is calculated, and the initial particle population is randomly generated. Decoding and resource allocation are performed, and the individual and global optimal positions of particles are updated until the iteration termination conditions are met, and the scheduling plan with the highest profit is output.
The computational complexity is reduced by about 86%-90%, the algorithm efficiency and optimization capabilities are improved, and it is more efficient and stable than the existing ant colony and genetic algorithm methods.
Smart Images

Figure CN114741857B
Abstract
Description
Technical Field
[0001] The present application relates to the field of satellite communication technology, and more specifically, to a satellite time-frequency resource scheduling method, a computer device and a readable medium based on resource matrix update and improved quantum particle swarm algorithm. Background Art
[0002] With the development of mobile communication technology, satellite communication has become one of the most important communication methods at present. Satellite communication has the characteristics of wide coverage, no geographical constraints, no impact from natural disasters, and flexibility. It is an important way for communication services to achieve global coverage.
[0003] The communication system needs to allocate wireless resources to users according to business needs. The resource scheduling methods used in ground mobile communications usually include semi-persistent scheduling algorithms, packet scheduling algorithms, and scheduling algorithms based on cache status reports. Compared with ground mobile communications, satellite communications have the characteristics of large delays and complex communication link characteristics. Due to system and link characteristics, ground resource allocation algorithms cannot usually be directly used, which brings challenges to the allocation and scheduling of wireless resources in satellite communication systems.
[0004] Wireless resources in satellite communications include satellite resources, beam resources, carrier resources, and time-frequency resources. A satellite communication system consists of one or more communication satellites plus a ground application system. Each satellite usually contains one or more beams. The beam corresponds to a certain bandwidth, and the frequency domain contains a certain number of carriers. Each carrier can be divided into different time slots with a sequence in the time domain. The allocation of wireless resources in a satellite communication system needs to complete the allocation process of satellite, beam, carrier, and time slot resources according to the specific form of the system and the system adopted. For high-orbit satellite communication systems, the coverage range of a single satellite is large, and the resource allocation process usually only involves the allocation of carriers and time slots on the same or different beams. For low-orbit satellites, satellite allocation and routing issues may also need to be considered. In addition, factors such as link delay, service QoS, system throughput, and user priority may also need to be considered in the resource allocation process.
[0005] At present, the common methods for scheduling satellite time and frequency resources include scheduling methods based on improved ant colony algorithm and improved genetic algorithm. Among them, the satellite time and frequency resource scheduling algorithm based on improved ant colony algorithm (ACO) is based on the standard ant colony algorithm, adopts integer coding, takes the task number as the path point of the ant, takes the point sequence of the ant walking path as the task sequence, takes the scheduling scheme benefit corresponding to the task sequence as the benefit of the ant path, updates the pheromone of the path with the ant path benefit, guides the movement of the ant with pheromone, and realizes the optimization of task sequence and satellite time and frequency resource scheduling through the iterative evolution of the ant population. The defects of the ACO algorithm are: 1) the mechanism of the algorithm is relatively complex; 2) there are many parameters and it is difficult to adjust the parameters (here refers to the variable parameters that can be adjusted by the algorithm, excluding the fixed parameters of the problem and the fixed parameters that cannot be adjusted by the algorithm); 3) the selection of the initial point has a greater impact on the result, that is, if the selection of the initial point is random, the optimization result is also random; 4) only a local optimal solution can be obtained; 5) the running speed is slow.
[0006] The satellite time and frequency resource scheduling algorithm based on the improved genetic algorithm (GA) is based on the standard genetic algorithm, using integer coding, using chromosome genes to represent task sequences, using the scheduling scheme benefits corresponding to the task sequence as the fitness value of the chromosome, using parent replication, crossover, mutation and other mechanisms to generate offspring chromosomes, and retaining excellent gene fragments and eliminating inferior gene fragments through the "survival of the fittest" mechanism, and realizing the task sequence optimization and satellite time and frequency resource scheduling optimization method through the iterative evolution of chromosomes. The defects of the GA algorithm are: 1) the algorithm mechanism is relatively complex; 2) there are many parameters and it is difficult to adjust the parameters (here refers to the variable parameters that the algorithm can adjust, excluding the fixed parameters of the problem and the fixed parameters that the algorithm cannot adjust); 3) the setting of the first gene point value has a greater impact on the result; 4) only a local optimal solution can be obtained; 5) the algorithm has poor stability.
[0007] It can be seen that the current scheduling methods of satellite time and frequency resources generally have shortcomings such as high algorithm complexity, difficulty in parameter adjustment and poor algorithm stability, which seriously affect the efficiency of wireless resource scheduling and communication quality in satellite communication systems. Summary of the invention
[0008] In view of at least one defect or improvement need in the prior art, the present invention provides a satellite time-frequency resource scheduling method, a computer device and a readable medium, which aims to reduce the computational complexity of the resource scheduling method and improve the scheduling efficiency.
[0009] To achieve the above object, according to a first aspect of the present invention, a satellite time-frequency resource scheduling method is provided, which comprises the following steps:
[0010] Step 1: Matrix the satellite time-frequency resources to obtain an m×n resource matrix; where m=N b is the number of quantized frequency bands, n = N t To quantify the amount of time;
[0011] Step 2: Generate a test task set, for each task Tr in the test task set ik ,k∈{1,2,…,M} allocates a set of time-frequency window matrices; where M represents the total number of tasks;
[0012] Step 3: Calculate the weighted priority of the rate of return of each task, and randomly generate an initial particle population according to the weighted priority; take out particles from the initial particle population one by one and decode them to generate a task sequence TR i ,i∈{1,2,…,N}; where N represents the size of the initial particle population, that is, the number of particles;
[0013] Step 4: Initialize the resource matrix and the scheduling matrix P corresponding to the task sequence i and scheduling flags;
[0014] Step 5: Extract tasks Tr from the task sequence one by one in order ik , if the task Tr ik If scheduling is possible, then the task corresponds to Tr ik The time-frequency window matrices are taken out one by one from the time-frequency window matrix collection; each time-frequency window matrix is Hadamard-multiplied with the resource matrix. If the sum of the elements of the product is 0, the current task Tr is updated. ik The scheduling flag bit is set, and the resource matrix and scheduling matrix P are updated. i ; Calculate the fitness value of the particle according to the preset scheduling model as the scheduling matrix P i of income;
[0015] Step 6: Repeat step 5 until all tasks in the task sequence are traversed, and update the individual optimal position of the particle and its corresponding fitness value;
[0016] Step 7: Update the average optimal position and global optimal position of the particle population. If the preset iteration termination condition is met, the scheduling flag, scheduling scheme matrix and benefit corresponding to the particle position with the highest benefit are output.
[0017] Furthermore, in the satellite time-frequency resource scheduling method, step 1 specifically includes:
[0018] The satellite time-frequency resources are represented as an m×n 0-1 matrix:
[0019]
[0020] Among them, r ij =1 indicates that resource blocks {[i-1,i],[j-1,j]} have been occupied, r ij =0 means the resource block is not occupied.
[0021] Furthermore, the satellite time-frequency resource scheduling method, step 2 specifically includes:
[0022] A test task set matrix T_SET of order M×5 is randomly generated as follows:
[0023]
[0024] Among them, T k p Represents task Tr ik Priority;
[0025] Represents task Tr ik The number of frequency bands applied for;
[0026] Represents task Tr ik The length of execution time used by the application;
[0027] Represents task Tr ik The start time of the application execution period;
[0028] Represents task Tr ik The end time of the application execution period;
[0029] Task Tr ik The time-frequency window matrix is expressed as And meet
[0030]
[0031] Then task Tr ik The time-frequency window matrix set is expressed as:
[0032]
[0033] in, Represents task Tr ik The number of available time-frequency windows in a single frequency band; i k j k Represents task Tr ik In the i k The jth frequency band k time-frequency window matrices; the total number of time-frequency window matrices in the test matrix set is
[0034] Furthermore, in the above satellite time-frequency resource scheduling method, in step 5, the scheduling model is:
[0035]
[0036]
[0037] in, Indicates the scheduling flag of the jth task;
[0038] Indicates the starting time position assigned to the task;
[0039] TS j represents the resource block allocated to task j;
[0040] Constraint C b Indicates the frequency band resource limitation constraint;
[0041] Constraint C t Represents the time constraints for task scheduling;
[0042] Constraint C e Indicates a resource exclusivity constraint.
[0043] Furthermore, in the above satellite time-frequency resource scheduling method, in step 3, the generation process of the initial particle population is:
[0044] Calculate the task rate of return: Task Tr ik The rate of return for:
[0045]
[0046] Calculate the weighted priority of the task: Task Tr ik The weighted priority is:
[0047]
[0048] Generate initial particle population: Randomly generate the initial particle population matrix X(0) according to the real number coding method:
[0049]
[0050] The initial position X of particle i, i∈{1,2,…,N} i =(x i1 ,x i2 ,…,x ij ,…,x iM ) is generated by:
[0051]
[0052] Among them, [X min ,X max ] represents the boundary of each dimension of the particle search space.
[0053] Furthermore, in the above satellite time-frequency resource scheduling method, in step 3, particles are taken out one by one from the initial particle population and decoded to generate a task sequence, specifically:
[0054] Take out particles X one by one i ,i∈{1,2,…,N};
[0055] Generate task sequence according to the minimum position value decoding rule;
[0056] Particle X i , i∈{1,2,…,N} is decoded to obtain the task sequence TR i =[Tr i1 ,Tr i2 ,…,Tr iM ], the decoding method is: {x i1 ,x i2 ,…,x iM} are arranged in ascending order. If the jth (j∈{1,2,…,M}) position is x ik ,k∈{1,2,…,M}, then Tr ij = k, denoted as TR i =Decoding(X i ).
[0057] Furthermore, in the above satellite time-frequency resource scheduling method, in step 4, the scheduling scheme matrix P corresponding to the resource matrix and the task sequence is initialized. i And scheduling flags, specifically:
[0058] Initialize the resource matrix to an m×n matrix of all zeros:
[0059]
[0060] The task sequence TR i ,i∈{1,2,…,N}, the scheduling scheme P i Represented as an m×n all-zero matrix:
[0061]
[0062] For task sequence TR i ,i∈{1,2,…,N}, set all the scheduling flags to 0:
[0063] Furthermore, in the satellite time-frequency resource scheduling method, step 5 specifically includes:
[0064] Step 5.1 Determine the task Tr ik The scheduling possibility of the current task Tr ik , if it satisfies:
[0065]
[0066] Then proceed to step 5.2;
[0067] Step 5.2 Take out task Tr ik The time-frequency window matrix set
[0068]
[0069] Step 5.3 Take out tasks Tr one by one ik The time-frequency window matrix And allocate resources, the allocation method is:
[0070] Step 5.3.1 Take the Hadamard product of the window matrix and the resource matrix R:
[0071]
[0072] Step 5.3.2 Make scheduling decisions based on the product matrix E:
[0073] calculate if Then go to step 5.3.3; if Then go to step 5.3.4;
[0074] Step 5.3.3 Judgment Task Tr ik The time-frequency window matrix set TW k Whether the time-frequency window matrix in has been traversed, if not, go to step 5.3; if it has been traversed, it means that the task scheduling has failed, go to step 5.5;
[0075] Step 5.3.4 If It means that the scheduling is successful, and the task Tr is updated at this time ik The scheduling state of Task Tr ik The scheduling is completed and go to step 5.4;
[0076] Step 5.4 Update the resource matrix and solution matrix at this time:
[0077] Take out The current time-frequency window matrix
[0078] Updated resource matrix:
[0079]
[0080] Update solution matrix:
[0081]
[0082] Step 5.5 Determine the task sequence TR i , whether all tasks in i∈{1,2,…,N} have been traversed. If so, go to step 5.6;
[0083] Step 5.6: According to the updated scheduling flag of particle i The fitness value of particle i is calculated as:
[0084]
[0085] According to a second aspect of the present invention, there is also provided a computer device, comprising at least one processing unit and at least one storage unit, wherein the storage unit stores a computer program, and when the computer program is executed by the processing unit, the processing unit executes the steps of any one of the above-mentioned satellite time and frequency resource scheduling methods.
[0086] According to the third aspect of the present invention, a computer-readable medium is provided, which stores a computer program executable by a computer device. When the computer program runs on the computer device, the computer device executes the steps of any one of the above-mentioned satellite time-frequency resource scheduling methods.
[0087] In general, the above technical solutions conceived by the present invention can achieve the following beneficial effects compared with the prior art:
[0088] The satellite time-frequency resource scheduling scheme provided by the present invention establishes a resource scheduling model based on CSP, designs a scheduling strategy with resource matrix update as the core, and uses the IQPSO algorithm with real number coding and minimum position value rule decoding to realize the time-frequency resource scheduling and result optimization of the task sequence; this method realizes the application of the continuous domain optimization algorithm to the satellite time-frequency resource scheduling problem with the nature of discrete combinatorial optimization problem. Simulation results show that compared with the scheduling method based on improved ant colony algorithm and improved genetic algorithm, the computational complexity of this method is reduced by about 86%-90%, the algorithm efficiency is higher and the optimization ability is stronger. BRIEF DESCRIPTION OF THE DRAWINGS
[0089] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0090] Figure 1 A schematic diagram of satellite time-frequency resource quantization provided in this embodiment;
[0091] Figure 2 The task T provided for this embodiment k =Schematic diagram of the time-frequency window matrix set of (3,2,2,1,4);
[0092] Figure 3 A schematic diagram of a flow chart of a satellite time-frequency resource scheduling method provided in this embodiment;
[0093] Figure 4 The scheduling benefits of the algorithm with different parameters;
[0094] Figure 5 is the average running time of different algorithms;
[0095] Figure 6 The number of tasks completed for different algorithm scheduling. DETAILED DESCRIPTION
[0096] 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.
[0097] The terms "first", "second", "third", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes steps or units that are not listed, or optionally includes other steps or units inherent to these processes, methods, products or devices.
[0098] In addition, in order to avoid obscuring the understanding of the present invention by the skilled person, well-known or widely used techniques, elements, structures and processes may not be described or shown in detail. Although the drawings represent exemplary embodiments of the present invention, the drawings are not necessarily drawn to scale, and certain features may be enlarged or omitted to better illustrate and explain the present invention.
[0099] The following are definitions and descriptions of some symbols involved in the present invention:
[0100] S = [B, TE] represents the total amount of time and frequency resources of the repeater;
[0101] B=[B str ,B end ] represents the frequency resource of the repeater. In this paper, B str =0;
[0102] TE=[TE str ,TE end ] represents the time resource of the forwarder;
[0103] N b =(B end -B str ) / ΔB represents the number of frequency bands after quantization, and ΔB represents the bandwidth of the quantized frequency band;
[0104] N t =(TE end -TE str ) / Δt represents the number of time intervals after quantization, and Δt represents the length of the quantized time interval;
[0105] T={T1,T2,…,T j ,…,T M} represents the set of tasks, M is the number of tasks;
[0106] are the attributes of task j, which respectively represent the priority of the task, the number of frequency bands and quantized time applied for the task, and the start time and end time of the task application execution;
[0107] Indicates the scheduling flag of the task. Indicates that the scheduling failed. Indicates that the scheduling is successful;
[0108] Indicates the starting position of the frequency band assigned to the task;
[0109] Indicates the starting time position assigned to the task;
[0110] represents the resource block allocated to task j. hour,
[0111] This embodiment provides a satellite time-frequency resource scheduling method based on resource matrix update and improved quantum particle swarm (IQPSO) algorithm. This method is aimed at the two-dimensional time-frequency resource scheduling problem of conventional GEO single-beam satellites, establishes a resource scheduling model based on constraint satisfaction problem (CSP), designs a scheduling strategy with resource matrix update as the core, and uses the IQPSO algorithm with real number coding and minimum position value rule decoding to realize the time-frequency resource scheduling and result optimization of task sequences. This method realizes the application of continuous domain optimization algorithm in satellite time-frequency resource scheduling problem with the nature of discrete combinatorial optimization problem.
[0112] In the first aspect, this embodiment constructs a resource scheduling model based on a constraint satisfaction problem (Constraint Satisfaction Problem, CSP); specifically, the satellite time and frequency resource scheduling problem based on CSP can be described as a triple of a variable, a value range, and a constraint:
[0113] SCH=<X,D,C>
[0114] X={X s ,X b ,X t} represents a collection of variables;
[0115] D={D s ,D b ,D t} represents the set of variable value ranges, which are the value ranges of the scheduling flag bit D s = {0,1}, the value range D of the frequency band starting position of the task allocation b ={0,1,…,N b -1} and the range of the time starting position D t ={0,1,…,N t -1};
[0116] C={C b ,C t ,C e} represents a collection of model constraints.
[0117] The time-frequency resource scheduling model based on CSP is modeled as follows:
[0118]
[0119]
[0120] The objective function is to maximize the sum of task priorities. That is, the larger the sum of the priorities of successfully scheduled tasks is, the higher the benefit of the scheduling scheme is.
[0121] Constraint C b Indicates the frequency band resource restriction constraint, that is, the starting frequency band allocated to the task must be within the frequency band resources, and there must be a margin for the task execution bandwidth;
[0122] Constraint C t It indicates the time constraint of task scheduling, that is, the time interval assigned to the task must be within the time when the task is requested to be executed;
[0123] Constraint C e It represents resource exclusivity constraint, that is, resource blocks occupied by different tasks cannot overlap.
[0124] Second, as Figure 1 As shown, this embodiment matrices the time-frequency resources of the GEO satellite, which is represented as an m×n 0-1 matrix:
[0125]
[0126] Where m = N b is the number of quantized frequency bands, n = N t is the number of quantified times; r ij =1 indicates that resource blocks {[i-1,i],[j-1,j]} have been occupied, r ij =0 means the resource block is not occupied.
[0127] In a third aspect, this embodiment creates a test task set including multiple tasks to perform time-frequency resource scheduling; specifically, a task set matrix T_SET of order M×5 is randomly generated, as shown below:
[0128]
[0129] Assume T k (k∈{1,2,…,M}) represents task k, then
[0130] T k p represents the priority of task k, and its value range is {1,2,…,10};
[0131] Indicates the number of frequency bands requested by task k, with a value range of {1,2};
[0132] Indicates the execution time length requested by task k, with a value range of {1,2,3,4};
[0133] Indicates the start time of the execution time period requested by task k, with a value range of {0,1,…,20};
[0134] Indicates the end time of the execution period of task k, the value range is
[0135] M represents the number of tasks in the test task set, and its value range is {50, 70, 100, 200};
[0136] The test task set includes real-time tasks and non-real-time tasks, among which the real-time tasks meet the conditions Non-real-time tasks meet the conditions β represents the number of real-time tasks in the test task set, and its value range is {0,1,…,20}. Let the ratio of real-time tasks to the total number of tasks be rat β , then: β=rat β ×M.
[0137] For each task in the above task set matrix T_SET, taking task k as an example, the time-frequency window matrix of task k is expressed as And meet
[0138]
[0139] Among them, i k j k Indicates that task k is in the i-th k The jth frequency band k A time-frequency window matrix.
[0140] Then the time-frequency window matrix set of task k is expressed as:
[0141]
[0142] in represents the number of available time-frequency windows for task k on a single frequency band. The total number of time-frequency window matrices in the matrix set is
[0143] See also Figure 2 , for example, when the resource set is represented as {[0,4],[0,4]}, task T k =(3,2,2,1,4) is the time-frequency window matrix set:
[0144] Based on the above scheduling model and resource matrix, this embodiment provides a satellite time-frequency resource scheduling method based on resource matrix update and improved quantum particle swarm algorithm, please refer to Figure 3 , the method mainly comprises the following steps:
[0145] 1. Generate the initial particle population according to the initial solution optimization method
[0146] 1.1 Calculate the task rate of return
[0147] The rate of return of task k (k = 1, 2, ..., M) for
[0148]
[0149] 1.2 Calculating the weighted priority of tasks
[0150] The weighted priority of task k (k = 1, 2, ..., M) is
[0151]
[0152] 1.3 Generate the initial population.
[0153] The initial particle population matrix X(0) of the IQPSO algorithm is randomly generated according to the real number coding method
[0154]
[0155] Among them, N represents the size of the particle population, that is, the number of particles.
[0156] The initial position X of particle i, i∈{1,2,…,N} i =(x i1 ,x i2 ,…,x ij ,…,x iM ) is generated by:
[0157]
[0158] Among them, [X min ,X max ] represents the boundary of each dimension of the particle search space. In this paper, X min =0,X max =10.
[0159] 1.4 Initialize individual optimal position
[0160] The individual optimal initial position of particle i,i∈{1,2,…,N} is
[0161] P i (0) = X i (0)
[0162] The initial value of the individual optimal value of particle i,i∈{1,2,…,N} is
[0163] PF i (0) = 0
[0164] 1.5 Initialize the global optimal position
[0165] The global optimal initial position of the first generation particle population is
[0166] G(0)=X1(0)
[0167] The initial value of the global optimal value of particle i,i∈{1,2,…,N} is
[0168] GF(0)=0
[0169] 2. Decode the particle swarm matrix
[0170] 2.1 Take out particles X one by one i ,i∈{1,2,…,N}
[0171] 2.2 Generate task sequence according to the minimum position value decoding rule
[0172] Particle X i , i∈{1,2,…,N} is decoded to obtain the task sequence TR i =[Tr i1 ,Tr i2 ,…,Tr iM The decoding method is: {x i1 ,x i2 ,…,x iM} are arranged in ascending order. If the jth (j∈{1,2,…,M}) position is x ik ,k∈{1,2,…,M}, then Tr ij = k, denoted as TR i =Decoding(X i ).
[0173] 3. Scheduling by task sequence
[0174] This step is a resource scheduling process based on the resource matrix update strategy. Input: a task sequence; Output: the scheduling status identification table, scheduling scheme and scheduling scheme benefit (i.e. particle fitness value) of the task sequence. The process is as follows:
[0175] 3.1 Initialize the resource matrix and solution matrix
[0176] 3.1.1 Task sequence TR i ,i∈{1,2,…,N}, initialize the resource matrix to an m×n matrix of all zeros:
[0177]
[0178] 3.1.2 Task sequence TR i,i∈{1,2,…,N}, the task sequence TR i ,i∈{1,2,…,N}, the scheduling scheme P i Represented as an m×n all-zero matrix:
[0179]
[0180] 3.2 Initialize the scheduling flag vector
[0181] For task sequence TR i ,i∈{1,2,...,N}, set all scheduling flags to 0:
[0182]
[0183] 3.3 According to Tr i1 ,Tr i2 ,…,Tr iM Take out the task numbers Tr one by one in the order ik ,k∈{1,2,…,M} (i.e., task k in the above text), schedule task k using the task resource matching rule;
[0184] 3.3.1 Determine the scheduling possibility of task k, that is, if the current task satisfies
[0185]
[0186] If the above equation is not satisfied, go to step 3.3. If it is satisfied, go to step 3.3.2.
[0187] 3.3.2 Take out the time-frequency window matrix set of task k
[0188]
[0189] 3.3.3 Take out the time-frequency window matrix of task k one by one And allocate resources, the allocation method is
[0190] 3.3.3.1 Perform Hadamard product of window matrix and resource matrix R
[0191]
[0192] 3.3.3.2 Scheduling Decision Based on the Product Matrix E
[0193] calculate if Go to step 3.3.3.3; if Then go to step 3.3.3.4;
[0194] 3.3.3.3 Time-frequency window matrix set TW for judging task k k Check whether the time-frequency window matrix in has been traversed. If not, go to step 3.3.3. If it has been traversed, it means that the task scheduling has failed, and go to step 3.3.5.
[0195] 3.3.3.4 If It means that the scheduling is successful. At this time, the scheduling status of task k is updated, that is, Task k is scheduled and goes to step 3.3.4;
[0196] 3.3.4 Task k is successfully scheduled, and the resource matrix and solution matrix are updated at this time;
[0197] 3.3.4.1 Remove The current time-frequency window matrix
[0198] 3.3.4.2 Update resource matrix
[0199]
[0200] 3.3.4.3 Update Solution Matrix
[0201]
[0202] 3.3.5 Determine the task sequence TR i , i∈{1,2,…,N}, whether all tasks have been traversed. If not, go to step 3.3; if they have been traversed, go to step 3.3.6
[0203] 3.3.6 According to the updated scheduling flag of particle i The fitness value of particle i is calculated according to the scheduling model:
[0204]
[0205] 4. Determine whether the particle has been traversed
[0206] Determine whether the particles in the population of the current particle have been traversed in order. If the traversal is completed, go to step 5; if the traversal is not completed, go to step 2.1.
[0207] 5. Update individual optimal position
[0208] 5.1 Update the individual optimal position of particle i one by one in order, i∈{1,2,…,N}
[0209]
[0210] 5.2 Update the fitness value of the individual optimal position of particle i
[0211]
[0212] 5.3 Determine whether the particles in the particle swarm have been updated. If so, go to step 6. If not, go to step 5.1.
[0213] 6. Update the average optimal position
[0214] Average optimal position of particle population
[0215]
[0216] 7. Update the global optimal position
[0217] 7.1 Obtaining the number of the global optimal particle in the particle population
[0218]
[0219] 7.2 Update the global optimal position of the particle population
[0220]
[0221] 7.3 Updating the global optimal value of the particle population
[0222]
[0223] 8. Update particle attractor position
[0224] 8.1 Update the attractor for particles i, i∈{1,2,…,N} in sequence
[0225] p i (t) = r1 × P i (t)+(1-r1)×G(t),r1~U(0,1)
[0226] 8.2 Determine whether the particles in the particle swarm have been traversed and processed. If so, go to step 9; if not, go to step 8.1.
[0227] 9. Update particle population
[0228] Update the t+1 generation population of particles. The updating method is as follows:
[0229] 9.1 Update the position value of the next generation of particles i, i∈{1,2,…,N} in sequence
[0230]
[0231] α is called the contraction-expansion coefficient, which is the only control parameter in the algorithm besides the population size, particle dimension and number of iterations.
[0232] 9.2 Determine whether the particles in the particle swarm have been traversed and processed. If so, go to step 10; if not, go to step 9.1.
[0233] 10 Determine the iterative termination condition of the algorithm
[0234] That is, judge t <G max Is it true? If so, go to step 11; if not, go to step 2.
[0235] 11. Output scheduling optimization results
[0236] 11.1 Output the particle position G(t) of the optimal schedule (i.e. the schedule with the highest benefit), and its corresponding task sequence TR best =Decoding(G(t)) and its scheduling flag table
[0237] 11.2 Output the optimal scheduling matrix P best_index .
[0238] It should be noted that although the operations of the methods of the embodiments of this specification are described in a specific order in the above-mentioned embodiments, this does not require or imply that the operations must be performed in this specific order, or that all the operations shown must be performed to achieve the desired results. On the contrary, the steps depicted in the flowchart can change the order of execution. Additionally or alternatively, some steps can be omitted, multiple steps can be combined into one step for execution, and / or one step can be decomposed into multiple steps for execution.
[0239] In addition, the applicant conducted a simulation analysis on the satellite time-frequency resource scheduling method based on resource matrix update and improved quantum particle swarm algorithm. The specific analysis process is as follows:
[0240] (1) Parameter control analysis
[0241] This section mainly studies the impact of different coefficient values on the IQPSO algorithm when the IQPSO algorithm adopts a fixed parameter strategy. The contraction-expansion coefficient α is taken as 0.1, 0.2, ..., 1.0, and 5 examples of 200, 100, 70, and 50 tasks are calculated 10 times and the average value of the maximum benefit is taken. The results are shown in Figure 4 As shown, Figure 4 It shows that for all task scales, when the coefficient is 0.6, the results are better and the scheduling benefits are higher.
[0242] The difference in algorithm performance when the IQPSO algorithm adopts fixed parameters (coefficient of 0.6), linear decreasing (0.7→0.5, 0.7→0.4, 0.7→0.3) and nonlinear decreasing (0.6→0.4, 0.6→0.2, λ=4) strategies is studied. Table 1 shows the results of running 5 examples of 4 different scales (50, 70, 100, 200) 10 times and taking the average value when different parameter control strategies are adopted.
[0243] Table 1 Average dispatch benefits and variances of different parameter control strategies
[0244]
[0245] Table 1 shows that the linear decreasing strategy can generally improve the optimal solution and variance, among which the optimal solution quality is improved the most when the decreasing range is (0.7→0.4); the nonlinear decreasing strategy has a small improvement in the optimal solution when the task scale increases.
[0246] In summary, the contraction-expansion coefficient of the IQPSO algorithm can be taken as 0.6 when the fixed parameter strategy is adopted, and can be taken as (0.7→0.4) when the linear decreasing parameter control strategy is adopted. At this time, the comprehensive performance of the IQPSO algorithm is optimal.
[0247] (2) Run time analysis
[0248] In order to analyze the impact of resource matrix update strategy and task time frequency window update strategy on computational complexity, the following algorithms are used for comparison and verification: 1) Algorithms using task time frequency window update strategy: basic ant colony algorithm ACO, improved ant colony optimization based on time and bandwidth (ACO-TB); 2) Algorithms using resource matrix update strategy: improved basic ant colony algorithm ACO1, improved ACO-TB algorithm ACO-TB1 and IQPSO algorithm proposed in this paper. The population of ant colony and particle swarm is set to 100, 70, and 50 respectively, and the number of iterations is 100. The above algorithms are used to run 5 examples of 100, 70, and 50 tasks 10 times and take the average running time (in seconds). The results are shown in Table 1 and Figure 5 shown.
[0249] Table 2 Average running time of different algorithms
[0250]
[0251] from Figure 5 It can be seen that the main factor affecting the algorithm running time is the scheduling strategy.
[0252] Table 2 shows that the running time of the IQPSO algorithm proposed in this method is about 10%-14% of the ACO and ACO-TB algorithms, and about 27%-37% of the ACO1 and ACO-TB1 algorithms. The strategy based on resource matrix update reduces the computational complexity by 62%-64%, while the particle swarm algorithm reduces the computational complexity by about 63%-73% compared with the ant colony algorithm. In summary, the IQPSO algorithm based on the resource matrix strategy proposed in this method can effectively reduce the computational complexity by 86%-90% compared with ACO and ACO-TB.
[0253] (3) Optimization performance analysis
[0254] In order to analyze the optimization performance of the algorithm, the following algorithms are used for comparative verification: discrete particle swarm optimization (DPSO) with minimum position value decoding based on the standard PSO algorithm, improved genetic algorithm GA (chromosome gene sorting is sorted according to task priority and task start time), improved ant colony algorithm ACO-TB, and the IQPSO algorithm proposed in this paper.
[0255] Under different task numbers, the five examples were run 10 times and the average values were taken. The results are shown in Table 3 and Figure 6 shown.
[0256] Table 3 Optimal solutions of different algorithms
[0257]
[0258] Table 3 shows that the maximum and average values of the optimal solution of the IQPSO algorithm are better than those of other algorithms, indicating that IQPSO has a strong optimization performance, and the larger the problem scale, the more obvious the performance advantage. IQPSO is better than the DPSO algorithm and GA in the variance of the optimal solution, indicating that IQPSO has good stability, but it is numerically worse than the ACO-TB algorithm. The reason is that the IQPSO algorithm has a strong ability to jump out of local convergence in all algebras. This ability to find a better solution is based on the mechanism of updating the position of the quantum potential well field, at the cost of a slight reduction in stability. Overall, the IQPSO algorithm still has a great advantage in optimization performance.
[0259] Figure 6It shows that overall, the number of tasks completed by the particle swarm IQPSO and DPSO algorithms is higher than that of the ACO-TB and GA algorithms. When the number of tasks is 50 and 70, the number of tasks completed by the IQPSO algorithm is lower than that of the DPSO algorithm. It is speculated that the DPSO algorithm is optimized near the local optimal solution and the number of tasks completed is improved. When the number of tasks is 100 and 200, the number of tasks completed by the IQPSO algorithm is higher, indicating that since the IQPSO algorithm has a larger range of jumping out of the local optimal solution, it can search for solutions with higher benefits and higher number of tasks completed. In general, when the problem scale is large, the IQPSO algorithm has better performance in the number of tasks completed indicator.
[0260] This embodiment also provides a computer device, which includes at least one processor and at least one memory, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the processor executes the steps of the above-mentioned satellite time and frequency resource scheduling method; in this embodiment, the types of the processor and the memory are not specifically limited, for example: the processor can be a microprocessor, a digital information processor, an on-chip programmable logic system, etc.; the memory can be a volatile memory, a non-volatile memory, or a combination thereof, etc.
[0261] The computer device may also communicate with one or more external devices (such as a keyboard, a pointing terminal, a display, etc.), may communicate with one or more terminals that enable a user to interact with the computer device, and / or communicate with any terminal that enables the computer device to communicate with one or more other computing terminals (such as a network card, a modem, etc.). Such communication may be performed through an input / output (I / O) interface. Furthermore, the computer device may also communicate with one or more networks (such as a local area network (LAN), a wide area network (WAN) and / or a public network, such as the Internet) through a network adapter.
[0262] This embodiment also provides a computer-readable medium, which stores a computer program executable by a computer device, and when the computer program is run on the computer device, the computer device executes the steps of the above-mentioned satellite time and frequency resource scheduling method. The types of computer-readable media include but are not limited to storage media such as SD cards, USB flash drives, fixed hard disks, and mobile hard disks.
[0263] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0264] It will be easily understood by those skilled in the art that the above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A satellite time-frequency resource scheduling method, It is characterized in that include: Step 1: Matrix the satellite time-frequency resources to obtain an m×n resource matrix; where m=N b is the number of quantized frequency bands, n = N t To quantify the amount of time; Step 2: Generate a test task set, for each task Tr in the test task set ik ,k∈{1,2,…,M} allocates a set of time-frequency window matrices; where M represents the total number of tasks; Step 3: Calculate the weighted priority of the rate of return of each task, and randomly generate an initial particle population according to the weighted priority; take out particles from the initial particle population one by one and decode them to generate a task sequence TR i ,i∈{1,2,…,N}; where N represents the size of the initial particle population, that is, the number of particles; Step 4: Initialize the resource matrix and the scheduling matrix P corresponding to the task sequence i and scheduling flags; Step 5: Extract tasks Tr from the task sequence one by one in order ik , if the task Tr ik If scheduling is possible, then the task corresponds to Tr ik The time-frequency window matrices are taken out one by one from the time-frequency window matrix collection; each time-frequency window matrix is Hadamard-multiplied with the resource matrix. If the sum of the elements of the product is 0, the current task Tr is updated. ik The scheduling flag bit is set, and the resource matrix and scheduling matrix P are updated. i ; Calculate the fitness value of the particle according to the preset scheduling model as the scheduling matrix P i of income; Step 6: Repeat step 5 until all tasks in the task sequence are traversed, and update the individual optimal position of the particle and its corresponding fitness value; Step 7: Update the average optimal position and global optimal position of the particle population. If the preset iteration termination condition is met, the scheduling flag, scheduling scheme matrix and benefit corresponding to the particle position with the highest benefit are output.
2. The satellite time-frequency resource scheduling method according to claim 1, It is characterized in that Step 1 specifically includes: The satellite time-frequency resources are represented as an m×n 0-1 matrix: Among them, r ij =1 indicates that resource blocks {[i-1,i],[j-1,j]} have been occupied, r ij =0 means the resource block is not occupied.
3. The satellite time-frequency resource scheduling method according to claim 1 or 2, It is characterized in that Step 2 specifically includes: A test task set matrix T_SET of order M×5 is randomly generated as follows: Among them, T k p Represents task Tr ik Priority; T k b Represents task Tr ik The number of frequency bands applied for; T k d Represents task Tr ik The length of execution time used by the application; T k str Represents task Tr ik The start time of the application execution period; T k end Represents task Tr ik The end time of the application execution period; Task Tr ik The time-frequency window matrix is expressed as And meet Then task Tr ik The time-frequency window matrix set is expressed as: in, Represents task Tr ik The number of available time-frequency windows in a single frequency band; i k j k Represents task Tr ik In the i k The jth frequency band k time-frequency window matrices; the total number of time-frequency window matrices in the test matrix set is N k =n k ×(N b -T k b +1).
4. The satellite time-frequency resource scheduling method according to claim 3, It is characterized in that In step 5, the scheduling model is: in, Indicates the scheduling flag of the jth task; Indicates the starting time position assigned to the task; TS j represents the resource block allocated to task j; Constraint C b Indicates the frequency band resource limitation constraint; Constraint C t Represents the time constraints for task scheduling; Constraint C e Indicates a resource exclusivity constraint.
5. The satellite time-frequency resource scheduling method according to claim 3, It is characterized in that In step 3, the generation process of the initial particle population is: Calculate the task rate of return: Task Tr ik The rate of return T k r for: Calculate the weighted priority of the task: Task Tr ik The weighted priority is: Generate initial particle population: Randomly generate the initial particle population matrix X(0) according to the real number coding method: The initial position X of particle i, i∈{1,2,…,N} i =(x i1 ,x i2 ,…,x ij ,…,x iM ) is generated by: Among them, [X min ,X max ] represents the boundary of each dimension of the particle search space.
6. The satellite time-frequency resource scheduling method according to claim 1 or 5, It is characterized in that In step 3, particles are taken out one by one from the initial particle population and decoded to generate a task sequence, which is specifically: Take out particles X one by one i ,i∈{1,2,…,N}; Generate task sequence according to the minimum position value decoding rule; Particle X i , i∈{1,2,…,N} is decoded to obtain the task sequence TR i =[Tr i1 ,Tr i2 ,…,Tr iM ], the decoding method is: {x i1 ,x i2 ,…,x iM } are arranged in ascending order. If the jth (j∈{1,2,…,M}) position is x ik ,k∈{1,2,…,M}, then Tr ij = k, denoted as TR i =Decoding(X i ).
7. The satellite time-frequency resource scheduling method according to claim 1 or 5, It is characterized in that In step 4, the scheduling matrix P corresponding to the resource matrix and the task sequence is initialized. i And scheduling flags, specifically: Initialize the resource matrix to an m×n matrix of all zeros: The task sequence TR i ,i∈{1,2,…,N}, the scheduling scheme P i Represented as an m×n all-zero matrix: For task sequence TR i ,i∈{1,2,…,N}, set all the scheduling flags to 0:
8. The satellite time-frequency resource scheduling method according to claim 3, It is characterized in that Step 5 specifically includes: Step 5.1 Determine the task Tr ik The scheduling possibility of the current task Tr ik , if it satisfies: Then proceed to step 5.2; Step 5.2 Take out task Tr ik The time-frequency window matrix set Step 5.3 Take out tasks Tr one by one ik The time-frequency window matrix And allocate resources, the allocation method is: Step 5.3.1 Take the Hadamard product of the window matrix and the resource matrix R: Step 5.3.2 Make scheduling decisions based on the product matrix E: calculate if Then go to step 5.3.3; if Then go to step 5.3.4; Step 5.3.3 Judgment Task Tr ik The time-frequency window matrix set TW k Whether the time-frequency window matrix in has been traversed, if not, go to step 5.3; if it has been traversed, it means that the task scheduling has failed, go to step 5.5; Step 5.3.4 If It means that the scheduling is successful, and the task Tr is updated at this time ik The scheduling state of Task Tr ik The scheduling is completed and go to step 5.4; Step 5.4 Update the resource matrix and solution matrix at this time: Take out The current time-frequency window matrix Updated resource matrix: Update solution matrix: Step 5.5 Determine the task sequence TR i , whether all tasks in i∈{1,2,…,N} have been traversed. If so, go to step 5.6; Step 5.6: According to the updated scheduling flag of particle i The fitness value of particle i is calculated as:
9. A computer device, It is characterized in that The method comprises at least one processing unit and at least one storage unit, wherein the storage unit stores a computer program, and when the computer program is executed by the processing unit, the processing unit executes the steps of the method according to any one of claims 1 to 8.
10. A computer readable medium, It is characterized in that It stores a computer program executable by a computer device. When the computer program is run on the computer device, the computer device executes the steps of the method according to any one of claims 1 to 8.
