ortools.service.v1.mathopt.sparse_containers_pb2
@generated by mypy-protobuf. Do not edit manually! isort:skip_file Data structures used throughout MathOpt to model sparse vectors and matrices.
1# -*- coding: utf-8 -*- 2# Generated by the protocol buffer compiler. DO NOT EDIT! 3# NO CHECKED-IN PROTOBUF GENCODE 4# source: ortools/service/v1/mathopt/sparse_containers.proto 5# Protobuf Python Version: 6.31.1 6"""Generated protocol buffer code.""" 7from google.protobuf import descriptor as _descriptor 8from google.protobuf import descriptor_pool as _descriptor_pool 9from google.protobuf import runtime_version as _runtime_version 10from google.protobuf import symbol_database as _symbol_database 11from google.protobuf.internal import builder as _builder 12_runtime_version.ValidateProtobufRuntimeVersion( 13 _runtime_version.Domain.PUBLIC, 14 6, 15 31, 16 1, 17 '', 18 'ortools/service/v1/mathopt/sparse_containers.proto' 19) 20# @@protoc_insertion_point(imports) 21 22_sym_db = _symbol_database.Default() 23 24 25 26 27DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n2ortools/service/v1/mathopt/sparse_containers.proto\x12&operations_research.service.v1.mathopt\"6\n\x17SparseDoubleVectorProto\x12\x0b\n\x03ids\x18\x01 \x03(\x03\x12\x0e\n\x06values\x18\x02 \x03(\x01\"4\n\x15SparseBoolVectorProto\x12\x0b\n\x03ids\x18\x01 \x03(\x03\x12\x0e\n\x06values\x18\x02 \x03(\x08\"5\n\x16SparseInt32VectorProto\x12\x0b\n\x03ids\x18\x01 \x03(\x03\x12\x0e\n\x06values\x18\x02 \x03(\x05\"`\n\x17SparseVectorFilterProto\x12\x18\n\x10skip_zero_values\x18\x01 \x01(\x08\x12\x15\n\rfilter_by_ids\x18\x02 \x01(\x08\x12\x14\n\x0c\x66iltered_ids\x18\x03 \x03(\x03\"T\n\x17SparseDoubleMatrixProto\x12\x0f\n\x07row_ids\x18\x01 \x03(\x03\x12\x12\n\ncolumn_ids\x18\x02 \x03(\x03\x12\x14\n\x0c\x63oefficients\x18\x03 \x03(\x01\"J\n\x15LinearExpressionProto\x12\x0b\n\x03ids\x18\x01 \x03(\x03\x12\x14\n\x0c\x63oefficients\x18\x02 \x03(\x01\x12\x0e\n\x06offset\x18\x03 \x01(\x01\x42\x42\n%com.google.ortools.service.v1.mathoptP\x01\xaa\x02\x16Google.OrTools.Serviceb\x06proto3') 28 29_globals = globals() 30_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) 31_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'ortools.service.v1.mathopt.sparse_containers_pb2', _globals) 32if not _descriptor._USE_C_DESCRIPTORS: 33 _globals['DESCRIPTOR']._loaded_options = None 34 _globals['DESCRIPTOR']._serialized_options = b'\n%com.google.ortools.service.v1.mathoptP\001\252\002\026Google.OrTools.Service' 35 _globals['_SPARSEDOUBLEVECTORPROTO']._serialized_start=94 36 _globals['_SPARSEDOUBLEVECTORPROTO']._serialized_end=148 37 _globals['_SPARSEBOOLVECTORPROTO']._serialized_start=150 38 _globals['_SPARSEBOOLVECTORPROTO']._serialized_end=202 39 _globals['_SPARSEINT32VECTORPROTO']._serialized_start=204 40 _globals['_SPARSEINT32VECTORPROTO']._serialized_end=257 41 _globals['_SPARSEVECTORFILTERPROTO']._serialized_start=259 42 _globals['_SPARSEVECTORFILTERPROTO']._serialized_end=355 43 _globals['_SPARSEDOUBLEMATRIXPROTO']._serialized_start=357 44 _globals['_SPARSEDOUBLEMATRIXPROTO']._serialized_end=441 45 _globals['_LINEAREXPRESSIONPROTO']._serialized_start=443 46 _globals['_LINEAREXPRESSIONPROTO']._serialized_end=517 47# @@protoc_insertion_point(module_scope)
A sparse representation of a vector of doubles.
A sparse representation of a vector of bools.
A sparse representation of a vector of ints.
This message allows to query/set specific parts of a SparseXxxxVector. The default behavior is not to filter out anything. A common usage is to query only parts of solutions (only non-zero values, and/or just a hand-picked set of variable values).
A sparse representation of a matrix of doubles.
The matrix is stored as triples of row id, column id, and coefficient. These three vectors must be of equal length. For all i, the tuple (row_ids[i], column_ids[i]) should be distinct. Entries must be in row major order.
A sparse representation of a linear expression (a weighted sum of variables, plus a constant offset).