eckity.creators.ga_creators.int_vector_creator

 1from eckity.creators.ga_creators.simple_vector_creator import GAVectorCreator
 2from eckity.genetic_encodings.ga.int_vector import IntVector
 3
 4
 5class GAIntVectorCreator(GAVectorCreator):
 6	def __init__(self,
 7				 length=1,
 8				 gene_creator=None,
 9				 bounds=(0, 1),
10				 events=None):
11		super().__init__(length=length,
12						 gene_creator=gene_creator,
13						 bounds=bounds,
14						 vector_type=IntVector,
15						 events=events)
 6class GAIntVectorCreator(GAVectorCreator):
 7	def __init__(self,
 8				 length=1,
 9				 gene_creator=None,
10				 bounds=(0, 1),
11				 events=None):
12		super().__init__(length=length,
13						 gene_creator=gene_creator,
14						 bounds=bounds,
15						 vector_type=IntVector,
16						 events=events)
GAIntVectorCreator(length=1, gene_creator=None, bounds=(0, 1), events=None)
 7	def __init__(self,
 8				 length=1,
 9				 gene_creator=None,
10				 bounds=(0, 1),
11				 events=None):
12		super().__init__(length=length,
13						 gene_creator=gene_creator,
14						 bounds=bounds,
15						 vector_type=IntVector,
16						 events=events)