Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
ortools.math_opt.python.statistics Namespace Reference

Classes

class  ModelRanges
 
class  Range
 

Functions

Optional[Rangemerge_optional_ranges (Optional[Range] lhs, Optional[Range] rhs)
 
Optional[Rangeabsolute_finite_non_zeros_range (Iterable[float] values)
 
ModelRanges compute_model_ranges (model.Model mdl)
 

Detailed Description

Statistics about MIP/LP models.

Function Documentation

◆ absolute_finite_non_zeros_range()

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.

◆ compute_model_ranges()

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.

◆ merge_optional_ranges()

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.