ECF 1.5
sga.h
1/* sga.h
2 *
3 * (C) 2018 Carlos M. Fonseca <cmfonsec@dei.uc.pt>
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 3 of the License, or (at
8 * your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful, but
11 * WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18 */
19
20#include "solver.h"
21
22struct solverState *newSolver(struct problem *p, int popsize);
23
24/* Solver specific functions */
25
26double getSelectivePressure(struct solverState *ss);
27double getRecombinationRate(struct solverState *ss);
28double getMutationRate(struct solverState *ss);
29
30void setSelectivePressure(struct solverState *ss, double SP);
31void setRecombinationRate(struct solverState *ss, double Px);
32void setMutationRate(struct solverState *ss, double Pm);
33