Research Article
Mixed Static and Dynamic Optimization of Four-Parameter Functionally Graded Completely Doubly Curved and Degenerate Shells and Panels Using GDQ Method
Pseudocode 1
Genetic Algorithm pseudocode.
Step Set a max and min value for each gene | Step Set the max number of generations (), the convergence tolerance () and the number of consecutive no improvements | loops () after which algorithm ends, the number of genes (), and the number of population () members | Step Initialize the first generation of population () by randomly set chromosomes, each one made by genes | Step while () or ( for loops false) | Step Select (mating pool), initialize (set of children) | Step for to | Step Randomly select individuals (chromosomes and ) from | Step Obtain by applying crossover to and (with probability ) | Step Mutate produced child to and (with probability ) | Step Apply elitarism (if set) | Step Update population | Step end for | Step P = survival respect to the fitness* (, ) | Step end while | Step best chromosome detection |
*In this case the fitness is multiplied by a penalty term if one of the sets [] leads to volume fractions which are | not feasible (e.g. percentage of one constituent in the thickness larger than 1, less than 0, imaginary number). |
|