uo.tests.unit.algorithm.metaheuristic.genetic_algorithm package

Submodules

uo.tests.unit.algorithm.metaheuristic.genetic_algorithm.test_ga_optimizer module

class uo.tests.unit.algorithm.metaheuristic.genetic_algorithm.test_ga_optimizer.TestGaOptimizerGenerational(methodName='runTest')

Bases: TestCase

test_additional_statistics_control_type_error()
test_copy()
test_finish_control_type_error()
test_ga_crossover_support_parameter_type_error()
test_ga_optimizer_init()
test_ga_optimizer_initialized_with_none_random_seed()
test_ga_optimizer_initialized_with_none_solution_template_2()
test_ga_optimizer_initialized_with_valid_parameters()
test_ga_optimizer_initialized_without_ga_crossover_support()
test_population_size_parameter_type_error()
test_random_seed_type_error()
test_solution_template_parameter_type_error()

uo.tests.unit.algorithm.metaheuristic.genetic_algorithm.test_ga_optimizer_properties module

class uo.tests.unit.algorithm.metaheuristic.genetic_algorithm.test_ga_optimizer_properties.TestGaOptimizerGenerationalProperties(methodName='runTest')

Bases: TestCase

setUp()

Hook method for setting up the test fixture before exercising it.

classmethod setUpClass()

Hook method for setting up class fixture before running tests in the class.

tearDown()

Hook method for deconstructing the test fixture after testing it.

classmethod tearDownClass()

Hook method for deconstructing the class fixture after running all tests in the class.

test_create_with_invalid_selection_type_should_raise_value_exception_with_proper_message()
test_elite_count_should_be_equal_as_in_constructor()
test_evaluations_max_should_be_equal_as_in_constructor()
test_iterations_max_should_be_equal_as_in_constructor()
test_name_should_be_ga()
test_problem_dimension_should_be_equal_as_in_constructor()
test_problem_file_path_should_be_equal_as_in_constructor()
test_problem_is_minimization_should_be_equal_as_in_constructor()
test_problem_name_should_be_equal_as_in_constructor()
test_random_seed_should_be_equal_as_in_constructor()
test_seconds_max_should_be_equal_as_in_constructor()

Module contents