ECF
1.5
D:
Projekt
ECF_trunk
examples
Knapsack
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
22
struct
solverState
*newSolver(
struct
problem
*p,
int
popsize);
23
24
/* Solver specific functions */
25
26
double
getSelectivePressure(
struct
solverState
*ss);
27
double
getRecombinationRate(
struct
solverState
*ss);
28
double
getMutationRate(
struct
solverState
*ss);
29
30
void
setSelectivePressure(
struct
solverState
*ss,
double
SP);
31
void
setRecombinationRate(
struct
solverState
*ss,
double
Px);
32
void
setMutationRate(
struct
solverState
*ss,
double
Pm);
33
problem
Definition:
flowshop.h:63
solverState
Definition:
sga.c:29
Generated on Wed Aug 3 2022 17:50:42 for ECF by
1.9.4