opt.tests.integration.opt.single_objective.comb.ones_count_problem package
Submodules
opt.tests.integration.opt.single_objective.comb.ones_count_problem.test_ones_count_max_problem_ga_bit_array_solution module
- class opt.tests.integration.opt.single_objective.comb.ones_count_problem.test_ones_count_max_problem_ga_bit_array_solution.TestMaxOnesCountProblemGaBitArraySolution(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_best_solution_after_optimization_should_be_optimal()
- test_best_solution_after_optimization_should_have_optimal_fitness()
- test_best_solution_after_optimization_should_have_optimal_objective_value()
- test_returned_best_solution_is_equal_to_optimizer_best_solution()
opt.tests.integration.opt.single_objective.comb.ones_count_problem.test_ones_count_max_problem_ilp_linopy module
- class opt.tests.integration.opt.single_objective.comb.ones_count_problem.test_ones_count_max_problem_ilp_linopy.TestMaxOnesCountProblemIlpLinopy(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_best_solution_after_optimization_should_be_optimal()
- test_default_parameters()
- test_different_types()
- test_invalid_output_control()
- test_invalid_problem()
- test_same_types_different_classes()
- test_valid_parameters()
- class opt.tests.integration.opt.single_objective.comb.ones_count_problem.test_ones_count_max_problem_ilp_linopy.TestOptimize(methodName='runTest')
Bases:
TestCase
- test_invalid_instance_type_error()
- test_model_instance_and_variables_added()
- test_model_solved_and_best_solution_set()
- test_objective_function_set()
- test_valid_instance_no_errors()
- class opt.tests.integration.opt.single_objective.comb.ones_count_problem.test_ones_count_max_problem_ilp_linopy.TestStringRep(methodName='runTest')
Bases:
TestCase
- test_contains_class_name_and_properties()
- test_properly_formatted_with_indentation_and_grouping_symbols()
- test_returns_string_representation()
opt.tests.integration.opt.single_objective.comb.ones_count_problem.test_ones_count_max_problem_te_bit_array_solution module
- class opt.tests.integration.opt.single_objective.comb.ones_count_problem.test_ones_count_max_problem_te_bit_array_solution.TestMaxOnesCountProblemTeBitArraySolution(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_best_solution_after_optimization_should_be_optimal()
- test_best_solution_after_optimization_should_be_optimal2()
- test_best_solution_after_optimization_should_be_optimal3()
- test_best_solution_after_optimization_should_be_optimal4()
- test_best_solution_after_optimization_should_have_optimal_fitness()
- test_best_solution_after_optimization_should_have_optimal_fitness2()
- test_best_solution_after_optimization_should_have_optimal_objective_value()
- test_best_solution_after_optimization_should_have_optimal_objective_value2()
opt.tests.integration.opt.single_objective.comb.ones_count_problem.test_ones_count_max_problem_vns_bit_array_solution_lsbi module
- class opt.tests.integration.opt.single_objective.comb.ones_count_problem.test_ones_count_max_problem_vns_bit_array_solution_lsbi.TestMaxOnesCountProblemVnsBitArraySolutionLsbi(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_best_solution_after_optimization_should_be_optimal()
- test_best_solution_after_optimization_should_be_optimal_2()
- test_best_solution_after_optimization_should_have_optimal_fitness()
- test_best_solution_after_optimization_should_have_optimal_objective_value()
opt.tests.integration.opt.single_objective.comb.ones_count_problem.test_ones_count_max_problem_vns_bit_array_solution_lsfi module
- class opt.tests.integration.opt.single_objective.comb.ones_count_problem.test_ones_count_max_problem_vns_bit_array_solution_lsfi.TestMaxOnesCountProblemVnsBitArraySolutionLsbi(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_best_solution_after_optimization_should_be_all_optimal()
- test_best_solution_after_optimization_should_be_optimal_2()
- test_best_solution_after_optimization_should_have_optimal_fitness()
- test_best_solution_after_optimization_should_have_optimal_objective_value()
opt.tests.integration.opt.single_objective.comb.ones_count_problem.test_ones_count_max_problem_vns_int_solution_lsbi module
- class opt.tests.integration.opt.single_objective.comb.ones_count_problem.test_ones_count_max_problem_vns_int_solution_lsbi.TestMaxOnesCountProblemVnsIntSolutionLsbi(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_best_solution_after_optimization_should_be_all_optimal()
- test_best_solution_after_optimization_should_have_optimal_fitness()
opt.tests.integration.opt.single_objective.comb.ones_count_problem.test_ones_count_max_problem_vns_int_solution_lsfi module
- class opt.tests.integration.opt.single_objective.comb.ones_count_problem.test_ones_count_max_problem_vns_int_solution_lsfi.TestMaxOnesCountProblemVnsIntSolutionLsfi(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_best_solution_after_optimization_should_be_all_optimal()
- test_best_solution_after_optimization_should_have_optimal_fitness()