Skip to main content
. 2025 Nov 12;10(11):763. doi: 10.3390/biomimetics10110763
Algorithm 3 All Conformations Genetic Algorithm (ACGA)
  • 1:

    Input: population_size,generations,HPseq,lattice_type

  • 2:

    Output: C*(RULDstring)

  • 3:

    Initialization of the population Pi(i=1,2n)

  • 4:

    Compute fitness of each conformation conf Equation (5)

  • 5:

    Adapted tournament selection

  • 6:

    C* the best conformation

  • 7:

    t0

  • 8:

    while (t<generations)do

  • 9:

        for (every chosen conformation) do

  • 10:

            Ct+1Crossover(Ct,Dt,C*)

  • 11:

            Ct+1Mutation(Ct,C*)

  • 12:

        end for

  • 13:

        Compute the fitness of modified chromosome

  • 14:

        Adapted_tournament_selection

  • 15:

        C* the best conformation

  • 16:

        tt+1

  • 17:

    end while

  • 18:

    return C*