Class: GimubyConfig
- Inherits:
-
Object
- Object
- GimubyConfig
- Defined in:
- lib/gimuby/config.rb
Overview
Please note that the default are important to let unit test run perfectly
Instance Attribute Summary collapse
-
#lennard_jones_atoms ⇒ Object
Lennard Jones.
-
#optimal_archipelago ⇒ Object
Returns the value of attribute optimal_archipelago.
-
#optimal_population ⇒ Object
Returns the value of attribute optimal_population.
-
#persistence_dir_path ⇒ Object
Returns the value of attribute persistence_dir_path.
-
#problem ⇒ Object
Returns the value of attribute problem.
-
#rastrigin_dimension ⇒ Object
Rastrigin.
-
#tsp_number_points ⇒ Object
TSP.
Instance Method Summary collapse
-
#initialize ⇒ GimubyConfig
constructor
A new instance of GimubyConfig.
Constructor Details
#initialize ⇒ GimubyConfig
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_atoms ⇒ Object
Lennard Jones
31 32 33 |
# File 'lib/gimuby/config.rb', line 31 def lennard_jones_atoms @lennard_jones_atoms end |
#optimal_archipelago ⇒ Object
Returns the value of attribute optimal_archipelago
34 35 36 |
# File 'lib/gimuby/config.rb', line 34 def optimal_archipelago @optimal_archipelago end |
#optimal_population ⇒ Object
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_path ⇒ Object
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 |
#problem ⇒ Object
Returns the value of attribute problem
22 23 24 |
# File 'lib/gimuby/config.rb', line 22 def problem @problem end |
#rastrigin_dimension ⇒ Object
Rastrigin
28 29 30 |
# File 'lib/gimuby/config.rb', line 28 def rastrigin_dimension @rastrigin_dimension end |
#tsp_number_points ⇒ Object
TSP
25 26 27 |
# File 'lib/gimuby/config.rb', line 25 def tsp_number_points @tsp_number_points end |