main.h
Go to the documentation of this file.
1 
40 #ifndef HIGH_PRECISION_PSO_GENERAL_MAIN_H_
41 #define HIGH_PRECISION_PSO_GENERAL_MAIN_H_
42 
43 #include <string>
44 
46 #include "statistics/statistics.h"
47 
56 int main(int argc, char* argv[]);
57 
58 namespace highprecisionpso {
59 
63 extern const ProgramVersion PSO_PROGRAM_VERSION;
64 
78 Statistics* DoPso(Statistics* statistics);
84 Statistics* InitAndDoPso();
91 Statistics* RestoreAndDoPso();
98 void WriteCurrentState(std::string filename);
99 
106 bool AllowedToRun();
111 void Shutdown();
120 int StartTasks(char *argv[]);
121 
122 } // namespace highprecisionpso
123 
124 #endif /* HIGH_PRECISION_PSO_GENERAL_MAIN_H_ */
int StartTasks(char *argv[])
Restarts all particle swarms which are correctly terminated in the folder specified in argument 2 of ...
void WriteCurrentState(std::string filename)
Writes a backup file with the specified file name and stores there all needed data to restart the par...
Statistics * DoPso(Statistics *statistics)
This method proceeds the activities of the PSO algorithm.
int main(int argc, char *argv[])
The main starting method to start the PSO program.
const ProgramVersion PSO_PROGRAM_VERSION
Describes the current version of this PSO program.
This file contains an class, which stores current information about the particle swarm.
void Shutdown()
Stores all data and generates a shutdown file to ease restarting of this particle swarm execution...
bool AllowedToRun()
If run check is activated then This method checks whether the program is currently allowed to run...
Statistics * RestoreAndDoPso()
Loads information from the backup file and restarts the particle swarm.
Statistics * InitAndDoPso()
This method initializes the particles and starts the swarm.
This file contains various general objects which can be used by or contained in other objects...
base namespace for this project.
Definition: absorption.h:45