View full-text article in PMC Pharmaceuticals (Basel). 2025 Aug 20;18(8):1227. doi: 10.3390/ph18081227 Search in PMC Search in PubMed View in NLM Catalog Add to search Copyright and License information © 2025 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 1 The framework of the algorithm for NSGA-II. Require: P (initial population), N (number of generations) Ensure: Pfinal (pareto front) 1:fronts⇐frontssorting(P) 2:crowding_distance⇐crowdingdistance(fronts) 3:for i=0 to N do 4: Pi′⇐mutation(Pi)+crossover(Pi) 5: fronts⇐frontssorting(Pi′+Pi) 6: crowding_distance⇐crowdingdistance(fronts) 7: Pi+1⇐Selectsatisfyconditions() 8:end for