ortools.math_opt.solvers.gurobi_pb2
@generated by mypy-protobuf. Do not edit manually! isort:skip_file Copyright 2010-2025 Google LLC Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Proto messages specific to Gurobi.
1# -*- coding: utf-8 -*- 2# Generated by the protocol buffer compiler. DO NOT EDIT! 3# NO CHECKED-IN PROTOBUF GENCODE 4# source: ortools/math_opt/solvers/gurobi.proto 5# Protobuf Python Version: 6.33.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 33, 16 1, 17 '', 18 'ortools/math_opt/solvers/gurobi.proto' 19) 20# @@protoc_insertion_point(imports) 21 22_sym_db = _symbol_database.Default() 23 24 25 26 27DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n%ortools/math_opt/solvers/gurobi.proto\x12\x1coperations_research.math_opt\"\xb9\x01\n\x16GurobiInitializerProto\x12L\n\x07isv_key\x18\x01 \x01(\x0b\x32;.operations_research.math_opt.GurobiInitializerProto.ISVKey\x1aQ\n\x06ISVKey\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x18\n\x10\x61pplication_name\x18\x02 \x01(\t\x12\x12\n\nexpiration\x18\x03 \x01(\x05\x12\x0b\n\x03key\x18\x04 \x01(\t\"\x94\x01\n\x15GurobiParametersProto\x12Q\n\nparameters\x18\x01 \x03(\x0b\x32=.operations_research.math_opt.GurobiParametersProto.Parameter\x1a(\n\tParameter\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\tb\x06proto3') 28 29_globals = globals() 30_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) 31_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'ortools.math_opt.solvers.gurobi_pb2', _globals) 32if not _descriptor._USE_C_DESCRIPTORS: 33 DESCRIPTOR._loaded_options = None 34 _globals['_GUROBIINITIALIZERPROTO']._serialized_start=72 35 _globals['_GUROBIINITIALIZERPROTO']._serialized_end=257 36 _globals['_GUROBIINITIALIZERPROTO_ISVKEY']._serialized_start=176 37 _globals['_GUROBIINITIALIZERPROTO_ISVKEY']._serialized_end=257 38 _globals['_GUROBIPARAMETERSPROTO']._serialized_start=260 39 _globals['_GUROBIPARAMETERSPROTO']._serialized_end=408 40 _globals['_GUROBIPARAMETERSPROTO_PARAMETER']._serialized_start=368 41 _globals['_GUROBIPARAMETERSPROTO_PARAMETER']._serialized_end=408 42# @@protoc_insertion_point(module_scope)
Parameters used to initialize the Gurobi solver.
Abstract base class for protocol messages.
Protocol message classes are almost always generated by the protocol compiler. These generated types subclass Message and implement the methods shown below.
Gurobi specific parameters for solving. See https://www.gurobi.com/documentation/9.1/refman/parameters.html for a list of possible parameters.
Example text proto to set the Barrier Iteration Limit:
parameters : [{name: "BarIterLimit" value: "10}]
With Gurobi, the order that parameters are applied can have an impact in rare situations. Parameters are applied in the following order:
- LogToConsole is set from CommonSolveParameters.enable_output.
- Any common parameters not overwritten by GurobiParameters.
- param_values in iteration order (insertion order). We set LogToConsole first because setting other parameters can generate output.
Abstract base class for protocol messages.
Protocol message classes are almost always generated by the protocol compiler. These generated types subclass Message and implement the methods shown below.