discrete_optimization.generic_tasks_tools.solvers package

Subpackages

Submodules

discrete_optimization.generic_tasks_tools.solvers.utils module

discrete_optimization.generic_tasks_tools.solvers.utils.is_a_trivial_zero(var: Any) bool[source]

Return whether the (cpsat, optalcp, …) variable is actually a plain 0 integer.

For instance, tells if is_present variables are real variables or not to avoid including them in sum, max, …

Module contents