17.18. test_solver¶
Test functions of solver.py.
17.18.1. Module Contents¶
17.18.1.1. Functions¶
|
Expect that at least the GLPK solver is found. |
|
Test the string representation of solver interfaces. |
|
Test that the default LP solver name is GLPK. |
|
Test that solver switching is working. |
|
Test that linear coefficients are identifiable in objective. |
|
Test failure of non-linear coefficient identification in reaction. |
|
Test addition and removal of variables and constraints. |
|
Test addition and removal of variables and constraints within context. |
|
Test addition of an absolute expression. |
|
Test fixing present objective as a constraint. |
|
Test fixing present objective as a constraint but as a minimization. |
|
Test functionality to ensure LP feasibility. |
|
Test addition of lexicographic constraints. |
|
Test time limit while optimizing a model. |
-
test_solver.test_interface_str() → None[source]¶ Test the string representation of solver interfaces.
-
test_solver.test_choose_solver(model: Model) → Optional[su.SolverNotFound][source]¶ Test that solver switching is working.
-
test_solver.test_linear_reaction_coefficients(model: Model) → None[source]¶ Test that linear coefficients are identifiable in objective.
-
test_solver.test_fail_non_linear_reaction_coefficients(model: Model) → None[source]¶ Test failure of non-linear coefficient identification in reaction.
-
test_solver.test_add_remove(model: Model) → None[source]¶ Test addition and removal of variables and constraints.
-
test_solver.test_add_remove_in_context(model: Model) → None[source]¶ Test addition and removal of variables and constraints within context.
-
test_solver.test_absolute_expression(model: Model) → None[source]¶ Test addition of an absolute expression.
-
test_solver.test_fix_objective_as_constraint(solver: str, model: Model) → None[source]¶ Test fixing present objective as a constraint.
-
test_solver.test_fix_objective_as_constraint_minimize(model: Model, solver: str) → None[source]¶ Test fixing present objective as a constraint but as a minimization.
-
test_solver.test_add_lp_feasibility(model: Model, solver: str) → None[source]¶ Test functionality to ensure LP feasibility.