From: An emergency task autonomous planning method of agile imaging satellite
Algorithm II | General emergency tasks insertion algorithm |
---|---|
1 | Start Procedure |
2 | Initialize the sets w, w 1 , w 2 , w 3 =Φ, mintime=0 |
original task index i, emergency task indexr j, | |
the earliest start time ES, the latest end time LE, | |
Task time T j | |
3 | for each level of emergency tasks do |
4 | midtime=(ES+LE)/2 |
5 | Search from midtime to both sides, form w1, w2 |
6 | Form an ascending sequence w according to the |
income level of w 1 , w 2 | |
7 | for index i in w do |
8 | mintime=mintime+w[i] |
9 | Delele w[i] |
10 | if mintime>Tj+σ then |
11 | loop for |
12 | end if |
13 | i=i+1 |
14 | end for |
15 | Insert emergency tasks |
16 | end for |
17 | Task Replanning |
18 | End Procedure |