Non-Uniform CA Designer (C++, GAlib, Boost)
File detail
Source code
/*
* Copyright (C) 2009 Kamil Dudka <xdudka00@stud.fit.vutbr.cz>
*
* This file is part of nucad (Non-Uniform CA Designer).
*
* nucad is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* any later version.
*
* nucad is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with nucad. If not, see <http://www.gnu.org/licenses/>.
*/
/**
* @file config.h
* Gathered various compile-time options of nucad.
*/
#ifndef CONFIG_H
#define CONFIG_H
/**
* cyclic neighborhood on CA's boundaries if option is set to 1
* otherwise default zeros are returned over CA's boundaries
*/
#define CA_CYCLIC_NEIGHBORHOOD 1
/// initial limit for number of generations (ngen)
#define GA_INITAL_NGEN 8192
/// ngen per fitness increase ratio
#define GA_PER_FIT_NGEN 1048576
/// ngen per fitness increase concentration
#define GA_PER_FIT_NGEN_POWER 10
/// GA population size
#define GA_POP_SIZE 1
/// minimum of solutions (to declare as solution)
#define GA_MIN_SLNS 1024
/// maximum number of solutions (solver stops when reached)
#define GA_MAX_SLNS 1024
/// maximum number of runs (if satisfaction is not reachable)
#define GA_MAX_RUNS 1048576
/// maximum time (in milliseconds) per run, 0 means infinity
#define GA_MAX_TIME_PER_RUN 1200000
/// print GAlib statistics (if non-zero)
#define GA_VERBOSE_MODE 0
/// print partial results on extra file descriptor (not fully implemented yet)
#define GA_PARTIAL_RESULTS 1
/// include trivial circuits to the list
#define GF_INCLUDE_TRIVIAL 0
/// include complex circuits to the list
#define GF_INCLUDE_COMPLEX 0
#endif // CONFIG_H