Skip to main content
. 2016 Feb 26;16(3):297. doi: 10.3390/s16030297
Algorithm 4 Forwarding set selection.
  • 1:

    procedure ForwardingSetSelect(G(L(Ri)),Φ*)  

  • 2:

        EPA=  

  • 3:

        for j=1 to maxitr do  

  • 4:

            Select λ randomlyfrominterval [0,1]  

  • 5:

            Construction(G(L(Ri)),λ,Φ)  

  • 6:

            LocalSearch(G(L(Ri)),Φ)   

  • 7:

            if EPA(Φ)>EPA then  

  • 8:

               EPA=EPA(Φ)  

  • 9:

               Φ*=Φ  

  • 10:

            endif   

  • 11:

        endfor   

  • 12:

    endprocedure