Ignore:
Timestamp:
09/09/23 15:10:49 (8 months ago)
Author:
Maciej Komosinski
Message:

fH, fB, fL: improved default parameter values, syntax coloring and code logic

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpp/frams/genetics/genman.cpp

    r1238 r1273  
    1212
    1313
    14 #define GENMAN_REPEAT_FAILED 100 //how many times GenMan tries to repeat a mutation or crossover when the operator does not return acceptable genotype
     14#define GENMAN_REPEAT_FAILED 100 //how many times GenMan tries to repeat a mutation or crossover when the operator does not return an acceptable genotype
    1515#define STRINGIFY_1(x) #x
    1616#define STRINGIFY(x) STRINGIFY_1(x) //this second-level macro allows the parameter to be a macro itself and to stringify its value, not its name
     
    575575                if (g[i] == '<') latex += "$<$"; else if (g[i] == '>') latex += "$>$"; else
    576576                        if (g[i] == '-') latex += "$-$"; else if (g[i] == '|') latex += "$|$"; else
    577                                 if (g[i] == '$') latex += "\\$"; else if (g[i] == '%') latex += "\\%"; else latex += g[i];
     577                                if (g[i] == '$') latex += "\\$"; else if (g[i] == '%') latex += "\\%"; else
     578                                        if (g[i] == '#') latex += "\\#"; else latex += g[i];
    578579                if ((i % 3) == 0 && g[i] == ' ') latex += "\n"; //for readability, insert some newlines into latex...
    579580                if (i % 10 == 0) latex += "{\\hskip 0pt}"; // https://tex.stackexchange.com/questions/33526/automatic-line-breaking-of-long-lines-of-text
Note: See TracChangeset for help on using the changeset viewer.