13.02.2013 Views

Design of an Automatic Control Algorithm for Energy-Efficient ...

Design of an Automatic Control Algorithm for Energy-Efficient ...

Design of an Automatic Control Algorithm for Energy-Efficient ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Optimiser code 163<br />

414 }<br />

416<br />

}<br />

}<br />

static void IMEA_sortTruncate( struct individual ∗pop, int_T popSize , int_T numChild)<br />

418 / ∗ ========================================================================<br />

∗ IMEA_sortTruncate sorts the population in order to use the best <strong>for</strong> the<br />

420 ∗ next generation .<br />

422 ∗/<br />

{<br />

∗ ========================================================================<br />

424 int_T i ;<br />

int_T r<strong>an</strong>k = 0;<br />

426 int_T pop_count = 0;<br />

428<br />

430 {<br />

432 {<br />

struct individual tmpInd ;<br />

while(pop_count < popSize)<br />

434 {<br />

<strong>for</strong>( i=0; i

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!