Changeset 1273 for cpp/frams/genetics/genman.cpp
- Timestamp:
- 09/09/23 15:10:49 (20 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/frams/genetics/genman.cpp
r1238 r1273 12 12 13 13 14 #define GENMAN_REPEAT_FAILED 100 //how many times GenMan tries to repeat a mutation or crossover when the operator does not return a cceptable genotype14 #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 15 15 #define STRINGIFY_1(x) #x 16 16 #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 … … 575 575 if (g[i] == '<') latex += "$<$"; else if (g[i] == '>') latex += "$>$"; else 576 576 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]; 578 579 if ((i % 3) == 0 && g[i] == ' ') latex += "\n"; //for readability, insert some newlines into latex... 579 580 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.