ian@0: // Copyright 2011, Ian Hobson. ian@0: // ian@0: // This file is part of gpsynth. ian@0: // ian@0: // gpsynth is free software: you can redistribute it and/or modify ian@0: // it under the terms of the GNU General Public License as published by ian@0: // the Free Software Foundation, either version 3 of the License, or ian@0: // (at your option) any later version. ian@0: // ian@0: // gpsynth is distributed in the hope that it will be useful, ian@0: // but WITHOUT ANY WARRANTY; without even the implied warranty of ian@0: // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ian@0: // GNU General Public License for more details. ian@0: // ian@0: // You should have received a copy of the GNU General Public License ian@0: // along with gpsynth in the file COPYING. ian@0: // If not, see http://www.gnu.org/licenses/. ian@0: ian@0: // command line options handler ian@0: ian@0: #pragma once ian@0: ian@0: #include ian@0: ian@0: struct ProgramOptions { ian@0: std::string target_path_; ian@0: std::string grammar_path_; ian@0: std::string sc_app_path_; ian@0: std::string work_folder_; ian@0: std::string fitness_features_; ian@0: std::size_t population_size_; ian@0: std::size_t generations_; ian@0: std::size_t tournament_size_; ian@0: double fitness_threshold_; ian@0: double crossover_rate_; ian@0: double mutation_rate_; ian@0: bool reproduce_best_individual_; ian@0: std::size_t analysis_window_size_; ian@0: std::size_t analysis_hop_size_; ian@0: std::size_t maximum_tree_depth_; ian@0: bool keep_temp_folders_; ian@0: std::size_t core_limit_; ian@0: }; ian@0: ian@0: void ParseCommandLine(int argument_count, ian@0: const char* arguments[], ian@0: ProgramOptions* options);