Class: GimubyConfig

Inherits:
Object
  • Object
show all
Defined in:
lib/gimuby/config.rb

Overview

Please note that the default are important to let unit test run perfectly

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeGimubyConfig

Returns a new instance of GimubyConfig.



5
6
7
8
9
10
11
12
13
14
15
16
17
18
# File 'lib/gimuby/config.rb', line 5

def initialize
  @persistence_dir_path = '/tmp'

  # Problem specific configuration

  # TSP
  @tsp_number_points = 100

  # Rastrigin
  @rastrigin_dimension = 20

  # Lennard Jones
  @lennard_jones_atoms = 31
end

Instance Attribute Details

#lennard_jones_atomsObject

Lennard Jones



31
32
33
# File 'lib/gimuby/config.rb', line 31

def lennard_jones_atoms
  @lennard_jones_atoms
end

#optimal_archipelagoObject

Returns the value of attribute optimal_archipelago.



34
35
36
# File 'lib/gimuby/config.rb', line 34

def optimal_archipelago
  @optimal_archipelago
end

#optimal_populationObject

Returns the value of attribute optimal_population.



33
34
35
# File 'lib/gimuby/config.rb', line 33

def optimal_population
  @optimal_population
end

#persistence_dir_pathObject

Returns the value of attribute persistence_dir_path.



20
21
22
# File 'lib/gimuby/config.rb', line 20

def persistence_dir_path
  @persistence_dir_path
end

#problemObject

Returns the value of attribute problem.



22
23
24
# File 'lib/gimuby/config.rb', line 22

def problem
  @problem
end

#rastrigin_dimensionObject

Rastrigin



28
29
30
# File 'lib/gimuby/config.rb', line 28

def rastrigin_dimension
  @rastrigin_dimension
end

#tsp_number_pointsObject

TSP



25
26
27
# File 'lib/gimuby/config.rb', line 25

def tsp_number_points
  @tsp_number_points
end