View full-text article in PMC Sensors (Basel). 2022 Sep 6;22(18):6719. doi: 10.3390/s22186719 Search in PMC Search in PubMed View in NLM Catalog Add to search Copyright and License information © 2022 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/). PMC Copyright notice Algorithm 3: GA for the Placement Scheme Input: M, N Output: O, Fpro na←0, Gngene×n=∅ Gngene×n′=∅ While ngene<Np Initial Gngene Gngene×n←Gngene×n∪Gngene ngene←ngene+1 End While t<Nr Sort Gngene×n(t) by Fpro(t) While parents <NrPc do Select parents Gn0(t) &Gn1(t) by pr Apply crossing to get offspring Gn0(t+1) &Gn1(t+1) Apply mutation to Gn0(t+1) &Gn1(t+1) Gngene×n(t+1)←Gngene×n(t+1)∪Gn0(t+1)∪Gn1(t+1) parents←parents+2 End Sort Gngene×n(t) for finding GNr(1−Pc)(t) Gngene×n(t+1)←Gngene×n(t+1)∪GNr(1−Pc)(t) Gngene×n←Gngene×n(t+1) t←t+1 End Find Oij by Gngene×n Calculate Fpro