Log In | Get Help   
Home My Page Projects Code Snippets Project Openings Mareframe
Summary Activity Forums Tracker Lists Tasks Docs Surveys News SCM Files
[mareframe] Diff of /trunk/gadget/optinfosimann.cc
[mareframe] / trunk / gadget / optinfosimann.cc Repository:
ViewVC logotype

Diff of /trunk/gadget/optinfosimann.cc

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 11, Thu Jul 23 19:00:38 2015 UTC revision 20, Fri Apr 7 09:20:55 2017 UTC
# Line 18  Line 18 
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;
# Line 26  Line 26 
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;

Legend:
Removed from v.11  
changed lines
  Added in v.20

root@forge.cesga.es
ViewVC Help
Powered by ViewVC 1.0.0  

Powered By FusionForge