uo.tests.unit.algorithm package
Subpackages
- uo.tests.unit.algorithm.exact package
- uo.tests.unit.algorithm.metaheuristic package
- Subpackages
- Submodules
- uo.tests.unit.algorithm.metaheuristic.test_additional_statistics_control module
TestAddToAllSolutionCodesIfRequired
TestAddToAllSolutionCodesIfRequired.test_all_solution_codes_empty2()
TestAddToAllSolutionCodesIfRequired.test_all_solution_codes_not_set()
TestAddToAllSolutionCodesIfRequired.test_keep_all_solution_codes_false()
TestAddToAllSolutionCodesIfRequired.test_keep_all_solution_codes_true()
TestAddToAllSolutionCodesIfRequired.test_representation_already_in_all_solution_codes()
TestAddToAllSolutionCodesIfRequired.test_representation_not_string()
TestAddToMoreLocalOptimaIfRequired
TestAddToMoreLocalOptimaIfRequired.test_add_to_more_local_optima_empty_structure()
TestAddToMoreLocalOptimaIfRequired.test_add_to_more_local_optima_full_structure_new_solution_better()
TestAddToMoreLocalOptimaIfRequired.test_add_to_more_local_optima_keep_more_local_optima_false()
TestAddToMoreLocalOptimaIfRequired.test_add_to_more_local_optima_keep_more_local_optima_false2()
TestAddToMoreLocalOptimaIfRequired.test_add_to_more_local_optima_not_full_structure()
TestAddToMoreLocalOptimaIfRequired.test_add_to_more_local_optima_solution_to_add_rep_not_string()
TestAdditionalStatisticsControl
TestAdditionalStatisticsControl.test_add_to_all_solution_codes_if_required()
TestAdditionalStatisticsControl.test_add_to_more_local_optima_existing_solution()
TestAdditionalStatisticsControl.test_add_to_more_local_optima_new_solution()
TestAdditionalStatisticsControl.test_invalid_keep_parameter_type()
TestAdditionalStatisticsControl.test_invalid_keep_property_value()
TestAdditionalStatisticsControl.test_invalid_max_local_optima_parameter_type()
TestAdditionalStatisticsControl.test_valid_keep_property_update()
TestAdditionalStatisticsControl.test_valid_parameters_initialization()
TestMaxLocalOptima
TestMaxLocalOptima.test_max_local_optima_can_be_zero()
TestMaxLocalOptima.test_max_local_optima_can_not_be_negative()
TestMaxLocalOptima.test_raises_type_error_if_max_local_optima_not_integer()
TestMaxLocalOptima.test_returns_integer_value()
TestMaxLocalOptima.test_returns_max_local_optima_value2()
TestMaxLocalOptima.test_returns_maximum_number_of_local_optima()
Test__DetermineKeepHelper__
Test__DetermineKeepHelper__.test_determine_keep_helper_criteria_checked()
Test__DetermineKeepHelper__.test_determine_keep_helper_flags_default()
Test__DetermineKeepHelper__.test_determine_keep_helper_invalid_value()
Test__DetermineKeepHelper__.test_determine_keep_helper_keep_not_string()
Test__DetermineKeepHelper__.test_determine_keep_helper_max_local_optima_not_integer()
Test__DetermineKeepHelper__.test_determine_keep_helper_parse_keep_parameter3()
- uo.tests.unit.algorithm.metaheuristic.test_additional_statistics_control_2 module
TestAddToAllSolutionCodesIfRequired
TestAddToAllSolutionCodesIfRequired.test_all_solution_codes_not_set()
TestAddToAllSolutionCodesIfRequired.test_keep_all_solution_codes_false()
TestAddToAllSolutionCodesIfRequired.test_keep_all_solution_codes_not_boolean()
TestAddToAllSolutionCodesIfRequired.test_keep_all_solution_codes_true()
TestAddToAllSolutionCodesIfRequired.test_representation_already_in_all_solution_codes()
TestAddToAllSolutionCodesIfRequired.test_representation_empty_string()
TestAddToAllSolutionCodesIfRequired.test_representation_non_empty_string()
TestAddToAllSolutionCodesIfRequired.test_representation_not_string()
TestAddToMoreLocalOptimaIfRequired
TestAddToMoreLocalOptimaIfRequired.test_add_new_solution_to_local_optima_structure()
TestAddToMoreLocalOptimaIfRequired.test_raise_type_error_if_best_solution_rep_not_string()
TestAddToMoreLocalOptimaIfRequired.test_raise_type_error_if_solution_to_add_fitness_not_int_float_list()
TestAddToMoreLocalOptimaIfRequired.test_raise_type_error_if_solution_to_add_rep_not_string()
TestAddToMoreLocalOptimaIfRequired.test_remove_random_local_optima_when_max_reached()
TestAddToMoreLocalOptimaIfRequired.test_return_true_when_new_solution_added()
TestAllSolutionCodes
TestAllSolutionCodes.test_set_all_solution_codes_with_non_set_value()
TestAllSolutionCodes.test_set_all_solution_codes_with_none_value()
TestAllSolutionCodes.test_set_duplicate_solution_codes()
TestAllSolutionCodes.test_set_empty_solution_codes()
TestAllSolutionCodes.test_set_non_empty_solution_codes()
TestKeepAllSolutionCodes
TestKeepAllSolutionCodes.test_raises_attribute_error_if_keep_all_solution_codes_property_is_not_boolean()
TestKeepAllSolutionCodes.test_raises_type_error_if_representation_parameter_is_not_string()
TestKeepAllSolutionCodes.test_returns_boolean_indicating_if_all_solution_codes_should_be_kept()
TestKeepAllSolutionCodes.test_returns_true_if_all_solution_codes_should_be_kept()
TestKeepMoreLocalOptima
TestKeepMoreLocalOptima.test_raises_type_error_if_best_solution_rep_is_not_a_string()
TestKeepMoreLocalOptima.test_raises_type_error_if_solution_to_add_fitness_is_not_a_float_or_float_list()
TestKeepMoreLocalOptima.test_raises_type_error_if_solution_to_add_rep_is_not_a_string()
TestKeepMoreLocalOptima.test_returns_false_if_keep_more_local_optima_is_false()
TestKeepMoreLocalOptima.test_returns_false_if_solution_to_add_rep_is_already_in_more_local_optima()
TestMaxLocalOptima
TestMoreLocalOptima
Test__Init_22
Test__Init_22.test_default_values()
Test__Init_22.test_empty_string_keep()
Test__Init_22.test_invalid_keep()
Test__Init_22.test_keep_all_solution_code_and_more_local_optima()
Test__Init_22.test_keep_more_local_optima()
Test__Init_22.test_keep_not_string()
Test__Init_22.test_large_value_for_max_local_optima()
Test__Init_22.test_max_local_optima_less_than_zero()
Test__Init_22.test_max_local_optima_not_integer()
Test__Init_22.test_max_local_optima_zero()
Test__Init_22.test_maximum_max_local_optima_count()
Test__Init_22.test_minimum_max_local_optima_count()
Test__Init_22.test_multiple_valid_keep()
Test__Init_22.test_small_value_for_max_local_optima()
Test__Init_22.test_valid_and_invalid_values_for_keep()
Test__Init_22.test_valid_input_values()
Test__Init_22.test_valid_string_keep()
Test__Init_22.test_whitespace_keep()
Test__Str__P1
- uo.tests.unit.algorithm.metaheuristic.test_finish_control module
TestFinishControl
TestFinishControl.test_change_criteria()
TestFinishControl.test_copy()
TestFinishControl.test_copy_instance()
TestFinishControl.test_duplicate_criteria()
TestFinishControl.test_invalid_criteria()
TestFinishControl.test_invalid_parameters()
TestFinishControl.test_is_finished_outside_criteria()
TestFinishControl.test_is_finished_within_criteria()
TestFinishControl.test_no_criteria_specified()
TestFinishControl.test_single_criteria()
TestFinishControl.test_string_representation()
TestFinishControl.test_valid_parameters()
- uo.tests.unit.algorithm.metaheuristic.test_metaheuristic module
TestAdditionalStatisticsControl
TestAdditionalStatisticsControl.test_returns_additional_statistics_control()
TestAdditionalStatisticsControl.test_returns_instance_of_additional_statistics_control()
TestAdditionalStatisticsControl.test_returns_same_instance_as_passed_in_constructor()
TestAdditionalStatisticsControl.test_returns_unmodified_instance2()
TestFinishControl
TestMainLoopIteration
TestMetaheuristic2
TestMetaheuristic2.test_copy_method()
TestMetaheuristic2.test_elapsed_seconds_method()
TestMetaheuristic2.test_invalid_additional_statistics_control()
TestMetaheuristic2.test_invalid_finish_control_parameter()
TestMetaheuristic2.test_invalid_name_parameter()
TestMetaheuristic2.test_invalid_output_control()
TestMetaheuristic2.test_invalid_problem_parameter()
TestMetaheuristic2.test_invalid_random_seed()
TestMetaheuristic2.test_main_loop_finished()
TestMetaheuristic2.test_main_loop_method()
TestMetaheuristic2.test_optimize_method()
TestMetaheuristic2.test_optimize_random_seed()
TestMetaheuristic2.test_string_rep_method()
TestMetaheuristicProperties
TestMetaheuristicProperties.setUp()
TestMetaheuristicProperties.setUpClass()
TestMetaheuristicProperties.tearDown()
TestMetaheuristicProperties.tearDownClass()
TestMetaheuristicProperties.test_evaluations_max_should_be_equal_as_in_constructor()
TestMetaheuristicProperties.test_iterations_max_should_be_equal_as_in_constructor()
TestMetaheuristicProperties.test_name_should_be_equal_as_in_constructor()
TestMetaheuristicProperties.test_problem_is_minimization_should_be_equal_as_in_constructor()
TestMetaheuristicProperties.test_problem_name_should_be_equal_as_in_constructor()
TestMetaheuristicProperties.test_random_seed_should_be_equal_as_in_constructor()
TestMetaheuristicProperties.test_seconds_max_should_be_equal_as_in_constructor()
TestRandomSeed
TestStringRep
- uo.tests.unit.algorithm.metaheuristic.test_single_solution_metaheuristic module
TestCurrentSolution
TestSingleSolutionMetaheuristic
TestSingleSolutionMetaheuristic.test_copy()
TestSingleSolutionMetaheuristic.test_different_solution_types()
TestSingleSolutionMetaheuristic.test_formatted_representation()
TestSingleSolutionMetaheuristic.test_invalid_parameters_initialization()
TestSingleSolutionMetaheuristic.test_set_invalid_current_solution()
TestSingleSolutionMetaheuristic.test_solution_template_not_solution()
TestSingleSolutionMetaheuristic.test_string_representation()
TestSingleSolutionMetaheuristic.test_valid_parameters_initialization()
Test__Str__2
- Module contents
Submodules
uo.tests.unit.algorithm.test_algorithm module
- class uo.tests.unit.algorithm.test_algorithm.TestAlgorithm(methodName='runTest')
Bases:
TestCase
- test_algorithm_copy()
- test_algorithm_initialization()
- test_algorithm_properties()
- test_algorithm_string_representation()
- test_problem_not_defined()
- class uo.tests.unit.algorithm.test_algorithm.TestAlgorithmProperties(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_name_should_be_as_it_is_in_constructor()
- test_problem_dimension_should_be_same_that_it_is_in_constructor()
- test_problem_file_path_should_be_same_that_it_is_in_constructor()
- test_problem_is_minimization_should_be_same_that_it_is_in_constructor()
- test_problem_name_should_be_same_that_it_is_in_constructor()
uo.tests.unit.algorithm.test_optimizer module
- class uo.tests.unit.algorithm.test_optimizer.Test__Optimizer__(methodName='runTest')
Bases:
TestCase
- test_best_solution_set_to_none()
- test_copy_method()
- test_empty_name_parameter()
- test_execution_variables_set_to_none()
- test_name_parameter_not_string()
- test_none_output_control_parameter()
- test_none_problem_parameter()
- test_other_instance_variables_none_or_default()
- test_output_control_parameter_not_instance_of_OutputControl()
- test_problem_parameter_not_instance_of_Problem()
- test_retrieve_optimizer_name_successfully()
- test_string_rep_method()
- test_valid_instance_variables9()
- test_valid_parameters()
- test_valid_parameters2()
uo.tests.unit.algorithm.test_output_control module
- class uo.tests.unit.algorithm.test_output_control.TestOutputControl(methodName='runTest')
Bases:
TestCase
- test_fields_type_error()
- test_initialized_with_custom_parameters()
- test_initialized_with_default_parameters()
- test_invalid_moment_value_error()
- test_moments_type_error()
- test_update_fields_attribute()
- test_update_output_file_attribute()
- class uo.tests.unit.algorithm.test_output_control.TestOutputControlProperties(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_is_output_file_should_be_same_that_it_is_set()
- test_output_file_should_be_as_it_is_in_constructor()