Research Article
Heuristic Search for Planning with Different Forced Goal-Ordering Constraints
Input: Achieved goal sequence list . Goal whose achievement | sequence needs to be moved ahead. | Output: New goal achievement sequence list | 01 bool =false, .size(); | 02 for :1 | 03 ; | 04 for | 05 ; | 06 .push_back(); | 07 ; | 08 bool =false; | 09
is the available GAO | set of in . For , there is . | The GAO in set has the smaller excludable GAO | set than that of in if there is ; | 10 for 1: | 11 select an available GAO from ; | 12 | 13 if , has no available GAO in ) | 14 continue; | 15 else | 16 =true; | 17 break; | 18 if(==true) | 19 .push_back(); | 20 bool false; | 21 for | 22 ; | 23 if( or its equivalent GAO is available in ) | 24 or ; | 25 ; | 26 ; | 27 .push_back(); | 28 else | 29 =true; | 30 break; | 31 if(==false) | 32 true; | 33 return ; | 34 else | 35 continue; | 36 return ; |
|