opt.tests.unit.single_objective.comb package
Subpackages
- opt.tests.unit.single_objective.comb.minimum_multi_cut_problem package
- Submodules
- opt.tests.unit.single_objective.comb.minimum_multi_cut_problem.test_minimum_multi_cut_problem module
TestMinMultiCutProblem
TestMinMultiCutProblem.test_copy_creates_new_instance_with_same_properties()
TestMinMultiCutProblem.test_from_graph_and_st_pairs_creates_new_instance_with_specified_parameteres()
TestMinMultiCutProblem.test_instantiation_without_st_parameter()
TestMinMultiCutProblem.test_new_instance_with_graph_and_st_pairs_sets_both_properties()
TestMinMultiCutProblem.test_string_representation_includes_st_pairs()
- opt.tests.unit.single_objective.comb.minimum_multi_cut_problem.test_minimum_multi_cut_problem_binary_bit_array_solution module
TestArgument
TestInitFrom
TestMinMultiCutProblemBitArraySolution
TestMinMultiCutProblemBitArraySolution.test_argument_method_returns_correct_string_representation()
TestMinMultiCutProblemBitArraySolution.test_calculate_quality_directly_method_with_all_bits_True()
TestMinMultiCutProblemBitArraySolution.test_copy_method_returns_deep_copy()
TestMinMultiCutProblemBitArraySolution.test_init_from_method_with_bitarray_and_problem()
TestMinMultiCutProblemBitArraySolution.test_init_random_method_with_problem()
TestMinMultiCutProblemBitArraySolution.test_initialize_instance_with_default_parameters()
TestMinMultiCutProblemBitArraySolution.test_native_representation_method_with_string_representation()
TestMinMultiCutProblemBitArraySolution.test_representation_distance_directly_method_with_string_representations()
TestMinMultiCutProblemBitArraySolution.test_representation_distance_directly_raises_value_error()
TestNativeRepresentation
TestNativeRepresentation.test_invalid_characters_representation()
TestNativeRepresentation.test_length_1_representation()
TestNativeRepresentation.test_non_string_representation()
TestNativeRepresentation.test_same_binary_representation()
TestNativeRepresentation.test_valid_binary_string_representation()
TestRepresentationDistanceDirectly
TestRepresentationDistanceDirectly.test_completely_different_solutions()
TestRepresentationDistanceDirectly.test_different_lengths()
TestRepresentationDistanceDirectly.test_different_types()
TestRepresentationDistanceDirectly.test_empty_solutions()
TestRepresentationDistanceDirectly.test_identical_solutions()
TestRepresentationDistanceDirectly.test_one_different_bit()
TestStringRep
TestStringRep.test_default_values()
TestStringRep.test_delimiter_is_none()
TestStringRep.test_group_start_is_none()
TestStringRep.test_includes_string_representation()
TestStringRep.test_includes_super_class_representation()
TestStringRep.test_indentation_is_none()
TestStringRep.test_optional_parameters()
TestStringRep.test_returns_string_representation()
- opt.tests.unit.single_objective.comb.minimum_multi_cut_problem.test_minimum_multi_cut_problem_binary_bit_array_solution_ga_support module
- opt.tests.unit.single_objective.comb.minimum_multi_cut_problem.test_minimum_multi_cut_problem_binary_bit_array_solution_vns_support module
TestMinMultiCutProblemBitArraySolutionVnsSupport
TestMinMultiCutProblemBitArraySolutionVnsSupport.test_local_search_best_improvement_returns_solution_with_lower_fitness_value11()
TestMinMultiCutProblemBitArraySolutionVnsSupport.test_local_search_best_improvement_returns_solution_with_lower_fitness_value6()
TestMinMultiCutProblemBitArraySolutionVnsSupport.test_shaking_modifies_solution_representation_when_number_of_ones_is_less_than_problem_dimension8()
TestMinMultiCutProblemBitArraySolutionVnsSupport.test_shaking_returns_true_when_randomization_is_successful()
- Module contents
- opt.tests.unit.single_objective.comb.set_covering_problem package
- Submodules
- opt.tests.unit.single_objective.comb.set_covering_problem.test_set_covering_problem module
TestMinSetCoverProblem
TestMinSetCoverProblem.test_copy_creates_new_instance_with_same_properties()
TestMinSetCoverProblem.test_copy_creates_new_instance_with_same_properties_but_not_same_object()
TestMinSetCoverProblem.test_correct_dimension_value()
TestMinSetCoverProblem.test_instantiation_with_non_set_universe_raises_type_error()
TestMinSetCoverProblem.test_new_instance_with_universe_and_subsets_set_both_properties()
TestMinSetCoverProblem.test_string_representation_includes_universe_and_subset_property()
- Module contents
- opt.tests.unit.single_objective.comb.ones_count_max_problem package
- Submodules
- opt.tests.unit.single_objective.comb.ones_count_max_problem.test_ones_count_problem module
TestFromDimension
TestMaxOnesCountProblem
TestMaxOnesCountProblem.test_copy_creates_new_instance_with_same_properties()
TestMaxOnesCountProblem.test_copy_creates_new_instance_with_same_properties_but_not_same_object()
TestMaxOnesCountProblem.test_from_dimension_creates_new_instance_with_specified_dimension()
TestMaxOnesCountProblem.test_instantiation_from_input_file_with_missing_dimension_value_raises_value_error()
TestMaxOnesCountProblem.test_instantiation_from_input_file_with_specified_format()
TestMaxOnesCountProblem.test_instantiation_from_input_file_with_unsupported_format_raises_value_error()
TestMaxOnesCountProblem.test_instantiation_with_negative_dimension_raises_value_error()
TestMaxOnesCountProblem.test_instantiation_with_non_integer_dimension_raises_type_error()
TestMaxOnesCountProblem.test_instantiation_with_zero_dimension_raises_value_error()
TestMaxOnesCountProblem.test_instantiation_without_dimension_parameter()
TestMaxOnesCountProblem.test_new_instance_with_dimension_sets_dimension_property()
TestMaxOnesCountProblem.test_string_representation_includes_dimension_property()
Test__LoadFromFile__
- opt.tests.unit.single_objective.comb.ones_count_max_problem.test_ones_count_problem_binary_bit_array_solution module
TestArgument
TestCalculateQualityDirectly
TestCalculateQualityDirectly.test_all_bits_set_to_0()
TestCalculateQualityDirectly.test_all_bits_set_to_1()
TestCalculateQualityDirectly.test_bitarray_length_0()
TestCalculateQualityDirectly.test_non_bitarray_representation()
TestCalculateQualityDirectly.test_none_representation()
TestCalculateQualityDirectly.test_random_bit_string()
TestInitFrom
TestInitRandom
TestMaxOnesCountProblemBitArraySolution
TestMaxOnesCountProblemBitArraySolution.test_argument_method_returns_correct_string_representation()
TestMaxOnesCountProblemBitArraySolution.test_calculate_quality_directly_method_with_all_bits_false()
TestMaxOnesCountProblemBitArraySolution.test_calculate_quality_directly_method_with_all_bits_true()
TestMaxOnesCountProblemBitArraySolution.test_calculate_quality_directly_method_with_bitarray_and_problem()
TestMaxOnesCountProblemBitArraySolution.test_copy_method_returns_deep_copy()
TestMaxOnesCountProblemBitArraySolution.test_init_from_method_with_bitarray_and_problem()
TestMaxOnesCountProblemBitArraySolution.test_init_random_method_with_problem()
TestMaxOnesCountProblemBitArraySolution.test_initialize_instance_with_default_parameters()
TestMaxOnesCountProblemBitArraySolution.test_native_representation_method_with_string_representation()
TestMaxOnesCountProblemBitArraySolution.test_representation_distance_directly_method_with_string_representations()
TestMaxOnesCountProblemBitArraySolution.test_representation_distance_directly_raises_value_error()
TestNativeRepresentation
TestNativeRepresentation.test_invalid_characters_representation()
TestNativeRepresentation.test_length_1_representation()
TestNativeRepresentation.test_non_string_representation()
TestNativeRepresentation.test_same_binary_representation()
TestNativeRepresentation.test_valid_binary_string_representation()
TestRepresentationDistanceDirectly
TestRepresentationDistanceDirectly.test_completely_different_solutions()
TestRepresentationDistanceDirectly.test_different_lengths()
TestRepresentationDistanceDirectly.test_different_types()
TestRepresentationDistanceDirectly.test_empty_solutions()
TestRepresentationDistanceDirectly.test_identical_solutions()
TestRepresentationDistanceDirectly.test_one_different_bit()
TestStringRep
TestStringRep.test_default_values()
TestStringRep.test_delimiter_is_none()
TestStringRep.test_group_start_is_none()
TestStringRep.test_includes_string_representation()
TestStringRep.test_includes_super_class_representation()
TestStringRep.test_indentation_is_none()
TestStringRep.test_optional_parameters()
TestStringRep.test_returns_string_representation()
- opt.tests.unit.single_objective.comb.ones_count_max_problem.test_ones_count_problem_binary_bit_array_solution_te_support module
- opt.tests.unit.single_objective.comb.ones_count_max_problem.test_ones_count_problem_binary_bit_array_solution_vns_support module
TestMaxOnesCountProblemBitArraySolutionVnsSupport
TestMaxOnesCountProblemBitArraySolutionVnsSupport.test_local_search_best_improvement_returns_solution_with_higher_fitness_value11()
TestMaxOnesCountProblemBitArraySolutionVnsSupport.test_local_search_best_improvement_returns_solution_with_higher_fitness_value6()
TestMaxOnesCountProblemBitArraySolutionVnsSupport.test_local_search_first_improvement_returns_solution_with_higher_fitness_value10()
TestMaxOnesCountProblemBitArraySolutionVnsSupport.test_local_search_first_improvement_returns_solution_with_higher_fitness_value4()
TestMaxOnesCountProblemBitArraySolutionVnsSupport.test_shaking_modifies_solution_representation_when_number_of_ones_is_less_than_problem_dimension8()
TestMaxOnesCountProblemBitArraySolutionVnsSupport.test_shaking_returns_true_when_randomization_is_successful()
- opt.tests.unit.single_objective.comb.ones_count_max_problem.test_ones_count_problem_binary_int_solution module
TestMaxOnesCountProblemIntSolution
TestMaxOnesCountProblemIntSolution.test_calculate_quality_directly()
TestMaxOnesCountProblemIntSolution.test_create_new_instance_with_custom_parameters()
TestMaxOnesCountProblemIntSolution.test_create_new_instance_with_default_parameters()
TestMaxOnesCountProblemIntSolution.test_create_new_instance_with_large_dimension()
TestMaxOnesCountProblemIntSolution.test_create_new_instance_with_negative_random_seed()
TestMaxOnesCountProblemIntSolution.test_create_new_instance_with_zero_dimension()
TestMaxOnesCountProblemIntSolution.test_initialize_solution_from_representation()
TestMaxOnesCountProblemIntSolution.test_initialize_solution_randomly()
TestMaxOnesCountProblemIntSolution.test_initialize_solution_randomly_with_none_dimension()
TestMaxOnesCountProblemIntSolution.test_obtain_native_representation_from_string_representation()
TestNativeRepresentation
TestNativeRepresentation.test_obtain_int_representation()
TestNativeRepresentation.test_string_representation_contains_binary_digits()
TestNativeRepresentation.test_string_representation_is_double_zero()
TestNativeRepresentation.test_string_representation_is_one()
TestNativeRepresentation.test_string_representation_is_zero()
TestNativeRepresentation.test_string_representation_not_empty()
TestRepresentationDistanceDirectly
TestRepresentationDistanceDirectly.test_different_lengths()
TestRepresentationDistanceDirectly.test_different_solutions()
TestRepresentationDistanceDirectly.test_identical_solutions()
TestRepresentationDistanceDirectly.test_non_binary_characters()
TestRepresentationDistanceDirectly.test_one_bit_difference()
TestStringRep
- opt.tests.unit.single_objective.comb.ones_count_max_problem.test_ones_count_problem_ilp_linopy module
TestMaxOnesCountProblemIntegerLinearProgrammingSolverConstructionParameters
TestMaxOnesCountProblemIntegerLinearProgrammingSolverConstructionParameters.test_default_parameters_no_exceptions()
TestMaxOnesCountProblemIntegerLinearProgrammingSolverConstructionParameters.test_invalid_output_control_type()
TestMaxOnesCountProblemIntegerLinearProgrammingSolverConstructionParameters.test_invalid_problem_type()
TestMaxOnesCountProblemIntegerLinearProgrammingSolverConstructionParameters.test_valid_parameters_no_exceptions()
- Module contents