Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
|
Classes | |
class | ModelRanges |
class | Range |
Functions | |
Optional[Range] | merge_optional_ranges (Optional[Range] lhs, Optional[Range] rhs) |
Optional[Range] | absolute_finite_non_zeros_range (Iterable[float] values) |
ModelRanges | compute_model_ranges (model.Model mdl) |
Statistics about MIP/LP models.
Optional[Range] ortools.math_opt.python.statistics.absolute_finite_non_zeros_range | ( | Iterable[float] | values | ) |
Returns the range of the absolute values of the finite non-zeros. Args: values: An iterable object of float values. Returns: The range of the absolute values of the finite non-zeros, None if no such value is found.
Definition at line 59 of file statistics.py.
ModelRanges ortools.math_opt.python.statistics.compute_model_ranges | ( | model.Model | mdl | ) |
Returns the ranges of the finite non-zero values in the given model. Args: mdl: The input model. Returns: The ranges of the finite non-zero values in the model.
Definition at line 144 of file statistics.py.
Optional[Range] ortools.math_opt.python.statistics.merge_optional_ranges | ( | Optional[Range] | lhs, |
Optional[Range] | rhs ) |
Merges the two optional ranges. Args: lhs: The left hand side range. rhs: The right hand side range. Returns: A merged range (None if both lhs and rhs are None).
Definition at line 37 of file statistics.py.