From 1631b2b1d0228de9e2721e9d190da1bea739de17 Mon Sep 17 00:00:00 2001 From: VincentAURIAU Date: Sat, 28 Dec 2024 23:18:56 +0100 Subject: [PATCH] FIX&ADD: parametrizations of optimization algorithms --- tests/unit_tests/tools/test_base.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/unit_tests/tools/test_base.py b/tests/unit_tests/tools/test_base.py index 6077374..497c86f 100644 --- a/tests/unit_tests/tools/test_base.py +++ b/tests/unit_tests/tools/test_base.py @@ -23,6 +23,7 @@ def test_mnl_assort_instantiate(): ) opt.solve() + def test_various_params(): """Test specific parametrizations.""" MNLAssortmentOptimizer( @@ -51,6 +52,7 @@ def test_various_params(): outside_option_given=True, ) + def test_capacity_constraints(): """Test that capacity constraints work.""" opt = LatentClassAssortmentOptimizer( @@ -78,7 +80,6 @@ def test_capacity_constraints(): opt.add_minimal_capacity_constraint(itemwise_capacities=[1.1, 2.2, 3.3], minimum_capacity=1.2) - def test_lc_assort_instantiate(): """Test instantiation with both solvers.""" for solv in solvers: