uo.tests.unit.algorithm.metaheuristic.variable_neighborhood_search package

Submodules

uo.tests.unit.algorithm.metaheuristic.variable_neighborhood_search.test_vns_optimizer module

class uo.tests.unit.algorithm.metaheuristic.variable_neighborhood_search.test_vns_optimizer.TestVnsOptimizer(methodName='runTest')

Bases: TestCase

test_additional_statistics_control_type_error()
test_copy()
test_finish_control_type_error()
test_k_min_parameter_type_error()
test_random_seed_type_error()
test_repr_method()
test_solution_template_parameter_type_error()
test_str()
test_string_rep()
test_vns_ls_support_parameter_type_error()
test_vns_optimizer_init()
test_vns_optimizer_initialized_with_none_random_seed()
test_vns_optimizer_initialized_with_none_solution_template_2()
test_vns_optimizer_initialized_with_valid_parameters()
test_vns_optimizer_initialized_without_vns_ls_support()
test_vns_optimizer_initialized_without_vns_shaking_support()
test_vns_shaking_support_parameter_type_error()

uo.tests.unit.algorithm.metaheuristic.variable_neighborhood_search.test_vns_optmizer_properties module

class uo.tests.unit.algorithm.metaheuristic.variable_neighborhood_search.test_vns_optmizer_properties.TestVnsOptimizerProperties(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_problem_type_should_raise_value_exception_with_proper_message()
test_evaluations_max_should_be_equal_as_in_constructor()
test_iterations_max_should_be_equal_as_in_constructor()
test_k_max_should_be_equal_as_in_constructor()
test_k_min_should_be_equal_as_in_constructor()
test_name_should_be_vns()
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()