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

Classes

class  _LinearConstraintStorage
 
class  _QuadraticTermStorage
 
class  _UpdateTracker
 
class  _VariableStorage
 
class  HashModelStorage
 

Functions

None _set_sparse_double_vector (Iterable[Tuple[int, float]] id_value_pairs, sparse_containers_pb2.SparseDoubleVectorProto proto)
 
None _set_sparse_bool_vector (Iterable[Tuple[int, bool]] id_value_pairs, sparse_containers_pb2.SparseBoolVectorProto proto)
 
None _variables_to_proto (Iterable[Tuple[int, _VariableStorage]] variables, model_pb2.VariablesProto proto)
 
None _linear_constraints_to_proto (Iterable[Tuple[int, _LinearConstraintStorage]] linear_constraints, model_pb2.LinearConstraintsProto proto)
 

Variables

 _QuadraticKey = model_storage.QuadraticTermIdKey
 

Detailed Description

A minimal pure python implementation of model_storage.ModelStorage.

Function Documentation

◆ _linear_constraints_to_proto()

None ortools.math_opt.python.hash_model_storage._linear_constraints_to_proto ( Iterable[Tuple[int, _LinearConstraintStorage]] linear_constraints,
model_pb2.LinearConstraintsProto proto )
protected
Exports variables to proto.

Definition at line 828 of file hash_model_storage.py.

◆ _set_sparse_bool_vector()

None ortools.math_opt.python.hash_model_storage._set_sparse_bool_vector ( Iterable[Tuple[int, bool]] id_value_pairs,
sparse_containers_pb2.SparseBoolVectorProto proto )
protected
id_value_pairs must be sorted, proto is filled.

Definition at line 797 of file hash_model_storage.py.

◆ _set_sparse_double_vector()

None ortools.math_opt.python.hash_model_storage._set_sparse_double_vector ( Iterable[Tuple[int, float]] id_value_pairs,
sparse_containers_pb2.SparseDoubleVectorProto proto )
protected
id_value_pairs must be sorted, proto is filled.

Definition at line 785 of file hash_model_storage.py.

◆ _variables_to_proto()

None ortools.math_opt.python.hash_model_storage._variables_to_proto ( Iterable[Tuple[int, _VariableStorage]] variables,
model_pb2.VariablesProto proto )
protected
Exports variables to proto.

Definition at line 809 of file hash_model_storage.py.

Variable Documentation

◆ _QuadraticKey

ortools.math_opt.python.hash_model_storage._QuadraticKey = model_storage.QuadraticTermIdKey
protected

Definition at line 24 of file hash_model_storage.py.