Skip to content

Commit

Permalink
FIX&ADD: parametrizations of optimization algorithms
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentAuriau committed Dec 28, 2024
1 parent 72004a5 commit 1631b2b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/unit_tests/tools/test_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ def test_mnl_assort_instantiate():
)
opt.solve()


def test_various_params():
"""Test specific parametrizations."""
MNLAssortmentOptimizer(
Expand Down Expand Up @@ -51,6 +52,7 @@ def test_various_params():
outside_option_given=True,
)


def test_capacity_constraints():
"""Test that capacity constraints work."""
opt = LatentClassAssortmentOptimizer(
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 1631b2b

Please sign in to comment.