V3FIT
Main Page
Related Pages
Modules
Modules List
Module Members
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions/Subroutines
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
u
v
w
y
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Data Types List
Data Types List
Data Types
Class Hierarchy
Data Fields
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
y
z
~
Functions/Subroutines
a
b
c
d
e
f
g
i
l
m
n
p
r
s
t
u
v
x
y
~
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
y
z
Files
File List
File Members
All
b
c
g
i
l
m
n
p
t
v
w
Functions/Subroutines
b
c
g
i
m
p
t
v
w
Variables
Enumerations
Macros
•
All
Classes
Namespaces
Files
Functions
Variables
Enumerations
Macros
Pages
LIBSTELL
Sources
Optimization
ga_select.f
1
SUBROUTINE
ga_select(mate,ipick)
2
c#######################################################################
3
c
4
c This routine SELECTs the better of two possible parents for mating.
5
c
6
USE
ga_mod
7
IMPLICIT NONE
8
INTEGER
:: mate, ipick, IFirst, isecond
9
SAVE
10
c
11
IF
(ipick+1.gt.npopsiz)
CALL
ga_shuffle(ipick)
12
ifirst=ipick
13
isecond=ipick+1
14
ipick=ipick+2
15
IF
(fitness(ifirst).gt.fitness(isecond))
THEN
16
mate=ifirst
17
ELSE
18
mate=isecond
19
END IF
20
c WRITE(3,*)'select',ifirst,isecond,fitness(ifirst),fitness(isecond)
21
c
22
END SUBROUTINE
ga_select
Generated on Thu Mar 5 2020 15:49:24 for V3FIT by
1.8.17