Disclosure of Invention
The purpose is as follows: in order to overcome the defects in the prior art, the invention provides a path optimization method and a path optimization device considering the data transmission requirements of a distribution network in an operation or fault state, wherein after the requirements of a decision control target on the data transmission speed and precision in a power grid are considered, the path is scheduled or reconstructed based on a route so as to ensure that the data uploading and command issuing processes can be normally carried out and support the smooth execution of power services. Data transmission can be recovered through routing scheduling or path reconstruction, so that the requirement of the power grid on data transmission in different states can be supported. The data security transmission strategy design based on the matching of the data importance degree and the security degree in the operation state and the data emergency transmission and path reconstruction strategy design based on the matching of the data importance degree and the transmission speed in the fault state are provided, and the communication reliability of the intelligent power grid in the execution of the power service in different operation states is improved.
The technical scheme is as follows: in order to solve the technical problems, the technical scheme adopted by the invention is as follows:
in a first aspect, a method for optimizing a path considering a requirement of a distribution network for data transmission in an operating or fault state is provided, including:
judging the physical system running state and the communication network reliable state of the power distribution network;
evaluating the importance degree of data and constructing a target function based on the judged physical system running state and communication network reliable state of the power distribution network;
and solving the objective function by adopting a particle swarm optimization algorithm combined with random variation to obtain an optimal path scheme.
The method for constructing the target function comprises the following steps:
a data security transmission strategy based on matching of data importance degree and security degree in a running state;
and the data emergency transmission strategy is matched with the transmission speed based on the data importance degree in the fault state.
In some embodiments, determining the physical system operating state of the power distribution network includes:
(A) When supply is short of demand, the following needs to be considered:
case 1: supply and demand balance can be realized only by means of photovoltaic power, wind power and energy storage; in this case, the following sub-events should be considered:
event 1-1: the generated energy of photovoltaic and wind power exceeds the load demand:
wherein P is
PVv (t) and P
WTy (t) respectively represents the power generation amount of the v photovoltaic fan and the y fan; n is a radical of
PV ,N
WT And N
Load Respectively the number of photovoltaic, fan and load; p is
Loadz (t) represents the z-th load demand; in this event, the photovoltaic will operate in maximum power point tracking mode; the fan will operate in a maximum power point tracking mode or a constant power mode; the stored energy will run in either charge or shutdown mode;
event 1-2: the power generation capacity of the photovoltaic and wind power generation set is not enough to meet the load demand, but when some stored energy runs in a discharge mode, the problem can be solved, and the related expression is as follows:
wherein, P ESUw (t) represents the w-th stored energy generation amount; n is a radical of hydrogen ESU Representing the amount of stored energy;
case 2: in addition to the photovoltaic, wind and energy storage involved in the energy supply, the diesel DG will also be involved in the electric energy supply:
wherein, P DGn (t) represents the power generation amount of the nth diesel engine DG; n is a radical of DG Representing the number of diesel engines DG;
case 3: when overload is serious, the redundant load is cut off from the system and the system is operated in a fault state only by adjusting the source end to meet the load end requirement;
(B) When supply is greater than demand, the following needs to be considered:
event 1: the power generation of some distributed power sources is reduced, and
wherein,
representing the output adjustment of the mth interruptible distributed power source; n is a radical of
IDER Represents the number of interruptible distributed power sources;
event 2: part of the power supply will be removed from the distribution network system, i.e.
The system is in a fault state at this time.
In some embodiments, determining the reliable status of the communication network of the power distribution network comprises:
when a route scheduling or path reconstruction is selected to form defense after the physical operation state is determined, the availability of a router needs to be judged first, namely whether a path can transmit data from the router to other routers is available; setting n routers in the system, wherein the availability judgment conditions are as follows;
except for the initial and destination ends, the input and output channels of each router must be connected simultaneously, for the xth router, there are
Wherein x 'and x' respectively represent the head end router label of the input channel and the tail end router label of the output channel of the x-th router;&&is the "logical AND" operator, a
xx' 、a
x”x Respectively representing the connection relationship from the xth router to the xth' router, and the definitions of similar symbols are similar; k represents the set of neighboring routers of the xth router.
In some embodiments, assessing the importance of the data comprises:
the importance degree of the data is calculated by the partial derivative of the decision control target to the data; wherein the decision control target expression is modeled as f (x) 1 ,…,u 1 8230in which x 1 ,x 2 \8230representingstate variables; u. of 1 ,u 2 8230indicating control amount;
when the system is in an operating state, a sensitivity calculation expression of data change on a decision control effect is as follows:
Wherein
And
respectively represent x in the operating state
1 ,x
2 ,u
1 And u
2 The sensitivity of (2); the greater the sensitivity, the greater the data importance;
when the system is in a fault state, the sensitivity calculation expression of data change to time is as follows:
Wherein
And
respectively represent x in a fault state
1 ,x
2 ,u
1 And u
2 The sensitivity of (c); the greater the sensitivity, the greater the data importance;
according to the sensitivity calculation expression, the importance degree sequence of the data can be obtained, so that communication paths corresponding to different attributes of different data can be arranged conveniently, and the influence of unreliable communication on the execution effect of the decision control strategy of the power distribution network is reduced.
In some embodiments, in the running state, the constructing the objective function Z based on the data security transmission policy with the data importance degree matched with the security degree includes:
in the operating state:
because the running time scale of the system is longer in the running state and the requirement on the transmission speed is not strict, the data transmission precision is preferentially ensured; optimizing the transmission path of each data according to the sequence of the importance degree of the data from large to small, wherein the corresponding optimization targets are divided into the following categories:
if the attributes of all channels are to be added together, there are:
wherein N represents the number of regions; min represents a minimum value calculation algorithm; sign is a sign function; a is a ij Representing the connection relationship from the ith node to the jth node, if there is a connection, a ij =1; otherwise, a ij =0; Att ij.k Representing the kth attribute value in a channel from the ith node to the jth node, wherein the attributes comprise time delay, packet loss rate and signal-to-noise ratio;
if only the channel with the most outstanding attributes in the path is required to satisfy the constraint condition, then there are:
Z=min{max[Att ij.k ·sign(a ij )]},j∈N i (8)
dynamically adjusting the path:
when a path from a starting position to a destination position is determined, whether the path meets related constraint conditions or not is checked; if these conditions have been met, path planning is complete; otherwise, the above process should be repeated; in channel optimization, the selected constraints are as follows:
6) There is only one output channel at the start position:
wherein a is startj Representing the connection relationship from the starting position to the jth node; a is jstart Representing the connection relationship from the jth node to the starting position; n is a radical of start The number of adjacent relay routes representing the starting position;
7) There is only one input channel at the destination location:
wherein a is endj Representing the connection relationship from the destination position to the jth node; a is jend Representing the connection relationship from the jth node to the destination location; n is a radical of end The number of adjacent relay routes representing the destination position;
8) The relay route has both input and output channels:
wherein
Representing the connection relation from the ith relay route to the jth node;
representing the connection relationship from the jth node to the ith relay route;
representing the number of adjacent relay routes of the l relay route;
9) The number of input channels and the number of output channels of the relay route do not exceed the allowed upper limit:
wherein
Representing the connection relation from the ith relay route to the jth node;
representing the connection relationship from the jth node to the ith relay route;
represents the upper limit of the number of input channels allowing the ith relay route;
representing the upper limit of the number of output channels allowed by the l relay route;
10 Properties of the planned path meet set requirements:
wherein
Representing the defining condition of the k-th attribute value.
In some embodiments, the constructing the objective function Z based on the data emergency transmission policy that the data importance degree matches with the transmission speed in the fault state includes:
in a fault state:
considering that data should be recovered and transmitted at the fastest speed, and ensuring that the data with high importance degree and high time sensitivity is recovered and transmitted preferentially; the data importance degree and the sensitivity of the data to time need to be calculated in a superposition manner, and the method specifically comprises the following steps:
1. de-unitization:
and
wherein
The sensitivity of the decision control target to the ith data after the unit removal;
is the sensitivity of the ith data to time after the demosaicing;
3. and (3) weighting: when the two types of sensitivities are comprehensively considered, the comprehensive sensitivity is obtained
Wherein λ
i1 And λ
i2 Is a weight coefficient, and λ
i1 +λ
i2 =1;
When optimizing, should follow
Optimizing the transmission path of each data in a descending order, wherein the corresponding optimization targets are as follows:
wherein, delay ij Representing the skew in the channel from the ith node to the jth node; the constraint conditions other than (9) to (15),
6) There is only one output channel at the start position:
wherein a is startj Representing the connection relationship from the starting position to the jth node; a is jstart Representing the connection relationship from the jth node to the starting position; n is a radical of start The number of adjacent relay routes representing the starting position;
7) There is only one input channel at the destination location:
wherein a is endj Representing the connection relationship from the destination position to the jth node; a is a jend Representing the connection relationship from the jth node to the destination location; n is a radical of hydrogen end The number of adjacent relay routes representing the destination position;
8) The relay route has both input and output channels:
wherein
Representing the connection relation from the ith relay route to the jth node;
representing the connection relationship from the jth node to the ith relay route;
representing the number of adjacent relay routes of the l relay route;
9) The number of input channels and the number of output channels of the relay route do not exceed the allowed upper limit:
wherein
Representing the connection relation from the ith relay route to the jth node;
representing the connection relationship from the jth node to the ith relay route;
represents the upper limit of the number of input channels allowing the ith relay route;
representing the upper limit of the number of output channels allowed by the l relay route;
10 Properties of the planned path meet the set requirements:
wherein
A qualifier representing a kth attribute value;
it should also be ensured that the data transmission accuracy meets the requirements, i.e. the optimized path needs to additionally meet the constraint conditions
Wherein risk
ij Representing the probability of risk in the channel from the ith node to the jth node; condition
risk Is a set risk constraint index.
In some embodiments, solving the objective function using a particle swarm optimization algorithm combined with random variation includes:
step 4-1: selecting an initial population:
selecting an initial population quantity: sizepop, variable dimension: spaedenim; maximum number of iterations: ger; a position limit; speed limitation; inertial weight: c _1; individual learning factors: c _2; group learning factor: c _3;
step 4-2: judging whether the individual meets the constraint condition and selecting the optimal individual:
by substituting the individual into equations (9) to (15), whether or not the expression satisfies
Further, an optimal selection is made among all the individuals satisfying the constraint condition, i.e., argmax (Z);
step 4-3: updating the population by adopting a random variation mode, and carrying out position variation on corresponding individuals in the current iteration according to pop _ x (: j) = pop _ x (random (1, dim), j) + xi to expand the number attribute of the population and facilitate jumping out of a local optimal solution, wherein pop _ x (: j) represents the jth position in the current iteration individuals; dim represents the number of individuals in the population; random (1, dim) represents a random number from 1 to dim; xi ∈ [ -0.2,0.2];
step 4-4: judging whether the updated population individual meets the constraint condition or not and selecting the optimal individual, and substituting the individual into the formulas (9) to (15) to judge whether the updated population individual meets the constraint condition or not
Furthermore, the optimal choice among all the individuals who satisfy the constraint condition, namely argmax (Z);
and 4-5: and repeating the step 4-3 and the step 4-4 until a set iteration number is achieved.
In a second aspect, the present invention provides a path optimization apparatus considering the requirement of a distribution network for data transmission in an operating or fault state, including a processor and a storage medium;
the storage medium is used for storing instructions;
the processor is configured to operate in accordance with the instructions to perform the steps of the method according to the first aspect.
In a third aspect, the invention provides a storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the method of the first aspect.
Has the advantages that: the method and the device for optimizing the path of the distribution network in consideration of the data transmission requirement in the running or fault state have the following advantages:
1. in the operating state, the data communication path is matched with the importance degree of the data, the data with high importance degree is transmitted to a destination terminal through a path with superior performance preferentially, the rationality of optimization is improved, and the requirement of power service on data transmission is met;
2. under a fault state, the sensitivity of data change to time is considered, the data communication path is matched with the importance degree of data, the data with high importance degree and high sensitivity of data change to time is transmitted to a destination end through a path with superior performance preferentially, the basic electric power service is supported and completed quickly, and the system is restored to an operating state in time;
3. in the optimization process, by designing the particle swarm optimization solution algorithm with random variation, the solution speed and the generalization capability of the algorithm are improved, and a reasonable path reconstruction scheme is obtained.
Detailed Description
The invention is further described below with reference to the figures and examples. The following examples are only for illustrating the technical solutions of the present invention more clearly, and the protection scope of the present invention is not limited thereby.
In the description of the present invention, the meaning of a plurality is one or more, the meaning of a plurality is two or more, and larger, smaller, larger, etc. are understood as excluding the present numbers, and larger, smaller, inner, etc. are understood as including the present numbers. If the first and second are described for the purpose of distinguishing technical features, they are not to be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated or implicitly indicating the precedence of the technical features indicated.
In the description of the present invention, reference to the description of the terms "one embodiment," "some embodiments," "an illustrative embodiment," "an example," "a specific example," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the present invention. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
Example 1
A path optimization method considering the data transmission requirements of a distribution network in an operation or fault state comprises the following steps:
judging the physical system running state and the communication network reliable state of the power distribution network;
evaluating the importance degree of data and constructing a target function based on the judged physical system running state and communication network reliable state of the power distribution network;
and solving the objective function by adopting a particle swarm optimization algorithm combined with random variation to obtain an optimal path scheme.
In some embodiments, based on the determined physical system operating state of the power distribution network and the determined reliable state of the communication network, the importance degree of the data is evaluated, and an objective function is constructed, including:
a data security transmission strategy based on matching of data importance degree and security degree in a running state;
and the data emergency transmission strategy is matched with the transmission speed based on the data importance degree in the fault state.
In some embodiments, determining the physical system operating state of the power distribution network includes:
(A) When supply is short of demand, the following needs to be considered:
case 1: supply and demand balance can be realized only by means of photovoltaic power, wind power and energy storage; in this case, the following sub-events should be considered:
event 1-1: the generated energy of photovoltaic and wind power exceeds the load demand:
wherein P is
PVv (t) and P
WTy (t) respectively represents the power generation amount of the v photovoltaic fan and the y fan; n is a radical of hydrogen
PV ,N
WT And N
Load Respectively the number of photovoltaic, fan and load; p
Loadz (t) represents a demanded quantity of a z-th load; in this event, the photovoltaic will operate in maximum power point tracking mode; the fan will operate in a maximum power point tracking mode or a constant power mode; the stored energy will run in a charging or shutdown mode;
event 1-2: the power generation capacity of the photovoltaic and wind power generation set is not enough to meet the load demand, but when some stored energy runs in a discharge mode, the problem can be solved, and the related expression is as follows:
wherein, P ESUw (t) representsw generated energy of stored energy; n is a radical of ESU Representing the amount of stored energy;
case 2: in addition to the photovoltaic, wind and energy storage involved in the energy supply, the diesel DG will also be involved in the electric energy supply:
wherein, P DGn (t) represents the power generation amount of the nth diesel engine DG; n is a radical of DG Represents the number of diesel engines DG;
case 3: when overload is serious, the redundant load is cut off from the system and the system is in a fault state only by adjusting that the source end can not meet the requirement of the load end;
note: the method does not consider main network power supply, and only carries out strategy research on the active power distribution network.
(B) When supply is greater than demand, the following needs to be considered:
event 1: the power generation of some distributed power sources is reduced, and
wherein,
representing the output adjustment of the mth interruptible distributed power source; n is a radical of
IDER Representing the number of interruptible distributed power sources;
event 2: part of the power supply will be removed from the distribution network system, i.e.
The system is in a fault state at this time.
In some embodiments, determining the reliable status of the communication network of the power distribution network comprises:
when a route scheduling or path reconstruction is selected to form defense after the physical operation state is determined, the availability of a router needs to be judged first, namely whether a path can transmit data from the router to other routers or not is judged; setting n routers in the system, wherein the availability judgment conditions are as follows;
apart from the initial and destination ends, the input and output channels of each router must be connected simultaneously, for the xth router, there are
Wherein x 'and x' respectively represent the head end router label of the input channel and the tail end router label of the output channel of the x-th router;&&is a logical AND operator, a
xx' 、a
x”x Respectively representing the connection relation from the xth router to the xth' router, and the definitions of similar symbols are similar; k represents the set of neighboring routers of the xth router.
Further, the data security transmission policy design based on the matching of the data importance degree and the security degree in the operating state is considered in the following cases:
scene 1:the communication network transmission is not attacked in the operation state, and a plurality of selectable paths are provided for data transmission
Aiming at the problem of safe transmission in an operating state, a multi-path planning strategy is researched, and the method specifically comprises the following steps: 1) Evaluating the importance degree of terminal data based on the sensitivity analysis of the speed and precision of acquiring state data on the influence of the multivariate decision control service; 2) Constructing a single-target optimization model based on the principle that the importance degree of data is matched with the safety measure of the path of the data and the transmission rapidity is used as a constraint condition; 3) Based on the data importance degree sequencing, sequentially solving the optimization model to obtain a path optimization strategy, and transmitting data by selecting a path with optimal safety performance to ensure that the influenced data are sequentially transmitted to a destination end according to the importance degree and support the execution of the power service;
scene 2:the communication network transmission in the running state is subjected to malicious attacks, so that the problems of light congestion of channel transmission and the like are caused, but the influence of data transmission caused by congestion does not exceed the tolerance of a decision control taskLimiting;
1) Similarly to scenario 1, the importance of the data is studied first based on sensitivity analysis; 2) And researching a path optimization strategy based on the principle that the importance degree of data is matched with the path safety measure of the data so as to ensure the effectiveness of the service. Firstly, judging whether a standby path exists in the existing communication network, if so, carrying out routing scheduling according to the principle that the importance degree of data is matched with the safety degree of the path; otherwise, determining the head and tail nodes, and performing path reconstruction according to the head and tail nodes by taking the optimal safety, rapidity or transmission length as a target to obtain an optimal path scheme.
Scene 3:under the operation state, the communication network transmission is attacked maliciously, so that the channel transmission congestion is serious and even interrupted, but the important degree of the influenced data is low, and the safe operation of a novel power system is not influenced. Examples are: cost information in energy management, such as time-of-use electricity price and the like, can still be safely operated even if interrupted.
Where the enforcement policy is similar to scenario 2.
Scene 4:communication equipment such as a route or a channel and the like in the running state breaks down, transmission is interrupted, the importance degree of influenced data is low, and the safe running of a novel power system is not influenced.
Where the enforcement policy is similar to scenario 2.
Further, the design of the data emergency transmission strategy based on the matching of the data importance degree and the transmission speed in the fault state is considered in the following cases:
scene 1:the communication network transmission is attacked maliciously, which causes serious congestion and even interruption of channel transmission, and the important degree of the influenced data is high, which influences the safe operation of the novel power system.
Aiming at the problems of data incompleteness or unavailability in a fault state, aiming at emergency recovery of important data, a path optimization strategy is designed, and the steps are as follows: 1) Analyzing the information-physical sensitivity of the influence of data change on the safe operation of the power system and the information-time sensitivity of the data change on time based on the speed and the precision of the acquired state data, and comprehensively evaluating the importance degree of the data; 2) Based on the rapidity evaluation of the transmission path, the principle of matching the data importance degree with the path transmission speed is used, the important data is ensured to be rapidly transmitted as a main target, the transmission precision is used as a constraint condition, an optimization model is constructed, an optimal transmission path strategy is obtained, and meanwhile, the data transmission safety is improved.
Scene 2:communication equipment such as a route or a channel breaks down in the running state, transmission is interrupted, the important degree of influenced data is high, and safe running of a novel power system is influenced. In this case, the execution policy is similar to scenario 1.
In some embodiments, assessing the importance of the data comprises:
the importance degree of the data is calculated by the partial derivative of the decision control target to the data; wherein the decision control target expression is modeled as f (x) 1 ,…,u 1 8230in which x 1 ,x 2 \8230denotesa state variable; u. of 1 ,u 2 8230indicating control amount;
when the system is in an operating state, a sensitivity calculation expression of data change on a decision control effect is as follows:
Wherein
And
respectively represent x in the operating state
1 ,x
2 ,u
1 And u
2 The sensitivity of (c); the greater the sensitivity, the greater the data importance;
when the system is in a fault state, the sensitivity calculation expression of data change to time is as follows:
Wherein
And
respectively represent x in a fault state
1 ,x
2 ,u
1 And u
2 The sensitivity of (c); the greater the sensitivity, the greater the data importance;
according to the sensitivity calculation expression, the importance degree sequence of the data can be obtained, so that communication paths corresponding to different attributes of different data can be arranged conveniently, and the influence of unreliable communication problems on the execution effect of the decision control strategy of the power distribution network is reduced.
In some embodiments, constructing the objective function Z comprises:
in the operating state:
because the running time scale of the system is longer in the running state and the requirement on the transmission speed is not strict, the data transmission precision is preferentially ensured; optimizing the transmission path of each data according to the sequence of the importance degree of the data from large to small, wherein the corresponding optimization targets are divided into the following categories:
if the attributes of all channels are to be added together, there are:
wherein N represents the number of regions; min represents a minimum value calculation algorithm; sign is a sign function; a is ij Representing the connection relationship from the ith node to the jth node, if there is a connection, a ij =1; otherwise, a ij =0; Att ij.k Representing the kth attribute value in a channel from the ith node to the jth node, wherein the attribute comprises time delay, packet loss rate and signal-to-noise ratio;
if only the channel with the most outstanding attributes in the path is required to satisfy the constraint condition, then there are:
Z=min{max[Att ij.k ·sign(a ij )]},j∈N i (8)
dynamically adjusting the path:
when a path from a starting position to a destination position is determined, whether the path meets a relevant constraint condition or not is checked; if these conditions have been met, path planning is complete; otherwise, the above process should be repeated; in channel optimization, the constraints selected are as follows:
11 Only one output channel at the start position:
wherein a is startj Representing the connection relationship from the starting position to the jth node; a is jstart Representing the connection relationship from the jth node to the starting position; n is a radical of start The number of adjacent relay routes representing the starting position;
12 Only one input channel at the destination location:
wherein a is endj Representing the connection relationship from the destination position to the jth node; a is jend Representing the connection relationship from the jth node to the destination location; n is a radical of hydrogen end The number of adjacent relay routes representing the destination position;
13 Relay routes exist for both input and output channels:
wherein
Representing the connection relation from the ith relay route to the jth node;
representing the connection relationship from the jth node to the ith relay route;
representing the number of adjacent relay routes of the l relay route;
14 The number of input channels and the number of output channels of the relay route do not exceed the allowable upper limit:
wherein
Representing the connection relation from the ith relay route to the jth node;
representing the connection relationship from the jth node to the ith relay route;
represents the upper limit of the number of input channels allowing the ith relay route;
representing the upper limit of the number of output channels allowed by the ith relay route;
15 Properties of the planned path meet set requirements:
wherein
Representing the defining condition of the k-th attribute value.
In some embodiments, constructing the objective function Z comprises:
in a fault state:
considering that data should be recovered and transmitted at the fastest speed, and ensuring that the data with high importance degree and high time sensitivity is recovered and transmitted preferentially; the data importance degree and the sensitivity of the data to time need to be calculated in a superposition manner, and the method specifically comprises the following steps:
1. de-unitization:
and
wherein
The sensitivity of the decision control target to the ith data after the unit removal;
is the sensitivity of the ith data to time after the demonitation;
4. and (3) weighting: when the two types of sensitivities are comprehensively considered, the comprehensive sensitivity is obtained
Wherein λ
i1 And λ
i2 Is a weight coefficient, and λ
i1 +λ
i2 =1;
When optimizing, should follow
Optimizing the transmission path of each data in a descending order, wherein the corresponding optimization targets are as follows:
wherein, delay ij Representing the time lag in the channel from the ith node to the jth node; the constraint conditions other than (9) to (15),
11 Only one output channel at the start position:
wherein a is startj Representing the connection relationship from the starting position to the jth node; a is jstart Representing the connection relationship from the jth node to the starting position; n is a radical of start The number of adjacent relay routes representing the starting position;
12 Only one input channel at the destination location:
wherein a is endj Representing the connection relationship from the destination position to the jth node; a is jend Representing the connection relationship from the jth node to the destination location; n is a radical of end The number of adjacent relay routes representing the destination position;
13 Relay routes exist for both input and output channels:
wherein
Representing the connection relation from the ith relay route to the jth node;
representing the connection relationship from the jth node to the ith relay route;
representing the number of adjacent relay routes of the l relay route;
14 The number of input channels and the number of output channels of the relay route do not exceed the allowable upper limit:
wherein
Representing the connection relation from the ith relay route to the jth node;
representing the connection relationship from the jth node to the ith relay route;
represents the upper limit of the number of input channels allowing the ith relay route;
representing the upper limit of the number of output channels allowed by the l relay route;
15 Properties of the planned path meet set requirements:
wherein
A qualifier representing a kth attribute value;
it should also be ensured that the data transmission accuracy meets the requirements, i.e. the optimized path needs to additionally meet the constraint conditions
Wherein risk
ij Representing the probability of risk in the channel from the ith node to the jth node; condition
risk Is a set risk constraint index.
In some embodiments, solving the objective function using a particle swarm optimization algorithm combined with random variation includes:
step 4-1: selecting an initial population:
selecting an initial population quantity: sizepop, variable dimension: spaedenim; maximum number of iterations: ger; a position limit; speed limitation; inertial weight: c _1; individual learning factors: c _2; group learning factor: c _3;
step 4-2: judging whether the individual meets the constraint condition and selecting the optimal individual:
by substituting the individual into equations (9) to (15), whether or not the expression satisfies
Further, an optimal selection is made among all the individuals satisfying the constraint condition, i.e., argmax (Z);
step 4-3: updating the population by adopting a random variation mode, and carrying out position variation on corresponding individuals in the current iteration according to pop _ x (: j) = pop _ x (random (1, dim), j) + xi to expand the number attribute of the population and facilitate jumping out of a local optimal solution, wherein the pop _ x (: j) represents the jth position in the current iteration individuals; dim represents the number of individuals in the population; random (1, dim) represents a random number from 1 to dim; xi ∈ [ -0.2,0.2];
step 4-4: judging whether the updated population individuals meet the constraint conditions or not and selecting the optimal individuals, and substituting the individuals into the formulas (9) to (15) to judge whether the updated population individuals meet the constraint conditions or not
Furthermore, the optimal choice among all the individuals who satisfy the constraint condition, namely argmax (Z);
and 4-5: and repeating the step 4-3 and the step 4-4 until a set iteration number is achieved.
Example 2
In a second aspect, the present embodiment provides a path optimization apparatus considering the requirement of a distribution network for data transmission in an operating or failure state, including a processor and a storage medium;
the storage medium is to store instructions;
the processor is configured to operate in accordance with the instructions to perform the steps of the method according to embodiment 1.
Example 3
In a third aspect, the present embodiment provides a storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the method of embodiment 1.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The above description is only of the preferred embodiments of the present invention, and it should be noted that: it will be apparent to those skilled in the art that various modifications and adaptations can be made without departing from the principles of the invention and these are intended to be within the scope of the invention.