main.h File Reference
This file contains the main methods to start the PSO algorithm. More...
Include dependency graph for main.h:
Go to the source code of this file.
Namespaces | |
highprecisionpso | |
base namespace for this project. | |
Functions | |
bool | highprecisionpso::AllowedToRun () |
If run check is activated then This method checks whether the program is currently allowed to run. More... | |
Statistics * | highprecisionpso::DoPso (Statistics *statistics) |
This method proceeds the activities of the PSO algorithm. More... | |
Statistics * | highprecisionpso::InitAndDoPso () |
This method initializes the particles and starts the swarm. More... | |
int | main (int argc, char *argv[]) |
The main starting method to start the PSO program. More... | |
Statistics * | highprecisionpso::RestoreAndDoPso () |
Loads information from the backup file and restarts the particle swarm. More... | |
void | highprecisionpso::Shutdown () |
Stores all data and generates a shutdown file to ease restarting of this particle swarm execution. More... | |
int | highprecisionpso::StartTasks (char *argv[]) |
Restarts all particle swarms which are correctly terminated in the folder specified in argument 2 of the supplied char * array. More... | |
void | highprecisionpso::WriteCurrentState (std::string filename) |
Writes a backup file with the specified file name and stores there all needed data to restart the particle swarm. More... | |
Variables | |
const ProgramVersion | highprecisionpso::PSO_PROGRAM_VERSION |
Describes the current version of this PSO program. More... | |
Detailed Description
This file contains the main methods to start the PSO algorithm.
- Date
- June, 2013
- Copyright
- This project is released under the MIT License (MIT).
- The MIT License (MIT)
- Copyright (c) 2016 by Friedrich-Alexander-Universität Erlangen-Nürnberg and Alexander Raß
- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
- The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Function Documentation
int main | ( | int | argc, |
char * | argv[] | ||
) |
The main starting method to start the PSO program.
- Parameters
-
argc The number of arguments in argv. argv[] The supplied arguments.
- Returns
- 0 if execution was successful and something different otherwise.