18 |
unsigned s3 = 0; |
unsigned s3 = 0; |
19 |
|
|
20 |
int count = 0; |
int count = 0; |
21 |
while (!infile.eof() && strcasecmp(text, "[simann]") && strcasecmp(text, "[hooke]") && strcasecmp(text, "[bfgs]")) { |
while (!infile.eof() && strcasecmp(text,"[pso]") && strcasecmp(text, "[simann]") && strcasecmp(text, "[hooke]") && strcasecmp(text, "[bfgs]")) { |
22 |
infile >> ws; |
infile >> ws; |
23 |
if (strcasecmp(text, "seed") == 0) { |
if (strcasecmp(text, "seed") == 0) { |
24 |
int s = 0; |
int s = 0; |
26 |
s1 = s; |
s1 = s; |
27 |
handle.logMessage(LOGMESSAGE, "Initialising random number generator with", s); |
handle.logMessage(LOGMESSAGE, "Initialising random number generator with", s); |
28 |
srand(s1); |
srand(s1); |
29 |
//fixme doc |
// seed for the metropolis acceptance of SA |
30 |
} if (strcasecmp(text, "seedM") == 0) { |
} if (strcasecmp(text, "seedM") == 0) { |
31 |
int s = 0; |
int s = 0; |
32 |
infile >> s >> ws; |
infile >> s >> ws; |
33 |
s2 = s; |
s2 = s; |
34 |
handle.logMessage(LOGMESSAGE, "Initialising random number generator with", s); |
handle.logMessage(LOGMESSAGE, "Initialising random number generator with", s); |
35 |
|
// seed for the order if the parameters of SA |
36 |
} if (strcasecmp(text, "seedP") == 0) { |
} if (strcasecmp(text, "seedP") == 0) { |
37 |
int s = 0; |
int s = 0; |
38 |
infile >> s >> ws; |
infile >> s >> ws; |