Google OR-Tools v9.15
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
LinearSolver.pb.cs
Go to the documentation of this file.
1// <auto-generated>
2// Generated by the protocol buffer compiler. DO NOT EDIT!
3// source: ortools/linear_solver/linear_solver.proto
4// </auto-generated>
5#pragma warning disable 1591, 0612, 3021, 8981
6#region Designer generated code
7
8using pb = global::Google.Protobuf;
9using pbc = global::Google.Protobuf.Collections;
10using pbr = global::Google.Protobuf.Reflection;
11using scg = global::System.Collections.Generic;
13
15 public static partial class LinearSolverReflection {
16
17 #region Descriptor
19 public static pbr::FileDescriptor Descriptor {
20 get { return descriptor; }
21 }
22 private static pbr::FileDescriptor descriptor;
23
24 static LinearSolverReflection() {
25 byte[] descriptorData = global::System.Convert.FromBase64String(
26 string.Concat(
27 "CilvcnRvb2xzL2xpbmVhcl9zb2x2ZXIvbGluZWFyX3NvbHZlci5wcm90bxIT",
28 "b3BlcmF0aW9uc19yZXNlYXJjaBojb3J0b29scy91dGlsL29wdGlvbmFsX2Jv",
29 "b2xlYW4ucHJvdG8isgEKD01QVmFyaWFibGVQcm90bxIZCgtsb3dlcl9ib3Vu",
30 "ZBgBIAEoAToELWluZhIYCgt1cHBlcl9ib3VuZBgCIAEoAToDaW5mEiAKFW9i",
31 "amVjdGl2ZV9jb2VmZmljaWVudBgDIAEoAToBMBIZCgppc19pbnRlZ2VyGAQg",
32 "ASgIOgVmYWxzZRIOCgRuYW1lGAUgASgJOgASHQoSYnJhbmNoaW5nX3ByaW9y",
33 "aXR5GAYgASgFOgEwIqABChFNUENvbnN0cmFpbnRQcm90bxIVCgl2YXJfaW5k",
34 "ZXgYBiADKAVCAhABEhcKC2NvZWZmaWNpZW50GAcgAygBQgIQARIZCgtsb3dl",
35 "cl9ib3VuZBgCIAEoAToELWluZhIYCgt1cHBlcl9ib3VuZBgDIAEoAToDaW5m",
36 "Eg4KBG5hbWUYBCABKAk6ABIWCgdpc19sYXp5GAUgASgIOgVmYWxzZSL3BAoY",
37 "TVBHZW5lcmFsQ29uc3RyYWludFByb3RvEg4KBG5hbWUYASABKAk6ABJKChRp",
38 "bmRpY2F0b3JfY29uc3RyYWludBgCIAEoCzIqLm9wZXJhdGlvbnNfcmVzZWFy",
39 "Y2guTVBJbmRpY2F0b3JDb25zdHJhaW50SAASPgoOc29zX2NvbnN0cmFpbnQY",
40 "AyABKAsyJC5vcGVyYXRpb25zX3Jlc2VhcmNoLk1QU29zQ29uc3RyYWludEgA",
41 "EkoKFHF1YWRyYXRpY19jb25zdHJhaW50GAQgASgLMioub3BlcmF0aW9uc19y",
42 "ZXNlYXJjaC5NUFF1YWRyYXRpY0NvbnN0cmFpbnRIABI+Cg5hYnNfY29uc3Ry",
43 "YWludBgFIAEoCzIkLm9wZXJhdGlvbnNfcmVzZWFyY2guTVBBYnNDb25zdHJh",
44 "aW50SAASQAoOYW5kX2NvbnN0cmFpbnQYBiABKAsyJi5vcGVyYXRpb25zX3Jl",
45 "c2VhcmNoLk1QQXJyYXlDb25zdHJhaW50SAASPwoNb3JfY29uc3RyYWludBgH",
46 "IAEoCzImLm9wZXJhdGlvbnNfcmVzZWFyY2guTVBBcnJheUNvbnN0cmFpbnRI",
47 "ABJMCg5taW5fY29uc3RyYWludBgIIAEoCzIyLm9wZXJhdGlvbnNfcmVzZWFy",
48 "Y2guTVBBcnJheVdpdGhDb25zdGFudENvbnN0cmFpbnRIABJMCg5tYXhfY29u",
49 "c3RyYWludBgJIAEoCzIyLm9wZXJhdGlvbnNfcmVzZWFyY2guTVBBcnJheVdp",
50 "dGhDb25zdGFudENvbnN0cmFpbnRIAEIUChJnZW5lcmFsX2NvbnN0cmFpbnQi",
51 "eQoVTVBJbmRpY2F0b3JDb25zdHJhaW50EhEKCXZhcl9pbmRleBgBIAEoBRIR",
52 "Cgl2YXJfdmFsdWUYAiABKAUSOgoKY29uc3RyYWludBgDIAEoCzImLm9wZXJh",
53 "dGlvbnNfcmVzZWFyY2guTVBDb25zdHJhaW50UHJvdG8inwEKD01QU29zQ29u",
54 "c3RyYWludBJFCgR0eXBlGAEgASgOMikub3BlcmF0aW9uc19yZXNlYXJjaC5N",
55 "UFNvc0NvbnN0cmFpbnQuVHlwZToMU09TMV9ERUZBVUxUEhEKCXZhcl9pbmRl",
56 "eBgCIAMoBRIOCgZ3ZWlnaHQYAyADKAEiIgoEVHlwZRIQCgxTT1MxX0RFRkFV",
57 "TFQQABIICgRTT1MyEAEitAEKFU1QUXVhZHJhdGljQ29uc3RyYWludBIRCgl2",
58 "YXJfaW5kZXgYASADKAUSEwoLY29lZmZpY2llbnQYAiADKAESEwoLcXZhcjFf",
59 "aW5kZXgYAyADKAUSEwoLcXZhcjJfaW5kZXgYBCADKAUSFAoMcWNvZWZmaWNp",
60 "ZW50GAUgAygBEhkKC2xvd2VyX2JvdW5kGAYgASgBOgQtaW5mEhgKC3VwcGVy",
61 "X2JvdW5kGAcgASgBOgNpbmYiQQoPTVBBYnNDb25zdHJhaW50EhEKCXZhcl9p",
62 "bmRleBgBIAEoBRIbChNyZXN1bHRhbnRfdmFyX2luZGV4GAIgASgFIkMKEU1Q",
63 "QXJyYXlDb25zdHJhaW50EhEKCXZhcl9pbmRleBgBIAMoBRIbChNyZXN1bHRh",
64 "bnRfdmFyX2luZGV4GAIgASgFImEKHU1QQXJyYXlXaXRoQ29uc3RhbnRDb25z",
65 "dHJhaW50EhEKCXZhcl9pbmRleBgBIAMoBRIQCghjb25zdGFudBgCIAEoARIb",
66 "ChNyZXN1bHRhbnRfdmFyX2luZGV4GAMgASgFIlUKFE1QUXVhZHJhdGljT2Jq",
67 "ZWN0aXZlEhMKC3F2YXIxX2luZGV4GAEgAygFEhMKC3F2YXIyX2luZGV4GAIg",
68 "AygFEhMKC2NvZWZmaWNpZW50GAMgAygBIkkKGVBhcnRpYWxWYXJpYWJsZUFz",
69 "c2lnbm1lbnQSFQoJdmFyX2luZGV4GAEgAygFQgIQARIVCgl2YXJfdmFsdWUY",
70 "AiADKAFCAhABIuQFCgxNUE1vZGVsUHJvdG8SNgoIdmFyaWFibGUYAyADKAsy",
71 "JC5vcGVyYXRpb25zX3Jlc2VhcmNoLk1QVmFyaWFibGVQcm90bxI6Cgpjb25z",
72 "dHJhaW50GAQgAygLMiYub3BlcmF0aW9uc19yZXNlYXJjaC5NUENvbnN0cmFp",
73 "bnRQcm90bxJJChJnZW5lcmFsX2NvbnN0cmFpbnQYByADKAsyLS5vcGVyYXRp",
74 "b25zX3Jlc2VhcmNoLk1QR2VuZXJhbENvbnN0cmFpbnRQcm90bxIXCghtYXhp",
75 "bWl6ZRgBIAEoCDoFZmFsc2USGwoQb2JqZWN0aXZlX29mZnNldBgCIAEoAToB",
76 "MBJGChNxdWFkcmF0aWNfb2JqZWN0aXZlGAggASgLMikub3BlcmF0aW9uc19y",
77 "ZXNlYXJjaC5NUFF1YWRyYXRpY09iamVjdGl2ZRIOCgRuYW1lGAUgASgJOgAS",
78 "RQoNc29sdXRpb25faGludBgGIAEoCzIuLm9wZXJhdGlvbnNfcmVzZWFyY2gu",
79 "UGFydGlhbFZhcmlhYmxlQXNzaWdubWVudBJACgphbm5vdGF0aW9uGAkgAygL",
80 "Miwub3BlcmF0aW9uc19yZXNlYXJjaC5NUE1vZGVsUHJvdG8uQW5ub3RhdGlv",
81 "bhr9AQoKQW5ub3RhdGlvbhJMCgt0YXJnZXRfdHlwZRgBIAEoDjI3Lm9wZXJh",
82 "dGlvbnNfcmVzZWFyY2guTVBNb2RlbFByb3RvLkFubm90YXRpb24uVGFyZ2V0",
83 "VHlwZRIUCgx0YXJnZXRfaW5kZXgYAiABKAUSEwoLdGFyZ2V0X25hbWUYAyAB",
84 "KAkSEwoLcGF5bG9hZF9rZXkYBCABKAkSFQoNcGF5bG9hZF92YWx1ZRgFIAEo",
85 "CSJKCgpUYXJnZXRUeXBlEhQKEFZBUklBQkxFX0RFRkFVTFQQABIOCgpDT05T",
86 "VFJBSU5UEAESFgoSR0VORVJBTF9DT05TVFJBSU5UEAIiHwoOT3B0aW9uYWxE",
87 "b3VibGUSDQoFdmFsdWUYASABKAEivQQKGE1QU29sdmVyQ29tbW9uUGFyYW1l",
88 "dGVycxI9ChByZWxhdGl2ZV9taXBfZ2FwGAEgASgLMiMub3BlcmF0aW9uc19y",
89 "ZXNlYXJjaC5PcHRpb25hbERvdWJsZRI9ChBwcmltYWxfdG9sZXJhbmNlGAIg",
90 "ASgLMiMub3BlcmF0aW9uc19yZXNlYXJjaC5PcHRpb25hbERvdWJsZRI7Cg5k",
91 "dWFsX3RvbGVyYW5jZRgDIAEoCzIjLm9wZXJhdGlvbnNfcmVzZWFyY2guT3B0",
92 "aW9uYWxEb3VibGUSagoMbHBfYWxnb3JpdGhtGAQgASgOMj8ub3BlcmF0aW9u",
93 "c19yZXNlYXJjaC5NUFNvbHZlckNvbW1vblBhcmFtZXRlcnMuTFBBbGdvcml0",
94 "aG1WYWx1ZXM6E0xQX0FMR09fVU5TUEVDSUZJRUQSSAoIcHJlc29sdmUYBSAB",
95 "KA4yJC5vcGVyYXRpb25zX3Jlc2VhcmNoLk9wdGlvbmFsQm9vbGVhbjoQQk9P",
96 "TF9VTlNQRUNJRklFRBJHCgdzY2FsaW5nGAcgASgOMiQub3BlcmF0aW9uc19y",
97 "ZXNlYXJjaC5PcHRpb25hbEJvb2xlYW46EEJPT0xfVU5TUEVDSUZJRUQiZwoR",
98 "TFBBbGdvcml0aG1WYWx1ZXMSFwoTTFBfQUxHT19VTlNQRUNJRklFRBAAEhAK",
99 "DExQX0FMR09fRFVBTBABEhIKDkxQX0FMR09fUFJJTUFMEAISEwoPTFBfQUxH",
100 "T19CQVJSSUVSEAMiswMKEU1QTW9kZWxEZWx0YVByb3RvEiAKGGJhc2VsaW5l",
101 "X21vZGVsX2ZpbGVfcGF0aBgBIAEoCRJZChJ2YXJpYWJsZV9vdmVycmlkZXMY",
102 "AiADKAsyPS5vcGVyYXRpb25zX3Jlc2VhcmNoLk1QTW9kZWxEZWx0YVByb3Rv",
103 "LlZhcmlhYmxlT3ZlcnJpZGVzRW50cnkSXQoUY29uc3RyYWludF9vdmVycmlk",
104 "ZXMYAyADKAsyPy5vcGVyYXRpb25zX3Jlc2VhcmNoLk1QTW9kZWxEZWx0YVBy",
105 "b3RvLkNvbnN0cmFpbnRPdmVycmlkZXNFbnRyeRpeChZWYXJpYWJsZU92ZXJy",
106 "aWRlc0VudHJ5EgsKA2tleRgBIAEoBRIzCgV2YWx1ZRgCIAEoCzIkLm9wZXJh",
107 "dGlvbnNfcmVzZWFyY2guTVBWYXJpYWJsZVByb3RvOgI4ARpiChhDb25zdHJh",
108 "aW50T3ZlcnJpZGVzRW50cnkSCwoDa2V5GAEgASgFEjUKBXZhbHVlGAIgASgL",
109 "MiYub3BlcmF0aW9uc19yZXNlYXJjaC5NUENvbnN0cmFpbnRQcm90bzoCOAEi",
110 "oQgKDk1QTW9kZWxSZXF1ZXN0EjAKBW1vZGVsGAEgASgLMiEub3BlcmF0aW9u",
111 "c19yZXNlYXJjaC5NUE1vZGVsUHJvdG8SXAoLc29sdmVyX3R5cGUYAiABKA4y",
112 "Li5vcGVyYXRpb25zX3Jlc2VhcmNoLk1QTW9kZWxSZXF1ZXN0LlNvbHZlclR5",
113 "cGU6F0dMT1BfTElORUFSX1BST0dSQU1NSU5HEiEKGXNvbHZlcl90aW1lX2xp",
114 "bWl0X3NlY29uZHMYAyABKAESLAodZW5hYmxlX2ludGVybmFsX3NvbHZlcl9v",
115 "dXRwdXQYBCABKAg6BWZhbHNlEiIKGnNvbHZlcl9zcGVjaWZpY19wYXJhbWV0",
116 "ZXJzGAUgASgJEjgKKWlnbm9yZV9zb2x2ZXJfc3BlY2lmaWNfcGFyYW1ldGVy",
117 "c19mYWlsdXJlGAkgASgIOgVmYWxzZRI7Cgttb2RlbF9kZWx0YRgIIAEoCzIm",
118 "Lm9wZXJhdGlvbnNfcmVzZWFyY2guTVBNb2RlbERlbHRhUHJvdG8SLgojcG9w",
119 "dWxhdGVfYWRkaXRpb25hbF9zb2x1dGlvbnNfdXBfdG8YCyABKAU6ATAi3AQK",
120 "ClNvbHZlclR5cGUSGgoWQ0xQX0xJTkVBUl9QUk9HUkFNTUlORxAAEhsKF0dM",
121 "T1BfTElORUFSX1BST0dSQU1NSU5HEAISGwoXR0xQS19MSU5FQVJfUFJPR1JB",
122 "TU1JTkcQARIdChlHVVJPQklfTElORUFSX1BST0dSQU1NSU5HEAYSHQoZWFBS",
123 "RVNTX0xJTkVBUl9QUk9HUkFNTUlORxBlEhwKGENQTEVYX0xJTkVBUl9QUk9H",
124 "UkFNTUlORxAKEhwKGEhJR0hTX0xJTkVBUl9QUk9HUkFNTUlORxAPEiIKHlND",
125 "SVBfTUlYRURfSU5URUdFUl9QUk9HUkFNTUlORxADEiIKHkdMUEtfTUlYRURf",
126 "SU5URUdFUl9QUk9HUkFNTUlORxAEEiEKHUNCQ19NSVhFRF9JTlRFR0VSX1BS",
127 "T0dSQU1NSU5HEAUSJAogR1VST0JJX01JWEVEX0lOVEVHRVJfUFJPR1JBTU1J",
128 "TkcQBxIkCiBYUFJFU1NfTUlYRURfSU5URUdFUl9QUk9HUkFNTUlORxBmEiMK",
129 "H0NQTEVYX01JWEVEX0lOVEVHRVJfUFJPR1JBTU1JTkcQCxIjCh9ISUdIU19N",
130 "SVhFRF9JTlRFR0VSX1BST0dSQU1NSU5HEBASGwoXQk9QX0lOVEVHRVJfUFJP",
131 "R1JBTU1JTkcQDBIbChdTQVRfSU5URUdFUl9QUk9HUkFNTUlORxAOEhsKF1BE",
132 "TFBfTElORUFSX1BST0dSQU1NSU5HEAgSJgoiS05BUFNBQ0tfTUlYRURfSU5U",
133 "RUdFUl9QUk9HUkFNTUlORxANSgQIDBANIkEKCk1QU29sdXRpb24SFwoPb2Jq",
134 "ZWN0aXZlX3ZhbHVlGAEgASgBEhoKDnZhcmlhYmxlX3ZhbHVlGAIgAygBQgIQ",
135 "ASJPCgtNUFNvbHZlSW5mbxIfChdzb2x2ZV93YWxsX3RpbWVfc2Vjb25kcxgB",
136 "IAEoARIfChdzb2x2ZV91c2VyX3RpbWVfc2Vjb25kcxgCIAEoASKcAwoSTVBT",
137 "b2x1dGlvblJlc3BvbnNlElQKBnN0YXR1cxgBIAEoDjIrLm9wZXJhdGlvbnNf",
138 "cmVzZWFyY2guTVBTb2x2ZXJSZXNwb25zZVN0YXR1czoXTVBTT0xWRVJfVU5L",
139 "Tk9XTl9TVEFUVVMSEgoKc3RhdHVzX3N0chgHIAEoCRIXCg9vYmplY3RpdmVf",
140 "dmFsdWUYAiABKAESHAoUYmVzdF9vYmplY3RpdmVfYm91bmQYBSABKAESGgoO",
141 "dmFyaWFibGVfdmFsdWUYAyADKAFCAhABEjQKCnNvbHZlX2luZm8YCiABKAsy",
142 "IC5vcGVyYXRpb25zX3Jlc2VhcmNoLk1QU29sdmVJbmZvEhwKFHNvbHZlcl9z",
143 "cGVjaWZpY19pbmZvGAsgASgMEhYKCmR1YWxfdmFsdWUYBCADKAFCAhABEhgK",
144 "DHJlZHVjZWRfY29zdBgGIAMoAUICEAESPQoUYWRkaXRpb25hbF9zb2x1dGlv",
145 "bnMYCCADKAsyHy5vcGVyYXRpb25zX3Jlc2VhcmNoLk1QU29sdXRpb25KBAgJ",
146 "EAoqvQMKFk1QU29sdmVyUmVzcG9uc2VTdGF0dXMSFAoQTVBTT0xWRVJfT1BU",
147 "SU1BTBAAEhUKEU1QU09MVkVSX0ZFQVNJQkxFEAESFwoTTVBTT0xWRVJfSU5G",
148 "RUFTSUJMRRACEhYKEk1QU09MVkVSX1VOQk9VTkRFRBADEhUKEU1QU09MVkVS",
149 "X0FCTk9STUFMEAQSFwoTTVBTT0xWRVJfTk9UX1NPTFZFRBAGEhsKF01QU09M",
150 "VkVSX01PREVMX0lTX1ZBTElEEGESHgoaTVBTT0xWRVJfQ0FOQ0VMTEVEX0JZ",
151 "X1VTRVIQYhIbChdNUFNPTFZFUl9VTktOT1dOX1NUQVRVUxBjEhoKFk1QU09M",
152 "VkVSX01PREVMX0lOVkFMSUQQBRIoCiRNUFNPTFZFUl9NT0RFTF9JTlZBTElE",
153 "X1NPTFVUSU9OX0hJTlQQVBIsCihNUFNPTFZFUl9NT0RFTF9JTlZBTElEX1NP",
154 "TFZFUl9QQVJBTUVURVJTEFUSJAogTVBTT0xWRVJfU09MVkVSX1RZUEVfVU5B",
155 "VkFJTEFCTEUQBxIhCh1NUFNPTFZFUl9JTkNPTVBBVElCTEVfT1BUSU9OUxBx",
156 "QiMKH2NvbS5nb29nbGUub3J0b29scy5saW5lYXJzb2x2ZXJQAQ=="));
157 descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
158 new pbr::FileDescriptor[] { global::Google.OrTools.Util.OptionalBooleanReflection.Descriptor, },
159 new pbr::GeneratedClrTypeInfo(new[] {typeof(global::OperationsResearch.MPSolverResponseStatus), }, null, new pbr::GeneratedClrTypeInfo[] {
160 new pbr::GeneratedClrTypeInfo(typeof(global::OperationsResearch.MPVariableProto), global::OperationsResearch.MPVariableProto.Parser, new[]{ "LowerBound", "UpperBound", "ObjectiveCoefficient", "IsInteger", "Name", "BranchingPriority" }, null, null, null, null),
161 new pbr::GeneratedClrTypeInfo(typeof(global::OperationsResearch.MPConstraintProto), global::OperationsResearch.MPConstraintProto.Parser, new[]{ "VarIndex", "Coefficient", "LowerBound", "UpperBound", "Name", "IsLazy" }, null, null, null, null),
162 new pbr::GeneratedClrTypeInfo(typeof(global::OperationsResearch.MPGeneralConstraintProto), global::OperationsResearch.MPGeneralConstraintProto.Parser, new[]{ "Name", "IndicatorConstraint", "SosConstraint", "QuadraticConstraint", "AbsConstraint", "AndConstraint", "OrConstraint", "MinConstraint", "MaxConstraint" }, new[]{ "GeneralConstraint" }, null, null, null),
163 new pbr::GeneratedClrTypeInfo(typeof(global::OperationsResearch.MPIndicatorConstraint), global::OperationsResearch.MPIndicatorConstraint.Parser, new[]{ "VarIndex", "VarValue", "Constraint" }, null, null, null, null),
164 new pbr::GeneratedClrTypeInfo(typeof(global::OperationsResearch.MPSosConstraint), global::OperationsResearch.MPSosConstraint.Parser, new[]{ "Type", "VarIndex", "Weight" }, null, new[]{ typeof(global::OperationsResearch.MPSosConstraint.Types.Type) }, null, null),
165 new pbr::GeneratedClrTypeInfo(typeof(global::OperationsResearch.MPQuadraticConstraint), global::OperationsResearch.MPQuadraticConstraint.Parser, new[]{ "VarIndex", "Coefficient", "Qvar1Index", "Qvar2Index", "Qcoefficient", "LowerBound", "UpperBound" }, null, null, null, null),
166 new pbr::GeneratedClrTypeInfo(typeof(global::OperationsResearch.MPAbsConstraint), global::OperationsResearch.MPAbsConstraint.Parser, new[]{ "VarIndex", "ResultantVarIndex" }, null, null, null, null),
167 new pbr::GeneratedClrTypeInfo(typeof(global::OperationsResearch.MPArrayConstraint), global::OperationsResearch.MPArrayConstraint.Parser, new[]{ "VarIndex", "ResultantVarIndex" }, null, null, null, null),
168 new pbr::GeneratedClrTypeInfo(typeof(global::OperationsResearch.MPArrayWithConstantConstraint), global::OperationsResearch.MPArrayWithConstantConstraint.Parser, new[]{ "VarIndex", "Constant", "ResultantVarIndex" }, null, null, null, null),
169 new pbr::GeneratedClrTypeInfo(typeof(global::OperationsResearch.MPQuadraticObjective), global::OperationsResearch.MPQuadraticObjective.Parser, new[]{ "Qvar1Index", "Qvar2Index", "Coefficient" }, null, null, null, null),
170 new pbr::GeneratedClrTypeInfo(typeof(global::OperationsResearch.PartialVariableAssignment), global::OperationsResearch.PartialVariableAssignment.Parser, new[]{ "VarIndex", "VarValue" }, null, null, null, null),
171 new pbr::GeneratedClrTypeInfo(typeof(global::OperationsResearch.MPModelProto), global::OperationsResearch.MPModelProto.Parser, new[]{ "Variable", "Constraint", "GeneralConstraint", "Maximize", "ObjectiveOffset", "QuadraticObjective", "Name", "SolutionHint", "Annotation" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::OperationsResearch.MPModelProto.Types.Annotation), global::OperationsResearch.MPModelProto.Types.Annotation.Parser, new[]{ "TargetType", "TargetIndex", "TargetName", "PayloadKey", "PayloadValue" }, null, new[]{ typeof(global::OperationsResearch.MPModelProto.Types.Annotation.Types.TargetType) }, null, null)}),
172 new pbr::GeneratedClrTypeInfo(typeof(global::OperationsResearch.OptionalDouble), global::OperationsResearch.OptionalDouble.Parser, new[]{ "Value" }, null, null, null, null),
173 new pbr::GeneratedClrTypeInfo(typeof(global::OperationsResearch.MPSolverCommonParameters), global::OperationsResearch.MPSolverCommonParameters.Parser, new[]{ "RelativeMipGap", "PrimalTolerance", "DualTolerance", "LpAlgorithm", "Presolve", "Scaling" }, null, new[]{ typeof(global::OperationsResearch.MPSolverCommonParameters.Types.LPAlgorithmValues) }, null, null),
174 new pbr::GeneratedClrTypeInfo(typeof(global::OperationsResearch.MPModelDeltaProto), global::OperationsResearch.MPModelDeltaProto.Parser, new[]{ "BaselineModelFilePath", "VariableOverrides", "ConstraintOverrides" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, null, }),
175 new pbr::GeneratedClrTypeInfo(typeof(global::OperationsResearch.MPModelRequest), global::OperationsResearch.MPModelRequest.Parser, new[]{ "Model", "SolverType", "SolverTimeLimitSeconds", "EnableInternalSolverOutput", "SolverSpecificParameters", "IgnoreSolverSpecificParametersFailure", "ModelDelta", "PopulateAdditionalSolutionsUpTo" }, null, new[]{ typeof(global::OperationsResearch.MPModelRequest.Types.SolverType) }, null, null),
176 new pbr::GeneratedClrTypeInfo(typeof(global::OperationsResearch.MPSolution), global::OperationsResearch.MPSolution.Parser, new[]{ "ObjectiveValue", "VariableValue" }, null, null, null, null),
177 new pbr::GeneratedClrTypeInfo(typeof(global::OperationsResearch.MPSolveInfo), global::OperationsResearch.MPSolveInfo.Parser, new[]{ "SolveWallTimeSeconds", "SolveUserTimeSeconds" }, null, null, null, null),
178 new pbr::GeneratedClrTypeInfo(typeof(global::OperationsResearch.MPSolutionResponse), global::OperationsResearch.MPSolutionResponse.Parser, new[]{ "Status", "StatusStr", "ObjectiveValue", "BestObjectiveBound", "VariableValue", "SolveInfo", "SolverSpecificInfo", "DualValue", "ReducedCost", "AdditionalSolutions" }, null, null, null, null)
179 }));
180 }
181 #endregion
182
183 }
184 #region Enums
196 public enum MPSolverResponseStatus {
197 /// <summary>
198 /// The solver found the proven optimal solution. This is what should be
199 /// returned in most cases.
200 ///
201 /// WARNING: for historical reason, the value is zero, which means that this
202 /// value can't have any subcategories.
203 /// </summary>
204 [pbr::OriginalName("MPSOLVER_OPTIMAL")] MpsolverOptimal = 0,
216 [pbr::OriginalName("MPSOLVER_FEASIBLE")] MpsolverFeasible = 1,
223 [pbr::OriginalName("MPSOLVER_INFEASIBLE")] MpsolverInfeasible = 2,
229 [pbr::OriginalName("MPSOLVER_UNBOUNDED")] MpsolverUnbounded = 3,
235 [pbr::OriginalName("MPSOLVER_ABNORMAL")] MpsolverAbnormal = 4,
240 [pbr::OriginalName("MPSOLVER_NOT_SOLVED")] MpsolverNotSolved = 6,
245 [pbr::OriginalName("MPSOLVER_MODEL_IS_VALID")] MpsolverModelIsValid = 97,
250 [pbr::OriginalName("MPSOLVER_CANCELLED_BY_USER")] MpsolverCancelledByUser = 98,
255 [pbr::OriginalName("MPSOLVER_UNKNOWN_STATUS")] MpsolverUnknownStatus = 99,
260 [pbr::OriginalName("MPSOLVER_MODEL_INVALID")] MpsolverModelInvalid = 5,
265 [pbr::OriginalName("MPSOLVER_MODEL_INVALID_SOLUTION_HINT")] MpsolverModelInvalidSolutionHint = 84,
269 [pbr::OriginalName("MPSOLVER_MODEL_INVALID_SOLVER_PARAMETERS")] MpsolverModelInvalidSolverParameters = 85,
275 [pbr::OriginalName("MPSOLVER_SOLVER_TYPE_UNAVAILABLE")] MpsolverSolverTypeUnavailable = 7,
282 [pbr::OriginalName("MPSOLVER_INCOMPATIBLE_OPTIONS")] MpsolverIncompatibleOptions = 113,
283 }
284
285 #endregion
286
287 #region Messages
303 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
304 public sealed partial class MPVariableProto : pb::IMessage<MPVariableProto>
305 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
306 , pb::IBufferMessage
307 #endif
308 {
309 private static readonly pb::MessageParser<MPVariableProto> _parser = new pb::MessageParser<MPVariableProto>(() => new MPVariableProto());
310 private pb::UnknownFieldSet _unknownFields;
311 private int _hasBits0;
312 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
313 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
314 public static pb::MessageParser<MPVariableProto> Parser { get { return _parser; } }
315
316 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
317 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
318 public static pbr::MessageDescriptor Descriptor {
319 get { return global::OperationsResearch.LinearSolverReflection.Descriptor.MessageTypes[0]; }
320 }
322 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
323 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
324 pbr::MessageDescriptor pb::IMessage.Descriptor {
325 get { return Descriptor; }
326 }
327
328 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
329 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
330 public MPVariableProto() {
331 OnConstruction();
332 }
334 partial void OnConstruction();
335
336 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
337 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
338 public MPVariableProto(MPVariableProto other) : this() {
339 _hasBits0 = other._hasBits0;
340 lowerBound_ = other.lowerBound_;
341 upperBound_ = other.upperBound_;
342 objectiveCoefficient_ = other.objectiveCoefficient_;
343 isInteger_ = other.isInteger_;
344 name_ = other.name_;
345 branchingPriority_ = other.branchingPriority_;
346 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
347 }
348
349 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
350 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
351 public MPVariableProto Clone() {
352 return new MPVariableProto(this);
353 }
356 public const int LowerBoundFieldNumber = 1;
357 private readonly static double LowerBoundDefaultValue = double.NegativeInfinity;
358
359 private double lowerBound_;
363 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
364 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
365 public double LowerBound {
366 get { if ((_hasBits0 & 1) != 0) { return lowerBound_; } else { return LowerBoundDefaultValue; } }
367 set {
368 _hasBits0 |= 1;
369 lowerBound_ = value;
370 }
371 }
373 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
374 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
375 public bool HasLowerBound {
376 get { return (_hasBits0 & 1) != 0; }
377 }
378 /// <summary>Clears the value of the "lower_bound" field</summary>
379 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
380 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
381 public void ClearLowerBound() {
382 _hasBits0 &= ~1;
383 }
386 public const int UpperBoundFieldNumber = 2;
387 private readonly static double UpperBoundDefaultValue = double.PositiveInfinity;
388
389 private double upperBound_;
390 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
391 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
392 public double UpperBound {
393 get { if ((_hasBits0 & 2) != 0) { return upperBound_; } else { return UpperBoundDefaultValue; } }
394 set {
395 _hasBits0 |= 2;
396 upperBound_ = value;
397 }
398 }
400 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
401 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
402 public bool HasUpperBound {
403 get { return (_hasBits0 & 2) != 0; }
404 }
405 /// <summary>Clears the value of the "upper_bound" field</summary>
406 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
407 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
408 public void ClearUpperBound() {
409 _hasBits0 &= ~2;
410 }
413 public const int ObjectiveCoefficientFieldNumber = 3;
414 private readonly static double ObjectiveCoefficientDefaultValue = 0D;
415
416 private double objectiveCoefficient_;
420 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
421 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
422 public double ObjectiveCoefficient {
423 get { if ((_hasBits0 & 4) != 0) { return objectiveCoefficient_; } else { return ObjectiveCoefficientDefaultValue; } }
424 set {
425 _hasBits0 |= 4;
426 objectiveCoefficient_ = value;
427 }
428 }
430 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
431 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
432 public bool HasObjectiveCoefficient {
433 get { return (_hasBits0 & 4) != 0; }
434 }
435 /// <summary>Clears the value of the "objective_coefficient" field</summary>
436 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
437 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
438 public void ClearObjectiveCoefficient() {
439 _hasBits0 &= ~4;
440 }
443 public const int IsIntegerFieldNumber = 4;
444 private readonly static bool IsIntegerDefaultValue = false;
445
446 private bool isInteger_;
451 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
452 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
453 public bool IsInteger {
454 get { if ((_hasBits0 & 8) != 0) { return isInteger_; } else { return IsIntegerDefaultValue; } }
455 set {
456 _hasBits0 |= 8;
457 isInteger_ = value;
458 }
459 }
461 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
462 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
463 public bool HasIsInteger {
464 get { return (_hasBits0 & 8) != 0; }
465 }
466 /// <summary>Clears the value of the "is_integer" field</summary>
467 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
468 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
469 public void ClearIsInteger() {
470 _hasBits0 &= ~8;
471 }
474 public const int NameFieldNumber = 5;
475 private readonly static string NameDefaultValue = "";
476
477 private string name_;
481 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
482 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
483 public string Name {
484 get { return name_ ?? NameDefaultValue; }
485 set {
486 name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
487 }
488 }
490 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
491 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
492 public bool HasName {
493 get { return name_ != null; }
494 }
495 /// <summary>Clears the value of the "name" field</summary>
496 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
497 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
498 public void ClearName() {
499 name_ = null;
500 }
503 public const int BranchingPriorityFieldNumber = 6;
504 private readonly static int BranchingPriorityDefaultValue = 0;
505
506 private int branchingPriority_;
507 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
508 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
509 public int BranchingPriority {
510 get { if ((_hasBits0 & 16) != 0) { return branchingPriority_; } else { return BranchingPriorityDefaultValue; } }
511 set {
512 _hasBits0 |= 16;
513 branchingPriority_ = value;
514 }
515 }
517 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
518 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
519 public bool HasBranchingPriority {
520 get { return (_hasBits0 & 16) != 0; }
521 }
522 /// <summary>Clears the value of the "branching_priority" field</summary>
523 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
524 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
525 public void ClearBranchingPriority() {
526 _hasBits0 &= ~16;
527 }
529 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
530 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
531 public override bool Equals(object other) {
532 return Equals(other as MPVariableProto);
533 }
535 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
536 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
537 public bool Equals(MPVariableProto other) {
538 if (ReferenceEquals(other, null)) {
539 return false;
541 if (ReferenceEquals(other, this)) {
542 return true;
543 }
544 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(LowerBound, other.LowerBound)) return false;
545 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(UpperBound, other.UpperBound)) return false;
546 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(ObjectiveCoefficient, other.ObjectiveCoefficient)) return false;
547 if (IsInteger != other.IsInteger) return false;
548 if (Name != other.Name) return false;
549 if (BranchingPriority != other.BranchingPriority) return false;
550 return Equals(_unknownFields, other._unknownFields);
551 }
552
553 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
554 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
555 public override int GetHashCode() {
556 int hash = 1;
557 if (HasLowerBound) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(LowerBound);
558 if (HasUpperBound) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(UpperBound);
559 if (HasObjectiveCoefficient) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(ObjectiveCoefficient);
560 if (HasIsInteger) hash ^= IsInteger.GetHashCode();
561 if (HasName) hash ^= Name.GetHashCode();
562 if (HasBranchingPriority) hash ^= BranchingPriority.GetHashCode();
563 if (_unknownFields != null) {
564 hash ^= _unknownFields.GetHashCode();
565 }
566 return hash;
567 }
568
569 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
570 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
571 public override string ToString() {
572 return pb::JsonFormatter.ToDiagnosticString(this);
573 }
575 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
576 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
577 public void WriteTo(pb::CodedOutputStream output) {
578 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
579 output.WriteRawMessage(this);
580 #else
581 if (HasLowerBound) {
582 output.WriteRawTag(9);
583 output.WriteDouble(LowerBound);
584 }
585 if (HasUpperBound) {
586 output.WriteRawTag(17);
587 output.WriteDouble(UpperBound);
588 }
589 if (HasObjectiveCoefficient) {
590 output.WriteRawTag(25);
591 output.WriteDouble(ObjectiveCoefficient);
592 }
593 if (HasIsInteger) {
594 output.WriteRawTag(32);
595 output.WriteBool(IsInteger);
596 }
597 if (HasName) {
598 output.WriteRawTag(42);
599 output.WriteString(Name);
600 }
601 if (HasBranchingPriority) {
602 output.WriteRawTag(48);
603 output.WriteInt32(BranchingPriority);
604 }
605 if (_unknownFields != null) {
606 _unknownFields.WriteTo(output);
607 }
608 #endif
609 }
610
611 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
612 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
613 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
614 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
615 if (HasLowerBound) {
616 output.WriteRawTag(9);
617 output.WriteDouble(LowerBound);
618 }
619 if (HasUpperBound) {
620 output.WriteRawTag(17);
621 output.WriteDouble(UpperBound);
622 }
623 if (HasObjectiveCoefficient) {
624 output.WriteRawTag(25);
625 output.WriteDouble(ObjectiveCoefficient);
626 }
627 if (HasIsInteger) {
628 output.WriteRawTag(32);
629 output.WriteBool(IsInteger);
630 }
631 if (HasName) {
632 output.WriteRawTag(42);
633 output.WriteString(Name);
634 }
635 if (HasBranchingPriority) {
636 output.WriteRawTag(48);
637 output.WriteInt32(BranchingPriority);
638 }
639 if (_unknownFields != null) {
640 _unknownFields.WriteTo(ref output);
641 }
642 }
643 #endif
644
645 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
646 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
647 public int CalculateSize() {
648 int size = 0;
649 if (HasLowerBound) {
650 size += 1 + 8;
651 }
652 if (HasUpperBound) {
653 size += 1 + 8;
654 }
655 if (HasObjectiveCoefficient) {
656 size += 1 + 8;
657 }
658 if (HasIsInteger) {
659 size += 1 + 1;
660 }
661 if (HasName) {
662 size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
663 }
664 if (HasBranchingPriority) {
665 size += 1 + pb::CodedOutputStream.ComputeInt32Size(BranchingPriority);
666 }
667 if (_unknownFields != null) {
668 size += _unknownFields.CalculateSize();
669 }
670 return size;
671 }
672
673 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
674 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
675 public void MergeFrom(MPVariableProto other) {
676 if (other == null) {
677 return;
679 if (other.HasLowerBound) {
680 LowerBound = other.LowerBound;
681 }
682 if (other.HasUpperBound) {
683 UpperBound = other.UpperBound;
684 }
685 if (other.HasObjectiveCoefficient) {
686 ObjectiveCoefficient = other.ObjectiveCoefficient;
687 }
688 if (other.HasIsInteger) {
689 IsInteger = other.IsInteger;
690 }
691 if (other.HasName) {
692 Name = other.Name;
693 }
694 if (other.HasBranchingPriority) {
695 BranchingPriority = other.BranchingPriority;
696 }
697 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
698 }
699
700 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
701 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
702 public void MergeFrom(pb::CodedInputStream input) {
703 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
704 input.ReadRawMessage(this);
705 #else
706 uint tag;
707 while ((tag = input.ReadTag()) != 0) {
708 if ((tag & 7) == 4) {
709 // Abort on any end group tag.
710 return;
711 }
712 switch(tag) {
713 default:
714 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
715 break;
716 case 9: {
717 LowerBound = input.ReadDouble();
718 break;
719 }
720 case 17: {
721 UpperBound = input.ReadDouble();
722 break;
723 }
724 case 25: {
725 ObjectiveCoefficient = input.ReadDouble();
726 break;
727 }
728 case 32: {
729 IsInteger = input.ReadBool();
730 break;
731 }
732 case 42: {
733 Name = input.ReadString();
734 break;
735 }
736 case 48: {
737 BranchingPriority = input.ReadInt32();
738 break;
739 }
740 }
741 }
742 #endif
743 }
744
745 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
746 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
747 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
748 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
749 uint tag;
750 while ((tag = input.ReadTag()) != 0) {
751 if ((tag & 7) == 4) {
752 // Abort on any end group tag.
753 return;
754 }
755 switch(tag) {
756 default:
757 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
758 break;
759 case 9: {
760 LowerBound = input.ReadDouble();
761 break;
762 }
763 case 17: {
764 UpperBound = input.ReadDouble();
765 break;
766 }
767 case 25: {
768 ObjectiveCoefficient = input.ReadDouble();
769 break;
770 }
771 case 32: {
772 IsInteger = input.ReadBool();
773 break;
774 }
775 case 42: {
776 Name = input.ReadString();
777 break;
778 }
779 case 48: {
780 BranchingPriority = input.ReadInt32();
781 break;
782 }
783 }
784 }
785 }
786 #endif
787
788 }
789
792
803 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
804 public sealed partial class MPConstraintProto : pb::IMessage<MPConstraintProto>
805 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
806 , pb::IBufferMessage
807 #endif
808 {
809 private static readonly pb::MessageParser<MPConstraintProto> _parser = new pb::MessageParser<MPConstraintProto>(() => new MPConstraintProto());
810 private pb::UnknownFieldSet _unknownFields;
811 private int _hasBits0;
812 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
813 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
814 public static pb::MessageParser<MPConstraintProto> Parser { get { return _parser; } }
815
816 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
817 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
818 public static pbr::MessageDescriptor Descriptor {
819 get { return global::OperationsResearch.LinearSolverReflection.Descriptor.MessageTypes[1]; }
820 }
822 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
823 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
824 pbr::MessageDescriptor pb::IMessage.Descriptor {
825 get { return Descriptor; }
826 }
827
828 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
829 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
830 public MPConstraintProto() {
831 OnConstruction();
832 }
834 partial void OnConstruction();
835
836 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
837 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
838 public MPConstraintProto(MPConstraintProto other) : this() {
839 _hasBits0 = other._hasBits0;
840 varIndex_ = other.varIndex_.Clone();
841 coefficient_ = other.coefficient_.Clone();
842 lowerBound_ = other.lowerBound_;
843 upperBound_ = other.upperBound_;
844 name_ = other.name_;
845 isLazy_ = other.isLazy_;
846 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
847 }
848
849 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
850 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
851 public MPConstraintProto Clone() {
852 return new MPConstraintProto(this);
853 }
856 public const int VarIndexFieldNumber = 6;
857 private static readonly pb::FieldCodec<int> _repeated_varIndex_codec
858 = pb::FieldCodec.ForInt32(50);
859 private readonly pbc::RepeatedField<int> varIndex_ = new pbc::RepeatedField<int>();
866 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
867 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
868 public pbc::RepeatedField<int> VarIndex {
869 get { return varIndex_; }
870 }
873 public const int CoefficientFieldNumber = 7;
874 private static readonly pb::FieldCodec<double> _repeated_coefficient_codec
875 = pb::FieldCodec.ForDouble(58);
876 private readonly pbc::RepeatedField<double> coefficient_ = new pbc::RepeatedField<double>();
880 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
881 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
882 public pbc::RepeatedField<double> Coefficient {
883 get { return coefficient_; }
884 }
887 public const int LowerBoundFieldNumber = 2;
888 private readonly static double LowerBoundDefaultValue = double.NegativeInfinity;
889
890 private double lowerBound_;
894 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
895 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
896 public double LowerBound {
897 get { if ((_hasBits0 & 1) != 0) { return lowerBound_; } else { return LowerBoundDefaultValue; } }
898 set {
899 _hasBits0 |= 1;
900 lowerBound_ = value;
901 }
902 }
904 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
905 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
906 public bool HasLowerBound {
907 get { return (_hasBits0 & 1) != 0; }
908 }
909 /// <summary>Clears the value of the "lower_bound" field</summary>
910 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
911 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
912 public void ClearLowerBound() {
913 _hasBits0 &= ~1;
914 }
917 public const int UpperBoundFieldNumber = 3;
918 private readonly static double UpperBoundDefaultValue = double.PositiveInfinity;
919
920 private double upperBound_;
921 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
922 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
923 public double UpperBound {
924 get { if ((_hasBits0 & 2) != 0) { return upperBound_; } else { return UpperBoundDefaultValue; } }
925 set {
926 _hasBits0 |= 2;
927 upperBound_ = value;
928 }
929 }
931 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
932 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
933 public bool HasUpperBound {
934 get { return (_hasBits0 & 2) != 0; }
935 }
936 /// <summary>Clears the value of the "upper_bound" field</summary>
937 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
938 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
939 public void ClearUpperBound() {
940 _hasBits0 &= ~2;
941 }
944 public const int NameFieldNumber = 4;
945 private readonly static string NameDefaultValue = "";
946
947 private string name_;
951 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
952 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
953 public string Name {
954 get { return name_ ?? NameDefaultValue; }
955 set {
956 name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
957 }
958 }
960 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
961 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
962 public bool HasName {
963 get { return name_ != null; }
964 }
965 /// <summary>Clears the value of the "name" field</summary>
966 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
967 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
968 public void ClearName() {
969 name_ = null;
970 }
973 public const int IsLazyFieldNumber = 5;
974 private readonly static bool IsLazyDefaultValue = false;
975
976 private bool isLazy_;
983 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
984 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
985 public bool IsLazy {
986 get { if ((_hasBits0 & 4) != 0) { return isLazy_; } else { return IsLazyDefaultValue; } }
987 set {
988 _hasBits0 |= 4;
989 isLazy_ = value;
990 }
991 }
993 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
994 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
995 public bool HasIsLazy {
996 get { return (_hasBits0 & 4) != 0; }
997 }
998 /// <summary>Clears the value of the "is_lazy" field</summary>
999 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1000 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1001 public void ClearIsLazy() {
1002 _hasBits0 &= ~4;
1003 }
1005 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1006 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1007 public override bool Equals(object other) {
1008 return Equals(other as MPConstraintProto);
1009 }
1011 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1012 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1013 public bool Equals(MPConstraintProto other) {
1014 if (ReferenceEquals(other, null)) {
1015 return false;
1017 if (ReferenceEquals(other, this)) {
1018 return true;
1019 }
1020 if(!varIndex_.Equals(other.varIndex_)) return false;
1021 if(!coefficient_.Equals(other.coefficient_)) return false;
1022 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(LowerBound, other.LowerBound)) return false;
1023 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(UpperBound, other.UpperBound)) return false;
1024 if (Name != other.Name) return false;
1025 if (IsLazy != other.IsLazy) return false;
1026 return Equals(_unknownFields, other._unknownFields);
1027 }
1028
1029 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1030 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1031 public override int GetHashCode() {
1032 int hash = 1;
1033 hash ^= varIndex_.GetHashCode();
1034 hash ^= coefficient_.GetHashCode();
1035 if (HasLowerBound) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(LowerBound);
1036 if (HasUpperBound) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(UpperBound);
1037 if (HasName) hash ^= Name.GetHashCode();
1038 if (HasIsLazy) hash ^= IsLazy.GetHashCode();
1039 if (_unknownFields != null) {
1040 hash ^= _unknownFields.GetHashCode();
1041 }
1042 return hash;
1043 }
1044
1045 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1046 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1047 public override string ToString() {
1048 return pb::JsonFormatter.ToDiagnosticString(this);
1049 }
1051 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1052 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1053 public void WriteTo(pb::CodedOutputStream output) {
1054 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1055 output.WriteRawMessage(this);
1056 #else
1057 if (HasLowerBound) {
1058 output.WriteRawTag(17);
1059 output.WriteDouble(LowerBound);
1060 }
1061 if (HasUpperBound) {
1062 output.WriteRawTag(25);
1063 output.WriteDouble(UpperBound);
1064 }
1065 if (HasName) {
1066 output.WriteRawTag(34);
1067 output.WriteString(Name);
1068 }
1069 if (HasIsLazy) {
1070 output.WriteRawTag(40);
1071 output.WriteBool(IsLazy);
1072 }
1073 varIndex_.WriteTo(output, _repeated_varIndex_codec);
1074 coefficient_.WriteTo(output, _repeated_coefficient_codec);
1075 if (_unknownFields != null) {
1076 _unknownFields.WriteTo(output);
1077 }
1078 #endif
1079 }
1080
1081 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1082 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1083 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1084 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
1085 if (HasLowerBound) {
1086 output.WriteRawTag(17);
1087 output.WriteDouble(LowerBound);
1088 }
1089 if (HasUpperBound) {
1090 output.WriteRawTag(25);
1091 output.WriteDouble(UpperBound);
1092 }
1093 if (HasName) {
1094 output.WriteRawTag(34);
1095 output.WriteString(Name);
1096 }
1097 if (HasIsLazy) {
1098 output.WriteRawTag(40);
1099 output.WriteBool(IsLazy);
1100 }
1101 varIndex_.WriteTo(ref output, _repeated_varIndex_codec);
1102 coefficient_.WriteTo(ref output, _repeated_coefficient_codec);
1103 if (_unknownFields != null) {
1104 _unknownFields.WriteTo(ref output);
1105 }
1106 }
1107 #endif
1108
1109 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1110 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1111 public int CalculateSize() {
1112 int size = 0;
1113 size += varIndex_.CalculateSize(_repeated_varIndex_codec);
1114 size += coefficient_.CalculateSize(_repeated_coefficient_codec);
1115 if (HasLowerBound) {
1116 size += 1 + 8;
1117 }
1118 if (HasUpperBound) {
1119 size += 1 + 8;
1120 }
1121 if (HasName) {
1122 size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
1123 }
1124 if (HasIsLazy) {
1125 size += 1 + 1;
1126 }
1127 if (_unknownFields != null) {
1128 size += _unknownFields.CalculateSize();
1129 }
1130 return size;
1131 }
1132
1133 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1134 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1135 public void MergeFrom(MPConstraintProto other) {
1136 if (other == null) {
1137 return;
1139 varIndex_.Add(other.varIndex_);
1140 coefficient_.Add(other.coefficient_);
1141 if (other.HasLowerBound) {
1142 LowerBound = other.LowerBound;
1143 }
1144 if (other.HasUpperBound) {
1145 UpperBound = other.UpperBound;
1146 }
1147 if (other.HasName) {
1148 Name = other.Name;
1149 }
1150 if (other.HasIsLazy) {
1151 IsLazy = other.IsLazy;
1152 }
1153 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
1154 }
1155
1156 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1157 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1158 public void MergeFrom(pb::CodedInputStream input) {
1159 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1160 input.ReadRawMessage(this);
1161 #else
1162 uint tag;
1163 while ((tag = input.ReadTag()) != 0) {
1164 if ((tag & 7) == 4) {
1165 // Abort on any end group tag.
1166 return;
1167 }
1168 switch(tag) {
1169 default:
1170 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
1171 break;
1172 case 17: {
1173 LowerBound = input.ReadDouble();
1174 break;
1175 }
1176 case 25: {
1177 UpperBound = input.ReadDouble();
1178 break;
1179 }
1180 case 34: {
1181 Name = input.ReadString();
1182 break;
1183 }
1184 case 40: {
1185 IsLazy = input.ReadBool();
1186 break;
1187 }
1188 case 50:
1189 case 48: {
1190 varIndex_.AddEntriesFrom(input, _repeated_varIndex_codec);
1191 break;
1192 }
1193 case 58:
1194 case 57: {
1195 coefficient_.AddEntriesFrom(input, _repeated_coefficient_codec);
1196 break;
1197 }
1198 }
1199 }
1200 #endif
1201 }
1202
1203 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1204 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1205 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1206 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
1207 uint tag;
1208 while ((tag = input.ReadTag()) != 0) {
1209 if ((tag & 7) == 4) {
1210 // Abort on any end group tag.
1211 return;
1212 }
1213 switch(tag) {
1214 default:
1215 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
1216 break;
1217 case 17: {
1218 LowerBound = input.ReadDouble();
1219 break;
1220 }
1221 case 25: {
1222 UpperBound = input.ReadDouble();
1223 break;
1224 }
1225 case 34: {
1226 Name = input.ReadString();
1227 break;
1228 }
1229 case 40: {
1230 IsLazy = input.ReadBool();
1231 break;
1232 }
1233 case 50:
1234 case 48: {
1235 varIndex_.AddEntriesFrom(ref input, _repeated_varIndex_codec);
1236 break;
1237 }
1238 case 58:
1239 case 57: {
1240 coefficient_.AddEntriesFrom(ref input, _repeated_coefficient_codec);
1241 break;
1242 }
1243 }
1244 }
1245 }
1246 #endif
1247
1248 }
1249
1252
1253 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
1254 public sealed partial class MPGeneralConstraintProto : pb::IMessage<MPGeneralConstraintProto>
1255 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1256 , pb::IBufferMessage
1257 #endif
1258 {
1259 private static readonly pb::MessageParser<MPGeneralConstraintProto> _parser = new pb::MessageParser<MPGeneralConstraintProto>(() => new MPGeneralConstraintProto());
1260 private pb::UnknownFieldSet _unknownFields;
1261 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1262 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1263 public static pb::MessageParser<MPGeneralConstraintProto> Parser { get { return _parser; } }
1264
1265 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1266 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1267 public static pbr::MessageDescriptor Descriptor {
1268 get { return global::OperationsResearch.LinearSolverReflection.Descriptor.MessageTypes[2]; }
1269 }
1271 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1272 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1273 pbr::MessageDescriptor pb::IMessage.Descriptor {
1274 get { return Descriptor; }
1275 }
1276
1277 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1278 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1279 public MPGeneralConstraintProto() {
1280 OnConstruction();
1281 }
1283 partial void OnConstruction();
1284
1285 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1286 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1287 public MPGeneralConstraintProto(MPGeneralConstraintProto other) : this() {
1288 name_ = other.name_;
1289 switch (other.GeneralConstraintCase) {
1290 case GeneralConstraintOneofCase.IndicatorConstraint:
1291 IndicatorConstraint = other.IndicatorConstraint.Clone();
1292 break;
1293 case GeneralConstraintOneofCase.SosConstraint:
1294 SosConstraint = other.SosConstraint.Clone();
1295 break;
1296 case GeneralConstraintOneofCase.QuadraticConstraint:
1297 QuadraticConstraint = other.QuadraticConstraint.Clone();
1298 break;
1299 case GeneralConstraintOneofCase.AbsConstraint:
1300 AbsConstraint = other.AbsConstraint.Clone();
1301 break;
1302 case GeneralConstraintOneofCase.AndConstraint:
1303 AndConstraint = other.AndConstraint.Clone();
1304 break;
1305 case GeneralConstraintOneofCase.OrConstraint:
1306 OrConstraint = other.OrConstraint.Clone();
1307 break;
1308 case GeneralConstraintOneofCase.MinConstraint:
1309 MinConstraint = other.MinConstraint.Clone();
1310 break;
1311 case GeneralConstraintOneofCase.MaxConstraint:
1312 MaxConstraint = other.MaxConstraint.Clone();
1313 break;
1314 }
1315
1316 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
1317 }
1318
1319 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1320 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1321 public MPGeneralConstraintProto Clone() {
1322 return new MPGeneralConstraintProto(this);
1323 }
1326 public const int NameFieldNumber = 1;
1327 private readonly static string NameDefaultValue = "";
1328
1329 private string name_;
1333 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1334 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1335 public string Name {
1336 get { return name_ ?? NameDefaultValue; }
1337 set {
1338 name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
1339 }
1340 }
1342 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1343 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1344 public bool HasName {
1345 get { return name_ != null; }
1346 }
1347 /// <summary>Clears the value of the "name" field</summary>
1348 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1349 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1350 public void ClearName() {
1351 name_ = null;
1352 }
1355 public const int IndicatorConstraintFieldNumber = 2;
1356 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1357 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1358 public global::OperationsResearch.MPIndicatorConstraint IndicatorConstraint {
1359 get { return generalConstraintCase_ == GeneralConstraintOneofCase.IndicatorConstraint ? (global::OperationsResearch.MPIndicatorConstraint) generalConstraint_ : null; }
1360 set {
1361 generalConstraint_ = value;
1362 generalConstraintCase_ = value == null ? GeneralConstraintOneofCase.None : GeneralConstraintOneofCase.IndicatorConstraint;
1363 }
1364 }
1365
1367 public const int SosConstraintFieldNumber = 3;
1368 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1369 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1370 public global::OperationsResearch.MPSosConstraint SosConstraint {
1371 get { return generalConstraintCase_ == GeneralConstraintOneofCase.SosConstraint ? (global::OperationsResearch.MPSosConstraint) generalConstraint_ : null; }
1372 set {
1373 generalConstraint_ = value;
1374 generalConstraintCase_ = value == null ? GeneralConstraintOneofCase.None : GeneralConstraintOneofCase.SosConstraint;
1375 }
1376 }
1377
1379 public const int QuadraticConstraintFieldNumber = 4;
1380 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1381 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1382 public global::OperationsResearch.MPQuadraticConstraint QuadraticConstraint {
1383 get { return generalConstraintCase_ == GeneralConstraintOneofCase.QuadraticConstraint ? (global::OperationsResearch.MPQuadraticConstraint) generalConstraint_ : null; }
1384 set {
1385 generalConstraint_ = value;
1386 generalConstraintCase_ = value == null ? GeneralConstraintOneofCase.None : GeneralConstraintOneofCase.QuadraticConstraint;
1387 }
1388 }
1389
1391 public const int AbsConstraintFieldNumber = 5;
1392 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1393 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1394 public global::OperationsResearch.MPAbsConstraint AbsConstraint {
1395 get { return generalConstraintCase_ == GeneralConstraintOneofCase.AbsConstraint ? (global::OperationsResearch.MPAbsConstraint) generalConstraint_ : null; }
1396 set {
1397 generalConstraint_ = value;
1398 generalConstraintCase_ = value == null ? GeneralConstraintOneofCase.None : GeneralConstraintOneofCase.AbsConstraint;
1399 }
1400 }
1401
1403 public const int AndConstraintFieldNumber = 6;
1404
1408 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1409 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1410 public global::OperationsResearch.MPArrayConstraint AndConstraint {
1411 get { return generalConstraintCase_ == GeneralConstraintOneofCase.AndConstraint ? (global::OperationsResearch.MPArrayConstraint) generalConstraint_ : null; }
1412 set {
1413 generalConstraint_ = value;
1414 generalConstraintCase_ = value == null ? GeneralConstraintOneofCase.None : GeneralConstraintOneofCase.AndConstraint;
1415 }
1416 }
1417
1419 public const int OrConstraintFieldNumber = 7;
1420
1424 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1425 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1426 public global::OperationsResearch.MPArrayConstraint OrConstraint {
1427 get { return generalConstraintCase_ == GeneralConstraintOneofCase.OrConstraint ? (global::OperationsResearch.MPArrayConstraint) generalConstraint_ : null; }
1428 set {
1429 generalConstraint_ = value;
1430 generalConstraintCase_ = value == null ? GeneralConstraintOneofCase.None : GeneralConstraintOneofCase.OrConstraint;
1431 }
1432 }
1433
1435 public const int MinConstraintFieldNumber = 8;
1436
1439 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1440 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1441 public global::OperationsResearch.MPArrayWithConstantConstraint MinConstraint {
1442 get { return generalConstraintCase_ == GeneralConstraintOneofCase.MinConstraint ? (global::OperationsResearch.MPArrayWithConstantConstraint) generalConstraint_ : null; }
1443 set {
1444 generalConstraint_ = value;
1445 generalConstraintCase_ = value == null ? GeneralConstraintOneofCase.None : GeneralConstraintOneofCase.MinConstraint;
1446 }
1447 }
1448
1450 public const int MaxConstraintFieldNumber = 9;
1451
1454 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1455 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1456 public global::OperationsResearch.MPArrayWithConstantConstraint MaxConstraint {
1457 get { return generalConstraintCase_ == GeneralConstraintOneofCase.MaxConstraint ? (global::OperationsResearch.MPArrayWithConstantConstraint) generalConstraint_ : null; }
1458 set {
1459 generalConstraint_ = value;
1460 generalConstraintCase_ = value == null ? GeneralConstraintOneofCase.None : GeneralConstraintOneofCase.MaxConstraint;
1461 }
1462 }
1463
1464 private object generalConstraint_;
1466 public enum GeneralConstraintOneofCase {
1467 None = 0,
1468 IndicatorConstraint = 2,
1477 private GeneralConstraintOneofCase generalConstraintCase_ = GeneralConstraintOneofCase.None;
1478 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1479 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1481 get { return generalConstraintCase_; }
1482 }
1484 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1485 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1486 public void ClearGeneralConstraint() {
1487 generalConstraintCase_ = GeneralConstraintOneofCase.None;
1488 generalConstraint_ = null;
1490
1491 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1492 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1493 public override bool Equals(object other) {
1494 return Equals(other as MPGeneralConstraintProto);
1495 }
1497 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1498 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1499 public bool Equals(MPGeneralConstraintProto other) {
1500 if (ReferenceEquals(other, null)) {
1501 return false;
1503 if (ReferenceEquals(other, this)) {
1504 return true;
1505 }
1506 if (Name != other.Name) return false;
1507 if (!object.Equals(IndicatorConstraint, other.IndicatorConstraint)) return false;
1508 if (!object.Equals(SosConstraint, other.SosConstraint)) return false;
1509 if (!object.Equals(QuadraticConstraint, other.QuadraticConstraint)) return false;
1510 if (!object.Equals(AbsConstraint, other.AbsConstraint)) return false;
1511 if (!object.Equals(AndConstraint, other.AndConstraint)) return false;
1512 if (!object.Equals(OrConstraint, other.OrConstraint)) return false;
1513 if (!object.Equals(MinConstraint, other.MinConstraint)) return false;
1514 if (!object.Equals(MaxConstraint, other.MaxConstraint)) return false;
1515 if (GeneralConstraintCase != other.GeneralConstraintCase) return false;
1516 return Equals(_unknownFields, other._unknownFields);
1517 }
1518
1519 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1520 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1521 public override int GetHashCode() {
1522 int hash = 1;
1523 if (HasName) hash ^= Name.GetHashCode();
1524 if (generalConstraintCase_ == GeneralConstraintOneofCase.IndicatorConstraint) hash ^= IndicatorConstraint.GetHashCode();
1525 if (generalConstraintCase_ == GeneralConstraintOneofCase.SosConstraint) hash ^= SosConstraint.GetHashCode();
1526 if (generalConstraintCase_ == GeneralConstraintOneofCase.QuadraticConstraint) hash ^= QuadraticConstraint.GetHashCode();
1527 if (generalConstraintCase_ == GeneralConstraintOneofCase.AbsConstraint) hash ^= AbsConstraint.GetHashCode();
1528 if (generalConstraintCase_ == GeneralConstraintOneofCase.AndConstraint) hash ^= AndConstraint.GetHashCode();
1529 if (generalConstraintCase_ == GeneralConstraintOneofCase.OrConstraint) hash ^= OrConstraint.GetHashCode();
1530 if (generalConstraintCase_ == GeneralConstraintOneofCase.MinConstraint) hash ^= MinConstraint.GetHashCode();
1531 if (generalConstraintCase_ == GeneralConstraintOneofCase.MaxConstraint) hash ^= MaxConstraint.GetHashCode();
1532 hash ^= (int) generalConstraintCase_;
1533 if (_unknownFields != null) {
1534 hash ^= _unknownFields.GetHashCode();
1535 }
1536 return hash;
1537 }
1538
1539 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1540 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1541 public override string ToString() {
1542 return pb::JsonFormatter.ToDiagnosticString(this);
1543 }
1545 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1546 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1547 public void WriteTo(pb::CodedOutputStream output) {
1548 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1549 output.WriteRawMessage(this);
1550 #else
1551 if (HasName) {
1552 output.WriteRawTag(10);
1553 output.WriteString(Name);
1554 }
1555 if (generalConstraintCase_ == GeneralConstraintOneofCase.IndicatorConstraint) {
1556 output.WriteRawTag(18);
1557 output.WriteMessage(IndicatorConstraint);
1558 }
1559 if (generalConstraintCase_ == GeneralConstraintOneofCase.SosConstraint) {
1560 output.WriteRawTag(26);
1561 output.WriteMessage(SosConstraint);
1562 }
1563 if (generalConstraintCase_ == GeneralConstraintOneofCase.QuadraticConstraint) {
1564 output.WriteRawTag(34);
1565 output.WriteMessage(QuadraticConstraint);
1566 }
1567 if (generalConstraintCase_ == GeneralConstraintOneofCase.AbsConstraint) {
1568 output.WriteRawTag(42);
1569 output.WriteMessage(AbsConstraint);
1570 }
1571 if (generalConstraintCase_ == GeneralConstraintOneofCase.AndConstraint) {
1572 output.WriteRawTag(50);
1573 output.WriteMessage(AndConstraint);
1574 }
1575 if (generalConstraintCase_ == GeneralConstraintOneofCase.OrConstraint) {
1576 output.WriteRawTag(58);
1577 output.WriteMessage(OrConstraint);
1578 }
1579 if (generalConstraintCase_ == GeneralConstraintOneofCase.MinConstraint) {
1580 output.WriteRawTag(66);
1581 output.WriteMessage(MinConstraint);
1582 }
1583 if (generalConstraintCase_ == GeneralConstraintOneofCase.MaxConstraint) {
1584 output.WriteRawTag(74);
1585 output.WriteMessage(MaxConstraint);
1586 }
1587 if (_unknownFields != null) {
1588 _unknownFields.WriteTo(output);
1589 }
1590 #endif
1591 }
1592
1593 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1594 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1595 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1596 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
1597 if (HasName) {
1598 output.WriteRawTag(10);
1599 output.WriteString(Name);
1600 }
1601 if (generalConstraintCase_ == GeneralConstraintOneofCase.IndicatorConstraint) {
1602 output.WriteRawTag(18);
1603 output.WriteMessage(IndicatorConstraint);
1604 }
1605 if (generalConstraintCase_ == GeneralConstraintOneofCase.SosConstraint) {
1606 output.WriteRawTag(26);
1607 output.WriteMessage(SosConstraint);
1608 }
1609 if (generalConstraintCase_ == GeneralConstraintOneofCase.QuadraticConstraint) {
1610 output.WriteRawTag(34);
1611 output.WriteMessage(QuadraticConstraint);
1612 }
1613 if (generalConstraintCase_ == GeneralConstraintOneofCase.AbsConstraint) {
1614 output.WriteRawTag(42);
1615 output.WriteMessage(AbsConstraint);
1616 }
1617 if (generalConstraintCase_ == GeneralConstraintOneofCase.AndConstraint) {
1618 output.WriteRawTag(50);
1619 output.WriteMessage(AndConstraint);
1620 }
1621 if (generalConstraintCase_ == GeneralConstraintOneofCase.OrConstraint) {
1622 output.WriteRawTag(58);
1623 output.WriteMessage(OrConstraint);
1624 }
1625 if (generalConstraintCase_ == GeneralConstraintOneofCase.MinConstraint) {
1626 output.WriteRawTag(66);
1627 output.WriteMessage(MinConstraint);
1628 }
1629 if (generalConstraintCase_ == GeneralConstraintOneofCase.MaxConstraint) {
1630 output.WriteRawTag(74);
1631 output.WriteMessage(MaxConstraint);
1632 }
1633 if (_unknownFields != null) {
1634 _unknownFields.WriteTo(ref output);
1635 }
1636 }
1637 #endif
1638
1639 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1640 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1641 public int CalculateSize() {
1642 int size = 0;
1643 if (HasName) {
1644 size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
1645 }
1646 if (generalConstraintCase_ == GeneralConstraintOneofCase.IndicatorConstraint) {
1647 size += 1 + pb::CodedOutputStream.ComputeMessageSize(IndicatorConstraint);
1648 }
1649 if (generalConstraintCase_ == GeneralConstraintOneofCase.SosConstraint) {
1650 size += 1 + pb::CodedOutputStream.ComputeMessageSize(SosConstraint);
1651 }
1652 if (generalConstraintCase_ == GeneralConstraintOneofCase.QuadraticConstraint) {
1653 size += 1 + pb::CodedOutputStream.ComputeMessageSize(QuadraticConstraint);
1654 }
1655 if (generalConstraintCase_ == GeneralConstraintOneofCase.AbsConstraint) {
1656 size += 1 + pb::CodedOutputStream.ComputeMessageSize(AbsConstraint);
1657 }
1658 if (generalConstraintCase_ == GeneralConstraintOneofCase.AndConstraint) {
1659 size += 1 + pb::CodedOutputStream.ComputeMessageSize(AndConstraint);
1660 }
1661 if (generalConstraintCase_ == GeneralConstraintOneofCase.OrConstraint) {
1662 size += 1 + pb::CodedOutputStream.ComputeMessageSize(OrConstraint);
1663 }
1664 if (generalConstraintCase_ == GeneralConstraintOneofCase.MinConstraint) {
1665 size += 1 + pb::CodedOutputStream.ComputeMessageSize(MinConstraint);
1666 }
1667 if (generalConstraintCase_ == GeneralConstraintOneofCase.MaxConstraint) {
1668 size += 1 + pb::CodedOutputStream.ComputeMessageSize(MaxConstraint);
1669 }
1670 if (_unknownFields != null) {
1671 size += _unknownFields.CalculateSize();
1672 }
1673 return size;
1674 }
1675
1676 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1677 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1678 public void MergeFrom(MPGeneralConstraintProto other) {
1679 if (other == null) {
1680 return;
1682 if (other.HasName) {
1683 Name = other.Name;
1684 }
1685 switch (other.GeneralConstraintCase) {
1686 case GeneralConstraintOneofCase.IndicatorConstraint:
1687 if (IndicatorConstraint == null) {
1688 IndicatorConstraint = new global::OperationsResearch.MPIndicatorConstraint();
1689 }
1690 IndicatorConstraint.MergeFrom(other.IndicatorConstraint);
1691 break;
1692 case GeneralConstraintOneofCase.SosConstraint:
1693 if (SosConstraint == null) {
1694 SosConstraint = new global::OperationsResearch.MPSosConstraint();
1695 }
1696 SosConstraint.MergeFrom(other.SosConstraint);
1697 break;
1698 case GeneralConstraintOneofCase.QuadraticConstraint:
1699 if (QuadraticConstraint == null) {
1700 QuadraticConstraint = new global::OperationsResearch.MPQuadraticConstraint();
1701 }
1702 QuadraticConstraint.MergeFrom(other.QuadraticConstraint);
1703 break;
1704 case GeneralConstraintOneofCase.AbsConstraint:
1705 if (AbsConstraint == null) {
1706 AbsConstraint = new global::OperationsResearch.MPAbsConstraint();
1707 }
1708 AbsConstraint.MergeFrom(other.AbsConstraint);
1709 break;
1710 case GeneralConstraintOneofCase.AndConstraint:
1711 if (AndConstraint == null) {
1712 AndConstraint = new global::OperationsResearch.MPArrayConstraint();
1713 }
1714 AndConstraint.MergeFrom(other.AndConstraint);
1715 break;
1716 case GeneralConstraintOneofCase.OrConstraint:
1717 if (OrConstraint == null) {
1718 OrConstraint = new global::OperationsResearch.MPArrayConstraint();
1719 }
1720 OrConstraint.MergeFrom(other.OrConstraint);
1721 break;
1722 case GeneralConstraintOneofCase.MinConstraint:
1723 if (MinConstraint == null) {
1724 MinConstraint = new global::OperationsResearch.MPArrayWithConstantConstraint();
1725 }
1726 MinConstraint.MergeFrom(other.MinConstraint);
1727 break;
1728 case GeneralConstraintOneofCase.MaxConstraint:
1729 if (MaxConstraint == null) {
1730 MaxConstraint = new global::OperationsResearch.MPArrayWithConstantConstraint();
1731 }
1732 MaxConstraint.MergeFrom(other.MaxConstraint);
1733 break;
1734 }
1735
1736 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
1737 }
1738
1739 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1740 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1741 public void MergeFrom(pb::CodedInputStream input) {
1742 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1743 input.ReadRawMessage(this);
1744 #else
1745 uint tag;
1746 while ((tag = input.ReadTag()) != 0) {
1747 if ((tag & 7) == 4) {
1748 // Abort on any end group tag.
1749 return;
1750 }
1751 switch(tag) {
1752 default:
1753 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
1754 break;
1755 case 10: {
1756 Name = input.ReadString();
1757 break;
1758 }
1759 case 18: {
1760 global::OperationsResearch.MPIndicatorConstraint subBuilder = new global::OperationsResearch.MPIndicatorConstraint();
1761 if (generalConstraintCase_ == GeneralConstraintOneofCase.IndicatorConstraint) {
1762 subBuilder.MergeFrom(IndicatorConstraint);
1763 }
1764 input.ReadMessage(subBuilder);
1765 IndicatorConstraint = subBuilder;
1766 break;
1767 }
1768 case 26: {
1769 global::OperationsResearch.MPSosConstraint subBuilder = new global::OperationsResearch.MPSosConstraint();
1770 if (generalConstraintCase_ == GeneralConstraintOneofCase.SosConstraint) {
1771 subBuilder.MergeFrom(SosConstraint);
1772 }
1773 input.ReadMessage(subBuilder);
1774 SosConstraint = subBuilder;
1775 break;
1776 }
1777 case 34: {
1778 global::OperationsResearch.MPQuadraticConstraint subBuilder = new global::OperationsResearch.MPQuadraticConstraint();
1779 if (generalConstraintCase_ == GeneralConstraintOneofCase.QuadraticConstraint) {
1780 subBuilder.MergeFrom(QuadraticConstraint);
1781 }
1782 input.ReadMessage(subBuilder);
1783 QuadraticConstraint = subBuilder;
1784 break;
1785 }
1786 case 42: {
1787 global::OperationsResearch.MPAbsConstraint subBuilder = new global::OperationsResearch.MPAbsConstraint();
1788 if (generalConstraintCase_ == GeneralConstraintOneofCase.AbsConstraint) {
1789 subBuilder.MergeFrom(AbsConstraint);
1790 }
1791 input.ReadMessage(subBuilder);
1792 AbsConstraint = subBuilder;
1793 break;
1794 }
1795 case 50: {
1796 global::OperationsResearch.MPArrayConstraint subBuilder = new global::OperationsResearch.MPArrayConstraint();
1797 if (generalConstraintCase_ == GeneralConstraintOneofCase.AndConstraint) {
1798 subBuilder.MergeFrom(AndConstraint);
1799 }
1800 input.ReadMessage(subBuilder);
1801 AndConstraint = subBuilder;
1802 break;
1803 }
1804 case 58: {
1805 global::OperationsResearch.MPArrayConstraint subBuilder = new global::OperationsResearch.MPArrayConstraint();
1806 if (generalConstraintCase_ == GeneralConstraintOneofCase.OrConstraint) {
1807 subBuilder.MergeFrom(OrConstraint);
1808 }
1809 input.ReadMessage(subBuilder);
1810 OrConstraint = subBuilder;
1811 break;
1812 }
1813 case 66: {
1814 global::OperationsResearch.MPArrayWithConstantConstraint subBuilder = new global::OperationsResearch.MPArrayWithConstantConstraint();
1815 if (generalConstraintCase_ == GeneralConstraintOneofCase.MinConstraint) {
1816 subBuilder.MergeFrom(MinConstraint);
1817 }
1818 input.ReadMessage(subBuilder);
1819 MinConstraint = subBuilder;
1820 break;
1821 }
1822 case 74: {
1823 global::OperationsResearch.MPArrayWithConstantConstraint subBuilder = new global::OperationsResearch.MPArrayWithConstantConstraint();
1824 if (generalConstraintCase_ == GeneralConstraintOneofCase.MaxConstraint) {
1825 subBuilder.MergeFrom(MaxConstraint);
1826 }
1827 input.ReadMessage(subBuilder);
1828 MaxConstraint = subBuilder;
1829 break;
1830 }
1831 }
1832 }
1833 #endif
1834 }
1835
1836 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1837 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1838 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1839 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
1840 uint tag;
1841 while ((tag = input.ReadTag()) != 0) {
1842 if ((tag & 7) == 4) {
1843 // Abort on any end group tag.
1844 return;
1845 }
1846 switch(tag) {
1847 default:
1848 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
1849 break;
1850 case 10: {
1851 Name = input.ReadString();
1852 break;
1853 }
1854 case 18: {
1855 global::OperationsResearch.MPIndicatorConstraint subBuilder = new global::OperationsResearch.MPIndicatorConstraint();
1856 if (generalConstraintCase_ == GeneralConstraintOneofCase.IndicatorConstraint) {
1857 subBuilder.MergeFrom(IndicatorConstraint);
1858 }
1859 input.ReadMessage(subBuilder);
1860 IndicatorConstraint = subBuilder;
1861 break;
1862 }
1863 case 26: {
1864 global::OperationsResearch.MPSosConstraint subBuilder = new global::OperationsResearch.MPSosConstraint();
1865 if (generalConstraintCase_ == GeneralConstraintOneofCase.SosConstraint) {
1866 subBuilder.MergeFrom(SosConstraint);
1867 }
1868 input.ReadMessage(subBuilder);
1869 SosConstraint = subBuilder;
1870 break;
1871 }
1872 case 34: {
1873 global::OperationsResearch.MPQuadraticConstraint subBuilder = new global::OperationsResearch.MPQuadraticConstraint();
1874 if (generalConstraintCase_ == GeneralConstraintOneofCase.QuadraticConstraint) {
1875 subBuilder.MergeFrom(QuadraticConstraint);
1876 }
1877 input.ReadMessage(subBuilder);
1878 QuadraticConstraint = subBuilder;
1879 break;
1880 }
1881 case 42: {
1882 global::OperationsResearch.MPAbsConstraint subBuilder = new global::OperationsResearch.MPAbsConstraint();
1883 if (generalConstraintCase_ == GeneralConstraintOneofCase.AbsConstraint) {
1884 subBuilder.MergeFrom(AbsConstraint);
1885 }
1886 input.ReadMessage(subBuilder);
1887 AbsConstraint = subBuilder;
1888 break;
1889 }
1890 case 50: {
1891 global::OperationsResearch.MPArrayConstraint subBuilder = new global::OperationsResearch.MPArrayConstraint();
1892 if (generalConstraintCase_ == GeneralConstraintOneofCase.AndConstraint) {
1893 subBuilder.MergeFrom(AndConstraint);
1894 }
1895 input.ReadMessage(subBuilder);
1896 AndConstraint = subBuilder;
1897 break;
1898 }
1899 case 58: {
1900 global::OperationsResearch.MPArrayConstraint subBuilder = new global::OperationsResearch.MPArrayConstraint();
1901 if (generalConstraintCase_ == GeneralConstraintOneofCase.OrConstraint) {
1902 subBuilder.MergeFrom(OrConstraint);
1903 }
1904 input.ReadMessage(subBuilder);
1905 OrConstraint = subBuilder;
1906 break;
1907 }
1908 case 66: {
1909 global::OperationsResearch.MPArrayWithConstantConstraint subBuilder = new global::OperationsResearch.MPArrayWithConstantConstraint();
1910 if (generalConstraintCase_ == GeneralConstraintOneofCase.MinConstraint) {
1911 subBuilder.MergeFrom(MinConstraint);
1912 }
1913 input.ReadMessage(subBuilder);
1914 MinConstraint = subBuilder;
1915 break;
1916 }
1917 case 74: {
1918 global::OperationsResearch.MPArrayWithConstantConstraint subBuilder = new global::OperationsResearch.MPArrayWithConstantConstraint();
1919 if (generalConstraintCase_ == GeneralConstraintOneofCase.MaxConstraint) {
1920 subBuilder.MergeFrom(MaxConstraint);
1921 }
1922 input.ReadMessage(subBuilder);
1923 MaxConstraint = subBuilder;
1924 break;
1925 }
1926 }
1927 }
1928 }
1929 #endif
1930
1931 }
1932
1935
1942 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
1943 public sealed partial class MPIndicatorConstraint : pb::IMessage<MPIndicatorConstraint>
1944 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1945 , pb::IBufferMessage
1946 #endif
1947 {
1948 private static readonly pb::MessageParser<MPIndicatorConstraint> _parser = new pb::MessageParser<MPIndicatorConstraint>(() => new MPIndicatorConstraint());
1949 private pb::UnknownFieldSet _unknownFields;
1950 private int _hasBits0;
1951 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1952 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1953 public static pb::MessageParser<MPIndicatorConstraint> Parser { get { return _parser; } }
1954
1955 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1956 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1957 public static pbr::MessageDescriptor Descriptor {
1958 get { return global::OperationsResearch.LinearSolverReflection.Descriptor.MessageTypes[3]; }
1959 }
1961 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1962 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1963 pbr::MessageDescriptor pb::IMessage.Descriptor {
1964 get { return Descriptor; }
1965 }
1966
1967 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1968 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1969 public MPIndicatorConstraint() {
1970 OnConstruction();
1971 }
1973 partial void OnConstruction();
1974
1975 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1976 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1977 public MPIndicatorConstraint(MPIndicatorConstraint other) : this() {
1978 _hasBits0 = other._hasBits0;
1979 varIndex_ = other.varIndex_;
1980 varValue_ = other.varValue_;
1981 constraint_ = other.constraint_ != null ? other.constraint_.Clone() : null;
1982 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
1983 }
1984
1985 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1986 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1987 public MPIndicatorConstraint Clone() {
1988 return new MPIndicatorConstraint(this);
1989 }
1992 public const int VarIndexFieldNumber = 1;
1993 private readonly static int VarIndexDefaultValue = 0;
1994
1995 private int varIndex_;
2000 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2001 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2002 public int VarIndex {
2003 get { if ((_hasBits0 & 1) != 0) { return varIndex_; } else { return VarIndexDefaultValue; } }
2004 set {
2005 _hasBits0 |= 1;
2006 varIndex_ = value;
2007 }
2008 }
2010 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2011 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2012 public bool HasVarIndex {
2013 get { return (_hasBits0 & 1) != 0; }
2014 }
2015 /// <summary>Clears the value of the "var_index" field</summary>
2016 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2017 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2018 public void ClearVarIndex() {
2019 _hasBits0 &= ~1;
2020 }
2023 public const int VarValueFieldNumber = 2;
2024 private readonly static int VarValueDefaultValue = 0;
2025
2026 private int varValue_;
2030 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2031 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2032 public int VarValue {
2033 get { if ((_hasBits0 & 2) != 0) { return varValue_; } else { return VarValueDefaultValue; } }
2034 set {
2035 _hasBits0 |= 2;
2036 varValue_ = value;
2037 }
2038 }
2040 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2041 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2042 public bool HasVarValue {
2043 get { return (_hasBits0 & 2) != 0; }
2044 }
2045 /// <summary>Clears the value of the "var_value" field</summary>
2046 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2047 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2048 public void ClearVarValue() {
2049 _hasBits0 &= ~2;
2050 }
2053 public const int ConstraintFieldNumber = 3;
2054 private global::OperationsResearch.MPConstraintProto constraint_;
2058 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2059 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2060 public global::OperationsResearch.MPConstraintProto Constraint {
2061 get { return constraint_; }
2062 set {
2063 constraint_ = value;
2064 }
2065 }
2066
2067 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2068 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2069 public override bool Equals(object other) {
2070 return Equals(other as MPIndicatorConstraint);
2071 }
2073 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2074 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2075 public bool Equals(MPIndicatorConstraint other) {
2076 if (ReferenceEquals(other, null)) {
2077 return false;
2079 if (ReferenceEquals(other, this)) {
2080 return true;
2081 }
2082 if (VarIndex != other.VarIndex) return false;
2083 if (VarValue != other.VarValue) return false;
2084 if (!object.Equals(Constraint, other.Constraint)) return false;
2085 return Equals(_unknownFields, other._unknownFields);
2086 }
2087
2088 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2089 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2090 public override int GetHashCode() {
2091 int hash = 1;
2092 if (HasVarIndex) hash ^= VarIndex.GetHashCode();
2093 if (HasVarValue) hash ^= VarValue.GetHashCode();
2094 if (constraint_ != null) hash ^= Constraint.GetHashCode();
2095 if (_unknownFields != null) {
2096 hash ^= _unknownFields.GetHashCode();
2097 }
2098 return hash;
2099 }
2100
2101 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2102 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2103 public override string ToString() {
2104 return pb::JsonFormatter.ToDiagnosticString(this);
2105 }
2107 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2108 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2109 public void WriteTo(pb::CodedOutputStream output) {
2110 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2111 output.WriteRawMessage(this);
2112 #else
2113 if (HasVarIndex) {
2114 output.WriteRawTag(8);
2115 output.WriteInt32(VarIndex);
2116 }
2117 if (HasVarValue) {
2118 output.WriteRawTag(16);
2119 output.WriteInt32(VarValue);
2120 }
2121 if (constraint_ != null) {
2122 output.WriteRawTag(26);
2123 output.WriteMessage(Constraint);
2124 }
2125 if (_unknownFields != null) {
2126 _unknownFields.WriteTo(output);
2127 }
2128 #endif
2129 }
2130
2131 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2132 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2133 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2134 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
2135 if (HasVarIndex) {
2136 output.WriteRawTag(8);
2137 output.WriteInt32(VarIndex);
2138 }
2139 if (HasVarValue) {
2140 output.WriteRawTag(16);
2141 output.WriteInt32(VarValue);
2142 }
2143 if (constraint_ != null) {
2144 output.WriteRawTag(26);
2145 output.WriteMessage(Constraint);
2146 }
2147 if (_unknownFields != null) {
2148 _unknownFields.WriteTo(ref output);
2149 }
2150 }
2151 #endif
2152
2153 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2154 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2155 public int CalculateSize() {
2156 int size = 0;
2157 if (HasVarIndex) {
2158 size += 1 + pb::CodedOutputStream.ComputeInt32Size(VarIndex);
2159 }
2160 if (HasVarValue) {
2161 size += 1 + pb::CodedOutputStream.ComputeInt32Size(VarValue);
2162 }
2163 if (constraint_ != null) {
2164 size += 1 + pb::CodedOutputStream.ComputeMessageSize(Constraint);
2165 }
2166 if (_unknownFields != null) {
2167 size += _unknownFields.CalculateSize();
2168 }
2169 return size;
2170 }
2171
2172 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2173 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2174 public void MergeFrom(MPIndicatorConstraint other) {
2175 if (other == null) {
2176 return;
2178 if (other.HasVarIndex) {
2179 VarIndex = other.VarIndex;
2180 }
2181 if (other.HasVarValue) {
2182 VarValue = other.VarValue;
2183 }
2184 if (other.constraint_ != null) {
2185 if (constraint_ == null) {
2186 Constraint = new global::OperationsResearch.MPConstraintProto();
2187 }
2188 Constraint.MergeFrom(other.Constraint);
2189 }
2190 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
2191 }
2192
2193 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2194 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2195 public void MergeFrom(pb::CodedInputStream input) {
2196 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2197 input.ReadRawMessage(this);
2198 #else
2199 uint tag;
2200 while ((tag = input.ReadTag()) != 0) {
2201 if ((tag & 7) == 4) {
2202 // Abort on any end group tag.
2203 return;
2204 }
2205 switch(tag) {
2206 default:
2207 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
2208 break;
2209 case 8: {
2210 VarIndex = input.ReadInt32();
2211 break;
2212 }
2213 case 16: {
2214 VarValue = input.ReadInt32();
2215 break;
2216 }
2217 case 26: {
2218 if (constraint_ == null) {
2219 Constraint = new global::OperationsResearch.MPConstraintProto();
2220 }
2221 input.ReadMessage(Constraint);
2222 break;
2223 }
2224 }
2225 }
2226 #endif
2227 }
2228
2229 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2230 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2231 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2232 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
2233 uint tag;
2234 while ((tag = input.ReadTag()) != 0) {
2235 if ((tag & 7) == 4) {
2236 // Abort on any end group tag.
2237 return;
2238 }
2239 switch(tag) {
2240 default:
2241 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
2242 break;
2243 case 8: {
2244 VarIndex = input.ReadInt32();
2245 break;
2246 }
2247 case 16: {
2248 VarValue = input.ReadInt32();
2249 break;
2250 }
2251 case 26: {
2252 if (constraint_ == null) {
2253 Constraint = new global::OperationsResearch.MPConstraintProto();
2254 }
2255 input.ReadMessage(Constraint);
2256 break;
2257 }
2258 }
2259 }
2260 }
2261 #endif
2262
2263 }
2264
2267
2270 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
2271 public sealed partial class MPSosConstraint : pb::IMessage<MPSosConstraint>
2272 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2273 , pb::IBufferMessage
2274 #endif
2275 {
2276 private static readonly pb::MessageParser<MPSosConstraint> _parser = new pb::MessageParser<MPSosConstraint>(() => new MPSosConstraint());
2277 private pb::UnknownFieldSet _unknownFields;
2278 private int _hasBits0;
2279 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2280 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2281 public static pb::MessageParser<MPSosConstraint> Parser { get { return _parser; } }
2282
2283 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2284 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2285 public static pbr::MessageDescriptor Descriptor {
2286 get { return global::OperationsResearch.LinearSolverReflection.Descriptor.MessageTypes[4]; }
2287 }
2289 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2290 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2291 pbr::MessageDescriptor pb::IMessage.Descriptor {
2292 get { return Descriptor; }
2293 }
2294
2295 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2296 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2297 public MPSosConstraint() {
2298 OnConstruction();
2299 }
2301 partial void OnConstruction();
2302
2303 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2304 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2305 public MPSosConstraint(MPSosConstraint other) : this() {
2306 _hasBits0 = other._hasBits0;
2307 type_ = other.type_;
2308 varIndex_ = other.varIndex_.Clone();
2309 weight_ = other.weight_.Clone();
2310 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
2311 }
2312
2313 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2314 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2315 public MPSosConstraint Clone() {
2316 return new MPSosConstraint(this);
2317 }
2320 public const int TypeFieldNumber = 1;
2321 private readonly static global::OperationsResearch.MPSosConstraint.Types.Type TypeDefaultValue = global::OperationsResearch.MPSosConstraint.Types.Type.Sos1Default;
2322
2323 private global::OperationsResearch.MPSosConstraint.Types.Type type_;
2324 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2325 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2326 public global::OperationsResearch.MPSosConstraint.Types.Type Type {
2327 get { if ((_hasBits0 & 1) != 0) { return type_; } else { return TypeDefaultValue; } }
2328 set {
2329 _hasBits0 |= 1;
2330 type_ = value;
2331 }
2332 }
2334 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2335 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2336 public bool HasType {
2337 get { return (_hasBits0 & 1) != 0; }
2338 }
2339 /// <summary>Clears the value of the "type" field</summary>
2340 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2341 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2342 public void ClearType() {
2343 _hasBits0 &= ~1;
2344 }
2347 public const int VarIndexFieldNumber = 2;
2348 private static readonly pb::FieldCodec<int> _repeated_varIndex_codec
2349 = pb::FieldCodec.ForInt32(16);
2350 private readonly pbc::RepeatedField<int> varIndex_ = new pbc::RepeatedField<int>();
2355 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2356 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2357 public pbc::RepeatedField<int> VarIndex {
2358 get { return varIndex_; }
2359 }
2362 public const int WeightFieldNumber = 3;
2363 private static readonly pb::FieldCodec<double> _repeated_weight_codec
2364 = pb::FieldCodec.ForDouble(25);
2365 private readonly pbc::RepeatedField<double> weight_ = new pbc::RepeatedField<double>();
2378 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2379 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2380 public pbc::RepeatedField<double> Weight {
2381 get { return weight_; }
2382 }
2384 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2385 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2386 public override bool Equals(object other) {
2387 return Equals(other as MPSosConstraint);
2388 }
2390 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2391 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2392 public bool Equals(MPSosConstraint other) {
2393 if (ReferenceEquals(other, null)) {
2394 return false;
2396 if (ReferenceEquals(other, this)) {
2397 return true;
2398 }
2399 if (Type != other.Type) return false;
2400 if(!varIndex_.Equals(other.varIndex_)) return false;
2401 if(!weight_.Equals(other.weight_)) return false;
2402 return Equals(_unknownFields, other._unknownFields);
2403 }
2404
2405 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2406 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2407 public override int GetHashCode() {
2408 int hash = 1;
2409 if (HasType) hash ^= Type.GetHashCode();
2410 hash ^= varIndex_.GetHashCode();
2411 hash ^= weight_.GetHashCode();
2412 if (_unknownFields != null) {
2413 hash ^= _unknownFields.GetHashCode();
2414 }
2415 return hash;
2416 }
2417
2418 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2419 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2420 public override string ToString() {
2421 return pb::JsonFormatter.ToDiagnosticString(this);
2422 }
2424 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2425 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2426 public void WriteTo(pb::CodedOutputStream output) {
2427 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2428 output.WriteRawMessage(this);
2429 #else
2430 if (HasType) {
2431 output.WriteRawTag(8);
2432 output.WriteEnum((int) Type);
2433 }
2434 varIndex_.WriteTo(output, _repeated_varIndex_codec);
2435 weight_.WriteTo(output, _repeated_weight_codec);
2436 if (_unknownFields != null) {
2437 _unknownFields.WriteTo(output);
2438 }
2439 #endif
2440 }
2441
2442 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2443 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2444 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2445 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
2446 if (HasType) {
2447 output.WriteRawTag(8);
2448 output.WriteEnum((int) Type);
2449 }
2450 varIndex_.WriteTo(ref output, _repeated_varIndex_codec);
2451 weight_.WriteTo(ref output, _repeated_weight_codec);
2452 if (_unknownFields != null) {
2453 _unknownFields.WriteTo(ref output);
2454 }
2455 }
2456 #endif
2457
2458 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2459 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2460 public int CalculateSize() {
2461 int size = 0;
2462 if (HasType) {
2463 size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type);
2464 }
2465 size += varIndex_.CalculateSize(_repeated_varIndex_codec);
2466 size += weight_.CalculateSize(_repeated_weight_codec);
2467 if (_unknownFields != null) {
2468 size += _unknownFields.CalculateSize();
2469 }
2470 return size;
2471 }
2472
2473 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2474 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2475 public void MergeFrom(MPSosConstraint other) {
2476 if (other == null) {
2477 return;
2479 if (other.HasType) {
2480 Type = other.Type;
2481 }
2482 varIndex_.Add(other.varIndex_);
2483 weight_.Add(other.weight_);
2484 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
2485 }
2486
2487 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2488 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2489 public void MergeFrom(pb::CodedInputStream input) {
2490 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2491 input.ReadRawMessage(this);
2492 #else
2493 uint tag;
2494 while ((tag = input.ReadTag()) != 0) {
2495 if ((tag & 7) == 4) {
2496 // Abort on any end group tag.
2497 return;
2498 }
2499 switch(tag) {
2500 default:
2501 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
2502 break;
2503 case 8: {
2504 Type = (global::OperationsResearch.MPSosConstraint.Types.Type) input.ReadEnum();
2505 break;
2506 }
2507 case 18:
2508 case 16: {
2509 varIndex_.AddEntriesFrom(input, _repeated_varIndex_codec);
2510 break;
2511 }
2512 case 26:
2513 case 25: {
2514 weight_.AddEntriesFrom(input, _repeated_weight_codec);
2515 break;
2516 }
2517 }
2518 }
2519 #endif
2520 }
2521
2522 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2523 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2524 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2525 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
2526 uint tag;
2527 while ((tag = input.ReadTag()) != 0) {
2528 if ((tag & 7) == 4) {
2529 // Abort on any end group tag.
2530 return;
2531 }
2532 switch(tag) {
2533 default:
2534 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
2535 break;
2536 case 8: {
2537 Type = (global::OperationsResearch.MPSosConstraint.Types.Type) input.ReadEnum();
2538 break;
2539 }
2540 case 18:
2541 case 16: {
2542 varIndex_.AddEntriesFrom(ref input, _repeated_varIndex_codec);
2543 break;
2544 }
2545 case 26:
2546 case 25: {
2547 weight_.AddEntriesFrom(ref input, _repeated_weight_codec);
2548 break;
2549 }
2550 }
2551 }
2552 }
2553 #endif
2554
2555 #region Nested types
2557 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2558 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2559 public static partial class Types {
2560 public enum Type {
2562 /// At most one variable in `var_index` must be non-zero.
2563 /// </summary>
2564 [pbr::OriginalName("SOS1_DEFAULT")] Sos1Default = 0,
2570 [pbr::OriginalName("SOS2")] Sos2 = 1,
2571 }
2572
2574 #endregion
2575
2576 }
2577
2580
2587 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
2588 public sealed partial class MPQuadraticConstraint : pb::IMessage<MPQuadraticConstraint>
2589 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2590 , pb::IBufferMessage
2591 #endif
2592 {
2593 private static readonly pb::MessageParser<MPQuadraticConstraint> _parser = new pb::MessageParser<MPQuadraticConstraint>(() => new MPQuadraticConstraint());
2594 private pb::UnknownFieldSet _unknownFields;
2595 private int _hasBits0;
2596 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2597 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2598 public static pb::MessageParser<MPQuadraticConstraint> Parser { get { return _parser; } }
2599
2600 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2601 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2602 public static pbr::MessageDescriptor Descriptor {
2603 get { return global::OperationsResearch.LinearSolverReflection.Descriptor.MessageTypes[5]; }
2604 }
2606 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2607 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2608 pbr::MessageDescriptor pb::IMessage.Descriptor {
2609 get { return Descriptor; }
2610 }
2611
2612 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2613 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2614 public MPQuadraticConstraint() {
2615 OnConstruction();
2616 }
2618 partial void OnConstruction();
2619
2620 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2621 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2622 public MPQuadraticConstraint(MPQuadraticConstraint other) : this() {
2623 _hasBits0 = other._hasBits0;
2624 varIndex_ = other.varIndex_.Clone();
2625 coefficient_ = other.coefficient_.Clone();
2626 qvar1Index_ = other.qvar1Index_.Clone();
2627 qvar2Index_ = other.qvar2Index_.Clone();
2628 qcoefficient_ = other.qcoefficient_.Clone();
2629 lowerBound_ = other.lowerBound_;
2630 upperBound_ = other.upperBound_;
2631 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
2632 }
2633
2634 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2635 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2636 public MPQuadraticConstraint Clone() {
2637 return new MPQuadraticConstraint(this);
2638 }
2641 public const int VarIndexFieldNumber = 1;
2642 private static readonly pb::FieldCodec<int> _repeated_varIndex_codec
2643 = pb::FieldCodec.ForInt32(8);
2644 private readonly pbc::RepeatedField<int> varIndex_ = new pbc::RepeatedField<int>();
2651 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2652 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2653 public pbc::RepeatedField<int> VarIndex {
2654 get { return varIndex_; }
2655 }
2658 public const int CoefficientFieldNumber = 2;
2659 private static readonly pb::FieldCodec<double> _repeated_coefficient_codec
2660 = pb::FieldCodec.ForDouble(17);
2661 private readonly pbc::RepeatedField<double> coefficient_ = new pbc::RepeatedField<double>();
2665 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2666 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2667 public pbc::RepeatedField<double> Coefficient {
2668 get { return coefficient_; }
2669 }
2672 public const int Qvar1IndexFieldNumber = 3;
2673 private static readonly pb::FieldCodec<int> _repeated_qvar1Index_codec
2674 = pb::FieldCodec.ForInt32(24);
2675 private readonly pbc::RepeatedField<int> qvar1Index_ = new pbc::RepeatedField<int>();
2685 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2686 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2687 public pbc::RepeatedField<int> Qvar1Index {
2688 get { return qvar1Index_; }
2689 }
2692 public const int Qvar2IndexFieldNumber = 4;
2693 private static readonly pb::FieldCodec<int> _repeated_qvar2Index_codec
2694 = pb::FieldCodec.ForInt32(32);
2695 private readonly pbc::RepeatedField<int> qvar2Index_ = new pbc::RepeatedField<int>();
2696 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2697 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2698 public pbc::RepeatedField<int> Qvar2Index {
2699 get { return qvar2Index_; }
2700 }
2703 public const int QcoefficientFieldNumber = 5;
2704 private static readonly pb::FieldCodec<double> _repeated_qcoefficient_codec
2705 = pb::FieldCodec.ForDouble(41);
2706 private readonly pbc::RepeatedField<double> qcoefficient_ = new pbc::RepeatedField<double>();
2710 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2711 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2712 public pbc::RepeatedField<double> Qcoefficient {
2713 get { return qcoefficient_; }
2714 }
2717 public const int LowerBoundFieldNumber = 6;
2718 private readonly static double LowerBoundDefaultValue = double.NegativeInfinity;
2719
2720 private double lowerBound_;
2724 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2725 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2726 public double LowerBound {
2727 get { if ((_hasBits0 & 1) != 0) { return lowerBound_; } else { return LowerBoundDefaultValue; } }
2728 set {
2729 _hasBits0 |= 1;
2730 lowerBound_ = value;
2731 }
2732 }
2734 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2735 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2736 public bool HasLowerBound {
2737 get { return (_hasBits0 & 1) != 0; }
2738 }
2739 /// <summary>Clears the value of the "lower_bound" field</summary>
2740 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2741 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2742 public void ClearLowerBound() {
2743 _hasBits0 &= ~1;
2744 }
2747 public const int UpperBoundFieldNumber = 7;
2748 private readonly static double UpperBoundDefaultValue = double.PositiveInfinity;
2749
2750 private double upperBound_;
2751 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2752 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2753 public double UpperBound {
2754 get { if ((_hasBits0 & 2) != 0) { return upperBound_; } else { return UpperBoundDefaultValue; } }
2755 set {
2756 _hasBits0 |= 2;
2757 upperBound_ = value;
2758 }
2759 }
2761 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2762 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2763 public bool HasUpperBound {
2764 get { return (_hasBits0 & 2) != 0; }
2765 }
2766 /// <summary>Clears the value of the "upper_bound" field</summary>
2767 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2768 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2769 public void ClearUpperBound() {
2770 _hasBits0 &= ~2;
2771 }
2773 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2774 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2775 public override bool Equals(object other) {
2776 return Equals(other as MPQuadraticConstraint);
2777 }
2779 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2780 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2781 public bool Equals(MPQuadraticConstraint other) {
2782 if (ReferenceEquals(other, null)) {
2783 return false;
2785 if (ReferenceEquals(other, this)) {
2786 return true;
2787 }
2788 if(!varIndex_.Equals(other.varIndex_)) return false;
2789 if(!coefficient_.Equals(other.coefficient_)) return false;
2790 if(!qvar1Index_.Equals(other.qvar1Index_)) return false;
2791 if(!qvar2Index_.Equals(other.qvar2Index_)) return false;
2792 if(!qcoefficient_.Equals(other.qcoefficient_)) return false;
2793 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(LowerBound, other.LowerBound)) return false;
2794 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(UpperBound, other.UpperBound)) return false;
2795 return Equals(_unknownFields, other._unknownFields);
2796 }
2797
2798 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2799 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2800 public override int GetHashCode() {
2801 int hash = 1;
2802 hash ^= varIndex_.GetHashCode();
2803 hash ^= coefficient_.GetHashCode();
2804 hash ^= qvar1Index_.GetHashCode();
2805 hash ^= qvar2Index_.GetHashCode();
2806 hash ^= qcoefficient_.GetHashCode();
2807 if (HasLowerBound) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(LowerBound);
2808 if (HasUpperBound) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(UpperBound);
2809 if (_unknownFields != null) {
2810 hash ^= _unknownFields.GetHashCode();
2811 }
2812 return hash;
2813 }
2814
2815 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2816 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2817 public override string ToString() {
2818 return pb::JsonFormatter.ToDiagnosticString(this);
2819 }
2821 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2822 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2823 public void WriteTo(pb::CodedOutputStream output) {
2824 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2825 output.WriteRawMessage(this);
2826 #else
2827 varIndex_.WriteTo(output, _repeated_varIndex_codec);
2828 coefficient_.WriteTo(output, _repeated_coefficient_codec);
2829 qvar1Index_.WriteTo(output, _repeated_qvar1Index_codec);
2830 qvar2Index_.WriteTo(output, _repeated_qvar2Index_codec);
2831 qcoefficient_.WriteTo(output, _repeated_qcoefficient_codec);
2832 if (HasLowerBound) {
2833 output.WriteRawTag(49);
2834 output.WriteDouble(LowerBound);
2835 }
2836 if (HasUpperBound) {
2837 output.WriteRawTag(57);
2838 output.WriteDouble(UpperBound);
2839 }
2840 if (_unknownFields != null) {
2841 _unknownFields.WriteTo(output);
2842 }
2843 #endif
2844 }
2845
2846 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2847 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2848 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2849 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
2850 varIndex_.WriteTo(ref output, _repeated_varIndex_codec);
2851 coefficient_.WriteTo(ref output, _repeated_coefficient_codec);
2852 qvar1Index_.WriteTo(ref output, _repeated_qvar1Index_codec);
2853 qvar2Index_.WriteTo(ref output, _repeated_qvar2Index_codec);
2854 qcoefficient_.WriteTo(ref output, _repeated_qcoefficient_codec);
2855 if (HasLowerBound) {
2856 output.WriteRawTag(49);
2857 output.WriteDouble(LowerBound);
2858 }
2859 if (HasUpperBound) {
2860 output.WriteRawTag(57);
2861 output.WriteDouble(UpperBound);
2862 }
2863 if (_unknownFields != null) {
2864 _unknownFields.WriteTo(ref output);
2865 }
2866 }
2867 #endif
2868
2869 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2870 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2871 public int CalculateSize() {
2872 int size = 0;
2873 size += varIndex_.CalculateSize(_repeated_varIndex_codec);
2874 size += coefficient_.CalculateSize(_repeated_coefficient_codec);
2875 size += qvar1Index_.CalculateSize(_repeated_qvar1Index_codec);
2876 size += qvar2Index_.CalculateSize(_repeated_qvar2Index_codec);
2877 size += qcoefficient_.CalculateSize(_repeated_qcoefficient_codec);
2878 if (HasLowerBound) {
2879 size += 1 + 8;
2880 }
2881 if (HasUpperBound) {
2882 size += 1 + 8;
2883 }
2884 if (_unknownFields != null) {
2885 size += _unknownFields.CalculateSize();
2886 }
2887 return size;
2888 }
2889
2890 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2891 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2892 public void MergeFrom(MPQuadraticConstraint other) {
2893 if (other == null) {
2894 return;
2896 varIndex_.Add(other.varIndex_);
2897 coefficient_.Add(other.coefficient_);
2898 qvar1Index_.Add(other.qvar1Index_);
2899 qvar2Index_.Add(other.qvar2Index_);
2900 qcoefficient_.Add(other.qcoefficient_);
2901 if (other.HasLowerBound) {
2902 LowerBound = other.LowerBound;
2903 }
2904 if (other.HasUpperBound) {
2905 UpperBound = other.UpperBound;
2906 }
2907 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
2908 }
2909
2910 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2911 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2912 public void MergeFrom(pb::CodedInputStream input) {
2913 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2914 input.ReadRawMessage(this);
2915 #else
2916 uint tag;
2917 while ((tag = input.ReadTag()) != 0) {
2918 if ((tag & 7) == 4) {
2919 // Abort on any end group tag.
2920 return;
2921 }
2922 switch(tag) {
2923 default:
2924 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
2925 break;
2926 case 10:
2927 case 8: {
2928 varIndex_.AddEntriesFrom(input, _repeated_varIndex_codec);
2929 break;
2930 }
2931 case 18:
2932 case 17: {
2933 coefficient_.AddEntriesFrom(input, _repeated_coefficient_codec);
2934 break;
2935 }
2936 case 26:
2937 case 24: {
2938 qvar1Index_.AddEntriesFrom(input, _repeated_qvar1Index_codec);
2939 break;
2940 }
2941 case 34:
2942 case 32: {
2943 qvar2Index_.AddEntriesFrom(input, _repeated_qvar2Index_codec);
2944 break;
2945 }
2946 case 42:
2947 case 41: {
2948 qcoefficient_.AddEntriesFrom(input, _repeated_qcoefficient_codec);
2949 break;
2950 }
2951 case 49: {
2952 LowerBound = input.ReadDouble();
2953 break;
2954 }
2955 case 57: {
2956 UpperBound = input.ReadDouble();
2957 break;
2958 }
2959 }
2960 }
2961 #endif
2962 }
2963
2964 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2965 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2966 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2967 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
2968 uint tag;
2969 while ((tag = input.ReadTag()) != 0) {
2970 if ((tag & 7) == 4) {
2971 // Abort on any end group tag.
2972 return;
2973 }
2974 switch(tag) {
2975 default:
2976 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
2977 break;
2978 case 10:
2979 case 8: {
2980 varIndex_.AddEntriesFrom(ref input, _repeated_varIndex_codec);
2981 break;
2982 }
2983 case 18:
2984 case 17: {
2985 coefficient_.AddEntriesFrom(ref input, _repeated_coefficient_codec);
2986 break;
2987 }
2988 case 26:
2989 case 24: {
2990 qvar1Index_.AddEntriesFrom(ref input, _repeated_qvar1Index_codec);
2991 break;
2992 }
2993 case 34:
2994 case 32: {
2995 qvar2Index_.AddEntriesFrom(ref input, _repeated_qvar2Index_codec);
2996 break;
2997 }
2998 case 42:
2999 case 41: {
3000 qcoefficient_.AddEntriesFrom(ref input, _repeated_qcoefficient_codec);
3001 break;
3002 }
3003 case 49: {
3004 LowerBound = input.ReadDouble();
3005 break;
3006 }
3007 case 57: {
3008 UpperBound = input.ReadDouble();
3009 break;
3010 }
3011 }
3012 }
3013 }
3014 #endif
3015
3016 }
3017
3020
3021 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
3022 public sealed partial class MPAbsConstraint : pb::IMessage<MPAbsConstraint>
3023 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
3024 , pb::IBufferMessage
3025 #endif
3026 {
3027 private static readonly pb::MessageParser<MPAbsConstraint> _parser = new pb::MessageParser<MPAbsConstraint>(() => new MPAbsConstraint());
3028 private pb::UnknownFieldSet _unknownFields;
3029 private int _hasBits0;
3030 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3031 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3032 public static pb::MessageParser<MPAbsConstraint> Parser { get { return _parser; } }
3033
3034 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3035 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3036 public static pbr::MessageDescriptor Descriptor {
3037 get { return global::OperationsResearch.LinearSolverReflection.Descriptor.MessageTypes[6]; }
3038 }
3040 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3041 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3042 pbr::MessageDescriptor pb::IMessage.Descriptor {
3043 get { return Descriptor; }
3044 }
3045
3046 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3047 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3048 public MPAbsConstraint() {
3049 OnConstruction();
3050 }
3052 partial void OnConstruction();
3053
3054 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3055 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3056 public MPAbsConstraint(MPAbsConstraint other) : this() {
3057 _hasBits0 = other._hasBits0;
3058 varIndex_ = other.varIndex_;
3059 resultantVarIndex_ = other.resultantVarIndex_;
3060 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
3061 }
3062
3063 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3064 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3065 public MPAbsConstraint Clone() {
3066 return new MPAbsConstraint(this);
3067 }
3070 public const int VarIndexFieldNumber = 1;
3071 private readonly static int VarIndexDefaultValue = 0;
3072
3073 private int varIndex_;
3078 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3079 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3080 public int VarIndex {
3081 get { if ((_hasBits0 & 1) != 0) { return varIndex_; } else { return VarIndexDefaultValue; } }
3082 set {
3083 _hasBits0 |= 1;
3084 varIndex_ = value;
3085 }
3086 }
3088 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3089 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3090 public bool HasVarIndex {
3091 get { return (_hasBits0 & 1) != 0; }
3092 }
3093 /// <summary>Clears the value of the "var_index" field</summary>
3094 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3095 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3096 public void ClearVarIndex() {
3097 _hasBits0 &= ~1;
3098 }
3101 public const int ResultantVarIndexFieldNumber = 2;
3102 private readonly static int ResultantVarIndexDefaultValue = 0;
3103
3104 private int resultantVarIndex_;
3105 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3106 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3107 public int ResultantVarIndex {
3108 get { if ((_hasBits0 & 2) != 0) { return resultantVarIndex_; } else { return ResultantVarIndexDefaultValue; } }
3109 set {
3110 _hasBits0 |= 2;
3111 resultantVarIndex_ = value;
3112 }
3113 }
3115 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3116 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3117 public bool HasResultantVarIndex {
3118 get { return (_hasBits0 & 2) != 0; }
3119 }
3120 /// <summary>Clears the value of the "resultant_var_index" field</summary>
3121 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3122 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3123 public void ClearResultantVarIndex() {
3124 _hasBits0 &= ~2;
3125 }
3127 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3128 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3129 public override bool Equals(object other) {
3130 return Equals(other as MPAbsConstraint);
3131 }
3133 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3134 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3135 public bool Equals(MPAbsConstraint other) {
3136 if (ReferenceEquals(other, null)) {
3137 return false;
3139 if (ReferenceEquals(other, this)) {
3140 return true;
3141 }
3142 if (VarIndex != other.VarIndex) return false;
3143 if (ResultantVarIndex != other.ResultantVarIndex) return false;
3144 return Equals(_unknownFields, other._unknownFields);
3145 }
3146
3147 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3148 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3149 public override int GetHashCode() {
3150 int hash = 1;
3151 if (HasVarIndex) hash ^= VarIndex.GetHashCode();
3152 if (HasResultantVarIndex) hash ^= ResultantVarIndex.GetHashCode();
3153 if (_unknownFields != null) {
3154 hash ^= _unknownFields.GetHashCode();
3155 }
3156 return hash;
3157 }
3158
3159 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3160 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3161 public override string ToString() {
3162 return pb::JsonFormatter.ToDiagnosticString(this);
3163 }
3165 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3166 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3167 public void WriteTo(pb::CodedOutputStream output) {
3168 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
3169 output.WriteRawMessage(this);
3170 #else
3171 if (HasVarIndex) {
3172 output.WriteRawTag(8);
3173 output.WriteInt32(VarIndex);
3174 }
3175 if (HasResultantVarIndex) {
3176 output.WriteRawTag(16);
3177 output.WriteInt32(ResultantVarIndex);
3178 }
3179 if (_unknownFields != null) {
3180 _unknownFields.WriteTo(output);
3181 }
3182 #endif
3183 }
3184
3185 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
3186 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3187 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3188 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
3189 if (HasVarIndex) {
3190 output.WriteRawTag(8);
3191 output.WriteInt32(VarIndex);
3192 }
3193 if (HasResultantVarIndex) {
3194 output.WriteRawTag(16);
3195 output.WriteInt32(ResultantVarIndex);
3196 }
3197 if (_unknownFields != null) {
3198 _unknownFields.WriteTo(ref output);
3199 }
3200 }
3201 #endif
3202
3203 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3204 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3205 public int CalculateSize() {
3206 int size = 0;
3207 if (HasVarIndex) {
3208 size += 1 + pb::CodedOutputStream.ComputeInt32Size(VarIndex);
3209 }
3210 if (HasResultantVarIndex) {
3211 size += 1 + pb::CodedOutputStream.ComputeInt32Size(ResultantVarIndex);
3212 }
3213 if (_unknownFields != null) {
3214 size += _unknownFields.CalculateSize();
3215 }
3216 return size;
3217 }
3218
3219 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3220 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3221 public void MergeFrom(MPAbsConstraint other) {
3222 if (other == null) {
3223 return;
3225 if (other.HasVarIndex) {
3226 VarIndex = other.VarIndex;
3227 }
3228 if (other.HasResultantVarIndex) {
3229 ResultantVarIndex = other.ResultantVarIndex;
3230 }
3231 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
3232 }
3233
3234 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3235 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3236 public void MergeFrom(pb::CodedInputStream input) {
3237 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
3238 input.ReadRawMessage(this);
3239 #else
3240 uint tag;
3241 while ((tag = input.ReadTag()) != 0) {
3242 if ((tag & 7) == 4) {
3243 // Abort on any end group tag.
3244 return;
3245 }
3246 switch(tag) {
3247 default:
3248 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
3249 break;
3250 case 8: {
3251 VarIndex = input.ReadInt32();
3252 break;
3253 }
3254 case 16: {
3255 ResultantVarIndex = input.ReadInt32();
3256 break;
3257 }
3258 }
3259 }
3260 #endif
3261 }
3262
3263 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
3264 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3265 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3266 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
3267 uint tag;
3268 while ((tag = input.ReadTag()) != 0) {
3269 if ((tag & 7) == 4) {
3270 // Abort on any end group tag.
3271 return;
3272 }
3273 switch(tag) {
3274 default:
3275 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
3276 break;
3277 case 8: {
3278 VarIndex = input.ReadInt32();
3279 break;
3280 }
3281 case 16: {
3282 ResultantVarIndex = input.ReadInt32();
3283 break;
3284 }
3285 }
3286 }
3287 }
3288 #endif
3289
3290 }
3291
3294
3295 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
3296 public sealed partial class MPArrayConstraint : pb::IMessage<MPArrayConstraint>
3297 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
3298 , pb::IBufferMessage
3299 #endif
3300 {
3301 private static readonly pb::MessageParser<MPArrayConstraint> _parser = new pb::MessageParser<MPArrayConstraint>(() => new MPArrayConstraint());
3302 private pb::UnknownFieldSet _unknownFields;
3303 private int _hasBits0;
3304 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3305 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3306 public static pb::MessageParser<MPArrayConstraint> Parser { get { return _parser; } }
3307
3308 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3309 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3310 public static pbr::MessageDescriptor Descriptor {
3311 get { return global::OperationsResearch.LinearSolverReflection.Descriptor.MessageTypes[7]; }
3312 }
3314 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3315 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3316 pbr::MessageDescriptor pb::IMessage.Descriptor {
3317 get { return Descriptor; }
3318 }
3319
3320 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3321 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3322 public MPArrayConstraint() {
3323 OnConstruction();
3324 }
3326 partial void OnConstruction();
3327
3328 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3329 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3330 public MPArrayConstraint(MPArrayConstraint other) : this() {
3331 _hasBits0 = other._hasBits0;
3332 varIndex_ = other.varIndex_.Clone();
3333 resultantVarIndex_ = other.resultantVarIndex_;
3334 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
3335 }
3336
3337 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3338 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3339 public MPArrayConstraint Clone() {
3340 return new MPArrayConstraint(this);
3341 }
3344 public const int VarIndexFieldNumber = 1;
3345 private static readonly pb::FieldCodec<int> _repeated_varIndex_codec
3346 = pb::FieldCodec.ForInt32(8);
3347 private readonly pbc::RepeatedField<int> varIndex_ = new pbc::RepeatedField<int>();
3351 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3352 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3353 public pbc::RepeatedField<int> VarIndex {
3354 get { return varIndex_; }
3355 }
3358 public const int ResultantVarIndexFieldNumber = 2;
3359 private readonly static int ResultantVarIndexDefaultValue = 0;
3360
3361 private int resultantVarIndex_;
3362 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3363 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3364 public int ResultantVarIndex {
3365 get { if ((_hasBits0 & 1) != 0) { return resultantVarIndex_; } else { return ResultantVarIndexDefaultValue; } }
3366 set {
3367 _hasBits0 |= 1;
3368 resultantVarIndex_ = value;
3369 }
3370 }
3372 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3373 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3374 public bool HasResultantVarIndex {
3375 get { return (_hasBits0 & 1) != 0; }
3376 }
3377 /// <summary>Clears the value of the "resultant_var_index" field</summary>
3378 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3379 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3380 public void ClearResultantVarIndex() {
3381 _hasBits0 &= ~1;
3382 }
3384 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3385 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3386 public override bool Equals(object other) {
3387 return Equals(other as MPArrayConstraint);
3388 }
3390 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3391 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3392 public bool Equals(MPArrayConstraint other) {
3393 if (ReferenceEquals(other, null)) {
3394 return false;
3396 if (ReferenceEquals(other, this)) {
3397 return true;
3398 }
3399 if(!varIndex_.Equals(other.varIndex_)) return false;
3400 if (ResultantVarIndex != other.ResultantVarIndex) return false;
3401 return Equals(_unknownFields, other._unknownFields);
3402 }
3403
3404 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3405 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3406 public override int GetHashCode() {
3407 int hash = 1;
3408 hash ^= varIndex_.GetHashCode();
3409 if (HasResultantVarIndex) hash ^= ResultantVarIndex.GetHashCode();
3410 if (_unknownFields != null) {
3411 hash ^= _unknownFields.GetHashCode();
3412 }
3413 return hash;
3414 }
3415
3416 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3417 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3418 public override string ToString() {
3419 return pb::JsonFormatter.ToDiagnosticString(this);
3420 }
3422 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3423 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3424 public void WriteTo(pb::CodedOutputStream output) {
3425 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
3426 output.WriteRawMessage(this);
3427 #else
3428 varIndex_.WriteTo(output, _repeated_varIndex_codec);
3430 output.WriteRawTag(16);
3431 output.WriteInt32(ResultantVarIndex);
3432 }
3433 if (_unknownFields != null) {
3434 _unknownFields.WriteTo(output);
3435 }
3436 #endif
3437 }
3438
3439 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
3440 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3441 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3442 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
3443 varIndex_.WriteTo(ref output, _repeated_varIndex_codec);
3444 if (HasResultantVarIndex) {
3445 output.WriteRawTag(16);
3446 output.WriteInt32(ResultantVarIndex);
3447 }
3448 if (_unknownFields != null) {
3449 _unknownFields.WriteTo(ref output);
3450 }
3451 }
3452 #endif
3453
3454 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3455 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3456 public int CalculateSize() {
3457 int size = 0;
3458 size += varIndex_.CalculateSize(_repeated_varIndex_codec);
3460 size += 1 + pb::CodedOutputStream.ComputeInt32Size(ResultantVarIndex);
3461 }
3462 if (_unknownFields != null) {
3463 size += _unknownFields.CalculateSize();
3464 }
3465 return size;
3466 }
3467
3468 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3469 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3470 public void MergeFrom(MPArrayConstraint other) {
3471 if (other == null) {
3472 return;
3474 varIndex_.Add(other.varIndex_);
3475 if (other.HasResultantVarIndex) {
3476 ResultantVarIndex = other.ResultantVarIndex;
3477 }
3478 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
3479 }
3480
3481 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3482 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3483 public void MergeFrom(pb::CodedInputStream input) {
3484 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
3485 input.ReadRawMessage(this);
3486 #else
3487 uint tag;
3488 while ((tag = input.ReadTag()) != 0) {
3489 if ((tag & 7) == 4) {
3490 // Abort on any end group tag.
3491 return;
3492 }
3493 switch(tag) {
3494 default:
3495 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
3496 break;
3497 case 10:
3498 case 8: {
3499 varIndex_.AddEntriesFrom(input, _repeated_varIndex_codec);
3500 break;
3501 }
3502 case 16: {
3503 ResultantVarIndex = input.ReadInt32();
3504 break;
3505 }
3506 }
3507 }
3508 #endif
3509 }
3510
3511 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
3512 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3513 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3514 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
3515 uint tag;
3516 while ((tag = input.ReadTag()) != 0) {
3517 if ((tag & 7) == 4) {
3518 // Abort on any end group tag.
3519 return;
3520 }
3521 switch(tag) {
3522 default:
3523 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
3524 break;
3525 case 10:
3526 case 8: {
3527 varIndex_.AddEntriesFrom(ref input, _repeated_varIndex_codec);
3528 break;
3529 }
3530 case 16: {
3531 ResultantVarIndex = input.ReadInt32();
3532 break;
3533 }
3534 }
3535 }
3536 }
3537 #endif
3538
3539 }
3540
3543
3545 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
3546 public sealed partial class MPArrayWithConstantConstraint : pb::IMessage<MPArrayWithConstantConstraint>
3547 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
3548 , pb::IBufferMessage
3549 #endif
3550 {
3551 private static readonly pb::MessageParser<MPArrayWithConstantConstraint> _parser = new pb::MessageParser<MPArrayWithConstantConstraint>(() => new MPArrayWithConstantConstraint());
3552 private pb::UnknownFieldSet _unknownFields;
3553 private int _hasBits0;
3554 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3555 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3556 public static pb::MessageParser<MPArrayWithConstantConstraint> Parser { get { return _parser; } }
3557
3558 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3559 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3560 public static pbr::MessageDescriptor Descriptor {
3561 get { return global::OperationsResearch.LinearSolverReflection.Descriptor.MessageTypes[8]; }
3562 }
3564 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3565 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3566 pbr::MessageDescriptor pb::IMessage.Descriptor {
3567 get { return Descriptor; }
3568 }
3569
3570 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3571 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3573 OnConstruction();
3574 }
3576 partial void OnConstruction();
3577
3578 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3579 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3581 _hasBits0 = other._hasBits0;
3582 varIndex_ = other.varIndex_.Clone();
3583 constant_ = other.constant_;
3584 resultantVarIndex_ = other.resultantVarIndex_;
3585 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
3586 }
3587
3588 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3589 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3590 public MPArrayWithConstantConstraint Clone() {
3591 return new MPArrayWithConstantConstraint(this);
3592 }
3595 public const int VarIndexFieldNumber = 1;
3596 private static readonly pb::FieldCodec<int> _repeated_varIndex_codec
3597 = pb::FieldCodec.ForInt32(8);
3598 private readonly pbc::RepeatedField<int> varIndex_ = new pbc::RepeatedField<int>();
3603 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3604 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3605 public pbc::RepeatedField<int> VarIndex {
3606 get { return varIndex_; }
3607 }
3610 public const int ConstantFieldNumber = 2;
3611 private readonly static double ConstantDefaultValue = 0D;
3612
3613 private double constant_;
3614 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3615 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3616 public double Constant {
3617 get { if ((_hasBits0 & 1) != 0) { return constant_; } else { return ConstantDefaultValue; } }
3618 set {
3619 _hasBits0 |= 1;
3620 constant_ = value;
3621 }
3622 }
3624 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3625 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3626 public bool HasConstant {
3627 get { return (_hasBits0 & 1) != 0; }
3628 }
3629 /// <summary>Clears the value of the "constant" field</summary>
3630 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3631 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3632 public void ClearConstant() {
3633 _hasBits0 &= ~1;
3634 }
3637 public const int ResultantVarIndexFieldNumber = 3;
3638 private readonly static int ResultantVarIndexDefaultValue = 0;
3639
3640 private int resultantVarIndex_;
3641 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3642 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3643 public int ResultantVarIndex {
3644 get { if ((_hasBits0 & 2) != 0) { return resultantVarIndex_; } else { return ResultantVarIndexDefaultValue; } }
3645 set {
3646 _hasBits0 |= 2;
3647 resultantVarIndex_ = value;
3648 }
3649 }
3651 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3652 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3653 public bool HasResultantVarIndex {
3654 get { return (_hasBits0 & 2) != 0; }
3655 }
3656 /// <summary>Clears the value of the "resultant_var_index" field</summary>
3657 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3658 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3659 public void ClearResultantVarIndex() {
3660 _hasBits0 &= ~2;
3661 }
3663 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3664 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3665 public override bool Equals(object other) {
3666 return Equals(other as MPArrayWithConstantConstraint);
3667 }
3669 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3670 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3671 public bool Equals(MPArrayWithConstantConstraint other) {
3672 if (ReferenceEquals(other, null)) {
3673 return false;
3675 if (ReferenceEquals(other, this)) {
3676 return true;
3677 }
3678 if(!varIndex_.Equals(other.varIndex_)) return false;
3679 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Constant, other.Constant)) return false;
3680 if (ResultantVarIndex != other.ResultantVarIndex) return false;
3681 return Equals(_unknownFields, other._unknownFields);
3682 }
3683
3684 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3685 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3686 public override int GetHashCode() {
3687 int hash = 1;
3688 hash ^= varIndex_.GetHashCode();
3689 if (HasConstant) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Constant);
3690 if (HasResultantVarIndex) hash ^= ResultantVarIndex.GetHashCode();
3691 if (_unknownFields != null) {
3692 hash ^= _unknownFields.GetHashCode();
3693 }
3694 return hash;
3695 }
3696
3697 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3698 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3699 public override string ToString() {
3700 return pb::JsonFormatter.ToDiagnosticString(this);
3701 }
3703 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3704 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3705 public void WriteTo(pb::CodedOutputStream output) {
3706 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
3707 output.WriteRawMessage(this);
3708 #else
3709 varIndex_.WriteTo(output, _repeated_varIndex_codec);
3710 if (HasConstant) {
3711 output.WriteRawTag(17);
3712 output.WriteDouble(Constant);
3713 }
3714 if (HasResultantVarIndex) {
3715 output.WriteRawTag(24);
3716 output.WriteInt32(ResultantVarIndex);
3717 }
3718 if (_unknownFields != null) {
3719 _unknownFields.WriteTo(output);
3720 }
3721 #endif
3722 }
3723
3724 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
3725 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3726 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3727 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
3728 varIndex_.WriteTo(ref output, _repeated_varIndex_codec);
3729 if (HasConstant) {
3730 output.WriteRawTag(17);
3731 output.WriteDouble(Constant);
3732 }
3733 if (HasResultantVarIndex) {
3734 output.WriteRawTag(24);
3735 output.WriteInt32(ResultantVarIndex);
3736 }
3737 if (_unknownFields != null) {
3738 _unknownFields.WriteTo(ref output);
3739 }
3740 }
3741 #endif
3742
3743 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3744 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3745 public int CalculateSize() {
3746 int size = 0;
3747 size += varIndex_.CalculateSize(_repeated_varIndex_codec);
3749 size += 1 + 8;
3750 }
3751 if (HasResultantVarIndex) {
3752 size += 1 + pb::CodedOutputStream.ComputeInt32Size(ResultantVarIndex);
3753 }
3754 if (_unknownFields != null) {
3755 size += _unknownFields.CalculateSize();
3756 }
3757 return size;
3758 }
3759
3760 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3761 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3762 public void MergeFrom(MPArrayWithConstantConstraint other) {
3763 if (other == null) {
3764 return;
3766 varIndex_.Add(other.varIndex_);
3767 if (other.HasConstant) {
3768 Constant = other.Constant;
3769 }
3770 if (other.HasResultantVarIndex) {
3771 ResultantVarIndex = other.ResultantVarIndex;
3772 }
3773 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
3774 }
3775
3776 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3777 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3778 public void MergeFrom(pb::CodedInputStream input) {
3779 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
3780 input.ReadRawMessage(this);
3781 #else
3782 uint tag;
3783 while ((tag = input.ReadTag()) != 0) {
3784 if ((tag & 7) == 4) {
3785 // Abort on any end group tag.
3786 return;
3787 }
3788 switch(tag) {
3789 default:
3790 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
3791 break;
3792 case 10:
3793 case 8: {
3794 varIndex_.AddEntriesFrom(input, _repeated_varIndex_codec);
3795 break;
3796 }
3797 case 17: {
3798 Constant = input.ReadDouble();
3799 break;
3800 }
3801 case 24: {
3802 ResultantVarIndex = input.ReadInt32();
3803 break;
3804 }
3805 }
3806 }
3807 #endif
3808 }
3809
3810 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
3811 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3812 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3813 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
3814 uint tag;
3815 while ((tag = input.ReadTag()) != 0) {
3816 if ((tag & 7) == 4) {
3817 // Abort on any end group tag.
3818 return;
3819 }
3820 switch(tag) {
3821 default:
3822 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
3823 break;
3824 case 10:
3825 case 8: {
3826 varIndex_.AddEntriesFrom(ref input, _repeated_varIndex_codec);
3827 break;
3828 }
3829 case 17: {
3830 Constant = input.ReadDouble();
3831 break;
3832 }
3833 case 24: {
3834 ResultantVarIndex = input.ReadInt32();
3835 break;
3836 }
3837 }
3838 }
3839 }
3840 #endif
3841
3842 }
3843
3846
3851 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
3852 public sealed partial class MPQuadraticObjective : pb::IMessage<MPQuadraticObjective>
3853 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
3854 , pb::IBufferMessage
3855 #endif
3856 {
3857 private static readonly pb::MessageParser<MPQuadraticObjective> _parser = new pb::MessageParser<MPQuadraticObjective>(() => new MPQuadraticObjective());
3858 private pb::UnknownFieldSet _unknownFields;
3859 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3860 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3861 public static pb::MessageParser<MPQuadraticObjective> Parser { get { return _parser; } }
3862
3863 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3864 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3865 public static pbr::MessageDescriptor Descriptor {
3866 get { return global::OperationsResearch.LinearSolverReflection.Descriptor.MessageTypes[9]; }
3867 }
3869 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3870 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3871 pbr::MessageDescriptor pb::IMessage.Descriptor {
3872 get { return Descriptor; }
3873 }
3874
3875 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3876 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3877 public MPQuadraticObjective() {
3878 OnConstruction();
3879 }
3881 partial void OnConstruction();
3882
3883 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3884 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3885 public MPQuadraticObjective(MPQuadraticObjective other) : this() {
3886 qvar1Index_ = other.qvar1Index_.Clone();
3887 qvar2Index_ = other.qvar2Index_.Clone();
3888 coefficient_ = other.coefficient_.Clone();
3889 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
3890 }
3891
3892 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3893 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3894 public MPQuadraticObjective Clone() {
3895 return new MPQuadraticObjective(this);
3896 }
3899 public const int Qvar1IndexFieldNumber = 1;
3900 private static readonly pb::FieldCodec<int> _repeated_qvar1Index_codec
3901 = pb::FieldCodec.ForInt32(8);
3902 private readonly pbc::RepeatedField<int> qvar1Index_ = new pbc::RepeatedField<int>();
3912 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3913 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3914 public pbc::RepeatedField<int> Qvar1Index {
3915 get { return qvar1Index_; }
3916 }
3919 public const int Qvar2IndexFieldNumber = 2;
3920 private static readonly pb::FieldCodec<int> _repeated_qvar2Index_codec
3921 = pb::FieldCodec.ForInt32(16);
3922 private readonly pbc::RepeatedField<int> qvar2Index_ = new pbc::RepeatedField<int>();
3923 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3924 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3925 public pbc::RepeatedField<int> Qvar2Index {
3926 get { return qvar2Index_; }
3927 }
3930 public const int CoefficientFieldNumber = 3;
3931 private static readonly pb::FieldCodec<double> _repeated_coefficient_codec
3932 = pb::FieldCodec.ForDouble(25);
3933 private readonly pbc::RepeatedField<double> coefficient_ = new pbc::RepeatedField<double>();
3937 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3938 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3939 public pbc::RepeatedField<double> Coefficient {
3940 get { return coefficient_; }
3941 }
3943 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3944 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3945 public override bool Equals(object other) {
3946 return Equals(other as MPQuadraticObjective);
3947 }
3949 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3950 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3951 public bool Equals(MPQuadraticObjective other) {
3952 if (ReferenceEquals(other, null)) {
3953 return false;
3955 if (ReferenceEquals(other, this)) {
3956 return true;
3957 }
3958 if(!qvar1Index_.Equals(other.qvar1Index_)) return false;
3959 if(!qvar2Index_.Equals(other.qvar2Index_)) return false;
3960 if(!coefficient_.Equals(other.coefficient_)) return false;
3961 return Equals(_unknownFields, other._unknownFields);
3962 }
3963
3964 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3965 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3966 public override int GetHashCode() {
3967 int hash = 1;
3968 hash ^= qvar1Index_.GetHashCode();
3969 hash ^= qvar2Index_.GetHashCode();
3970 hash ^= coefficient_.GetHashCode();
3971 if (_unknownFields != null) {
3972 hash ^= _unknownFields.GetHashCode();
3973 }
3974 return hash;
3975 }
3976
3977 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3978 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3979 public override string ToString() {
3980 return pb::JsonFormatter.ToDiagnosticString(this);
3981 }
3983 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3984 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3985 public void WriteTo(pb::CodedOutputStream output) {
3986 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
3987 output.WriteRawMessage(this);
3988 #else
3989 qvar1Index_.WriteTo(output, _repeated_qvar1Index_codec);
3990 qvar2Index_.WriteTo(output, _repeated_qvar2Index_codec);
3991 coefficient_.WriteTo(output, _repeated_coefficient_codec);
3992 if (_unknownFields != null) {
3993 _unknownFields.WriteTo(output);
3994 }
3995 #endif
3996 }
3997
3998 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
3999 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4000 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4001 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
4002 qvar1Index_.WriteTo(ref output, _repeated_qvar1Index_codec);
4003 qvar2Index_.WriteTo(ref output, _repeated_qvar2Index_codec);
4004 coefficient_.WriteTo(ref output, _repeated_coefficient_codec);
4005 if (_unknownFields != null) {
4006 _unknownFields.WriteTo(ref output);
4007 }
4008 }
4009 #endif
4010
4011 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4012 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4013 public int CalculateSize() {
4014 int size = 0;
4015 size += qvar1Index_.CalculateSize(_repeated_qvar1Index_codec);
4016 size += qvar2Index_.CalculateSize(_repeated_qvar2Index_codec);
4017 size += coefficient_.CalculateSize(_repeated_coefficient_codec);
4018 if (_unknownFields != null) {
4019 size += _unknownFields.CalculateSize();
4020 }
4021 return size;
4022 }
4023
4024 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4025 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4026 public void MergeFrom(MPQuadraticObjective other) {
4027 if (other == null) {
4028 return;
4030 qvar1Index_.Add(other.qvar1Index_);
4031 qvar2Index_.Add(other.qvar2Index_);
4032 coefficient_.Add(other.coefficient_);
4033 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
4034 }
4035
4036 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4037 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4038 public void MergeFrom(pb::CodedInputStream input) {
4039 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
4040 input.ReadRawMessage(this);
4041 #else
4042 uint tag;
4043 while ((tag = input.ReadTag()) != 0) {
4044 if ((tag & 7) == 4) {
4045 // Abort on any end group tag.
4046 return;
4047 }
4048 switch(tag) {
4049 default:
4050 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
4051 break;
4052 case 10:
4053 case 8: {
4054 qvar1Index_.AddEntriesFrom(input, _repeated_qvar1Index_codec);
4055 break;
4056 }
4057 case 18:
4058 case 16: {
4059 qvar2Index_.AddEntriesFrom(input, _repeated_qvar2Index_codec);
4060 break;
4061 }
4062 case 26:
4063 case 25: {
4064 coefficient_.AddEntriesFrom(input, _repeated_coefficient_codec);
4065 break;
4066 }
4067 }
4068 }
4069 #endif
4070 }
4071
4072 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
4073 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4074 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4075 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
4076 uint tag;
4077 while ((tag = input.ReadTag()) != 0) {
4078 if ((tag & 7) == 4) {
4079 // Abort on any end group tag.
4080 return;
4081 }
4082 switch(tag) {
4083 default:
4084 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
4085 break;
4086 case 10:
4087 case 8: {
4088 qvar1Index_.AddEntriesFrom(ref input, _repeated_qvar1Index_codec);
4089 break;
4090 }
4091 case 18:
4092 case 16: {
4093 qvar2Index_.AddEntriesFrom(ref input, _repeated_qvar2Index_codec);
4094 break;
4095 }
4096 case 26:
4097 case 25: {
4098 coefficient_.AddEntriesFrom(ref input, _repeated_coefficient_codec);
4099 break;
4100 }
4101 }
4102 }
4103 }
4104 #endif
4105
4106 }
4107
4110
4113 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
4114 public sealed partial class PartialVariableAssignment : pb::IMessage<PartialVariableAssignment>
4115 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
4116 , pb::IBufferMessage
4117 #endif
4118 {
4119 private static readonly pb::MessageParser<PartialVariableAssignment> _parser = new pb::MessageParser<PartialVariableAssignment>(() => new PartialVariableAssignment());
4120 private pb::UnknownFieldSet _unknownFields;
4121 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4122 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4123 public static pb::MessageParser<PartialVariableAssignment> Parser { get { return _parser; } }
4124
4125 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4126 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4127 public static pbr::MessageDescriptor Descriptor {
4128 get { return global::OperationsResearch.LinearSolverReflection.Descriptor.MessageTypes[10]; }
4129 }
4131 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4132 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4133 pbr::MessageDescriptor pb::IMessage.Descriptor {
4134 get { return Descriptor; }
4135 }
4136
4137 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4138 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4139 public PartialVariableAssignment() {
4140 OnConstruction();
4141 }
4143 partial void OnConstruction();
4144
4145 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4146 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4148 varIndex_ = other.varIndex_.Clone();
4149 varValue_ = other.varValue_.Clone();
4150 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
4151 }
4152
4153 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4154 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4155 public PartialVariableAssignment Clone() {
4156 return new PartialVariableAssignment(this);
4157 }
4160 public const int VarIndexFieldNumber = 1;
4161 private static readonly pb::FieldCodec<int> _repeated_varIndex_codec
4162 = pb::FieldCodec.ForInt32(10);
4163 private readonly pbc::RepeatedField<int> varIndex_ = new pbc::RepeatedField<int>();
4164 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4165 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4166 public pbc::RepeatedField<int> VarIndex {
4167 get { return varIndex_; }
4168 }
4171 public const int VarValueFieldNumber = 2;
4172 private static readonly pb::FieldCodec<double> _repeated_varValue_codec
4173 = pb::FieldCodec.ForDouble(18);
4174 private readonly pbc::RepeatedField<double> varValue_ = new pbc::RepeatedField<double>();
4175 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4176 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4177 public pbc::RepeatedField<double> VarValue {
4178 get { return varValue_; }
4179 }
4181 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4182 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4183 public override bool Equals(object other) {
4184 return Equals(other as PartialVariableAssignment);
4185 }
4187 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4188 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4189 public bool Equals(PartialVariableAssignment other) {
4190 if (ReferenceEquals(other, null)) {
4191 return false;
4193 if (ReferenceEquals(other, this)) {
4194 return true;
4195 }
4196 if(!varIndex_.Equals(other.varIndex_)) return false;
4197 if(!varValue_.Equals(other.varValue_)) return false;
4198 return Equals(_unknownFields, other._unknownFields);
4199 }
4200
4201 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4202 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4203 public override int GetHashCode() {
4204 int hash = 1;
4205 hash ^= varIndex_.GetHashCode();
4206 hash ^= varValue_.GetHashCode();
4207 if (_unknownFields != null) {
4208 hash ^= _unknownFields.GetHashCode();
4209 }
4210 return hash;
4211 }
4212
4213 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4214 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4215 public override string ToString() {
4216 return pb::JsonFormatter.ToDiagnosticString(this);
4217 }
4219 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4220 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4221 public void WriteTo(pb::CodedOutputStream output) {
4222 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
4223 output.WriteRawMessage(this);
4224 #else
4225 varIndex_.WriteTo(output, _repeated_varIndex_codec);
4226 varValue_.WriteTo(output, _repeated_varValue_codec);
4227 if (_unknownFields != null) {
4228 _unknownFields.WriteTo(output);
4229 }
4230 #endif
4231 }
4232
4233 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
4234 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4235 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4236 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
4237 varIndex_.WriteTo(ref output, _repeated_varIndex_codec);
4238 varValue_.WriteTo(ref output, _repeated_varValue_codec);
4239 if (_unknownFields != null) {
4240 _unknownFields.WriteTo(ref output);
4241 }
4242 }
4243 #endif
4244
4245 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4246 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4247 public int CalculateSize() {
4248 int size = 0;
4249 size += varIndex_.CalculateSize(_repeated_varIndex_codec);
4250 size += varValue_.CalculateSize(_repeated_varValue_codec);
4251 if (_unknownFields != null) {
4252 size += _unknownFields.CalculateSize();
4253 }
4254 return size;
4255 }
4256
4257 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4258 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4259 public void MergeFrom(PartialVariableAssignment other) {
4260 if (other == null) {
4261 return;
4263 varIndex_.Add(other.varIndex_);
4264 varValue_.Add(other.varValue_);
4265 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
4266 }
4267
4268 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4269 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4270 public void MergeFrom(pb::CodedInputStream input) {
4271 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
4272 input.ReadRawMessage(this);
4273 #else
4274 uint tag;
4275 while ((tag = input.ReadTag()) != 0) {
4276 if ((tag & 7) == 4) {
4277 // Abort on any end group tag.
4278 return;
4279 }
4280 switch(tag) {
4281 default:
4282 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
4283 break;
4284 case 10:
4285 case 8: {
4286 varIndex_.AddEntriesFrom(input, _repeated_varIndex_codec);
4287 break;
4288 }
4289 case 18:
4290 case 17: {
4291 varValue_.AddEntriesFrom(input, _repeated_varValue_codec);
4292 break;
4293 }
4294 }
4295 }
4296 #endif
4297 }
4298
4299 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
4300 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4301 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4302 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
4303 uint tag;
4304 while ((tag = input.ReadTag()) != 0) {
4305 if ((tag & 7) == 4) {
4306 // Abort on any end group tag.
4307 return;
4308 }
4309 switch(tag) {
4310 default:
4311 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
4312 break;
4313 case 10:
4314 case 8: {
4315 varIndex_.AddEntriesFrom(ref input, _repeated_varIndex_codec);
4316 break;
4317 }
4318 case 18:
4319 case 17: {
4320 varValue_.AddEntriesFrom(ref input, _repeated_varValue_codec);
4321 break;
4322 }
4323 }
4324 }
4325 }
4326 #endif
4327
4328 }
4329
4332
4333 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
4334 public sealed partial class MPModelProto : pb::IMessage<MPModelProto>
4335 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
4336 , pb::IBufferMessage
4337 #endif
4338 {
4339 private static readonly pb::MessageParser<MPModelProto> _parser = new pb::MessageParser<MPModelProto>(() => new MPModelProto());
4340 private pb::UnknownFieldSet _unknownFields;
4341 private int _hasBits0;
4342 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4343 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4344 public static pb::MessageParser<MPModelProto> Parser { get { return _parser; } }
4345
4346 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4347 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4348 public static pbr::MessageDescriptor Descriptor {
4349 get { return global::OperationsResearch.LinearSolverReflection.Descriptor.MessageTypes[11]; }
4350 }
4352 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4353 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4354 pbr::MessageDescriptor pb::IMessage.Descriptor {
4355 get { return Descriptor; }
4356 }
4357
4358 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4359 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4360 public MPModelProto() {
4361 OnConstruction();
4362 }
4364 partial void OnConstruction();
4365
4366 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4367 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4368 public MPModelProto(MPModelProto other) : this() {
4369 _hasBits0 = other._hasBits0;
4370 variable_ = other.variable_.Clone();
4371 constraint_ = other.constraint_.Clone();
4372 generalConstraint_ = other.generalConstraint_.Clone();
4373 maximize_ = other.maximize_;
4374 objectiveOffset_ = other.objectiveOffset_;
4375 quadraticObjective_ = other.quadraticObjective_ != null ? other.quadraticObjective_.Clone() : null;
4376 name_ = other.name_;
4377 solutionHint_ = other.solutionHint_ != null ? other.solutionHint_.Clone() : null;
4378 annotation_ = other.annotation_.Clone();
4379 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
4380 }
4381
4382 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4383 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4384 public MPModelProto Clone() {
4385 return new MPModelProto(this);
4386 }
4389 public const int VariableFieldNumber = 3;
4390 private static readonly pb::FieldCodec<global::OperationsResearch.MPVariableProto> _repeated_variable_codec
4391 = pb::FieldCodec.ForMessage(26, global::OperationsResearch.MPVariableProto.Parser);
4392 private readonly pbc::RepeatedField<global::OperationsResearch.MPVariableProto> variable_ = new pbc::RepeatedField<global::OperationsResearch.MPVariableProto>();
4396 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4397 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4398 public pbc::RepeatedField<global::OperationsResearch.MPVariableProto> Variable {
4399 get { return variable_; }
4400 }
4403 public const int ConstraintFieldNumber = 4;
4404 private static readonly pb::FieldCodec<global::OperationsResearch.MPConstraintProto> _repeated_constraint_codec
4405 = pb::FieldCodec.ForMessage(34, global::OperationsResearch.MPConstraintProto.Parser);
4406 private readonly pbc::RepeatedField<global::OperationsResearch.MPConstraintProto> constraint_ = new pbc::RepeatedField<global::OperationsResearch.MPConstraintProto>();
4410 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4411 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4412 public pbc::RepeatedField<global::OperationsResearch.MPConstraintProto> Constraint {
4413 get { return constraint_; }
4414 }
4417 public const int GeneralConstraintFieldNumber = 7;
4418 private static readonly pb::FieldCodec<global::OperationsResearch.MPGeneralConstraintProto> _repeated_generalConstraint_codec
4419 = pb::FieldCodec.ForMessage(58, global::OperationsResearch.MPGeneralConstraintProto.Parser);
4420 private readonly pbc::RepeatedField<global::OperationsResearch.MPGeneralConstraintProto> generalConstraint_ = new pbc::RepeatedField<global::OperationsResearch.MPGeneralConstraintProto>();
4425 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4426 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4427 public pbc::RepeatedField<global::OperationsResearch.MPGeneralConstraintProto> GeneralConstraint {
4428 get { return generalConstraint_; }
4429 }
4432 public const int MaximizeFieldNumber = 1;
4433 private readonly static bool MaximizeDefaultValue = false;
4434
4435 private bool maximize_;
4439 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4440 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4441 public bool Maximize {
4442 get { if ((_hasBits0 & 1) != 0) { return maximize_; } else { return MaximizeDefaultValue; } }
4443 set {
4444 _hasBits0 |= 1;
4445 maximize_ = value;
4446 }
4447 }
4449 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4450 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4451 public bool HasMaximize {
4452 get { return (_hasBits0 & 1) != 0; }
4453 }
4454 /// <summary>Clears the value of the "maximize" field</summary>
4455 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4456 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4457 public void ClearMaximize() {
4458 _hasBits0 &= ~1;
4459 }
4462 public const int ObjectiveOffsetFieldNumber = 2;
4463 private readonly static double ObjectiveOffsetDefaultValue = 0D;
4464
4465 private double objectiveOffset_;
4469 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4470 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4471 public double ObjectiveOffset {
4472 get { if ((_hasBits0 & 2) != 0) { return objectiveOffset_; } else { return ObjectiveOffsetDefaultValue; } }
4473 set {
4474 _hasBits0 |= 2;
4475 objectiveOffset_ = value;
4476 }
4477 }
4479 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4480 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4481 public bool HasObjectiveOffset {
4482 get { return (_hasBits0 & 2) != 0; }
4483 }
4484 /// <summary>Clears the value of the "objective_offset" field</summary>
4485 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4486 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4487 public void ClearObjectiveOffset() {
4488 _hasBits0 &= ~2;
4489 }
4492 public const int QuadraticObjectiveFieldNumber = 8;
4493 private global::OperationsResearch.MPQuadraticObjective quadraticObjective_;
4498 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4499 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4500 public global::OperationsResearch.MPQuadraticObjective QuadraticObjective {
4501 get { return quadraticObjective_; }
4502 set {
4503 quadraticObjective_ = value;
4504 }
4505 }
4506
4508 public const int NameFieldNumber = 5;
4509 private readonly static string NameDefaultValue = "";
4510
4511 private string name_;
4515 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4516 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4517 public string Name {
4518 get { return name_ ?? NameDefaultValue; }
4519 set {
4520 name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
4521 }
4522 }
4524 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4525 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4526 public bool HasName {
4527 get { return name_ != null; }
4528 }
4529 /// <summary>Clears the value of the "name" field</summary>
4530 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4531 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4532 public void ClearName() {
4533 name_ = null;
4534 }
4537 public const int SolutionHintFieldNumber = 6;
4538 private global::OperationsResearch.PartialVariableAssignment solutionHint_;
4552 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4553 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4554 public global::OperationsResearch.PartialVariableAssignment SolutionHint {
4555 get { return solutionHint_; }
4556 set {
4557 solutionHint_ = value;
4558 }
4560
4562 public const int AnnotationFieldNumber = 9;
4563 private static readonly pb::FieldCodec<global::OperationsResearch.MPModelProto.Types.Annotation> _repeated_annotation_codec
4564 = pb::FieldCodec.ForMessage(74, global::OperationsResearch.MPModelProto.Types.Annotation.Parser);
4565 private readonly pbc::RepeatedField<global::OperationsResearch.MPModelProto.Types.Annotation> annotation_ = new pbc::RepeatedField<global::OperationsResearch.MPModelProto.Types.Annotation>();
4566 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4567 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4568 public pbc::RepeatedField<global::OperationsResearch.MPModelProto.Types.Annotation> Annotation {
4569 get { return annotation_; }
4570 }
4571
4572 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4573 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4574 public override bool Equals(object other) {
4575 return Equals(other as MPModelProto);
4576 }
4577
4578 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4579 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4580 public bool Equals(MPModelProto other) {
4581 if (ReferenceEquals(other, null)) {
4582 return false;
4583 }
4584 if (ReferenceEquals(other, this)) {
4585 return true;
4586 }
4587 if(!variable_.Equals(other.variable_)) return false;
4588 if(!constraint_.Equals(other.constraint_)) return false;
4589 if(!generalConstraint_.Equals(other.generalConstraint_)) return false;
4590 if (Maximize != other.Maximize) return false;
4591 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(ObjectiveOffset, other.ObjectiveOffset)) return false;
4592 if (!object.Equals(QuadraticObjective, other.QuadraticObjective)) return false;
4593 if (Name != other.Name) return false;
4594 if (!object.Equals(SolutionHint, other.SolutionHint)) return false;
4595 if(!annotation_.Equals(other.annotation_)) return false;
4596 return Equals(_unknownFields, other._unknownFields);
4597 }
4598
4599 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4600 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4601 public override int GetHashCode() {
4602 int hash = 1;
4603 hash ^= variable_.GetHashCode();
4604 hash ^= constraint_.GetHashCode();
4605 hash ^= generalConstraint_.GetHashCode();
4606 if (HasMaximize) hash ^= Maximize.GetHashCode();
4607 if (HasObjectiveOffset) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(ObjectiveOffset);
4608 if (quadraticObjective_ != null) hash ^= QuadraticObjective.GetHashCode();
4609 if (HasName) hash ^= Name.GetHashCode();
4610 if (solutionHint_ != null) hash ^= SolutionHint.GetHashCode();
4611 hash ^= annotation_.GetHashCode();
4612 if (_unknownFields != null) {
4613 hash ^= _unknownFields.GetHashCode();
4614 }
4615 return hash;
4616 }
4617
4618 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4619 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4620 public override string ToString() {
4621 return pb::JsonFormatter.ToDiagnosticString(this);
4622 }
4623
4624 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4625 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4626 public void WriteTo(pb::CodedOutputStream output) {
4627 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
4628 output.WriteRawMessage(this);
4629 #else
4630 if (HasMaximize) {
4631 output.WriteRawTag(8);
4632 output.WriteBool(Maximize);
4633 }
4634 if (HasObjectiveOffset) {
4635 output.WriteRawTag(17);
4636 output.WriteDouble(ObjectiveOffset);
4637 }
4638 variable_.WriteTo(output, _repeated_variable_codec);
4639 constraint_.WriteTo(output, _repeated_constraint_codec);
4640 if (HasName) {
4641 output.WriteRawTag(42);
4642 output.WriteString(Name);
4643 }
4644 if (solutionHint_ != null) {
4645 output.WriteRawTag(50);
4646 output.WriteMessage(SolutionHint);
4647 }
4648 generalConstraint_.WriteTo(output, _repeated_generalConstraint_codec);
4649 if (quadraticObjective_ != null) {
4650 output.WriteRawTag(66);
4651 output.WriteMessage(QuadraticObjective);
4652 }
4653 annotation_.WriteTo(output, _repeated_annotation_codec);
4654 if (_unknownFields != null) {
4655 _unknownFields.WriteTo(output);
4656 }
4657 #endif
4658 }
4659
4660 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
4661 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4662 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4663 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
4664 if (HasMaximize) {
4665 output.WriteRawTag(8);
4666 output.WriteBool(Maximize);
4667 }
4668 if (HasObjectiveOffset) {
4669 output.WriteRawTag(17);
4670 output.WriteDouble(ObjectiveOffset);
4671 }
4672 variable_.WriteTo(ref output, _repeated_variable_codec);
4673 constraint_.WriteTo(ref output, _repeated_constraint_codec);
4674 if (HasName) {
4675 output.WriteRawTag(42);
4676 output.WriteString(Name);
4677 }
4678 if (solutionHint_ != null) {
4679 output.WriteRawTag(50);
4680 output.WriteMessage(SolutionHint);
4681 }
4682 generalConstraint_.WriteTo(ref output, _repeated_generalConstraint_codec);
4683 if (quadraticObjective_ != null) {
4684 output.WriteRawTag(66);
4685 output.WriteMessage(QuadraticObjective);
4686 }
4687 annotation_.WriteTo(ref output, _repeated_annotation_codec);
4688 if (_unknownFields != null) {
4689 _unknownFields.WriteTo(ref output);
4690 }
4691 }
4692 #endif
4693
4694 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4695 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4696 public int CalculateSize() {
4697 int size = 0;
4698 size += variable_.CalculateSize(_repeated_variable_codec);
4699 size += constraint_.CalculateSize(_repeated_constraint_codec);
4700 size += generalConstraint_.CalculateSize(_repeated_generalConstraint_codec);
4702 size += 1 + 1;
4703 }
4704 if (HasObjectiveOffset) {
4705 size += 1 + 8;
4706 }
4707 if (quadraticObjective_ != null) {
4708 size += 1 + pb::CodedOutputStream.ComputeMessageSize(QuadraticObjective);
4709 }
4710 if (HasName) {
4711 size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
4712 }
4713 if (solutionHint_ != null) {
4714 size += 1 + pb::CodedOutputStream.ComputeMessageSize(SolutionHint);
4715 }
4716 size += annotation_.CalculateSize(_repeated_annotation_codec);
4717 if (_unknownFields != null) {
4718 size += _unknownFields.CalculateSize();
4719 }
4720 return size;
4721 }
4722
4723 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4724 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4725 public void MergeFrom(MPModelProto other) {
4726 if (other == null) {
4727 return;
4728 }
4729 variable_.Add(other.variable_);
4730 constraint_.Add(other.constraint_);
4731 generalConstraint_.Add(other.generalConstraint_);
4732 if (other.HasMaximize) {
4733 Maximize = other.Maximize;
4734 }
4735 if (other.HasObjectiveOffset) {
4736 ObjectiveOffset = other.ObjectiveOffset;
4737 }
4738 if (other.quadraticObjective_ != null) {
4739 if (quadraticObjective_ == null) {
4740 QuadraticObjective = new global::OperationsResearch.MPQuadraticObjective();
4741 }
4742 QuadraticObjective.MergeFrom(other.QuadraticObjective);
4743 }
4744 if (other.HasName) {
4745 Name = other.Name;
4746 }
4747 if (other.solutionHint_ != null) {
4748 if (solutionHint_ == null) {
4749 SolutionHint = new global::OperationsResearch.PartialVariableAssignment();
4750 }
4751 SolutionHint.MergeFrom(other.SolutionHint);
4752 }
4753 annotation_.Add(other.annotation_);
4754 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
4755 }
4756
4757 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4758 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4759 public void MergeFrom(pb::CodedInputStream input) {
4760 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
4761 input.ReadRawMessage(this);
4762 #else
4763 uint tag;
4764 while ((tag = input.ReadTag()) != 0) {
4765 if ((tag & 7) == 4) {
4766 // Abort on any end group tag.
4767 return;
4768 }
4769 switch(tag) {
4770 default:
4771 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
4772 break;
4773 case 8: {
4774 Maximize = input.ReadBool();
4775 break;
4776 }
4777 case 17: {
4778 ObjectiveOffset = input.ReadDouble();
4779 break;
4780 }
4781 case 26: {
4782 variable_.AddEntriesFrom(input, _repeated_variable_codec);
4783 break;
4784 }
4785 case 34: {
4786 constraint_.AddEntriesFrom(input, _repeated_constraint_codec);
4787 break;
4788 }
4789 case 42: {
4790 Name = input.ReadString();
4791 break;
4792 }
4793 case 50: {
4794 if (solutionHint_ == null) {
4795 SolutionHint = new global::OperationsResearch.PartialVariableAssignment();
4796 }
4797 input.ReadMessage(SolutionHint);
4798 break;
4799 }
4800 case 58: {
4801 generalConstraint_.AddEntriesFrom(input, _repeated_generalConstraint_codec);
4802 break;
4803 }
4804 case 66: {
4805 if (quadraticObjective_ == null) {
4806 QuadraticObjective = new global::OperationsResearch.MPQuadraticObjective();
4807 }
4808 input.ReadMessage(QuadraticObjective);
4809 break;
4810 }
4811 case 74: {
4812 annotation_.AddEntriesFrom(input, _repeated_annotation_codec);
4813 break;
4814 }
4815 }
4816 }
4817 #endif
4818 }
4819
4820 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
4821 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4822 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4823 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
4824 uint tag;
4825 while ((tag = input.ReadTag()) != 0) {
4826 if ((tag & 7) == 4) {
4827 // Abort on any end group tag.
4828 return;
4829 }
4830 switch(tag) {
4831 default:
4832 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
4833 break;
4834 case 8: {
4835 Maximize = input.ReadBool();
4836 break;
4837 }
4838 case 17: {
4839 ObjectiveOffset = input.ReadDouble();
4840 break;
4841 }
4842 case 26: {
4843 variable_.AddEntriesFrom(ref input, _repeated_variable_codec);
4844 break;
4845 }
4846 case 34: {
4847 constraint_.AddEntriesFrom(ref input, _repeated_constraint_codec);
4848 break;
4849 }
4850 case 42: {
4851 Name = input.ReadString();
4852 break;
4853 }
4854 case 50: {
4855 if (solutionHint_ == null) {
4856 SolutionHint = new global::OperationsResearch.PartialVariableAssignment();
4857 }
4858 input.ReadMessage(SolutionHint);
4859 break;
4860 }
4861 case 58: {
4862 generalConstraint_.AddEntriesFrom(ref input, _repeated_generalConstraint_codec);
4863 break;
4864 }
4865 case 66: {
4866 if (quadraticObjective_ == null) {
4867 QuadraticObjective = new global::OperationsResearch.MPQuadraticObjective();
4868 }
4869 input.ReadMessage(QuadraticObjective);
4870 break;
4871 }
4872 case 74: {
4873 annotation_.AddEntriesFrom(ref input, _repeated_annotation_codec);
4874 break;
4875 }
4876 }
4877 }
4878 }
4879 #endif
4880
4881 #region Nested types
4883 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4884 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4885 public static partial class Types {
4890 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
4891 public sealed partial class Annotation : pb::IMessage<Annotation>
4892 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
4893 , pb::IBufferMessage
4894 #endif
4895 {
4896 private static readonly pb::MessageParser<Annotation> _parser = new pb::MessageParser<Annotation>(() => new Annotation());
4897 private pb::UnknownFieldSet _unknownFields;
4898 private int _hasBits0;
4899 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4900 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4901 public static pb::MessageParser<Annotation> Parser { get { return _parser; } }
4902
4903 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4904 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4905 public static pbr::MessageDescriptor Descriptor {
4906 get { return global::OperationsResearch.MPModelProto.Descriptor.NestedTypes[0]; }
4907 }
4908
4909 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4910 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4911 pbr::MessageDescriptor pb::IMessage.Descriptor {
4912 get { return Descriptor; }
4913 }
4914
4915 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4916 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4917 public Annotation() {
4918 OnConstruction();
4919 }
4920
4921 partial void OnConstruction();
4923 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4924 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4925 public Annotation(Annotation other) : this() {
4926 _hasBits0 = other._hasBits0;
4927 targetType_ = other.targetType_;
4928 targetIndex_ = other.targetIndex_;
4929 targetName_ = other.targetName_;
4930 payloadKey_ = other.payloadKey_;
4931 payloadValue_ = other.payloadValue_;
4932 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
4933 }
4934
4935 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4936 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4937 public Annotation Clone() {
4938 return new Annotation(this);
4939 }
4940
4942 public const int TargetTypeFieldNumber = 1;
4943 private readonly static global::OperationsResearch.MPModelProto.Types.Annotation.Types.TargetType TargetTypeDefaultValue = global::OperationsResearch.MPModelProto.Types.Annotation.Types.TargetType.VariableDefault;
4944
4945 private global::OperationsResearch.MPModelProto.Types.Annotation.Types.TargetType targetType_;
4946 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4947 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4948 public global::OperationsResearch.MPModelProto.Types.Annotation.Types.TargetType TargetType {
4949 get { if ((_hasBits0 & 1) != 0) { return targetType_; } else { return TargetTypeDefaultValue; } }
4950 set {
4951 _hasBits0 |= 1;
4952 targetType_ = value;
4954 }
4956 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4957 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4958 public bool HasTargetType {
4959 get { return (_hasBits0 & 1) != 0; }
4960 }
4962 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4963 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4964 public void ClearTargetType() {
4965 _hasBits0 &= ~1;
4966 }
4967
4969 public const int TargetIndexFieldNumber = 2;
4970 private readonly static int TargetIndexDefaultValue = 0;
4971
4972 private int targetIndex_;
4977 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4978 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4979 public int TargetIndex {
4980 get { if ((_hasBits0 & 2) != 0) { return targetIndex_; } else { return TargetIndexDefaultValue; } }
4981 set {
4982 _hasBits0 |= 2;
4983 targetIndex_ = value;
4985 }
4987 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4988 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4989 public bool HasTargetIndex {
4990 get { return (_hasBits0 & 2) != 0; }
4991 }
4993 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4994 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4995 public void ClearTargetIndex() {
4996 _hasBits0 &= ~2;
4997 }
4998
5000 public const int TargetNameFieldNumber = 3;
5001 private readonly static string TargetNameDefaultValue = "";
5002
5003 private string targetName_;
5007 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5008 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5009 public string TargetName {
5010 get { return targetName_ ?? TargetNameDefaultValue; }
5011 set {
5012 targetName_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
5013 }
5016 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5017 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5018 public bool HasTargetName {
5019 get { return targetName_ != null; }
5020 }
5022 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5023 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5024 public void ClearTargetName() {
5025 targetName_ = null;
5026 }
5027
5029 public const int PayloadKeyFieldNumber = 4;
5030 private readonly static string PayloadKeyDefaultValue = "";
5031
5032 private string payloadKey_;
5037 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5038 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5039 public string PayloadKey {
5040 get { return payloadKey_ ?? PayloadKeyDefaultValue; }
5041 set {
5042 payloadKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
5043 }
5046 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5047 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5048 public bool HasPayloadKey {
5049 get { return payloadKey_ != null; }
5050 }
5052 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5053 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5054 public void ClearPayloadKey() {
5055 payloadKey_ = null;
5056 }
5057
5059 public const int PayloadValueFieldNumber = 5;
5060 private readonly static string PayloadValueDefaultValue = "";
5061
5062 private string payloadValue_;
5063 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5064 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5065 public string PayloadValue {
5066 get { return payloadValue_ ?? PayloadValueDefaultValue; }
5067 set {
5068 payloadValue_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
5069 }
5072 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5073 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5074 public bool HasPayloadValue {
5075 get { return payloadValue_ != null; }
5076 }
5078 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5079 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5080 public void ClearPayloadValue() {
5081 payloadValue_ = null;
5082 }
5083
5084 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5085 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5086 public override bool Equals(object other) {
5087 return Equals(other as Annotation);
5088 }
5089
5090 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5091 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5092 public bool Equals(Annotation other) {
5093 if (ReferenceEquals(other, null)) {
5094 return false;
5095 }
5096 if (ReferenceEquals(other, this)) {
5097 return true;
5098 }
5099 if (TargetType != other.TargetType) return false;
5100 if (TargetIndex != other.TargetIndex) return false;
5101 if (TargetName != other.TargetName) return false;
5102 if (PayloadKey != other.PayloadKey) return false;
5103 if (PayloadValue != other.PayloadValue) return false;
5104 return Equals(_unknownFields, other._unknownFields);
5105 }
5106
5107 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5108 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5109 public override int GetHashCode() {
5110 int hash = 1;
5111 if (HasTargetType) hash ^= TargetType.GetHashCode();
5112 if (HasTargetIndex) hash ^= TargetIndex.GetHashCode();
5113 if (HasTargetName) hash ^= TargetName.GetHashCode();
5114 if (HasPayloadKey) hash ^= PayloadKey.GetHashCode();
5115 if (HasPayloadValue) hash ^= PayloadValue.GetHashCode();
5116 if (_unknownFields != null) {
5117 hash ^= _unknownFields.GetHashCode();
5118 }
5119 return hash;
5120 }
5121
5122 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5123 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5124 public override string ToString() {
5125 return pb::JsonFormatter.ToDiagnosticString(this);
5126 }
5127
5128 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5129 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5130 public void WriteTo(pb::CodedOutputStream output) {
5131 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
5132 output.WriteRawMessage(this);
5133 #else
5134 if (HasTargetType) {
5135 output.WriteRawTag(8);
5136 output.WriteEnum((int) TargetType);
5137 }
5138 if (HasTargetIndex) {
5139 output.WriteRawTag(16);
5140 output.WriteInt32(TargetIndex);
5141 }
5142 if (HasTargetName) {
5143 output.WriteRawTag(26);
5144 output.WriteString(TargetName);
5145 }
5146 if (HasPayloadKey) {
5147 output.WriteRawTag(34);
5148 output.WriteString(PayloadKey);
5149 }
5150 if (HasPayloadValue) {
5151 output.WriteRawTag(42);
5152 output.WriteString(PayloadValue);
5153 }
5154 if (_unknownFields != null) {
5155 _unknownFields.WriteTo(output);
5156 }
5157 #endif
5158 }
5159
5160 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
5161 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5162 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5163 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
5164 if (HasTargetType) {
5165 output.WriteRawTag(8);
5166 output.WriteEnum((int) TargetType);
5167 }
5168 if (HasTargetIndex) {
5169 output.WriteRawTag(16);
5170 output.WriteInt32(TargetIndex);
5171 }
5172 if (HasTargetName) {
5173 output.WriteRawTag(26);
5174 output.WriteString(TargetName);
5175 }
5176 if (HasPayloadKey) {
5177 output.WriteRawTag(34);
5178 output.WriteString(PayloadKey);
5179 }
5180 if (HasPayloadValue) {
5181 output.WriteRawTag(42);
5182 output.WriteString(PayloadValue);
5183 }
5184 if (_unknownFields != null) {
5185 _unknownFields.WriteTo(ref output);
5186 }
5187 }
5188 #endif
5189
5190 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5191 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5192 public int CalculateSize() {
5193 int size = 0;
5194 if (HasTargetType) {
5195 size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) TargetType);
5196 }
5198 size += 1 + pb::CodedOutputStream.ComputeInt32Size(TargetIndex);
5199 }
5200 if (HasTargetName) {
5201 size += 1 + pb::CodedOutputStream.ComputeStringSize(TargetName);
5202 }
5203 if (HasPayloadKey) {
5204 size += 1 + pb::CodedOutputStream.ComputeStringSize(PayloadKey);
5205 }
5206 if (HasPayloadValue) {
5207 size += 1 + pb::CodedOutputStream.ComputeStringSize(PayloadValue);
5208 }
5209 if (_unknownFields != null) {
5210 size += _unknownFields.CalculateSize();
5211 }
5212 return size;
5213 }
5214
5215 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5216 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5217 public void MergeFrom(Annotation other) {
5218 if (other == null) {
5219 return;
5220 }
5221 if (other.HasTargetType) {
5222 TargetType = other.TargetType;
5223 }
5224 if (other.HasTargetIndex) {
5225 TargetIndex = other.TargetIndex;
5226 }
5227 if (other.HasTargetName) {
5228 TargetName = other.TargetName;
5229 }
5230 if (other.HasPayloadKey) {
5231 PayloadKey = other.PayloadKey;
5232 }
5233 if (other.HasPayloadValue) {
5234 PayloadValue = other.PayloadValue;
5235 }
5236 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
5237 }
5238
5239 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5240 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5241 public void MergeFrom(pb::CodedInputStream input) {
5242 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
5243 input.ReadRawMessage(this);
5244 #else
5245 uint tag;
5246 while ((tag = input.ReadTag()) != 0) {
5247 if ((tag & 7) == 4) {
5248 // Abort on any end group tag.
5249 return;
5250 }
5251 switch(tag) {
5252 default:
5253 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
5254 break;
5255 case 8: {
5256 TargetType = (global::OperationsResearch.MPModelProto.Types.Annotation.Types.TargetType) input.ReadEnum();
5257 break;
5258 }
5259 case 16: {
5260 TargetIndex = input.ReadInt32();
5261 break;
5262 }
5263 case 26: {
5264 TargetName = input.ReadString();
5265 break;
5266 }
5267 case 34: {
5268 PayloadKey = input.ReadString();
5269 break;
5270 }
5271 case 42: {
5272 PayloadValue = input.ReadString();
5273 break;
5274 }
5275 }
5276 }
5277 #endif
5278 }
5279
5280 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
5281 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5282 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5283 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
5284 uint tag;
5285 while ((tag = input.ReadTag()) != 0) {
5286 if ((tag & 7) == 4) {
5287 // Abort on any end group tag.
5288 return;
5289 }
5290 switch(tag) {
5291 default:
5292 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
5293 break;
5294 case 8: {
5295 TargetType = (global::OperationsResearch.MPModelProto.Types.Annotation.Types.TargetType) input.ReadEnum();
5296 break;
5297 }
5298 case 16: {
5299 TargetIndex = input.ReadInt32();
5300 break;
5301 }
5302 case 26: {
5303 TargetName = input.ReadString();
5304 break;
5305 }
5306 case 34: {
5307 PayloadKey = input.ReadString();
5308 break;
5309 }
5310 case 42: {
5311 PayloadValue = input.ReadString();
5312 break;
5313 }
5314 }
5315 }
5316 }
5317 #endif
5318
5319 #region Nested types
5321 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5322 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5323 public static partial class Types {
5328 public enum TargetType {
5329 [pbr::OriginalName("VARIABLE_DEFAULT")] VariableDefault = 0,
5330 [pbr::OriginalName("CONSTRAINT")] Constraint = 1,
5331 [pbr::OriginalName("GENERAL_CONSTRAINT")] GeneralConstraint = 2,
5332 }
5335 #endregion
5337 }
5338
5339 }
5340 #endregion
5341
5342 }
5343
5345
5348 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
5349 public sealed partial class OptionalDouble : pb::IMessage<OptionalDouble>
5350 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
5351 , pb::IBufferMessage
5352 #endif
5353 {
5354 private static readonly pb::MessageParser<OptionalDouble> _parser = new pb::MessageParser<OptionalDouble>(() => new OptionalDouble());
5355 private pb::UnknownFieldSet _unknownFields;
5356 private int _hasBits0;
5357 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5358 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5359 public static pb::MessageParser<OptionalDouble> Parser { get { return _parser; } }
5360
5361 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5362 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5363 public static pbr::MessageDescriptor Descriptor {
5364 get { return global::OperationsResearch.LinearSolverReflection.Descriptor.MessageTypes[12]; }
5365 }
5366
5367 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5368 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5369 pbr::MessageDescriptor pb::IMessage.Descriptor {
5370 get { return Descriptor; }
5371 }
5372
5373 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5374 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5375 public OptionalDouble() {
5376 OnConstruction();
5377 }
5378
5379 partial void OnConstruction();
5381 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5382 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5383 public OptionalDouble(OptionalDouble other) : this() {
5384 _hasBits0 = other._hasBits0;
5385 value_ = other.value_;
5386 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
5387 }
5389 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5390 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5391 public OptionalDouble Clone() {
5392 return new OptionalDouble(this);
5393 }
5394
5396 public const int ValueFieldNumber = 1;
5397 private readonly static double ValueDefaultValue = 0D;
5398
5399 private double value_;
5400 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5401 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5402 public double Value {
5403 get { if ((_hasBits0 & 1) != 0) { return value_; } else { return ValueDefaultValue; } }
5404 set {
5405 _hasBits0 |= 1;
5406 value_ = value;
5408 }
5410 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5411 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5412 public bool HasValue {
5413 get { return (_hasBits0 & 1) != 0; }
5414 }
5416 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5417 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5418 public void ClearValue() {
5419 _hasBits0 &= ~1;
5420 }
5421
5422 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5423 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5424 public override bool Equals(object other) {
5425 return Equals(other as OptionalDouble);
5426 }
5427
5428 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5429 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5430 public bool Equals(OptionalDouble other) {
5431 if (ReferenceEquals(other, null)) {
5432 return false;
5433 }
5434 if (ReferenceEquals(other, this)) {
5435 return true;
5436 }
5437 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Value, other.Value)) return false;
5438 return Equals(_unknownFields, other._unknownFields);
5439 }
5440
5441 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5442 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5443 public override int GetHashCode() {
5444 int hash = 1;
5445 if (HasValue) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Value);
5446 if (_unknownFields != null) {
5447 hash ^= _unknownFields.GetHashCode();
5449 return hash;
5450 }
5451
5452 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5453 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5454 public override string ToString() {
5455 return pb::JsonFormatter.ToDiagnosticString(this);
5456 }
5457
5458 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5459 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5460 public void WriteTo(pb::CodedOutputStream output) {
5461 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
5462 output.WriteRawMessage(this);
5463 #else
5464 if (HasValue) {
5465 output.WriteRawTag(9);
5466 output.WriteDouble(Value);
5467 }
5468 if (_unknownFields != null) {
5469 _unknownFields.WriteTo(output);
5470 }
5471 #endif
5472 }
5473
5474 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
5475 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5476 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5477 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
5478 if (HasValue) {
5479 output.WriteRawTag(9);
5480 output.WriteDouble(Value);
5481 }
5482 if (_unknownFields != null) {
5483 _unknownFields.WriteTo(ref output);
5484 }
5485 }
5486 #endif
5487
5488 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5489 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5490 public int CalculateSize() {
5491 int size = 0;
5492 if (HasValue) {
5493 size += 1 + 8;
5494 }
5495 if (_unknownFields != null) {
5496 size += _unknownFields.CalculateSize();
5497 }
5498 return size;
5499 }
5500
5501 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5502 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5503 public void MergeFrom(OptionalDouble other) {
5504 if (other == null) {
5505 return;
5506 }
5507 if (other.HasValue) {
5508 Value = other.Value;
5509 }
5510 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
5511 }
5512
5513 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5514 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5515 public void MergeFrom(pb::CodedInputStream input) {
5516 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
5517 input.ReadRawMessage(this);
5518 #else
5519 uint tag;
5520 while ((tag = input.ReadTag()) != 0) {
5521 if ((tag & 7) == 4) {
5522 // Abort on any end group tag.
5523 return;
5524 }
5525 switch(tag) {
5526 default:
5527 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
5528 break;
5529 case 9: {
5530 Value = input.ReadDouble();
5531 break;
5532 }
5533 }
5534 }
5535 #endif
5536 }
5537
5538 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
5539 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5540 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5541 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
5542 uint tag;
5543 while ((tag = input.ReadTag()) != 0) {
5544 if ((tag & 7) == 4) {
5545 // Abort on any end group tag.
5546 return;
5547 }
5548 switch(tag) {
5549 default:
5550 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
5551 break;
5552 case 9: {
5553 Value = input.ReadDouble();
5554 break;
5555 }
5556 }
5557 }
5558 }
5559 #endif
5560
5561 }
5562
5567
5571 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
5572 public sealed partial class MPSolverCommonParameters : pb::IMessage<MPSolverCommonParameters>
5573 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
5574 , pb::IBufferMessage
5575 #endif
5576 {
5577 private static readonly pb::MessageParser<MPSolverCommonParameters> _parser = new pb::MessageParser<MPSolverCommonParameters>(() => new MPSolverCommonParameters());
5578 private pb::UnknownFieldSet _unknownFields;
5579 private int _hasBits0;
5580 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5581 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5582 public static pb::MessageParser<MPSolverCommonParameters> Parser { get { return _parser; } }
5583
5584 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5585 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5586 public static pbr::MessageDescriptor Descriptor {
5587 get { return global::OperationsResearch.LinearSolverReflection.Descriptor.MessageTypes[13]; }
5588 }
5589
5590 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5591 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5592 pbr::MessageDescriptor pb::IMessage.Descriptor {
5593 get { return Descriptor; }
5594 }
5595
5596 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5597 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5598 public MPSolverCommonParameters() {
5599 OnConstruction();
5600 }
5601
5602 partial void OnConstruction();
5604 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5605 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5606 public MPSolverCommonParameters(MPSolverCommonParameters other) : this() {
5607 _hasBits0 = other._hasBits0;
5608 relativeMipGap_ = other.relativeMipGap_ != null ? other.relativeMipGap_.Clone() : null;
5609 primalTolerance_ = other.primalTolerance_ != null ? other.primalTolerance_.Clone() : null;
5610 dualTolerance_ = other.dualTolerance_ != null ? other.dualTolerance_.Clone() : null;
5611 lpAlgorithm_ = other.lpAlgorithm_;
5612 presolve_ = other.presolve_;
5613 scaling_ = other.scaling_;
5614 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
5615 }
5616
5617 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5618 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5619 public MPSolverCommonParameters Clone() {
5620 return new MPSolverCommonParameters(this);
5621 }
5622
5624 public const int RelativeMipGapFieldNumber = 1;
5625 private global::OperationsResearch.OptionalDouble relativeMipGap_;
5627
5643 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5644 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5645 public global::OperationsResearch.OptionalDouble RelativeMipGap {
5646 get { return relativeMipGap_; }
5647 set {
5648 relativeMipGap_ = value;
5649 }
5650 }
5651
5652 /// <summary>Field number for the "primal_tolerance" field.</summary>
5653 public const int PrimalToleranceFieldNumber = 2;
5654 private global::OperationsResearch.OptionalDouble primalTolerance_;
5658
5661 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5662 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5663 public global::OperationsResearch.OptionalDouble PrimalTolerance {
5664 get { return primalTolerance_; }
5665 set {
5666 primalTolerance_ = value;
5667 }
5668 }
5669
5670 /// <summary>Field number for the "dual_tolerance" field.</summary>
5671 public const int DualToleranceFieldNumber = 3;
5672 private global::OperationsResearch.OptionalDouble dualTolerance_;
5676
5680 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5681 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5682 public global::OperationsResearch.OptionalDouble DualTolerance {
5683 get { return dualTolerance_; }
5684 set {
5685 dualTolerance_ = value;
5686 }
5687 }
5688
5689 /// <summary>Field number for the "lp_algorithm" field.</summary>
5690 public const int LpAlgorithmFieldNumber = 4;
5691 private readonly static global::OperationsResearch.MPSolverCommonParameters.Types.LPAlgorithmValues LpAlgorithmDefaultValue = global::OperationsResearch.MPSolverCommonParameters.Types.LPAlgorithmValues.LpAlgoUnspecified;
5692
5693 private global::OperationsResearch.MPSolverCommonParameters.Types.LPAlgorithmValues lpAlgorithm_;
5695
5698 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5699 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5700 public global::OperationsResearch.MPSolverCommonParameters.Types.LPAlgorithmValues LpAlgorithm {
5701 get { if ((_hasBits0 & 1) != 0) { return lpAlgorithm_; } else { return LpAlgorithmDefaultValue; } }
5702 set {
5703 _hasBits0 |= 1;
5704 lpAlgorithm_ = value;
5705 }
5706 }
5707 /// <summary>Gets whether the "lp_algorithm" field is set</summary>
5708 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5709 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5710 public bool HasLpAlgorithm {
5711 get { return (_hasBits0 & 1) != 0; }
5712 }
5714 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5715 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5716 public void ClearLpAlgorithm() {
5717 _hasBits0 &= ~1;
5718 }
5719
5720
5721 public const int PresolveFieldNumber = 5;
5722 private readonly static global::Google.OrTools.Util.OptionalBoolean PresolveDefaultValue = global::Google.OrTools.Util.OptionalBoolean.BoolUnspecified;
5724 private global::Google.OrTools.Util.OptionalBoolean presolve_;
5726
5729 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5730 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5731 public global::Google.OrTools.Util.OptionalBoolean Presolve {
5732 get { if ((_hasBits0 & 2) != 0) { return presolve_; } else { return PresolveDefaultValue; } }
5733 set {
5734 _hasBits0 |= 2;
5735 presolve_ = value;
5736 }
5737 }
5738 /// <summary>Gets whether the "presolve" field is set</summary>
5739 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5740 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5741 public bool HasPresolve {
5742 get { return (_hasBits0 & 2) != 0; }
5743 }
5745 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5746 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5747 public void ClearPresolve() {
5748 _hasBits0 &= ~2;
5749 }
5750
5751
5752 public const int ScalingFieldNumber = 7;
5753 private readonly static global::Google.OrTools.Util.OptionalBoolean ScalingDefaultValue = global::Google.OrTools.Util.OptionalBoolean.BoolUnspecified;
5755 private global::Google.OrTools.Util.OptionalBoolean scaling_;
5757
5761 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5762 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5763 public global::Google.OrTools.Util.OptionalBoolean Scaling {
5764 get { if ((_hasBits0 & 4) != 0) { return scaling_; } else { return ScalingDefaultValue; } }
5765 set {
5766 _hasBits0 |= 4;
5767 scaling_ = value;
5768 }
5769 }
5770 /// <summary>Gets whether the "scaling" field is set</summary>
5771 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5772 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5773 public bool HasScaling {
5774 get { return (_hasBits0 & 4) != 0; }
5775 }
5777 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5778 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5779 public void ClearScaling() {
5780 _hasBits0 &= ~4;
5781 }
5782
5783 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5784 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5785 public override bool Equals(object other) {
5787 }
5788
5789 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5790 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5791 public bool Equals(MPSolverCommonParameters other) {
5792 if (ReferenceEquals(other, null)) {
5793 return false;
5794 }
5795 if (ReferenceEquals(other, this)) {
5796 return true;
5797 }
5798 if (!object.Equals(RelativeMipGap, other.RelativeMipGap)) return false;
5799 if (!object.Equals(PrimalTolerance, other.PrimalTolerance)) return false;
5800 if (!object.Equals(DualTolerance, other.DualTolerance)) return false;
5801 if (LpAlgorithm != other.LpAlgorithm) return false;
5802 if (Presolve != other.Presolve) return false;
5803 if (Scaling != other.Scaling) return false;
5804 return Equals(_unknownFields, other._unknownFields);
5805 }
5806
5807 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5808 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5809 public override int GetHashCode() {
5810 int hash = 1;
5811 if (relativeMipGap_ != null) hash ^= RelativeMipGap.GetHashCode();
5812 if (primalTolerance_ != null) hash ^= PrimalTolerance.GetHashCode();
5813 if (dualTolerance_ != null) hash ^= DualTolerance.GetHashCode();
5814 if (HasLpAlgorithm) hash ^= LpAlgorithm.GetHashCode();
5815 if (HasPresolve) hash ^= Presolve.GetHashCode();
5816 if (HasScaling) hash ^= Scaling.GetHashCode();
5817 if (_unknownFields != null) {
5818 hash ^= _unknownFields.GetHashCode();
5819 }
5820 return hash;
5821 }
5822
5823 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5824 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5825 public override string ToString() {
5826 return pb::JsonFormatter.ToDiagnosticString(this);
5827 }
5828
5829 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5830 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5831 public void WriteTo(pb::CodedOutputStream output) {
5832 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
5833 output.WriteRawMessage(this);
5834 #else
5835 if (relativeMipGap_ != null) {
5836 output.WriteRawTag(10);
5837 output.WriteMessage(RelativeMipGap);
5839 if (primalTolerance_ != null) {
5840 output.WriteRawTag(18);
5841 output.WriteMessage(PrimalTolerance);
5842 }
5843 if (dualTolerance_ != null) {
5844 output.WriteRawTag(26);
5845 output.WriteMessage(DualTolerance);
5846 }
5847 if (HasLpAlgorithm) {
5848 output.WriteRawTag(32);
5849 output.WriteEnum((int) LpAlgorithm);
5850 }
5851 if (HasPresolve) {
5852 output.WriteRawTag(40);
5853 output.WriteEnum((int) Presolve);
5854 }
5855 if (HasScaling) {
5856 output.WriteRawTag(56);
5857 output.WriteEnum((int) Scaling);
5858 }
5859 if (_unknownFields != null) {
5860 _unknownFields.WriteTo(output);
5861 }
5862 #endif
5863 }
5864
5865 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
5866 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5867 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5868 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
5869 if (relativeMipGap_ != null) {
5870 output.WriteRawTag(10);
5871 output.WriteMessage(RelativeMipGap);
5872 }
5873 if (primalTolerance_ != null) {
5874 output.WriteRawTag(18);
5875 output.WriteMessage(PrimalTolerance);
5876 }
5877 if (dualTolerance_ != null) {
5878 output.WriteRawTag(26);
5879 output.WriteMessage(DualTolerance);
5880 }
5881 if (HasLpAlgorithm) {
5882 output.WriteRawTag(32);
5883 output.WriteEnum((int) LpAlgorithm);
5884 }
5885 if (HasPresolve) {
5886 output.WriteRawTag(40);
5887 output.WriteEnum((int) Presolve);
5888 }
5889 if (HasScaling) {
5890 output.WriteRawTag(56);
5891 output.WriteEnum((int) Scaling);
5892 }
5893 if (_unknownFields != null) {
5894 _unknownFields.WriteTo(ref output);
5895 }
5896 }
5897 #endif
5898
5899 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5900 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5901 public int CalculateSize() {
5902 int size = 0;
5903 if (relativeMipGap_ != null) {
5904 size += 1 + pb::CodedOutputStream.ComputeMessageSize(RelativeMipGap);
5905 }
5906 if (primalTolerance_ != null) {
5907 size += 1 + pb::CodedOutputStream.ComputeMessageSize(PrimalTolerance);
5909 if (dualTolerance_ != null) {
5910 size += 1 + pb::CodedOutputStream.ComputeMessageSize(DualTolerance);
5911 }
5912 if (HasLpAlgorithm) {
5913 size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) LpAlgorithm);
5914 }
5915 if (HasPresolve) {
5916 size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Presolve);
5917 }
5918 if (HasScaling) {
5919 size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Scaling);
5920 }
5921 if (_unknownFields != null) {
5922 size += _unknownFields.CalculateSize();
5923 }
5924 return size;
5925 }
5926
5927 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5928 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5929 public void MergeFrom(MPSolverCommonParameters other) {
5930 if (other == null) {
5931 return;
5932 }
5933 if (other.relativeMipGap_ != null) {
5934 if (relativeMipGap_ == null) {
5935 RelativeMipGap = new global::OperationsResearch.OptionalDouble();
5937 RelativeMipGap.MergeFrom(other.RelativeMipGap);
5938 }
5939 if (other.primalTolerance_ != null) {
5940 if (primalTolerance_ == null) {
5941 PrimalTolerance = new global::OperationsResearch.OptionalDouble();
5942 }
5943 PrimalTolerance.MergeFrom(other.PrimalTolerance);
5944 }
5945 if (other.dualTolerance_ != null) {
5946 if (dualTolerance_ == null) {
5947 DualTolerance = new global::OperationsResearch.OptionalDouble();
5948 }
5949 DualTolerance.MergeFrom(other.DualTolerance);
5950 }
5951 if (other.HasLpAlgorithm) {
5952 LpAlgorithm = other.LpAlgorithm;
5953 }
5954 if (other.HasPresolve) {
5955 Presolve = other.Presolve;
5956 }
5957 if (other.HasScaling) {
5958 Scaling = other.Scaling;
5959 }
5960 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
5961 }
5962
5963 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5964 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5965 public void MergeFrom(pb::CodedInputStream input) {
5966 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
5967 input.ReadRawMessage(this);
5968 #else
5969 uint tag;
5970 while ((tag = input.ReadTag()) != 0) {
5971 if ((tag & 7) == 4) {
5972 // Abort on any end group tag.
5973 return;
5974 }
5975 switch(tag) {
5976 default:
5977 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
5978 break;
5979 case 10: {
5980 if (relativeMipGap_ == null) {
5981 RelativeMipGap = new global::OperationsResearch.OptionalDouble();
5982 }
5983 input.ReadMessage(RelativeMipGap);
5984 break;
5985 }
5986 case 18: {
5987 if (primalTolerance_ == null) {
5988 PrimalTolerance = new global::OperationsResearch.OptionalDouble();
5989 }
5990 input.ReadMessage(PrimalTolerance);
5991 break;
5992 }
5993 case 26: {
5994 if (dualTolerance_ == null) {
5995 DualTolerance = new global::OperationsResearch.OptionalDouble();
5996 }
5997 input.ReadMessage(DualTolerance);
5998 break;
5999 }
6000 case 32: {
6001 LpAlgorithm = (global::OperationsResearch.MPSolverCommonParameters.Types.LPAlgorithmValues) input.ReadEnum();
6002 break;
6003 }
6004 case 40: {
6005 Presolve = (global::Google.OrTools.Util.OptionalBoolean) input.ReadEnum();
6006 break;
6007 }
6008 case 56: {
6009 Scaling = (global::Google.OrTools.Util.OptionalBoolean) input.ReadEnum();
6010 break;
6011 }
6012 }
6013 }
6014 #endif
6015 }
6016
6017 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
6018 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6019 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6020 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
6021 uint tag;
6022 while ((tag = input.ReadTag()) != 0) {
6023 if ((tag & 7) == 4) {
6024 // Abort on any end group tag.
6025 return;
6026 }
6027 switch(tag) {
6028 default:
6029 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
6030 break;
6031 case 10: {
6032 if (relativeMipGap_ == null) {
6033 RelativeMipGap = new global::OperationsResearch.OptionalDouble();
6034 }
6035 input.ReadMessage(RelativeMipGap);
6036 break;
6037 }
6038 case 18: {
6039 if (primalTolerance_ == null) {
6040 PrimalTolerance = new global::OperationsResearch.OptionalDouble();
6041 }
6042 input.ReadMessage(PrimalTolerance);
6043 break;
6044 }
6045 case 26: {
6046 if (dualTolerance_ == null) {
6047 DualTolerance = new global::OperationsResearch.OptionalDouble();
6048 }
6049 input.ReadMessage(DualTolerance);
6050 break;
6051 }
6052 case 32: {
6053 LpAlgorithm = (global::OperationsResearch.MPSolverCommonParameters.Types.LPAlgorithmValues) input.ReadEnum();
6054 break;
6055 }
6056 case 40: {
6057 Presolve = (global::Google.OrTools.Util.OptionalBoolean) input.ReadEnum();
6058 break;
6059 }
6060 case 56: {
6061 Scaling = (global::Google.OrTools.Util.OptionalBoolean) input.ReadEnum();
6062 break;
6063 }
6064 }
6065 }
6066 }
6067 #endif
6068
6069 #region Nested types
6071 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6072 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6073 public static partial class Types {
6074 public enum LPAlgorithmValues {
6075 [pbr::OriginalName("LP_ALGO_UNSPECIFIED")] LpAlgoUnspecified = 0,
6079 [pbr::OriginalName("LP_ALGO_DUAL")] LpAlgoDual = 1,
6080 /// <summary>
6081 /// Primal simplex.
6082 /// </summary>
6083 [pbr::OriginalName("LP_ALGO_PRIMAL")] LpAlgoPrimal = 2,
6087 [pbr::OriginalName("LP_ALGO_BARRIER")] LpAlgoBarrier = 3,
6088 }
6089
6091 #endregion
6092
6093 }
6096
6098
6099 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
6100 public sealed partial class MPModelDeltaProto : pb::IMessage<MPModelDeltaProto>
6101 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
6102 , pb::IBufferMessage
6103 #endif
6104 {
6105 private static readonly pb::MessageParser<MPModelDeltaProto> _parser = new pb::MessageParser<MPModelDeltaProto>(() => new MPModelDeltaProto());
6106 private pb::UnknownFieldSet _unknownFields;
6107 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6108 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6109 public static pb::MessageParser<MPModelDeltaProto> Parser { get { return _parser; } }
6110
6111 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6112 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6113 public static pbr::MessageDescriptor Descriptor {
6114 get { return global::OperationsResearch.LinearSolverReflection.Descriptor.MessageTypes[14]; }
6115 }
6117 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6118 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6119 pbr::MessageDescriptor pb::IMessage.Descriptor {
6120 get { return Descriptor; }
6121 }
6122
6123 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6124 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6125 public MPModelDeltaProto() {
6126 OnConstruction();
6127 }
6128
6129 partial void OnConstruction();
6130
6131 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6132 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6133 public MPModelDeltaProto(MPModelDeltaProto other) : this() {
6134 baselineModelFilePath_ = other.baselineModelFilePath_;
6135 variableOverrides_ = other.variableOverrides_.Clone();
6136 constraintOverrides_ = other.constraintOverrides_.Clone();
6137 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
6138 }
6139
6140 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6141 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6142 public MPModelDeltaProto Clone() {
6143 return new MPModelDeltaProto(this);
6144 }
6145
6146
6147 public const int BaselineModelFilePathFieldNumber = 1;
6148 private readonly static string BaselineModelFilePathDefaultValue = "";
6150 private string baselineModelFilePath_;
6151 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6152 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6153 public string BaselineModelFilePath {
6154 get { return baselineModelFilePath_ ?? BaselineModelFilePathDefaultValue; }
6155 set {
6156 baselineModelFilePath_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
6157 }
6158 }
6160 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6161 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6162 public bool HasBaselineModelFilePath {
6163 get { return baselineModelFilePath_ != null; }
6164 }
6166 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6167 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6168 public void ClearBaselineModelFilePath() {
6169 baselineModelFilePath_ = null;
6170 }
6171
6172
6173 public const int VariableOverridesFieldNumber = 2;
6174 private static readonly pbc::MapField<int, global::OperationsResearch.MPVariableProto>.Codec _map_variableOverrides_codec
6175 = new pbc::MapField<int, global::OperationsResearch.MPVariableProto>.Codec(pb::FieldCodec.ForInt32(8, 0), pb::FieldCodec.ForMessage(18, global::OperationsResearch.MPVariableProto.Parser), 18);
6176 private readonly pbc::MapField<int, global::OperationsResearch.MPVariableProto> variableOverrides_ = new pbc::MapField<int, global::OperationsResearch.MPVariableProto>();
6178
6186 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6187 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6188 public pbc::MapField<int, global::OperationsResearch.MPVariableProto> VariableOverrides {
6189 get { return variableOverrides_; }
6190 }
6191
6193 public const int ConstraintOverridesFieldNumber = 3;
6194 private static readonly pbc::MapField<int, global::OperationsResearch.MPConstraintProto>.Codec _map_constraintOverrides_codec
6195 = new pbc::MapField<int, global::OperationsResearch.MPConstraintProto>.Codec(pb::FieldCodec.ForInt32(8, 0), pb::FieldCodec.ForMessage(18, global::OperationsResearch.MPConstraintProto.Parser), 26);
6196 private readonly pbc::MapField<int, global::OperationsResearch.MPConstraintProto> constraintOverrides_ = new pbc::MapField<int, global::OperationsResearch.MPConstraintProto>();
6198
6206 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6207 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6208 public pbc::MapField<int, global::OperationsResearch.MPConstraintProto> ConstraintOverrides {
6209 get { return constraintOverrides_; }
6210 }
6211
6212 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6213 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6214 public override bool Equals(object other) {
6215 return Equals(other as MPModelDeltaProto);
6216 }
6217
6218 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6219 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6220 public bool Equals(MPModelDeltaProto other) {
6221 if (ReferenceEquals(other, null)) {
6222 return false;
6223 }
6224 if (ReferenceEquals(other, this)) {
6225 return true;
6226 }
6228 if (!VariableOverrides.Equals(other.VariableOverrides)) return false;
6229 if (!ConstraintOverrides.Equals(other.ConstraintOverrides)) return false;
6230 return Equals(_unknownFields, other._unknownFields);
6231 }
6232
6233 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6234 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6235 public override int GetHashCode() {
6236 int hash = 1;
6237 if (HasBaselineModelFilePath) hash ^= BaselineModelFilePath.GetHashCode();
6238 hash ^= VariableOverrides.GetHashCode();
6239 hash ^= ConstraintOverrides.GetHashCode();
6240 if (_unknownFields != null) {
6241 hash ^= _unknownFields.GetHashCode();
6243 return hash;
6244 }
6245
6246 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6247 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6248 public override string ToString() {
6249 return pb::JsonFormatter.ToDiagnosticString(this);
6250 }
6251
6252 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6253 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6254 public void WriteTo(pb::CodedOutputStream output) {
6255 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
6256 output.WriteRawMessage(this);
6257 #else
6259 output.WriteRawTag(10);
6260 output.WriteString(BaselineModelFilePath);
6262 variableOverrides_.WriteTo(output, _map_variableOverrides_codec);
6263 constraintOverrides_.WriteTo(output, _map_constraintOverrides_codec);
6264 if (_unknownFields != null) {
6265 _unknownFields.WriteTo(output);
6266 }
6267 #endif
6268 }
6269
6270 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
6271 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6272 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6273 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
6274 if (HasBaselineModelFilePath) {
6275 output.WriteRawTag(10);
6276 output.WriteString(BaselineModelFilePath);
6277 }
6278 variableOverrides_.WriteTo(ref output, _map_variableOverrides_codec);
6279 constraintOverrides_.WriteTo(ref output, _map_constraintOverrides_codec);
6280 if (_unknownFields != null) {
6281 _unknownFields.WriteTo(ref output);
6282 }
6283 }
6284 #endif
6285
6286 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6287 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6288 public int CalculateSize() {
6289 int size = 0;
6290 if (HasBaselineModelFilePath) {
6291 size += 1 + pb::CodedOutputStream.ComputeStringSize(BaselineModelFilePath);
6292 }
6293 size += variableOverrides_.CalculateSize(_map_variableOverrides_codec);
6294 size += constraintOverrides_.CalculateSize(_map_constraintOverrides_codec);
6295 if (_unknownFields != null) {
6296 size += _unknownFields.CalculateSize();
6297 }
6298 return size;
6299 }
6300
6301 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6302 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6303 public void MergeFrom(MPModelDeltaProto other) {
6304 if (other == null) {
6305 return;
6306 }
6307 if (other.HasBaselineModelFilePath) {
6308 BaselineModelFilePath = other.BaselineModelFilePath;
6309 }
6310 variableOverrides_.MergeFrom(other.variableOverrides_);
6311 constraintOverrides_.MergeFrom(other.constraintOverrides_);
6312 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
6313 }
6314
6315 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6316 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6317 public void MergeFrom(pb::CodedInputStream input) {
6318 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
6319 input.ReadRawMessage(this);
6320 #else
6321 uint tag;
6322 while ((tag = input.ReadTag()) != 0) {
6323 if ((tag & 7) == 4) {
6324 // Abort on any end group tag.
6325 return;
6326 }
6327 switch(tag) {
6328 default:
6329 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
6330 break;
6331 case 10: {
6332 BaselineModelFilePath = input.ReadString();
6333 break;
6334 }
6335 case 18: {
6336 variableOverrides_.AddEntriesFrom(input, _map_variableOverrides_codec);
6337 break;
6338 }
6339 case 26: {
6340 constraintOverrides_.AddEntriesFrom(input, _map_constraintOverrides_codec);
6341 break;
6342 }
6343 }
6344 }
6345 #endif
6346 }
6347
6348 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
6349 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6350 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6351 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
6352 uint tag;
6353 while ((tag = input.ReadTag()) != 0) {
6354 if ((tag & 7) == 4) {
6355 // Abort on any end group tag.
6356 return;
6357 }
6358 switch(tag) {
6359 default:
6360 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
6361 break;
6362 case 10: {
6363 BaselineModelFilePath = input.ReadString();
6364 break;
6365 }
6366 case 18: {
6367 variableOverrides_.AddEntriesFrom(ref input, _map_variableOverrides_codec);
6368 break;
6369 }
6370 case 26: {
6371 constraintOverrides_.AddEntriesFrom(ref input, _map_constraintOverrides_codec);
6372 break;
6373 }
6374 }
6375 }
6376 }
6377 #endif
6378
6379 }
6380
6384 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
6385 public sealed partial class MPModelRequest : pb::IMessage<MPModelRequest>
6386 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
6387 , pb::IBufferMessage
6388 #endif
6389 {
6390 private static readonly pb::MessageParser<MPModelRequest> _parser = new pb::MessageParser<MPModelRequest>(() => new MPModelRequest());
6391 private pb::UnknownFieldSet _unknownFields;
6392 private int _hasBits0;
6393 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6394 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6395 public static pb::MessageParser<MPModelRequest> Parser { get { return _parser; } }
6396
6397 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6398 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6399 public static pbr::MessageDescriptor Descriptor {
6400 get { return global::OperationsResearch.LinearSolverReflection.Descriptor.MessageTypes[15]; }
6401 }
6403 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6404 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6405 pbr::MessageDescriptor pb::IMessage.Descriptor {
6406 get { return Descriptor; }
6407 }
6408
6409 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6410 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6411 public MPModelRequest() {
6412 OnConstruction();
6413 }
6414
6415 partial void OnConstruction();
6416
6417 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6418 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6419 public MPModelRequest(MPModelRequest other) : this() {
6420 _hasBits0 = other._hasBits0;
6421 model_ = other.model_ != null ? other.model_.Clone() : null;
6422 solverType_ = other.solverType_;
6423 solverTimeLimitSeconds_ = other.solverTimeLimitSeconds_;
6424 enableInternalSolverOutput_ = other.enableInternalSolverOutput_;
6425 solverSpecificParameters_ = other.solverSpecificParameters_;
6426 ignoreSolverSpecificParametersFailure_ = other.ignoreSolverSpecificParametersFailure_;
6427 modelDelta_ = other.modelDelta_ != null ? other.modelDelta_.Clone() : null;
6428 populateAdditionalSolutionsUpTo_ = other.populateAdditionalSolutionsUpTo_;
6429 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
6430 }
6431
6432 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6433 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6434 public MPModelRequest Clone() {
6435 return new MPModelRequest(this);
6436 }
6437
6438
6439 public const int ModelFieldNumber = 1;
6440 private global::OperationsResearch.MPModelProto model_;
6441 /// <summary>
6442 /// The model to be optimized by the server.
6443 /// </summary>
6444 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6445 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6446 public global::OperationsResearch.MPModelProto Model {
6447 get { return model_; }
6448 set {
6449 model_ = value;
6450 }
6451 }
6452
6453 /// <summary>Field number for the "solver_type" field.</summary>
6454 public const int SolverTypeFieldNumber = 2;
6455 private readonly static global::OperationsResearch.MPModelRequest.Types.SolverType SolverTypeDefaultValue = global::OperationsResearch.MPModelRequest.Types.SolverType.GlopLinearProgramming;
6456
6457 private global::OperationsResearch.MPModelRequest.Types.SolverType solverType_;
6458 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6459 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6460 public global::OperationsResearch.MPModelRequest.Types.SolverType SolverType {
6461 get { if ((_hasBits0 & 1) != 0) { return solverType_; } else { return SolverTypeDefaultValue; } }
6462 set {
6463 _hasBits0 |= 1;
6464 solverType_ = value;
6465 }
6466 }
6467 /// <summary>Gets whether the "solver_type" field is set</summary>
6468 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6469 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6470 public bool HasSolverType {
6471 get { return (_hasBits0 & 1) != 0; }
6472 }
6474 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6475 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6476 public void ClearSolverType() {
6477 _hasBits0 &= ~1;
6478 }
6479
6480
6481 public const int SolverTimeLimitSecondsFieldNumber = 3;
6482 private readonly static double SolverTimeLimitSecondsDefaultValue = 0D;
6484 private double solverTimeLimitSeconds_;
6486
6496 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6497 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6498 public double SolverTimeLimitSeconds {
6499 get { if ((_hasBits0 & 2) != 0) { return solverTimeLimitSeconds_; } else { return SolverTimeLimitSecondsDefaultValue; } }
6500 set {
6501 _hasBits0 |= 2;
6502 solverTimeLimitSeconds_ = value;
6503 }
6504 }
6506 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6507 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6508 public bool HasSolverTimeLimitSeconds {
6509 get { return (_hasBits0 & 2) != 0; }
6510 }
6512 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6513 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6514 public void ClearSolverTimeLimitSeconds() {
6515 _hasBits0 &= ~2;
6516 }
6519 public const int EnableInternalSolverOutputFieldNumber = 4;
6520 private readonly static bool EnableInternalSolverOutputDefaultValue = false;
6521
6522 private bool enableInternalSolverOutput_;
6523 /// <summary>
6524 /// If this is set, then EnableOutput() will be set on the internal MPSolver
6525 /// that solves the model.
6526 /// WARNING: if you set this on a request to prod servers, it will be rejected
6527 /// and yield the RPC Application Error code MPSOLVER_SOLVER_TYPE_UNAVAILABLE.
6528 /// </summary>
6529 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6530 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6531 public bool EnableInternalSolverOutput {
6532 get { if ((_hasBits0 & 4) != 0) { return enableInternalSolverOutput_; } else { return EnableInternalSolverOutputDefaultValue; } }
6533 set {
6534 _hasBits0 |= 4;
6535 enableInternalSolverOutput_ = value;
6536 }
6537 }
6539 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6540 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6541 public bool HasEnableInternalSolverOutput {
6542 get { return (_hasBits0 & 4) != 0; }
6543 }
6545 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6546 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6547 public void ClearEnableInternalSolverOutput() {
6548 _hasBits0 &= ~4;
6549 }
6552 public const int SolverSpecificParametersFieldNumber = 5;
6553 private readonly static string SolverSpecificParametersDefaultValue = "";
6554
6555 private string solverSpecificParameters_;
6556 /// <summary>
6557 /// Advanced usage. Solver-specific parameters in the solver's own format,
6558 /// different for each solver. For example, if you use SCIP and you want to
6559 /// stop the solve earlier than the time limit if it reached a solution that is
6560 /// at most 1% away from the optimal, you can set this to "limits/gap=0.01".
6561 ///
6562 /// Note however that there is no "security" mechanism in place so it is up to
6563 /// the client to make sure that the given options don't make the solve
6564 /// non thread safe or use up too much memory for instance.
6565 ///
6566 /// If the option format is not understood by the solver, the request will be
6567 /// rejected and yield an RPC Application error with code
6568 /// MPSOLVER_MODEL_INVALID_SOLVER_PARAMETERS, unless you have set
6569 /// ignore_solver_specific_parameters_failure=true (in which case they are
6570 /// simply ignored).
6571 /// </summary>
6572 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6573 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6574 public string SolverSpecificParameters {
6575 get { return solverSpecificParameters_ ?? SolverSpecificParametersDefaultValue; }
6576 set {
6577 solverSpecificParameters_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
6578 }
6579 }
6581 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6582 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6583 public bool HasSolverSpecificParameters {
6584 get { return solverSpecificParameters_ != null; }
6587 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6588 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6589 public void ClearSolverSpecificParameters() {
6590 solverSpecificParameters_ = null;
6591 }
6592
6595 private readonly static bool IgnoreSolverSpecificParametersFailureDefaultValue = false;
6596
6597 private bool ignoreSolverSpecificParametersFailure_;
6598 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6599 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6601 get { if ((_hasBits0 & 8) != 0) { return ignoreSolverSpecificParametersFailure_; } else { return IgnoreSolverSpecificParametersFailureDefaultValue; } }
6602 set {
6603 _hasBits0 |= 8;
6604 ignoreSolverSpecificParametersFailure_ = value;
6606 }
6608 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6609 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6610 public bool HasIgnoreSolverSpecificParametersFailure {
6611 get { return (_hasBits0 & 8) != 0; }
6612 }
6614 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6615 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6616 public void ClearIgnoreSolverSpecificParametersFailure() {
6617 _hasBits0 &= ~8;
6618 }
6619
6621 public const int ModelDeltaFieldNumber = 8;
6622 private global::OperationsResearch.MPModelDeltaProto modelDelta_;
6624
6627 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6628 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6629 public global::OperationsResearch.MPModelDeltaProto ModelDelta {
6630 get { return modelDelta_; }
6631 set {
6632 modelDelta_ = value;
6633 }
6634 }
6635
6637 public const int PopulateAdditionalSolutionsUpToFieldNumber = 11;
6638 private readonly static int PopulateAdditionalSolutionsUpToDefaultValue = 0;
6639
6640 private int populateAdditionalSolutionsUpTo_;
6646
6650 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6651 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6653 get { if ((_hasBits0 & 16) != 0) { return populateAdditionalSolutionsUpTo_; } else { return PopulateAdditionalSolutionsUpToDefaultValue; } }
6654 set {
6655 _hasBits0 |= 16;
6656 populateAdditionalSolutionsUpTo_ = value;
6657 }
6658 }
6660 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6661 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6662 public bool HasPopulateAdditionalSolutionsUpTo {
6663 get { return (_hasBits0 & 16) != 0; }
6664 }
6666 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6667 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6668 public void ClearPopulateAdditionalSolutionsUpTo() {
6669 _hasBits0 &= ~16;
6670 }
6671
6672 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6673 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6674 public override bool Equals(object other) {
6675 return Equals(other as MPModelRequest);
6676 }
6677
6678 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6679 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6680 public bool Equals(MPModelRequest other) {
6681 if (ReferenceEquals(other, null)) {
6682 return false;
6683 }
6684 if (ReferenceEquals(other, this)) {
6685 return true;
6686 }
6687 if (!object.Equals(Model, other.Model)) return false;
6688 if (SolverType != other.SolverType) return false;
6689 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(SolverTimeLimitSeconds, other.SolverTimeLimitSeconds)) return false;
6690 if (EnableInternalSolverOutput != other.EnableInternalSolverOutput) return false;
6693 if (!object.Equals(ModelDelta, other.ModelDelta)) return false;
6695 return Equals(_unknownFields, other._unknownFields);
6696 }
6697
6698 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6699 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6700 public override int GetHashCode() {
6701 int hash = 1;
6702 if (model_ != null) hash ^= Model.GetHashCode();
6703 if (HasSolverType) hash ^= SolverType.GetHashCode();
6704 if (HasSolverTimeLimitSeconds) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(SolverTimeLimitSeconds);
6705 if (HasEnableInternalSolverOutput) hash ^= EnableInternalSolverOutput.GetHashCode();
6706 if (HasSolverSpecificParameters) hash ^= SolverSpecificParameters.GetHashCode();
6707 if (HasIgnoreSolverSpecificParametersFailure) hash ^= IgnoreSolverSpecificParametersFailure.GetHashCode();
6708 if (modelDelta_ != null) hash ^= ModelDelta.GetHashCode();
6709 if (HasPopulateAdditionalSolutionsUpTo) hash ^= PopulateAdditionalSolutionsUpTo.GetHashCode();
6710 if (_unknownFields != null) {
6711 hash ^= _unknownFields.GetHashCode();
6712 }
6713 return hash;
6714 }
6715
6716 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6717 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6718 public override string ToString() {
6719 return pb::JsonFormatter.ToDiagnosticString(this);
6720 }
6721
6722 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6723 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6724 public void WriteTo(pb::CodedOutputStream output) {
6725 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
6726 output.WriteRawMessage(this);
6727 #else
6728 if (model_ != null) {
6729 output.WriteRawTag(10);
6730 output.WriteMessage(Model);
6731 }
6732 if (HasSolverType) {
6733 output.WriteRawTag(16);
6734 output.WriteEnum((int) SolverType);
6736 if (HasSolverTimeLimitSeconds) {
6737 output.WriteRawTag(25);
6738 output.WriteDouble(SolverTimeLimitSeconds);
6739 }
6740 if (HasEnableInternalSolverOutput) {
6741 output.WriteRawTag(32);
6742 output.WriteBool(EnableInternalSolverOutput);
6743 }
6744 if (HasSolverSpecificParameters) {
6745 output.WriteRawTag(42);
6746 output.WriteString(SolverSpecificParameters);
6747 }
6748 if (modelDelta_ != null) {
6749 output.WriteRawTag(66);
6750 output.WriteMessage(ModelDelta);
6751 }
6752 if (HasIgnoreSolverSpecificParametersFailure) {
6753 output.WriteRawTag(72);
6754 output.WriteBool(IgnoreSolverSpecificParametersFailure);
6755 }
6756 if (HasPopulateAdditionalSolutionsUpTo) {
6757 output.WriteRawTag(88);
6758 output.WriteInt32(PopulateAdditionalSolutionsUpTo);
6759 }
6760 if (_unknownFields != null) {
6761 _unknownFields.WriteTo(output);
6762 }
6763 #endif
6764 }
6765
6766 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
6767 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6768 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6769 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
6770 if (model_ != null) {
6771 output.WriteRawTag(10);
6772 output.WriteMessage(Model);
6773 }
6774 if (HasSolverType) {
6775 output.WriteRawTag(16);
6776 output.WriteEnum((int) SolverType);
6777 }
6778 if (HasSolverTimeLimitSeconds) {
6779 output.WriteRawTag(25);
6780 output.WriteDouble(SolverTimeLimitSeconds);
6781 }
6782 if (HasEnableInternalSolverOutput) {
6783 output.WriteRawTag(32);
6784 output.WriteBool(EnableInternalSolverOutput);
6785 }
6786 if (HasSolverSpecificParameters) {
6787 output.WriteRawTag(42);
6788 output.WriteString(SolverSpecificParameters);
6789 }
6790 if (modelDelta_ != null) {
6791 output.WriteRawTag(66);
6792 output.WriteMessage(ModelDelta);
6793 }
6794 if (HasIgnoreSolverSpecificParametersFailure) {
6795 output.WriteRawTag(72);
6796 output.WriteBool(IgnoreSolverSpecificParametersFailure);
6797 }
6798 if (HasPopulateAdditionalSolutionsUpTo) {
6799 output.WriteRawTag(88);
6800 output.WriteInt32(PopulateAdditionalSolutionsUpTo);
6801 }
6802 if (_unknownFields != null) {
6803 _unknownFields.WriteTo(ref output);
6804 }
6805 }
6806 #endif
6807
6808 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6809 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6810 public int CalculateSize() {
6811 int size = 0;
6812 if (model_ != null) {
6813 size += 1 + pb::CodedOutputStream.ComputeMessageSize(Model);
6814 }
6815 if (HasSolverType) {
6816 size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) SolverType);
6817 }
6818 if (HasSolverTimeLimitSeconds) {
6819 size += 1 + 8;
6820 }
6822 size += 1 + 1;
6823 }
6824 if (HasSolverSpecificParameters) {
6825 size += 1 + pb::CodedOutputStream.ComputeStringSize(SolverSpecificParameters);
6826 }
6827 if (HasIgnoreSolverSpecificParametersFailure) {
6828 size += 1 + 1;
6829 }
6830 if (modelDelta_ != null) {
6831 size += 1 + pb::CodedOutputStream.ComputeMessageSize(ModelDelta);
6832 }
6833 if (HasPopulateAdditionalSolutionsUpTo) {
6834 size += 1 + pb::CodedOutputStream.ComputeInt32Size(PopulateAdditionalSolutionsUpTo);
6835 }
6836 if (_unknownFields != null) {
6837 size += _unknownFields.CalculateSize();
6838 }
6839 return size;
6840 }
6841
6842 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6843 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6844 public void MergeFrom(MPModelRequest other) {
6845 if (other == null) {
6846 return;
6847 }
6848 if (other.model_ != null) {
6849 if (model_ == null) {
6850 Model = new global::OperationsResearch.MPModelProto();
6851 }
6852 Model.MergeFrom(other.Model);
6853 }
6854 if (other.HasSolverType) {
6855 SolverType = other.SolverType;
6856 }
6857 if (other.HasSolverTimeLimitSeconds) {
6858 SolverTimeLimitSeconds = other.SolverTimeLimitSeconds;
6859 }
6860 if (other.HasEnableInternalSolverOutput) {
6861 EnableInternalSolverOutput = other.EnableInternalSolverOutput;
6862 }
6863 if (other.HasSolverSpecificParameters) {
6864 SolverSpecificParameters = other.SolverSpecificParameters;
6865 }
6866 if (other.HasIgnoreSolverSpecificParametersFailure) {
6867 IgnoreSolverSpecificParametersFailure = other.IgnoreSolverSpecificParametersFailure;
6868 }
6869 if (other.modelDelta_ != null) {
6870 if (modelDelta_ == null) {
6871 ModelDelta = new global::OperationsResearch.MPModelDeltaProto();
6872 }
6873 ModelDelta.MergeFrom(other.ModelDelta);
6874 }
6875 if (other.HasPopulateAdditionalSolutionsUpTo) {
6876 PopulateAdditionalSolutionsUpTo = other.PopulateAdditionalSolutionsUpTo;
6877 }
6878 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
6879 }
6880
6881 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6882 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6883 public void MergeFrom(pb::CodedInputStream input) {
6884 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
6885 input.ReadRawMessage(this);
6886 #else
6887 uint tag;
6888 while ((tag = input.ReadTag()) != 0) {
6889 if ((tag & 7) == 4) {
6890 // Abort on any end group tag.
6891 return;
6892 }
6893 switch(tag) {
6894 default:
6895 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
6896 break;
6897 case 10: {
6898 if (model_ == null) {
6899 Model = new global::OperationsResearch.MPModelProto();
6900 }
6901 input.ReadMessage(Model);
6902 break;
6903 }
6904 case 16: {
6905 SolverType = (global::OperationsResearch.MPModelRequest.Types.SolverType) input.ReadEnum();
6906 break;
6907 }
6908 case 25: {
6909 SolverTimeLimitSeconds = input.ReadDouble();
6910 break;
6911 }
6912 case 32: {
6913 EnableInternalSolverOutput = input.ReadBool();
6914 break;
6915 }
6916 case 42: {
6917 SolverSpecificParameters = input.ReadString();
6918 break;
6919 }
6920 case 66: {
6921 if (modelDelta_ == null) {
6922 ModelDelta = new global::OperationsResearch.MPModelDeltaProto();
6923 }
6924 input.ReadMessage(ModelDelta);
6925 break;
6926 }
6927 case 72: {
6928 IgnoreSolverSpecificParametersFailure = input.ReadBool();
6929 break;
6930 }
6931 case 88: {
6932 PopulateAdditionalSolutionsUpTo = input.ReadInt32();
6933 break;
6934 }
6935 }
6936 }
6937 #endif
6938 }
6939
6940 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
6941 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6942 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6943 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
6944 uint tag;
6945 while ((tag = input.ReadTag()) != 0) {
6946 if ((tag & 7) == 4) {
6947 // Abort on any end group tag.
6948 return;
6949 }
6950 switch(tag) {
6951 default:
6952 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
6953 break;
6954 case 10: {
6955 if (model_ == null) {
6956 Model = new global::OperationsResearch.MPModelProto();
6957 }
6958 input.ReadMessage(Model);
6959 break;
6960 }
6961 case 16: {
6962 SolverType = (global::OperationsResearch.MPModelRequest.Types.SolverType) input.ReadEnum();
6963 break;
6964 }
6965 case 25: {
6966 SolverTimeLimitSeconds = input.ReadDouble();
6967 break;
6968 }
6969 case 32: {
6970 EnableInternalSolverOutput = input.ReadBool();
6971 break;
6972 }
6973 case 42: {
6974 SolverSpecificParameters = input.ReadString();
6975 break;
6976 }
6977 case 66: {
6978 if (modelDelta_ == null) {
6979 ModelDelta = new global::OperationsResearch.MPModelDeltaProto();
6980 }
6981 input.ReadMessage(ModelDelta);
6982 break;
6983 }
6984 case 72: {
6985 IgnoreSolverSpecificParametersFailure = input.ReadBool();
6986 break;
6987 }
6988 case 88: {
6989 PopulateAdditionalSolutionsUpTo = input.ReadInt32();
6990 break;
6991 }
6992 }
6993 }
6994 }
6995 #endif
6996
6997 #region Nested types
6999 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7000 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7001 public static partial class Types {
7009 public enum SolverType {
7010 [pbr::OriginalName("CLP_LINEAR_PROGRAMMING")] ClpLinearProgramming = 0,
7012 /// Recommended default for LP models.
7013 /// </summary>
7014 [pbr::OriginalName("GLOP_LINEAR_PROGRAMMING")] GlopLinearProgramming = 2,
7015 [pbr::OriginalName("GLPK_LINEAR_PROGRAMMING")] GlpkLinearProgramming = 1,
7019 [pbr::OriginalName("GUROBI_LINEAR_PROGRAMMING")] GurobiLinearProgramming = 6,
7020 /// <summary>
7021 /// Commercial, needs a valid license. NOLINT
7022 /// </summary>
7023 [pbr::OriginalName("XPRESS_LINEAR_PROGRAMMING")] XpressLinearProgramming = 101,
7027 [pbr::OriginalName("CPLEX_LINEAR_PROGRAMMING")] CplexLinearProgramming = 10,
7028 [pbr::OriginalName("HIGHS_LINEAR_PROGRAMMING")] HighsLinearProgramming = 15,
7032 [pbr::OriginalName("SCIP_MIXED_INTEGER_PROGRAMMING")] ScipMixedIntegerProgramming = 3,
7033 [pbr::OriginalName("GLPK_MIXED_INTEGER_PROGRAMMING")] GlpkMixedIntegerProgramming = 4,
7034 [pbr::OriginalName("CBC_MIXED_INTEGER_PROGRAMMING")] CbcMixedIntegerProgramming = 5,
7038 [pbr::OriginalName("GUROBI_MIXED_INTEGER_PROGRAMMING")] GurobiMixedIntegerProgramming = 7,
7042 [pbr::OriginalName("XPRESS_MIXED_INTEGER_PROGRAMMING")] XpressMixedIntegerProgramming = 102,
7046 [pbr::OriginalName("CPLEX_MIXED_INTEGER_PROGRAMMING")] CplexMixedIntegerProgramming = 11,
7047 [pbr::OriginalName("HIGHS_MIXED_INTEGER_PROGRAMMING")] HighsMixedIntegerProgramming = 16,
7048 [pbr::OriginalName("BOP_INTEGER_PROGRAMMING")] BopIntegerProgramming = 12,
7055 [pbr::OriginalName("SAT_INTEGER_PROGRAMMING")] SatIntegerProgramming = 14,
7061 [pbr::OriginalName("PDLP_LINEAR_PROGRAMMING")] PdlpLinearProgramming = 8,
7062 [pbr::OriginalName("KNAPSACK_MIXED_INTEGER_PROGRAMMING")] KnapsackMixedIntegerProgramming = 13,
7063 }
7064
7065 }
7066 #endregion
7067
7068 }
7069
7070 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
7071 public sealed partial class MPSolution : pb::IMessage<MPSolution>
7072 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
7073 , pb::IBufferMessage
7074 #endif
7075 {
7076 private static readonly pb::MessageParser<MPSolution> _parser = new pb::MessageParser<MPSolution>(() => new MPSolution());
7077 private pb::UnknownFieldSet _unknownFields;
7078 private int _hasBits0;
7079 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7080 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7081 public static pb::MessageParser<MPSolution> Parser { get { return _parser; } }
7083 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7084 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7085 public static pbr::MessageDescriptor Descriptor {
7086 get { return global::OperationsResearch.LinearSolverReflection.Descriptor.MessageTypes[16]; }
7087 }
7088
7089 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7090 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7091 pbr::MessageDescriptor pb::IMessage.Descriptor {
7092 get { return Descriptor; }
7093 }
7094
7095 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7096 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7097 public MPSolution() {
7098 OnConstruction();
7099 }
7100
7101 partial void OnConstruction();
7102
7103 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7104 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7105 public MPSolution(MPSolution other) : this() {
7106 _hasBits0 = other._hasBits0;
7107 objectiveValue_ = other.objectiveValue_;
7108 variableValue_ = other.variableValue_.Clone();
7109 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
7110 }
7111
7112 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7113 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7114 public MPSolution Clone() {
7115 return new MPSolution(this);
7117
7119 public const int ObjectiveValueFieldNumber = 1;
7120 private readonly static double ObjectiveValueDefaultValue = 0D;
7121
7122 private double objectiveValue_;
7123 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7124 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7125 public double ObjectiveValue {
7126 get { if ((_hasBits0 & 1) != 0) { return objectiveValue_; } else { return ObjectiveValueDefaultValue; } }
7127 set {
7128 _hasBits0 |= 1;
7129 objectiveValue_ = value;
7131 }
7133 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7134 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7135 public bool HasObjectiveValue {
7136 get { return (_hasBits0 & 1) != 0; }
7137 }
7139 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7140 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7141 public void ClearObjectiveValue() {
7142 _hasBits0 &= ~1;
7143 }
7144
7146 public const int VariableValueFieldNumber = 2;
7147 private static readonly pb::FieldCodec<double> _repeated_variableValue_codec
7148 = pb::FieldCodec.ForDouble(18);
7149 private readonly pbc::RepeatedField<double> variableValue_ = new pbc::RepeatedField<double>();
7150 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7151 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7152 public pbc::RepeatedField<double> VariableValue {
7153 get { return variableValue_; }
7154 }
7155
7156 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7157 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7158 public override bool Equals(object other) {
7159 return Equals(other as MPSolution);
7160 }
7161
7162 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7163 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7164 public bool Equals(MPSolution other) {
7165 if (ReferenceEquals(other, null)) {
7166 return false;
7167 }
7168 if (ReferenceEquals(other, this)) {
7169 return true;
7170 }
7171 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(ObjectiveValue, other.ObjectiveValue)) return false;
7172 if(!variableValue_.Equals(other.variableValue_)) return false;
7173 return Equals(_unknownFields, other._unknownFields);
7174 }
7176 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7177 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7178 public override int GetHashCode() {
7179 int hash = 1;
7180 if (HasObjectiveValue) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(ObjectiveValue);
7181 hash ^= variableValue_.GetHashCode();
7182 if (_unknownFields != null) {
7183 hash ^= _unknownFields.GetHashCode();
7184 }
7185 return hash;
7186 }
7187
7188 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7189 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7190 public override string ToString() {
7191 return pb::JsonFormatter.ToDiagnosticString(this);
7192 }
7193
7194 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7195 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7196 public void WriteTo(pb::CodedOutputStream output) {
7197 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
7198 output.WriteRawMessage(this);
7199 #else
7200 if (HasObjectiveValue) {
7201 output.WriteRawTag(9);
7202 output.WriteDouble(ObjectiveValue);
7203 }
7204 variableValue_.WriteTo(output, _repeated_variableValue_codec);
7205 if (_unknownFields != null) {
7206 _unknownFields.WriteTo(output);
7208 #endif
7209 }
7210
7211 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
7212 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7213 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7214 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
7215 if (HasObjectiveValue) {
7216 output.WriteRawTag(9);
7217 output.WriteDouble(ObjectiveValue);
7218 }
7219 variableValue_.WriteTo(ref output, _repeated_variableValue_codec);
7220 if (_unknownFields != null) {
7221 _unknownFields.WriteTo(ref output);
7222 }
7223 }
7224 #endif
7225
7226 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7227 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7228 public int CalculateSize() {
7229 int size = 0;
7230 if (HasObjectiveValue) {
7231 size += 1 + 8;
7232 }
7233 size += variableValue_.CalculateSize(_repeated_variableValue_codec);
7234 if (_unknownFields != null) {
7235 size += _unknownFields.CalculateSize();
7236 }
7237 return size;
7238 }
7240 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7241 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7242 public void MergeFrom(MPSolution other) {
7243 if (other == null) {
7244 return;
7245 }
7246 if (other.HasObjectiveValue) {
7248 }
7249 variableValue_.Add(other.variableValue_);
7250 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
7251 }
7252
7253 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7254 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7255 public void MergeFrom(pb::CodedInputStream input) {
7256 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
7257 input.ReadRawMessage(this);
7258 #else
7259 uint tag;
7260 while ((tag = input.ReadTag()) != 0) {
7261 if ((tag & 7) == 4) {
7262 // Abort on any end group tag.
7263 return;
7264 }
7265 switch(tag) {
7266 default:
7267 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
7268 break;
7269 case 9: {
7270 ObjectiveValue = input.ReadDouble();
7271 break;
7272 }
7273 case 18:
7274 case 17: {
7275 variableValue_.AddEntriesFrom(input, _repeated_variableValue_codec);
7276 break;
7277 }
7278 }
7279 }
7280 #endif
7281 }
7282
7283 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
7284 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7285 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7286 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
7287 uint tag;
7288 while ((tag = input.ReadTag()) != 0) {
7289 if ((tag & 7) == 4) {
7290 // Abort on any end group tag.
7291 return;
7292 }
7293 switch(tag) {
7294 default:
7295 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
7296 break;
7297 case 9: {
7298 ObjectiveValue = input.ReadDouble();
7299 break;
7300 }
7301 case 18:
7302 case 17: {
7303 variableValue_.AddEntriesFrom(ref input, _repeated_variableValue_codec);
7304 break;
7305 }
7306 }
7307 }
7308 }
7309 #endif
7310
7311 }
7312
7313 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
7314 public sealed partial class MPSolveInfo : pb::IMessage<MPSolveInfo>
7315 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
7316 , pb::IBufferMessage
7317 #endif
7318 {
7319 private static readonly pb::MessageParser<MPSolveInfo> _parser = new pb::MessageParser<MPSolveInfo>(() => new MPSolveInfo());
7320 private pb::UnknownFieldSet _unknownFields;
7321 private int _hasBits0;
7322 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7323 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7324 public static pb::MessageParser<MPSolveInfo> Parser { get { return _parser; } }
7326 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7327 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7328 public static pbr::MessageDescriptor Descriptor {
7329 get { return global::OperationsResearch.LinearSolverReflection.Descriptor.MessageTypes[17]; }
7330 }
7331
7332 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7333 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7334 pbr::MessageDescriptor pb::IMessage.Descriptor {
7335 get { return Descriptor; }
7336 }
7337
7338 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7339 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7340 public MPSolveInfo() {
7341 OnConstruction();
7342 }
7343
7344 partial void OnConstruction();
7345
7346 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7347 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7348 public MPSolveInfo(MPSolveInfo other) : this() {
7349 _hasBits0 = other._hasBits0;
7350 solveWallTimeSeconds_ = other.solveWallTimeSeconds_;
7351 solveUserTimeSeconds_ = other.solveUserTimeSeconds_;
7352 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
7353 }
7354
7355 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7356 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7357 public MPSolveInfo Clone() {
7358 return new MPSolveInfo(this);
7360
7362 public const int SolveWallTimeSecondsFieldNumber = 1;
7363 private readonly static double SolveWallTimeSecondsDefaultValue = 0D;
7364
7365 private double solveWallTimeSeconds_;
7368 /// underlying solver library. "wall" time and "user" time are to be
7369 /// interpreted like for the "time" command in bash (see "help time").
7370 /// In particular, "user time" is CPU time and can be greater than wall time
7371 /// when using several threads.
7372 /// </summary>
7373 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7374 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7375 public double SolveWallTimeSeconds {
7376 get { if ((_hasBits0 & 1) != 0) { return solveWallTimeSeconds_; } else { return SolveWallTimeSecondsDefaultValue; } }
7377 set {
7378 _hasBits0 |= 1;
7379 solveWallTimeSeconds_ = value;
7380 }
7381 }
7383 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7384 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7385 public bool HasSolveWallTimeSeconds {
7386 get { return (_hasBits0 & 1) != 0; }
7387 }
7389 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7390 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7391 public void ClearSolveWallTimeSeconds() {
7392 _hasBits0 &= ~1;
7393 }
7394
7397 private readonly static double SolveUserTimeSecondsDefaultValue = 0D;
7398
7399 private double solveUserTimeSeconds_;
7400 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7401 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7402 public double SolveUserTimeSeconds {
7403 get { if ((_hasBits0 & 2) != 0) { return solveUserTimeSeconds_; } else { return SolveUserTimeSecondsDefaultValue; } }
7404 set {
7405 _hasBits0 |= 2;
7406 solveUserTimeSeconds_ = value;
7408 }
7410 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7411 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7412 public bool HasSolveUserTimeSeconds {
7413 get { return (_hasBits0 & 2) != 0; }
7414 }
7416 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7417 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7418 public void ClearSolveUserTimeSeconds() {
7419 _hasBits0 &= ~2;
7420 }
7421
7422 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7423 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7424 public override bool Equals(object other) {
7425 return Equals(other as MPSolveInfo);
7426 }
7427
7428 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7429 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7430 public bool Equals(MPSolveInfo other) {
7431 if (ReferenceEquals(other, null)) {
7432 return false;
7433 }
7434 if (ReferenceEquals(other, this)) {
7435 return true;
7436 }
7437 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(SolveWallTimeSeconds, other.SolveWallTimeSeconds)) return false;
7438 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(SolveUserTimeSeconds, other.SolveUserTimeSeconds)) return false;
7439 return Equals(_unknownFields, other._unknownFields);
7440 }
7442 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7443 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7444 public override int GetHashCode() {
7445 int hash = 1;
7446 if (HasSolveWallTimeSeconds) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(SolveWallTimeSeconds);
7447 if (HasSolveUserTimeSeconds) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(SolveUserTimeSeconds);
7448 if (_unknownFields != null) {
7449 hash ^= _unknownFields.GetHashCode();
7450 }
7451 return hash;
7452 }
7453
7454 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7455 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7456 public override string ToString() {
7457 return pb::JsonFormatter.ToDiagnosticString(this);
7458 }
7459
7460 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7461 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7462 public void WriteTo(pb::CodedOutputStream output) {
7463 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
7464 output.WriteRawMessage(this);
7465 #else
7466 if (HasSolveWallTimeSeconds) {
7467 output.WriteRawTag(9);
7468 output.WriteDouble(SolveWallTimeSeconds);
7469 }
7470 if (HasSolveUserTimeSeconds) {
7471 output.WriteRawTag(17);
7472 output.WriteDouble(SolveUserTimeSeconds);
7474 if (_unknownFields != null) {
7475 _unknownFields.WriteTo(output);
7476 }
7477 #endif
7478 }
7479
7480 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
7481 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7482 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7483 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
7484 if (HasSolveWallTimeSeconds) {
7485 output.WriteRawTag(9);
7486 output.WriteDouble(SolveWallTimeSeconds);
7487 }
7488 if (HasSolveUserTimeSeconds) {
7489 output.WriteRawTag(17);
7490 output.WriteDouble(SolveUserTimeSeconds);
7491 }
7492 if (_unknownFields != null) {
7493 _unknownFields.WriteTo(ref output);
7494 }
7495 }
7496 #endif
7497
7498 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7499 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7500 public int CalculateSize() {
7501 int size = 0;
7502 if (HasSolveWallTimeSeconds) {
7503 size += 1 + 8;
7504 }
7505 if (HasSolveUserTimeSeconds) {
7506 size += 1 + 8;
7507 }
7508 if (_unknownFields != null) {
7509 size += _unknownFields.CalculateSize();
7510 }
7511 return size;
7512 }
7513
7514 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7515 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7516 public void MergeFrom(MPSolveInfo other) {
7517 if (other == null) {
7518 return;
7519 }
7520 if (other.HasSolveWallTimeSeconds) {
7521 SolveWallTimeSeconds = other.SolveWallTimeSeconds;
7522 }
7523 if (other.HasSolveUserTimeSeconds) {
7524 SolveUserTimeSeconds = other.SolveUserTimeSeconds;
7525 }
7526 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
7528
7529 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7530 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7531 public void MergeFrom(pb::CodedInputStream input) {
7532 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
7533 input.ReadRawMessage(this);
7534 #else
7535 uint tag;
7536 while ((tag = input.ReadTag()) != 0) {
7537 if ((tag & 7) == 4) {
7538 // Abort on any end group tag.
7539 return;
7540 }
7541 switch(tag) {
7542 default:
7543 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
7544 break;
7545 case 9: {
7546 SolveWallTimeSeconds = input.ReadDouble();
7547 break;
7548 }
7549 case 17: {
7550 SolveUserTimeSeconds = input.ReadDouble();
7551 break;
7552 }
7553 }
7554 }
7555 #endif
7556 }
7557
7558 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
7559 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7560 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7561 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
7562 uint tag;
7563 while ((tag = input.ReadTag()) != 0) {
7564 if ((tag & 7) == 4) {
7565 // Abort on any end group tag.
7566 return;
7567 }
7568 switch(tag) {
7569 default:
7570 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
7571 break;
7572 case 9: {
7573 SolveWallTimeSeconds = input.ReadDouble();
7574 break;
7575 }
7576 case 17: {
7577 SolveUserTimeSeconds = input.ReadDouble();
7578 break;
7579 }
7580 }
7581 }
7582 }
7583 #endif
7584
7585 }
7586
7590 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
7591 public sealed partial class MPSolutionResponse : pb::IMessage<MPSolutionResponse>
7592 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
7593 , pb::IBufferMessage
7594 #endif
7595 {
7596 private static readonly pb::MessageParser<MPSolutionResponse> _parser = new pb::MessageParser<MPSolutionResponse>(() => new MPSolutionResponse());
7597 private pb::UnknownFieldSet _unknownFields;
7598 private int _hasBits0;
7599 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7600 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7601 public static pb::MessageParser<MPSolutionResponse> Parser { get { return _parser; } }
7603 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7604 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7605 public static pbr::MessageDescriptor Descriptor {
7606 get { return global::OperationsResearch.LinearSolverReflection.Descriptor.MessageTypes[18]; }
7607 }
7608
7609 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7610 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7611 pbr::MessageDescriptor pb::IMessage.Descriptor {
7612 get { return Descriptor; }
7613 }
7614
7615 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7616 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7617 public MPSolutionResponse() {
7618 OnConstruction();
7619 }
7620
7621 partial void OnConstruction();
7622
7623 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7624 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7625 public MPSolutionResponse(MPSolutionResponse other) : this() {
7626 _hasBits0 = other._hasBits0;
7627 status_ = other.status_;
7628 statusStr_ = other.statusStr_;
7629 objectiveValue_ = other.objectiveValue_;
7630 bestObjectiveBound_ = other.bestObjectiveBound_;
7631 variableValue_ = other.variableValue_.Clone();
7632 solveInfo_ = other.solveInfo_ != null ? other.solveInfo_.Clone() : null;
7633 solverSpecificInfo_ = other.solverSpecificInfo_;
7634 dualValue_ = other.dualValue_.Clone();
7635 reducedCost_ = other.reducedCost_.Clone();
7636 additionalSolutions_ = other.additionalSolutions_.Clone();
7637 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
7638 }
7639
7640 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7641 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7642 public MPSolutionResponse Clone() {
7643 return new MPSolutionResponse(this);
7644 }
7645
7647 public const int StatusFieldNumber = 1;
7648 private readonly static global::OperationsResearch.MPSolverResponseStatus StatusDefaultValue = global::OperationsResearch.MPSolverResponseStatus.MpsolverUnknownStatus;
7649
7650 private global::OperationsResearch.MPSolverResponseStatus status_;
7653 /// </summary>
7654 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7655 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7656 public global::OperationsResearch.MPSolverResponseStatus Status {
7657 get { if ((_hasBits0 & 1) != 0) { return status_; } else { return StatusDefaultValue; } }
7658 set {
7659 _hasBits0 |= 1;
7660 status_ = value;
7661 }
7662 }
7664 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7665 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7666 public bool HasStatus {
7667 get { return (_hasBits0 & 1) != 0; }
7668 }
7670 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7671 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7672 public void ClearStatus() {
7673 _hasBits0 &= ~1;
7674 }
7675
7677 public const int StatusStrFieldNumber = 7;
7678 private readonly static string StatusStrDefaultValue = "";
7679
7680 private string statusStr_;
7683 /// when the status is MPSOLVER_INVALID_MODE, this can hold a description of
7684 /// why the model is invalid.
7685 /// This isn't always filled: don't depend on its value or even its presence.
7686 /// </summary>
7687 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7688 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7689 public string StatusStr {
7690 get { return statusStr_ ?? StatusStrDefaultValue; }
7691 set {
7692 statusStr_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
7693 }
7694 }
7696 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7697 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7698 public bool HasStatusStr {
7699 get { return statusStr_ != null; }
7702 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7703 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7704 public void ClearStatusStr() {
7705 statusStr_ = null;
7706 }
7707
7709 public const int ObjectiveValueFieldNumber = 2;
7710 private readonly static double ObjectiveValueDefaultValue = 0D;
7711
7712 private double objectiveValue_;
7715 /// account the source "objective_offset" and "objective_coefficient".
7716 /// This is set iff 'status' is OPTIMAL or FEASIBLE.
7717 /// </summary>
7718 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7719 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7720 public double ObjectiveValue {
7721 get { if ((_hasBits0 & 2) != 0) { return objectiveValue_; } else { return ObjectiveValueDefaultValue; } }
7722 set {
7723 _hasBits0 |= 2;
7724 objectiveValue_ = value;
7725 }
7726 }
7728 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7729 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7730 public bool HasObjectiveValue {
7731 get { return (_hasBits0 & 2) != 0; }
7732 }
7734 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7735 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7736 public void ClearObjectiveValue() {
7737 _hasBits0 &= ~2;
7738 }
7739
7741 public const int BestObjectiveBoundFieldNumber = 5;
7742 private readonly static double BestObjectiveBoundDefaultValue = 0D;
7743
7744 private double bestObjectiveBound_;
7747 /// this is a lower bound on the optimal objective value. For a maximization
7748 /// problem, it is an upper bound. It is only filled if the status is OPTIMAL
7749 /// or FEASIBLE. In the former case, best_objective_bound should be equal to
7750 /// objective_value (modulo numerical errors).
7751 /// </summary>
7752 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7753 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7754 public double BestObjectiveBound {
7755 get { if ((_hasBits0 & 4) != 0) { return bestObjectiveBound_; } else { return BestObjectiveBoundDefaultValue; } }
7756 set {
7757 _hasBits0 |= 4;
7758 bestObjectiveBound_ = value;
7759 }
7760 }
7762 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7763 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7764 public bool HasBestObjectiveBound {
7765 get { return (_hasBits0 & 4) != 0; }
7766 }
7768 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7769 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7770 public void ClearBestObjectiveBound() {
7771 _hasBits0 &= ~4;
7772 }
7773
7775 public const int VariableValueFieldNumber = 3;
7776 private static readonly pb::FieldCodec<double> _repeated_variableValue_codec
7777 = pb::FieldCodec.ForDouble(26);
7778 private readonly pbc::RepeatedField<double> variableValue_ = new pbc::RepeatedField<double>();
7781 /// This is a dense representation. These are set iff 'status' is OPTIMAL or
7782 /// FEASIBLE.
7783 /// </summary>
7784 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7785 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7786 public pbc::RepeatedField<double> VariableValue {
7787 get { return variableValue_; }
7788 }
7789
7791 public const int SolveInfoFieldNumber = 10;
7792 private global::OperationsResearch.MPSolveInfo solveInfo_;
7797 /// </summary>
7798 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7799 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7800 public global::OperationsResearch.MPSolveInfo SolveInfo {
7801 get { return solveInfo_; }
7802 set {
7803 solveInfo_ = value;
7804 }
7805 }
7806
7808 public const int SolverSpecificInfoFieldNumber = 11;
7809 private readonly static pb::ByteString SolverSpecificInfoDefaultValue = pb::ByteString.Empty;
7810
7811 private pb::ByteString solverSpecificInfo_;
7816 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7817 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7818 public pb::ByteString SolverSpecificInfo {
7819 get { return solverSpecificInfo_ ?? SolverSpecificInfoDefaultValue; }
7820 set {
7821 solverSpecificInfo_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
7822 }
7823 }
7825 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7826 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7827 public bool HasSolverSpecificInfo {
7828 get { return solverSpecificInfo_ != null; }
7831 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7832 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7833 public void ClearSolverSpecificInfo() {
7834 solverSpecificInfo_ = null;
7835 }
7836
7838 public const int DualValueFieldNumber = 4;
7839 private static readonly pb::FieldCodec<double> _repeated_dualValue_codec
7840 = pb::FieldCodec.ForDouble(34);
7841 private readonly pbc::RepeatedField<double> dualValue_ = new pbc::RepeatedField<double>();
7844 /// Values of the dual variables values in the same order as the
7845 /// MPModelProto::constraint field. This is a dense representation.
7846 /// These are not set if the problem was solved with a MIP solver (even if
7847 /// it is actually a linear program).
7848 /// These are set iff 'status' is OPTIMAL or FEASIBLE.
7849 /// </summary>
7850 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7851 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7852 public pbc::RepeatedField<double> DualValue {
7853 get { return dualValue_; }
7854 }
7855
7857 public const int ReducedCostFieldNumber = 6;
7858 private static readonly pb::FieldCodec<double> _repeated_reducedCost_codec
7859 = pb::FieldCodec.ForDouble(50);
7860 private readonly pbc::RepeatedField<double> reducedCost_ = new pbc::RepeatedField<double>();
7863 /// Values of the reduced cost of the variables in the same order as the
7864 /// MPModelProto::variable. This is a dense representation.
7865 /// These are not set if the problem was solved with a MIP solver (even if it
7866 /// is actually a linear program).
7867 /// These are set iff 'status' is OPTIMAL or FEASIBLE.
7868 /// </summary>
7869 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7870 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7871 public pbc::RepeatedField<double> ReducedCost {
7872 get { return reducedCost_; }
7873 }
7874
7876 public const int AdditionalSolutionsFieldNumber = 8;
7877 private static readonly pb::FieldCodec<global::OperationsResearch.MPSolution> _repeated_additionalSolutions_codec
7878 = pb::FieldCodec.ForMessage(66, global::OperationsResearch.MPSolution.Parser);
7879 private readonly pbc::RepeatedField<global::OperationsResearch.MPSolution> additionalSolutions_ = new pbc::RepeatedField<global::OperationsResearch.MPSolution>();
7882 /// If `MPModelRequest.populate_additional_solutions_up_to` > 0, up to that
7883 /// number of additional solutions may be populated here, if available. These
7884 /// additional solutions are different than the main solution described by the
7885 /// above fields `objective_value` and `variable_value`.
7886 /// </summary>
7887 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7888 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7889 public pbc::RepeatedField<global::OperationsResearch.MPSolution> AdditionalSolutions {
7890 get { return additionalSolutions_; }
7891 }
7892
7893 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7894 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7895 public override bool Equals(object other) {
7896 return Equals(other as MPSolutionResponse);
7897 }
7898
7899 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7900 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7901 public bool Equals(MPSolutionResponse other) {
7902 if (ReferenceEquals(other, null)) {
7903 return false;
7904 }
7905 if (ReferenceEquals(other, this)) {
7906 return true;
7907 }
7908 if (Status != other.Status) return false;
7909 if (StatusStr != other.StatusStr) return false;
7910 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(ObjectiveValue, other.ObjectiveValue)) return false;
7911 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(BestObjectiveBound, other.BestObjectiveBound)) return false;
7912 if(!variableValue_.Equals(other.variableValue_)) return false;
7913 if (!object.Equals(SolveInfo, other.SolveInfo)) return false;
7914 if (SolverSpecificInfo != other.SolverSpecificInfo) return false;
7915 if(!dualValue_.Equals(other.dualValue_)) return false;
7916 if(!reducedCost_.Equals(other.reducedCost_)) return false;
7917 if(!additionalSolutions_.Equals(other.additionalSolutions_)) return false;
7918 return Equals(_unknownFields, other._unknownFields);
7919 }
7920
7921 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7922 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7923 public override int GetHashCode() {
7924 int hash = 1;
7925 if (HasStatus) hash ^= Status.GetHashCode();
7926 if (HasStatusStr) hash ^= StatusStr.GetHashCode();
7927 if (HasObjectiveValue) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(ObjectiveValue);
7928 if (HasBestObjectiveBound) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(BestObjectiveBound);
7929 hash ^= variableValue_.GetHashCode();
7930 if (solveInfo_ != null) hash ^= SolveInfo.GetHashCode();
7931 if (HasSolverSpecificInfo) hash ^= SolverSpecificInfo.GetHashCode();
7932 hash ^= dualValue_.GetHashCode();
7933 hash ^= reducedCost_.GetHashCode();
7934 hash ^= additionalSolutions_.GetHashCode();
7935 if (_unknownFields != null) {
7936 hash ^= _unknownFields.GetHashCode();
7937 }
7938 return hash;
7939 }
7940
7941 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7942 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7943 public override string ToString() {
7944 return pb::JsonFormatter.ToDiagnosticString(this);
7945 }
7946
7947 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7948 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7949 public void WriteTo(pb::CodedOutputStream output) {
7950 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
7951 output.WriteRawMessage(this);
7952 #else
7953 if (HasStatus) {
7954 output.WriteRawTag(8);
7955 output.WriteEnum((int) Status);
7956 }
7957 if (HasObjectiveValue) {
7958 output.WriteRawTag(17);
7959 output.WriteDouble(ObjectiveValue);
7961 variableValue_.WriteTo(output, _repeated_variableValue_codec);
7962 dualValue_.WriteTo(output, _repeated_dualValue_codec);
7963 if (HasBestObjectiveBound) {
7964 output.WriteRawTag(41);
7965 output.WriteDouble(BestObjectiveBound);
7966 }
7967 reducedCost_.WriteTo(output, _repeated_reducedCost_codec);
7968 if (HasStatusStr) {
7969 output.WriteRawTag(58);
7970 output.WriteString(StatusStr);
7971 }
7972 additionalSolutions_.WriteTo(output, _repeated_additionalSolutions_codec);
7973 if (solveInfo_ != null) {
7974 output.WriteRawTag(82);
7975 output.WriteMessage(SolveInfo);
7976 }
7977 if (HasSolverSpecificInfo) {
7978 output.WriteRawTag(90);
7979 output.WriteBytes(SolverSpecificInfo);
7980 }
7981 if (_unknownFields != null) {
7982 _unknownFields.WriteTo(output);
7983 }
7984 #endif
7985 }
7986
7987 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
7988 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7989 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7990 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
7991 if (HasStatus) {
7992 output.WriteRawTag(8);
7993 output.WriteEnum((int) Status);
7994 }
7995 if (HasObjectiveValue) {
7996 output.WriteRawTag(17);
7997 output.WriteDouble(ObjectiveValue);
7998 }
7999 variableValue_.WriteTo(ref output, _repeated_variableValue_codec);
8000 dualValue_.WriteTo(ref output, _repeated_dualValue_codec);
8001 if (HasBestObjectiveBound) {
8002 output.WriteRawTag(41);
8003 output.WriteDouble(BestObjectiveBound);
8004 }
8005 reducedCost_.WriteTo(ref output, _repeated_reducedCost_codec);
8006 if (HasStatusStr) {
8007 output.WriteRawTag(58);
8008 output.WriteString(StatusStr);
8009 }
8010 additionalSolutions_.WriteTo(ref output, _repeated_additionalSolutions_codec);
8011 if (solveInfo_ != null) {
8012 output.WriteRawTag(82);
8013 output.WriteMessage(SolveInfo);
8014 }
8015 if (HasSolverSpecificInfo) {
8016 output.WriteRawTag(90);
8017 output.WriteBytes(SolverSpecificInfo);
8018 }
8019 if (_unknownFields != null) {
8020 _unknownFields.WriteTo(ref output);
8021 }
8022 }
8023 #endif
8024
8025 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8026 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8027 public int CalculateSize() {
8028 int size = 0;
8029 if (HasStatus) {
8030 size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Status);
8031 }
8032 if (HasStatusStr) {
8033 size += 1 + pb::CodedOutputStream.ComputeStringSize(StatusStr);
8034 }
8035 if (HasObjectiveValue) {
8036 size += 1 + 8;
8037 }
8039 size += 1 + 8;
8040 }
8041 size += variableValue_.CalculateSize(_repeated_variableValue_codec);
8042 if (solveInfo_ != null) {
8043 size += 1 + pb::CodedOutputStream.ComputeMessageSize(SolveInfo);
8044 }
8045 if (HasSolverSpecificInfo) {
8046 size += 1 + pb::CodedOutputStream.ComputeBytesSize(SolverSpecificInfo);
8047 }
8048 size += dualValue_.CalculateSize(_repeated_dualValue_codec);
8049 size += reducedCost_.CalculateSize(_repeated_reducedCost_codec);
8050 size += additionalSolutions_.CalculateSize(_repeated_additionalSolutions_codec);
8051 if (_unknownFields != null) {
8052 size += _unknownFields.CalculateSize();
8053 }
8054 return size;
8055 }
8056
8057 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8058 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8059 public void MergeFrom(MPSolutionResponse other) {
8060 if (other == null) {
8061 return;
8062 }
8063 if (other.HasStatus) {
8064 Status = other.Status;
8065 }
8066 if (other.HasStatusStr) {
8067 StatusStr = other.StatusStr;
8068 }
8069 if (other.HasObjectiveValue) {
8070 ObjectiveValue = other.ObjectiveValue;
8071 }
8072 if (other.HasBestObjectiveBound) {
8073 BestObjectiveBound = other.BestObjectiveBound;
8074 }
8075 variableValue_.Add(other.variableValue_);
8076 if (other.solveInfo_ != null) {
8077 if (solveInfo_ == null) {
8078 SolveInfo = new global::OperationsResearch.MPSolveInfo();
8079 }
8080 SolveInfo.MergeFrom(other.SolveInfo);
8081 }
8082 if (other.HasSolverSpecificInfo) {
8083 SolverSpecificInfo = other.SolverSpecificInfo;
8084 }
8085 dualValue_.Add(other.dualValue_);
8086 reducedCost_.Add(other.reducedCost_);
8087 additionalSolutions_.Add(other.additionalSolutions_);
8088 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
8089 }
8090
8091 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8092 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8093 public void MergeFrom(pb::CodedInputStream input) {
8094 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
8095 input.ReadRawMessage(this);
8096 #else
8097 uint tag;
8098 while ((tag = input.ReadTag()) != 0) {
8099 if ((tag & 7) == 4) {
8100 // Abort on any end group tag.
8101 return;
8102 }
8103 switch(tag) {
8104 default:
8105 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
8106 break;
8107 case 8: {
8108 Status = (global::OperationsResearch.MPSolverResponseStatus) input.ReadEnum();
8109 break;
8110 }
8111 case 17: {
8112 ObjectiveValue = input.ReadDouble();
8113 break;
8114 }
8115 case 26:
8116 case 25: {
8117 variableValue_.AddEntriesFrom(input, _repeated_variableValue_codec);
8118 break;
8119 }
8120 case 34:
8121 case 33: {
8122 dualValue_.AddEntriesFrom(input, _repeated_dualValue_codec);
8123 break;
8124 }
8125 case 41: {
8126 BestObjectiveBound = input.ReadDouble();
8127 break;
8128 }
8129 case 50:
8130 case 49: {
8131 reducedCost_.AddEntriesFrom(input, _repeated_reducedCost_codec);
8132 break;
8133 }
8134 case 58: {
8135 StatusStr = input.ReadString();
8136 break;
8137 }
8138 case 66: {
8139 additionalSolutions_.AddEntriesFrom(input, _repeated_additionalSolutions_codec);
8140 break;
8141 }
8142 case 82: {
8143 if (solveInfo_ == null) {
8144 SolveInfo = new global::OperationsResearch.MPSolveInfo();
8145 }
8146 input.ReadMessage(SolveInfo);
8147 break;
8148 }
8149 case 90: {
8150 SolverSpecificInfo = input.ReadBytes();
8151 break;
8152 }
8153 }
8154 }
8155 #endif
8156 }
8157
8158 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
8159 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8160 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8161 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
8162 uint tag;
8163 while ((tag = input.ReadTag()) != 0) {
8164 if ((tag & 7) == 4) {
8165 // Abort on any end group tag.
8166 return;
8167 }
8168 switch(tag) {
8169 default:
8170 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
8171 break;
8172 case 8: {
8173 Status = (global::OperationsResearch.MPSolverResponseStatus) input.ReadEnum();
8174 break;
8175 }
8176 case 17: {
8177 ObjectiveValue = input.ReadDouble();
8178 break;
8179 }
8180 case 26:
8181 case 25: {
8182 variableValue_.AddEntriesFrom(ref input, _repeated_variableValue_codec);
8183 break;
8184 }
8185 case 34:
8186 case 33: {
8187 dualValue_.AddEntriesFrom(ref input, _repeated_dualValue_codec);
8188 break;
8189 }
8190 case 41: {
8191 BestObjectiveBound = input.ReadDouble();
8192 break;
8193 }
8194 case 50:
8195 case 49: {
8196 reducedCost_.AddEntriesFrom(ref input, _repeated_reducedCost_codec);
8197 break;
8198 }
8199 case 58: {
8200 StatusStr = input.ReadString();
8201 break;
8202 }
8203 case 66: {
8204 additionalSolutions_.AddEntriesFrom(ref input, _repeated_additionalSolutions_codec);
8205 break;
8206 }
8207 case 82: {
8208 if (solveInfo_ == null) {
8209 SolveInfo = new global::OperationsResearch.MPSolveInfo();
8210 }
8211 input.ReadMessage(SolveInfo);
8212 break;
8213 }
8214 case 90: {
8215 SolverSpecificInfo = input.ReadBytes();
8216 break;
8217 }
8218 }
8219 }
8220 }
8221 #endif
8222
8223 }
8224
8225 #endregion
8226
8227}
8228
8229#endregion Designer generated code
global::Google.Protobuf pb
global::Google.Protobuf.Reflection pbr
global::System.Collections.Generic scg
global::Google.Protobuf.Collections pbc
Holder for reflection information generated from ortools/linear_solver/linear_solver....
static pbr::FileDescriptor Descriptor
File descriptor for ortools/linear_solver/linear_solver.proto.
Sets a variable's value to the absolute value of another variable.
override bool Equals(object other)
static pbr::MessageDescriptor Descriptor
void ClearResultantVarIndex()
Clears the value of the "resultant_var_index" field.
const int ResultantVarIndexFieldNumber
Field number for the "resultant_var_index" field.
static pb::MessageParser< MPAbsConstraint > Parser
void ClearVarIndex()
Clears the value of the "var_index" field.
void WriteTo(pb::CodedOutputStream output)
int VarIndex
Variable indices are relative to the "variable" field in MPModelProto. resultant_var = abs(var).
const int VarIndexFieldNumber
Field number for the "var_index" field.
bool HasResultantVarIndex
Gets whether the "resultant_var_index" field is set.
bool HasVarIndex
Gets whether the "var_index" field is set.
Sets a variable's value equal to a function on a set of variables.
pbc::RepeatedField< int > VarIndex
Variable indices are relative to the "variable" field in MPModelProto.
override bool Equals(object other)
static pb::MessageParser< MPArrayConstraint > Parser
bool HasResultantVarIndex
Gets whether the "resultant_var_index" field is set.
void WriteTo(pb::CodedOutputStream output)
const int ResultantVarIndexFieldNumber
Field number for the "resultant_var_index" field.
const int VarIndexFieldNumber
Field number for the "var_index" field.
void ClearResultantVarIndex()
Clears the value of the "resultant_var_index" field.
static pbr::MessageDescriptor Descriptor
Sets a variable's value equal to a function on a set of variables and, optionally,...
const int ResultantVarIndexFieldNumber
Field number for the "resultant_var_index" field.
pbc::RepeatedField< int > VarIndex
Variable indices are relative to the "variable" field in MPModelProto. resultant_var = f(var_1,...
void WriteTo(pb::CodedOutputStream output)
static pb::MessageParser< MPArrayWithConstantConstraint > Parser
void ClearResultantVarIndex()
Clears the value of the "resultant_var_index" field.
bool HasConstant
Gets whether the "constant" field is set.
void ClearConstant()
Clears the value of the "constant" field.
bool HasResultantVarIndex
Gets whether the "resultant_var_index" field is set.
const int VarIndexFieldNumber
Field number for the "var_index" field.
const int ConstantFieldNumber
Field number for the "constant" field.
A linear constraint is always of the form: lower_bound <= sum of linear term elements <= upper_bound,...
bool HasLowerBound
Gets whether the "lower_bound" field is set.
const int CoefficientFieldNumber
Field number for the "coefficient" field.
bool HasIsLazy
Gets whether the "is_lazy" field is set.
static pb::MessageParser< MPConstraintProto > Parser
static pbr::MessageDescriptor Descriptor
void ClearUpperBound()
Clears the value of the "upper_bound" field.
const int NameFieldNumber
Field number for the "name" field.
bool HasUpperBound
Gets whether the "upper_bound" field is set.
double LowerBound
lower_bound must be <= upper_bound.
const int VarIndexFieldNumber
Field number for the "var_index" field.
pbc::RepeatedField< double > Coefficient
Must be finite.
void ClearIsLazy()
Clears the value of the "is_lazy" field.
const int IsLazyFieldNumber
Field number for the "is_lazy" field.
bool HasName
Gets whether the "name" field is set.
void ClearLowerBound()
Clears the value of the "lower_bound" field.
pbc::RepeatedField< int > VarIndex
var_index[i] is the variable index (w.r.t. to "variable" field of MPModelProto) of the i-th linear te...
void ClearName()
Clears the value of the "name" field.
bool IsLazy
[Advanced usage: do not use this if you don't know what you're doing.] A lazy constraint is handled d...
override bool Equals(object other)
string Name
The name of the constraint.
const int LowerBoundFieldNumber
Field number for the "lower_bound" field.
void WriteTo(pb::CodedOutputStream output)
const int UpperBoundFieldNumber
Field number for the "upper_bound" field.
General constraints. See each individual proto type for more information.
global::OperationsResearch.MPArrayConstraint AndConstraint
All variables in "and" constraints must be Boolean. resultant_var = and(var_1, var_2....
const int NameFieldNumber
Field number for the "name" field.
GeneralConstraintOneofCase
Enum of possible cases for the "general_constraint" oneof.
static pb::MessageParser< MPGeneralConstraintProto > Parser
const int IndicatorConstraintFieldNumber
Field number for the "indicator_constraint" field.
string Name
The name of the constraint.
void ClearName()
Clears the value of the "name" field.
global::OperationsResearch.MPSosConstraint SosConstraint
global::OperationsResearch.MPIndicatorConstraint IndicatorConstraint
void WriteTo(pb::CodedOutputStream output)
bool HasName
Gets whether the "name" field is set.
global::OperationsResearch.MPArrayWithConstantConstraint MinConstraint
resultant_var = min(var_1, var_2, ..., constant)
global::OperationsResearch.MPAbsConstraint AbsConstraint
GeneralConstraintOneofCase GeneralConstraintCase
global::OperationsResearch.MPQuadraticConstraint QuadraticConstraint
global::OperationsResearch.MPArrayWithConstantConstraint MaxConstraint
resultant_var = max(var_1, var_2, ..., constant)
global::OperationsResearch.MPArrayConstraint OrConstraint
All variables in "or" constraints must be Boolean. resultant_var = or(var_1, var_2....
Indicator constraints encode the activation or deactivation of linear constraints given the value of ...
static pbr::MessageDescriptor Descriptor
static pb::MessageParser< MPIndicatorConstraint > Parser
const int VarValueFieldNumber
Field number for the "var_value" field.
void ClearVarValue()
Clears the value of the "var_value" field.
global::OperationsResearch.MPConstraintProto Constraint
The constraint activated by the indicator variable.
int VarValue
Value the above variable should take. Must be 0 or 1.
void WriteTo(pb::CodedOutputStream output)
const int ConstraintFieldNumber
Field number for the "constraint" field.
bool HasVarValue
Gets whether the "var_value" field is set.
bool HasVarIndex
Gets whether the "var_index" field is set.
const int VarIndexFieldNumber
Field number for the "var_index" field.
void ClearVarIndex()
Clears the value of the "var_index" field.
int VarIndex
Variable index (w.r.t. the "variable" field of MPModelProto) of the Boolean variable used as indicato...
Encodes a full MPModelProto by way of referencing to a "baseline" MPModelProto stored in a file,...
pbc::MapField< int, global::OperationsResearch.MPConstraintProto > ConstraintOverrides
Constraints can be changed (or added) in the same way as variables, see above. It's mostly like apply...
pbc::MapField< int, global::OperationsResearch.MPVariableProto > VariableOverrides
The variable protos listed here will override (via MergeFrom()) the ones in the baseline model: you o...
bool HasBaselineModelFilePath
Gets whether the "baseline_model_file_path" field is set.
static pb::MessageParser< MPModelDeltaProto > Parser
static pbr::MessageDescriptor Descriptor
override bool Equals(object other)
TargetType
The target of an Annotation is a single entity (e.g. a variable). Several Annotations may apply to th...
Annotations can be freely added by users who want to attach arbitrary payload to the model's variable...
const int PayloadKeyFieldNumber
Field number for the "payload_key" field.
const int TargetNameFieldNumber
Field number for the "target_name" field.
void WriteTo(pb::CodedOutputStream output)
bool HasTargetIndex
Gets whether the "target_index" field is set.
bool HasPayloadValue
Gets whether the "payload_value" field is set.
void ClearTargetName()
Clears the value of the "target_name" field.
int TargetIndex
If both target_index and target_name are set, they must point to the same entity.
const int PayloadValueFieldNumber
Field number for the "payload_value" field.
string TargetName
Alternate to index. Assumes uniqueness.
const int TargetIndexFieldNumber
Field number for the "target_index" field.
bool HasPayloadKey
Gets whether the "payload_key" field is set.
void ClearTargetIndex()
Clears the value of the "target_index" field.
void ClearPayloadValue()
Clears the value of the "payload_value" field.
void ClearTargetType()
Clears the value of the "target_type" field.
global::OperationsResearch.MPModelProto.Types.Annotation.Types.TargetType TargetType
string PayloadKey
The payload is a (key, value) string pair. Depending on the use cases, one of the two may be omitted.
static pb::MessageParser< Annotation > Parser
void ClearPayloadKey()
Clears the value of the "payload_key" field.
const int TargetTypeFieldNumber
Field number for the "target_type" field.
bool HasTargetType
Gets whether the "target_type" field is set.
Container for nested types declared in the MPModelProto message type.
MPModelProto contains all the information for a Linear Programming model.
pbc::RepeatedField< global::OperationsResearch.MPGeneralConstraintProto > GeneralConstraint
All the general constraints appearing in the model. Note that not all solvers support all types of ge...
pbc::RepeatedField< global::OperationsResearch.MPModelProto.Types.Annotation > Annotation
string Name
Name of the model.
static pbr::MessageDescriptor Descriptor
const int GeneralConstraintFieldNumber
Field number for the "general_constraint" field.
static pb::MessageParser< MPModelProto > Parser
void ClearMaximize()
Clears the value of the "maximize" field.
void WriteTo(pb::CodedOutputStream output)
const int MaximizeFieldNumber
Field number for the "maximize" field.
double ObjectiveOffset
Offset for the objective function. Must be finite.
pbc::RepeatedField< global::OperationsResearch.MPConstraintProto > Constraint
All the constraints appearing in the model.
bool HasMaximize
Gets whether the "maximize" field is set.
const int ObjectiveOffsetFieldNumber
Field number for the "objective_offset" field.
void ClearName()
Clears the value of the "name" field.
bool HasObjectiveOffset
Gets whether the "objective_offset" field is set.
const int ConstraintFieldNumber
Field number for the "constraint" field.
const int QuadraticObjectiveFieldNumber
Field number for the "quadratic_objective" field.
const int SolutionHintFieldNumber
Field number for the "solution_hint" field.
const int VariableFieldNumber
Field number for the "variable" field.
void ClearObjectiveOffset()
Clears the value of the "objective_offset" field.
global::OperationsResearch.PartialVariableAssignment SolutionHint
Solution hint.
global::OperationsResearch.MPQuadraticObjective QuadraticObjective
Optionally, a quadratic objective. As of 2019/06, only SCIP and Gurobi support quadratic objectives.
pbc::RepeatedField< global::OperationsResearch.MPVariableProto > Variable
All the variables appearing in the model.
bool HasName
Gets whether the "name" field is set.
bool Maximize
True if the problem is a maximization problem. Minimize by default.
override bool Equals(object other)
int PopulateAdditionalSolutionsUpTo
Controls the recovery of additional solutions, if any, saved by the underlying solver back in the MPS...
override bool Equals(object other)
static pbr::MessageDescriptor Descriptor
global::OperationsResearch.MPModelProto Model
The model to be optimized by the server.
bool HasSolverType
Gets whether the "solver_type" field is set.
const int EnableInternalSolverOutputFieldNumber
Field number for the "enable_internal_solver_output" field.
global::OperationsResearch.MPModelRequest.Types.SolverType SolverType
string SolverSpecificParameters
Advanced usage. Solver-specific parameters in the solver's own format, different for each solver....
double SolverTimeLimitSeconds
Maximum time to be spent by the solver to solve 'model'. If the server is busy and the RPC's deadline...
const int SolverSpecificParametersFieldNumber
Field number for the "solver_specific_parameters" field.
const int SolverTypeFieldNumber
Field number for the "solver_type" field.
bool EnableInternalSolverOutput
If this is set, then EnableOutput() will be set on the internal MPSolver that solves the model.
global::OperationsResearch.MPModelDeltaProto ModelDelta
Advanced usage: model "delta". If used, "model" must be unset. See the definition of MPModelDeltaProt...
const int IgnoreSolverSpecificParametersFailureFieldNumber
Field number for the "ignore_solver_specific_parameters_failure" field.
static pb::MessageParser< MPModelRequest > Parser
bool HasSolverTimeLimitSeconds
Gets whether the "solver_time_limit_seconds" field is set.
bool HasEnableInternalSolverOutput
Gets whether the "enable_internal_solver_output" field is set.
const int ModelDeltaFieldNumber
Field number for the "model_delta" field.
Quadratic constraints of the form lb <= sum a_i x_i + sum b_ij x_i x_j <= ub, where a,...
const int UpperBoundFieldNumber
Field number for the "upper_bound" field.
const int Qvar2IndexFieldNumber
Field number for the "qvar2_index" field.
static pbr::MessageDescriptor Descriptor
const int QcoefficientFieldNumber
Field number for the "qcoefficient" field.
const int VarIndexFieldNumber
Field number for the "var_index" field.
pbc::RepeatedField< int > VarIndex
Sparse representation of linear terms in the quadratic constraint, where term i is var_index[i] * coe...
const int CoefficientFieldNumber
Field number for the "coefficient" field.
bool HasUpperBound
Gets whether the "upper_bound" field is set.
double LowerBound
lower_bound must be <= upper_bound.
void ClearUpperBound()
Clears the value of the "upper_bound" field.
bool HasLowerBound
Gets whether the "lower_bound" field is set.
pbc::RepeatedField< double > Qcoefficient
Must be finite.
const int Qvar1IndexFieldNumber
Field number for the "qvar1_index" field.
static pb::MessageParser< MPQuadraticConstraint > Parser
pbc::RepeatedField< double > Coefficient
Must be finite.
const int LowerBoundFieldNumber
Field number for the "lower_bound" field.
pbc::RepeatedField< int > Qvar1Index
Sparse representation of quadratic terms in the quadratic constraint, where term i is qvar1_index[i] ...
void WriteTo(pb::CodedOutputStream output)
void ClearLowerBound()
Clears the value of the "lower_bound" field.
Quadratic part of a model's objective. Added with other objectives (such as linear),...
const int CoefficientFieldNumber
Field number for the "coefficient" field.
pbc::RepeatedField< double > Coefficient
Must be finite.
pbc::RepeatedField< int > Qvar1Index
Sparse representation of quadratic terms in the objective function, where term i is qvar1_index[i] * ...
void WriteTo(pb::CodedOutputStream output)
static pbr::MessageDescriptor Descriptor
static pb::MessageParser< MPQuadraticObjective > Parser
const int Qvar1IndexFieldNumber
Field number for the "qvar1_index" field.
const int Qvar2IndexFieldNumber
Field number for the "qvar2_index" field.
double BestObjectiveBound
This field is only filled for MIP problems. For a minimization problem, this is a lower bound on the ...
const int StatusStrFieldNumber
Field number for the "status_str" field.
pbc::RepeatedField< double > DualValue
[Advanced usage.] Values of the dual variables values in the same order as the MPModelProto....
global::OperationsResearch.MPSolveInfo SolveInfo
Contains extra information about the solve, populated if the underlying solver (and its interface) su...
const int ObjectiveValueFieldNumber
Field number for the "objective_value" field.
string StatusStr
Human-readable string giving more details about the status. For example, when the status is MPSOLVER_...
double ObjectiveValue
Objective value corresponding to the "variable_value" below, taking into account the source "objectiv...
pbc::RepeatedField< global::OperationsResearch.MPSolution > AdditionalSolutions
[Advanced usage.] If MPModelRequest.populate_additional_solutions_up_to > 0, up to that number of add...
const int DualValueFieldNumber
Field number for the "dual_value" field.
bool HasBestObjectiveBound
Gets whether the "best_objective_bound" field is set.
pbc::RepeatedField< double > VariableValue
Variable values in the same order as the MPModelProto.variable field. This is a dense representation....
pb::ByteString SolverSpecificInfo
Opaque solver-specific information. For the PDLP solver, this is a serialized pdlp....
const int VariableValueFieldNumber
Field number for the "variable_value" field.
const int BestObjectiveBoundFieldNumber
Field number for the "best_objective_bound" field.
global::OperationsResearch.MPSolverResponseStatus Status
Result of the optimization.
override bool Equals(object other)
static pbr::MessageDescriptor Descriptor
pbc::RepeatedField< double > ReducedCost
[Advanced usage.] Values of the reduced cost of the variables in the same order as the MPModelProto....
const int VariableValueFieldNumber
Field number for the "variable_value" field.
pbc::RepeatedField< double > VariableValue
void MergeFrom(MPSolution other)
static pbr::MessageDescriptor Descriptor
override bool Equals(object other)
static pb::MessageParser< MPSolution > Parser
bool HasObjectiveValue
Gets whether the "objective_value" field is set.
static pbr::MessageDescriptor Descriptor
const int SolveUserTimeSecondsFieldNumber
Field number for the "solve_user_time_seconds" field.
double SolveWallTimeSeconds
How much wall time (resp. user time) elapsed during the Solve() of the underlying solver library....
override bool Equals(object other)
bool HasSolveUserTimeSeconds
Gets whether the "solve_user_time_seconds" field is set.
bool HasSolveWallTimeSeconds
Gets whether the "solve_wall_time_seconds" field is set.
MPSolverCommonParameters holds advanced usage parameters that apply to any of the solvers we support....
global::OperationsResearch.OptionalDouble DualTolerance
Tolerance for dual feasibility. For SCIP and Gurobi this is the feasibility tolerance for reduced cos...
const int LpAlgorithmFieldNumber
Field number for the "lp_algorithm" field.
bool HasScaling
Gets whether the "scaling" field is set.
global::OperationsResearch.OptionalDouble PrimalTolerance
Tolerance for primal feasibility of basic solutions: this is the maximum allowed error in constraint ...
global::OperationsResearch.OptionalDouble RelativeMipGap
The solver stops if the relative MIP gap reaches this value or below. The relative MIP gap is an uppe...
global::Google.OrTools.Util.OptionalBoolean Scaling
Enable automatic scaling of matrix coefficients and objective. Available for Gurobi and GLOP....
bool HasLpAlgorithm
Gets whether the "lp_algorithm" field is set.
bool Equals(MPSolverCommonParameters other)
bool HasPresolve
Gets whether the "presolve" field is set.
global::OperationsResearch.MPSolverCommonParameters.Types.LPAlgorithmValues LpAlgorithm
Algorithm to solve linear programs. Ask or-core-team@ if you want to know what this does exactly.
static pb::MessageParser< MPSolverCommonParameters > Parser
const int RelativeMipGapFieldNumber
Field number for the "relative_mip_gap" field.
global::Google.OrTools.Util.OptionalBoolean Presolve
Gurobi and SCIP enable presolve by default. Ask or-core-team@ for other solvers.
const int DualToleranceFieldNumber
Field number for the "dual_tolerance" field.
const int PrimalToleranceFieldNumber
Field number for the "primal_tolerance" field.
Special Ordered Set (SOS) constraints of type 1 or 2. See https://en.wikipedia.org/wiki/Special_order...
const int VarIndexFieldNumber
Field number for the "var_index" field.
pbc::RepeatedField< int > VarIndex
Variable index (w.r.t. the "variable" field of MPModelProto) of the variables in the SOS.
const int WeightFieldNumber
Field number for the "weight" field.
global::OperationsResearch.MPSosConstraint.Types.Type Type
override bool Equals(object other)
bool HasType
Gets whether the "type" field is set.
void ClearType()
Clears the value of the "type" field.
pbc::RepeatedField< double > Weight
Optional: SOS weights. If non-empty, must be of the same size as "var_index", and strictly increasing...
static pb::MessageParser< MPSosConstraint > Parser
void WriteTo(pb::CodedOutputStream output)
static pbr::MessageDescriptor Descriptor
const int TypeFieldNumber
Field number for the "type" field.
A variable is always constrained in the form: lower_bound <= x <= upper_bound where lower_bound and u...
void ClearName()
Clears the value of the "name" field.
bool IsInteger
True if the variable is constrained to be integer. Ignored if MPModelProto.solver_type is LINEAR_PROG...
bool HasObjectiveCoefficient
Gets whether the "objective_coefficient" field is set.
bool HasIsInteger
Gets whether the "is_integer" field is set.
bool HasUpperBound
Gets whether the "upper_bound" field is set.
bool HasName
Gets whether the "name" field is set.
double LowerBound
lower_bound must be <= upper_bound.
override bool Equals(object other)
static pbr::MessageDescriptor Descriptor
static pb::MessageParser< MPVariableProto > Parser
const int LowerBoundFieldNumber
Field number for the "lower_bound" field.
const int BranchingPriorityFieldNumber
Field number for the "branching_priority" field.
void ClearBranchingPriority()
Clears the value of the "branching_priority" field.
void ClearLowerBound()
Clears the value of the "lower_bound" field.
double ObjectiveCoefficient
The coefficient of the variable in the objective. Must be finite.
const int NameFieldNumber
Field number for the "name" field.
const int UpperBoundFieldNumber
Field number for the "upper_bound" field.
void ClearObjectiveCoefficient()
Clears the value of the "objective_coefficient" field.
bool HasLowerBound
Gets whether the "lower_bound" field is set.
string Name
The name of the variable.
const int ObjectiveCoefficientFieldNumber
Field number for the "objective_coefficient" field.
void ClearUpperBound()
Clears the value of the "upper_bound" field.
bool HasBranchingPriority
Gets whether the "branching_priority" field is set.
const int IsIntegerFieldNumber
Field number for the "is_integer" field.
void WriteTo(pb::CodedOutputStream output)
void ClearIsInteger()
Clears the value of the "is_integer" field.
To support 'unspecified' double value in proto3, the simplest is to wrap any double value in a nested...
static pb::MessageParser< OptionalDouble > Parser
bool HasValue
Gets whether the "value" field is set.
const int ValueFieldNumber
Field number for the "value" field.
static pbr::MessageDescriptor Descriptor
void ClearValue()
Clears the value of the "value" field.
override bool Equals(object other)
void WriteTo(pb::CodedOutputStream output)
This message encodes a partial (or full) assignment of the variables of a MPModelProto problem....
static pb::MessageParser< PartialVariableAssignment > Parser
const int VarIndexFieldNumber
Field number for the "var_index" field.
const int VarValueFieldNumber
Field number for the "var_value" field.
void WriteTo(pb::CodedOutputStream output)
MPSolverResponseStatus
Status returned by the solver. They follow a hierarchical nomenclature, to allow us to add more enum ...
@ MpsolverCancelledByUser
The solve was interrupted by the user, and the solver didn't have time to return a proper status.
@ MpsolverIncompatibleOptions
Some of the selected options were incompatible, e.g. a cancellable solve was requested via SolverClie...
@ MpsolverUnbounded
There exist solutions that make the magnitude of the objective value as large as wanted (i....
@ MpsolverModelInvalid
Model errors. These are always deterministic and repeatable. They should be accompanied with a string...
@ MpsolverModelIsValid
Like "NOT_SOLVED", but typically used by model validation functions returning a "model status",...
@ MpsolverModelInvalidSolverParameters
Something is wrong with the solver_specific_parameters request field.
@ MpsolverUnknownStatus
Special value: the solver status could not be properly translated and is unknown.
@ MpsolverInfeasible
The model does not have any solution, according to the solver (which "proved" it, with the caveat tha...
@ MpsolverModelInvalidSolutionHint
Something is wrong with the fields "solution_hint_var_index" and/or "solution_hint_var_value".
@ MpsolverAbnormal
An error (most probably numerical) occurred. One likely cause for such errors is a large numerical ra...
@ MpsolverOptimal
The solver found the proven optimal solution. This is what should be returned in most cases.
@ MpsolverSolverTypeUnavailable
Implementation error: the requested solver implementation is not available (see MPModelRequest....
@ MpsolverNotSolved
The solver did not have a chance to diagnose the model in one of the categories above.
@ MpsolverFeasible
The solver had enough time to find some solution that satisfies all constraints, but it did not prove...