5#pragma warning disable 1591, 0612, 3021, 8981
6#region Designer generated code
8using pb = global::Google.Protobuf;
9using pbc = global::Google.Protobuf.Collections;
10using pbr = global::Google.Protobuf.Reflection;
11using scg = global::System.Collections.Generic;
20 get {
return descriptor; }
22 private static pbr::FileDescriptor descriptor;
25 byte[] descriptorData = global::System.Convert.FromBase64String(
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 "mwgKDk1QTW9kZWxSZXF1ZXN0EjAKBW1vZGVsGAEgASgLMiEub3BlcmF0aW9u",
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 "RUdFUl9QUk9HUkFNTUlORxANIkEKCk1QU29sdXRpb24SFwoPb2JqZWN0aXZl",
134 "X3ZhbHVlGAEgASgBEhoKDnZhcmlhYmxlX3ZhbHVlGAIgAygBQgIQASJPCgtN",
135 "UFNvbHZlSW5mbxIfChdzb2x2ZV93YWxsX3RpbWVfc2Vjb25kcxgBIAEoARIf",
136 "Chdzb2x2ZV91c2VyX3RpbWVfc2Vjb25kcxgCIAEoASKWAwoSTVBTb2x1dGlv",
137 "blJlc3BvbnNlElQKBnN0YXR1cxgBIAEoDjIrLm9wZXJhdGlvbnNfcmVzZWFy",
138 "Y2guTVBTb2x2ZXJSZXNwb25zZVN0YXR1czoXTVBTT0xWRVJfVU5LTk9XTl9T",
139 "VEFUVVMSEgoKc3RhdHVzX3N0chgHIAEoCRIXCg9vYmplY3RpdmVfdmFsdWUY",
140 "AiABKAESHAoUYmVzdF9vYmplY3RpdmVfYm91bmQYBSABKAESGgoOdmFyaWFi",
141 "bGVfdmFsdWUYAyADKAFCAhABEjQKCnNvbHZlX2luZm8YCiABKAsyIC5vcGVy",
142 "YXRpb25zX3Jlc2VhcmNoLk1QU29sdmVJbmZvEhwKFHNvbHZlcl9zcGVjaWZp",
143 "Y19pbmZvGAsgASgMEhYKCmR1YWxfdmFsdWUYBCADKAFCAhABEhgKDHJlZHVj",
144 "ZWRfY29zdBgGIAMoAUICEAESPQoUYWRkaXRpb25hbF9zb2x1dGlvbnMYCCAD",
145 "KAsyHy5vcGVyYXRpb25zX3Jlc2VhcmNoLk1QU29sdXRpb24qvQMKFk1QU29s",
146 "dmVyUmVzcG9uc2VTdGF0dXMSFAoQTVBTT0xWRVJfT1BUSU1BTBAAEhUKEU1Q",
147 "U09MVkVSX0ZFQVNJQkxFEAESFwoTTVBTT0xWRVJfSU5GRUFTSUJMRRACEhYK",
148 "Ek1QU09MVkVSX1VOQk9VTkRFRBADEhUKEU1QU09MVkVSX0FCTk9STUFMEAQS",
149 "FwoTTVBTT0xWRVJfTk9UX1NPTFZFRBAGEhsKF01QU09MVkVSX01PREVMX0lT",
150 "X1ZBTElEEGESHgoaTVBTT0xWRVJfQ0FOQ0VMTEVEX0JZX1VTRVIQYhIbChdN",
151 "UFNPTFZFUl9VTktOT1dOX1NUQVRVUxBjEhoKFk1QU09MVkVSX01PREVMX0lO",
152 "VkFMSUQQBRIoCiRNUFNPTFZFUl9NT0RFTF9JTlZBTElEX1NPTFVUSU9OX0hJ",
153 "TlQQVBIsCihNUFNPTFZFUl9NT0RFTF9JTlZBTElEX1NPTFZFUl9QQVJBTUVU",
154 "RVJTEFUSJAogTVBTT0xWRVJfU09MVkVSX1RZUEVfVU5BVkFJTEFCTEUQBxIh",
155 "Ch1NUFNPTFZFUl9JTkNPTVBBVElCTEVfT1BUSU9OUxBxQiMKH2NvbS5nb29n",
156 "bGUub3J0b29scy5saW5lYXJzb2x2ZXJQAQ=="));
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)
304 [global::System.Diagnostics.DebuggerDisplayAttribute(
"{ToString(),nq}")]
305 public sealed partial class MPVariableProto : pb::IMessage<MPVariableProto>
306 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
310 private static readonly pb::MessageParser<MPVariableProto> _parser =
new pb::MessageParser<MPVariableProto>(() =>
new MPVariableProto());
311 private pb::UnknownFieldSet _unknownFields;
312 private int _hasBits0;
313 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
314 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
315 public static pb::MessageParser<MPVariableProto> Parser {
get {
return _parser; } }
317 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
318 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
319 public static pbr::MessageDescriptor Descriptor {
320 get {
return global::OperationsResearch.LinearSolverReflection.Descriptor.MessageTypes[0]; }
323 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
324 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
325 pbr::MessageDescriptor pb::IMessage.Descriptor {
326 get {
return Descriptor; }
329 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
330 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
335 partial
void OnConstruction();
337 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
338 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
340 _hasBits0 = other._hasBits0;
341 lowerBound_ = other.lowerBound_;
342 upperBound_ = other.upperBound_;
343 objectiveCoefficient_ = other.objectiveCoefficient_;
344 isInteger_ = other.isInteger_;
346 branchingPriority_ = other.branchingPriority_;
347 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
350 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
351 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
357 public const int LowerBoundFieldNumber = 1;
358 private readonly
static double LowerBoundDefaultValue =
double.NegativeInfinity;
360 private double lowerBound_;
364 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
365 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
366 public double LowerBound {
367 get {
if ((_hasBits0 & 1) != 0) {
return lowerBound_; }
else {
return LowerBoundDefaultValue; } }
374 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
375 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
376 public bool HasLowerBound {
377 get {
return (_hasBits0 & 1) != 0; }
380 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
381 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
382 public void ClearLowerBound() {
387 public const int UpperBoundFieldNumber = 2;
388 private readonly
static double UpperBoundDefaultValue =
double.PositiveInfinity;
390 private double upperBound_;
391 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
392 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
393 public double UpperBound {
394 get {
if ((_hasBits0 & 2) != 0) {
return upperBound_; }
else {
return UpperBoundDefaultValue; } }
401 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
402 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
403 public bool HasUpperBound {
404 get {
return (_hasBits0 & 2) != 0; }
407 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
408 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
409 public void ClearUpperBound() {
414 public const int ObjectiveCoefficientFieldNumber = 3;
415 private readonly
static double ObjectiveCoefficientDefaultValue = 0D;
417 private double objectiveCoefficient_;
421 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
422 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
423 public double ObjectiveCoefficient {
424 get {
if ((_hasBits0 & 4) != 0) {
return objectiveCoefficient_; }
else {
return ObjectiveCoefficientDefaultValue; } }
427 objectiveCoefficient_ = value;
431 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
432 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
433 public bool HasObjectiveCoefficient {
434 get {
return (_hasBits0 & 4) != 0; }
437 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
438 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
439 public void ClearObjectiveCoefficient() {
444 public const int IsIntegerFieldNumber = 4;
445 private readonly
static bool IsIntegerDefaultValue =
false;
447 private bool isInteger_;
452 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
453 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
454 public bool IsInteger {
455 get {
if ((_hasBits0 & 8) != 0) {
return isInteger_; }
else {
return IsIntegerDefaultValue; } }
462 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
463 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
464 public bool HasIsInteger {
465 get {
return (_hasBits0 & 8) != 0; }
468 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
469 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
470 public void ClearIsInteger() {
475 public const int NameFieldNumber = 5;
476 private readonly
static string NameDefaultValue =
"";
478 private string name_;
482 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
483 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
485 get {
return name_ ?? NameDefaultValue; }
487 name_ = pb::ProtoPreconditions.CheckNotNull(value,
"value");
491 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
492 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
493 public bool HasName {
494 get {
return name_ !=
null; }
497 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
498 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
499 public void ClearName() {
504 public const int BranchingPriorityFieldNumber = 6;
505 private readonly
static int BranchingPriorityDefaultValue = 0;
507 private int branchingPriority_;
508 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
509 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
510 public int BranchingPriority {
511 get {
if ((_hasBits0 & 16) != 0) {
return branchingPriority_; }
else {
return BranchingPriorityDefaultValue; } }
514 branchingPriority_ = value;
518 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
519 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
520 public bool HasBranchingPriority {
521 get {
return (_hasBits0 & 16) != 0; }
524 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
525 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
526 public void ClearBranchingPriority() {
530 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
531 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
532 public override bool Equals(
object other) {
536 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
537 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
539 if (ReferenceEquals(other,
null)) {
542 if (ReferenceEquals(other,
this)) {
545 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(LowerBound, other.
LowerBound))
return false;
546 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(UpperBound, other.
UpperBound))
return false;
547 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(ObjectiveCoefficient, other.
ObjectiveCoefficient))
return false;
548 if (IsInteger != other.
IsInteger)
return false;
549 if (Name != other.
Name)
return false;
551 return Equals(_unknownFields, other._unknownFields);
554 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
555 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
556 public override int GetHashCode() {
558 if (HasLowerBound) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(LowerBound);
559 if (HasUpperBound) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(UpperBound);
560 if (HasObjectiveCoefficient) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(ObjectiveCoefficient);
561 if (HasIsInteger) hash ^= IsInteger.GetHashCode();
562 if (HasName) hash ^= Name.GetHashCode();
563 if (HasBranchingPriority) hash ^= BranchingPriority.GetHashCode();
564 if (_unknownFields !=
null) {
565 hash ^= _unknownFields.GetHashCode();
570 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
571 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
572 public override string ToString() {
573 return pb::JsonFormatter.ToDiagnosticString(
this);
576 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
577 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
578 public void WriteTo(pb::CodedOutputStream output) {
579 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
580 output.WriteRawMessage(
this);
583 output.WriteRawTag(9);
584 output.WriteDouble(LowerBound);
587 output.WriteRawTag(17);
588 output.WriteDouble(UpperBound);
590 if (HasObjectiveCoefficient) {
591 output.WriteRawTag(25);
592 output.WriteDouble(ObjectiveCoefficient);
595 output.WriteRawTag(32);
596 output.WriteBool(IsInteger);
599 output.WriteRawTag(42);
600 output.WriteString(Name);
602 if (HasBranchingPriority) {
603 output.WriteRawTag(48);
604 output.WriteInt32(BranchingPriority);
606 if (_unknownFields !=
null) {
607 _unknownFields.WriteTo(output);
612 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
613 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
614 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
615 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
617 output.WriteRawTag(9);
618 output.WriteDouble(LowerBound);
621 output.WriteRawTag(17);
622 output.WriteDouble(UpperBound);
624 if (HasObjectiveCoefficient) {
625 output.WriteRawTag(25);
626 output.WriteDouble(ObjectiveCoefficient);
629 output.WriteRawTag(32);
630 output.WriteBool(IsInteger);
633 output.WriteRawTag(42);
634 output.WriteString(Name);
636 if (HasBranchingPriority) {
637 output.WriteRawTag(48);
638 output.WriteInt32(BranchingPriority);
640 if (_unknownFields !=
null) {
641 _unknownFields.WriteTo(ref output);
646 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
647 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
648 public int CalculateSize() {
656 if (HasObjectiveCoefficient) {
663 size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
665 if (HasBranchingPriority) {
666 size += 1 + pb::CodedOutputStream.ComputeInt32Size(BranchingPriority);
668 if (_unknownFields !=
null) {
669 size += _unknownFields.CalculateSize();
674 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
675 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
676 public void MergeFrom(MPVariableProto other) {
680 if (other.HasLowerBound) {
681 LowerBound = other.LowerBound;
683 if (other.HasUpperBound) {
684 UpperBound = other.UpperBound;
686 if (other.HasObjectiveCoefficient) {
687 ObjectiveCoefficient = other.ObjectiveCoefficient;
689 if (other.HasIsInteger) {
690 IsInteger = other.IsInteger;
695 if (other.HasBranchingPriority) {
696 BranchingPriority = other.BranchingPriority;
698 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
701 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
702 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
703 public void MergeFrom(pb::CodedInputStream input) {
704 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
705 input.ReadRawMessage(
this);
708 while ((tag = input.ReadTag()) != 0) {
711 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
714 LowerBound = input.ReadDouble();
718 UpperBound = input.ReadDouble();
722 ObjectiveCoefficient = input.ReadDouble();
726 IsInteger = input.ReadBool();
730 Name = input.ReadString();
734 BranchingPriority = input.ReadInt32();
742 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
743 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
744 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
745 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
747 while ((tag = input.ReadTag()) != 0) {
750 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
753 LowerBound = input.ReadDouble();
757 UpperBound = input.ReadDouble();
761 ObjectiveCoefficient = input.ReadDouble();
765 IsInteger = input.ReadBool();
769 Name = input.ReadString();
773 BranchingPriority = input.ReadInt32();
796 [global::System.Diagnostics.DebuggerDisplayAttribute(
"{ToString(),nq}")]
797 public sealed partial
class MPConstraintProto : pb::IMessage<MPConstraintProto>
798 #
if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
802 private static readonly pb::MessageParser<MPConstraintProto> _parser =
new pb::MessageParser<MPConstraintProto>(() =>
new MPConstraintProto());
803 private pb::UnknownFieldSet _unknownFields;
804 private int _hasBits0;
805 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
806 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
807 public static pb::MessageParser<MPConstraintProto> Parser {
get {
return _parser; } }
809 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
810 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
811 public static pbr::MessageDescriptor Descriptor {
812 get {
return global::OperationsResearch.LinearSolverReflection.Descriptor.MessageTypes[1]; }
815 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
816 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
817 pbr::MessageDescriptor pb::IMessage.Descriptor {
818 get {
return Descriptor; }
821 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
822 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
827 partial
void OnConstruction();
829 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
830 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
832 _hasBits0 = other._hasBits0;
833 varIndex_ = other.varIndex_.Clone();
834 coefficient_ = other.coefficient_.Clone();
835 lowerBound_ = other.lowerBound_;
836 upperBound_ = other.upperBound_;
838 isLazy_ = other.isLazy_;
839 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
842 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
843 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
849 public const int VarIndexFieldNumber = 6;
850 private static readonly pb::FieldCodec<int> _repeated_varIndex_codec
851 = pb::FieldCodec.ForInt32(50);
852 private readonly pbc::RepeatedField<int> varIndex_ =
new pbc::RepeatedField<int>();
859 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
860 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
861 public pbc::RepeatedField<int> VarIndex {
862 get {
return varIndex_; }
866 public const int CoefficientFieldNumber = 7;
867 private static readonly pb::FieldCodec<double> _repeated_coefficient_codec
868 = pb::FieldCodec.ForDouble(58);
869 private readonly pbc::RepeatedField<double> coefficient_ =
new pbc::RepeatedField<double>();
873 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
874 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
875 public pbc::RepeatedField<double> Coefficient {
876 get {
return coefficient_; }
880 public const int LowerBoundFieldNumber = 2;
881 private readonly
static double LowerBoundDefaultValue =
double.NegativeInfinity;
883 private double lowerBound_;
887 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
888 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
889 public double LowerBound {
890 get {
if ((_hasBits0 & 1) != 0) {
return lowerBound_; }
else {
return LowerBoundDefaultValue; } }
897 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
898 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
899 public bool HasLowerBound {
900 get {
return (_hasBits0 & 1) != 0; }
903 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
904 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
905 public void ClearLowerBound() {
910 public const int UpperBoundFieldNumber = 3;
911 private readonly
static double UpperBoundDefaultValue =
double.PositiveInfinity;
913 private double upperBound_;
914 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
915 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
916 public double UpperBound {
917 get {
if ((_hasBits0 & 2) != 0) {
return upperBound_; }
else {
return UpperBoundDefaultValue; } }
924 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
925 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
926 public bool HasUpperBound {
927 get {
return (_hasBits0 & 2) != 0; }
930 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
931 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
932 public void ClearUpperBound() {
937 public const int NameFieldNumber = 4;
938 private readonly
static string NameDefaultValue =
"";
940 private string name_;
944 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
945 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
947 get {
return name_ ?? NameDefaultValue; }
949 name_ = pb::ProtoPreconditions.CheckNotNull(value,
"value");
953 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
954 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
955 public bool HasName {
956 get {
return name_ !=
null; }
959 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
960 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
961 public void ClearName() {
966 public const int IsLazyFieldNumber = 5;
967 private readonly
static bool IsLazyDefaultValue =
false;
969 private bool isLazy_;
976 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
977 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
979 get {
if ((_hasBits0 & 4) != 0) {
return isLazy_; }
else {
return IsLazyDefaultValue; } }
986 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
987 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
988 public bool HasIsLazy {
989 get {
return (_hasBits0 & 4) != 0; }
992 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
993 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
994 public void ClearIsLazy() {
998 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
999 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1000 public override bool Equals(
object other) {
1004 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1005 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1007 if (ReferenceEquals(other,
null)) {
1010 if (ReferenceEquals(other,
this)) {
1013 if(!varIndex_.Equals(other.varIndex_))
return false;
1014 if(!coefficient_.Equals(other.coefficient_))
return false;
1015 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(LowerBound, other.
LowerBound))
return false;
1016 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(UpperBound, other.
UpperBound))
return false;
1017 if (Name != other.
Name)
return false;
1018 if (IsLazy != other.
IsLazy)
return false;
1019 return Equals(_unknownFields, other._unknownFields);
1022 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1023 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1024 public override int GetHashCode() {
1026 hash ^= varIndex_.GetHashCode();
1027 hash ^= coefficient_.GetHashCode();
1028 if (HasLowerBound) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(LowerBound);
1029 if (HasUpperBound) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(UpperBound);
1030 if (HasName) hash ^= Name.GetHashCode();
1031 if (HasIsLazy) hash ^= IsLazy.GetHashCode();
1032 if (_unknownFields !=
null) {
1033 hash ^= _unknownFields.GetHashCode();
1038 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1039 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1040 public override string ToString() {
1041 return pb::JsonFormatter.ToDiagnosticString(
this);
1044 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1045 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1046 public void WriteTo(pb::CodedOutputStream output) {
1047 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1048 output.WriteRawMessage(
this);
1050 if (HasLowerBound) {
1051 output.WriteRawTag(17);
1052 output.WriteDouble(LowerBound);
1054 if (HasUpperBound) {
1055 output.WriteRawTag(25);
1056 output.WriteDouble(UpperBound);
1059 output.WriteRawTag(34);
1060 output.WriteString(Name);
1063 output.WriteRawTag(40);
1064 output.WriteBool(IsLazy);
1066 varIndex_.WriteTo(output, _repeated_varIndex_codec);
1067 coefficient_.WriteTo(output, _repeated_coefficient_codec);
1068 if (_unknownFields !=
null) {
1069 _unknownFields.WriteTo(output);
1074 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1075 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1076 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1077 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
1078 if (HasLowerBound) {
1079 output.WriteRawTag(17);
1080 output.WriteDouble(LowerBound);
1082 if (HasUpperBound) {
1083 output.WriteRawTag(25);
1084 output.WriteDouble(UpperBound);
1087 output.WriteRawTag(34);
1088 output.WriteString(Name);
1091 output.WriteRawTag(40);
1092 output.WriteBool(IsLazy);
1094 varIndex_.WriteTo(ref output, _repeated_varIndex_codec);
1095 coefficient_.WriteTo(ref output, _repeated_coefficient_codec);
1096 if (_unknownFields !=
null) {
1097 _unknownFields.WriteTo(ref output);
1102 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1103 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1104 public int CalculateSize() {
1106 size += varIndex_.CalculateSize(_repeated_varIndex_codec);
1107 size += coefficient_.CalculateSize(_repeated_coefficient_codec);
1108 if (HasLowerBound) {
1111 if (HasUpperBound) {
1115 size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
1120 if (_unknownFields !=
null) {
1121 size += _unknownFields.CalculateSize();
1126 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1127 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1128 public void MergeFrom(MPConstraintProto other) {
1129 if (other ==
null) {
1132 varIndex_.Add(other.varIndex_);
1133 coefficient_.Add(other.coefficient_);
1134 if (other.HasLowerBound) {
1135 LowerBound = other.LowerBound;
1137 if (other.HasUpperBound) {
1138 UpperBound = other.UpperBound;
1140 if (other.HasName) {
1143 if (other.HasIsLazy) {
1144 IsLazy = other.IsLazy;
1146 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
1149 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1150 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1151 public void MergeFrom(pb::CodedInputStream input) {
1152 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1153 input.ReadRawMessage(
this);
1156 while ((tag = input.ReadTag()) != 0) {
1159 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
1162 LowerBound = input.ReadDouble();
1166 UpperBound = input.ReadDouble();
1170 Name = input.ReadString();
1174 IsLazy = input.ReadBool();
1179 varIndex_.AddEntriesFrom(input, _repeated_varIndex_codec);
1184 coefficient_.AddEntriesFrom(input, _repeated_coefficient_codec);
1192 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1193 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1194 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1195 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
1197 while ((tag = input.ReadTag()) != 0) {
1200 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
1203 LowerBound = input.ReadDouble();
1207 UpperBound = input.ReadDouble();
1211 Name = input.ReadString();
1215 IsLazy = input.ReadBool();
1220 varIndex_.AddEntriesFrom(ref input, _repeated_varIndex_codec);
1225 coefficient_.AddEntriesFrom(ref input, _repeated_coefficient_codec);
1238 [global::System.Diagnostics.DebuggerDisplayAttribute(
"{ToString(),nq}")]
1239 public sealed partial class MPGeneralConstraintProto : pb::IMessage<MPGeneralConstraintProto>
1240 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1241 , pb::IBufferMessage
1244 private static readonly pb::MessageParser<MPGeneralConstraintProto> _parser =
new pb::MessageParser<MPGeneralConstraintProto>(() =>
new MPGeneralConstraintProto());
1245 private pb::UnknownFieldSet _unknownFields;
1246 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1247 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1248 public static pb::MessageParser<MPGeneralConstraintProto> Parser {
get {
return _parser; } }
1250 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1251 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1252 public static pbr::MessageDescriptor Descriptor {
1253 get {
return global::OperationsResearch.LinearSolverReflection.Descriptor.MessageTypes[2]; }
1256 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1257 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1258 pbr::MessageDescriptor pb::IMessage.Descriptor {
1259 get {
return Descriptor; }
1262 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1263 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1268 partial
void OnConstruction();
1270 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1271 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1273 name_ = other.name_;
1275 case GeneralConstraintOneofCase.IndicatorConstraint:
1276 IndicatorConstraint = other.IndicatorConstraint.Clone();
1278 case GeneralConstraintOneofCase.SosConstraint:
1279 SosConstraint = other.SosConstraint.Clone();
1281 case GeneralConstraintOneofCase.QuadraticConstraint:
1282 QuadraticConstraint = other.QuadraticConstraint.Clone();
1284 case GeneralConstraintOneofCase.AbsConstraint:
1285 AbsConstraint = other.AbsConstraint.Clone();
1287 case GeneralConstraintOneofCase.AndConstraint:
1288 AndConstraint = other.AndConstraint.Clone();
1290 case GeneralConstraintOneofCase.OrConstraint:
1291 OrConstraint = other.OrConstraint.Clone();
1293 case GeneralConstraintOneofCase.MinConstraint:
1294 MinConstraint = other.MinConstraint.Clone();
1296 case GeneralConstraintOneofCase.MaxConstraint:
1297 MaxConstraint = other.MaxConstraint.Clone();
1301 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
1304 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1305 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1311 public const int NameFieldNumber = 1;
1312 private readonly
static string NameDefaultValue =
"";
1314 private string name_;
1318 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1319 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1320 public string Name {
1321 get {
return name_ ?? NameDefaultValue; }
1323 name_ = pb::ProtoPreconditions.CheckNotNull(value,
"value");
1327 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1328 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1329 public bool HasName {
1330 get {
return name_ !=
null; }
1333 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1334 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1335 public void ClearName() {
1340 public const int IndicatorConstraintFieldNumber = 2;
1341 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1342 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1344 get {
return generalConstraintCase_ == GeneralConstraintOneofCase.IndicatorConstraint ? (global::OperationsResearch.MPIndicatorConstraint) generalConstraint_ :
null; }
1346 generalConstraint_ = value;
1352 public const int SosConstraintFieldNumber = 3;
1353 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1354 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1356 get {
return generalConstraintCase_ == GeneralConstraintOneofCase.SosConstraint ? (global::OperationsResearch.MPSosConstraint) generalConstraint_ :
null; }
1358 generalConstraint_ = value;
1364 public const int QuadraticConstraintFieldNumber = 4;
1365 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1366 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1368 get {
return generalConstraintCase_ == GeneralConstraintOneofCase.QuadraticConstraint ? (global::OperationsResearch.MPQuadraticConstraint) generalConstraint_ :
null; }
1370 generalConstraint_ = value;
1376 public const int AbsConstraintFieldNumber = 5;
1377 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1378 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1380 get {
return generalConstraintCase_ == GeneralConstraintOneofCase.AbsConstraint ? (global::OperationsResearch.MPAbsConstraint) generalConstraint_ :
null; }
1382 generalConstraint_ = value;
1388 public const int AndConstraintFieldNumber = 6;
1393 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1394 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1395 public global::OperationsResearch.MPArrayConstraint AndConstraint {
1396 get {
return generalConstraintCase_ == GeneralConstraintOneofCase.AndConstraint ? (global::OperationsResearch.MPArrayConstraint) generalConstraint_ :
null; }
1398 generalConstraint_ = value;
1404 public const int OrConstraintFieldNumber = 7;
1409 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1410 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1411 public global::OperationsResearch.MPArrayConstraint OrConstraint {
1412 get {
return generalConstraintCase_ == GeneralConstraintOneofCase.OrConstraint ? (global::OperationsResearch.MPArrayConstraint) generalConstraint_ :
null; }
1414 generalConstraint_ = value;
1420 public const int MinConstraintFieldNumber = 8;
1424 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1425 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1426 public global::OperationsResearch.MPArrayWithConstantConstraint MinConstraint {
1427 get {
return generalConstraintCase_ == GeneralConstraintOneofCase.MinConstraint ? (global::OperationsResearch.MPArrayWithConstantConstraint) generalConstraint_ :
null; }
1429 generalConstraint_ = value;
1435 public const int MaxConstraintFieldNumber = 9;
1439 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1440 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1441 public global::OperationsResearch.MPArrayWithConstantConstraint MaxConstraint {
1442 get {
return generalConstraintCase_ == GeneralConstraintOneofCase.MaxConstraint ? (global::OperationsResearch.MPArrayWithConstantConstraint) generalConstraint_ :
null; }
1444 generalConstraint_ = value;
1449 private object generalConstraint_;
1451 public enum GeneralConstraintOneofCase {
1453 IndicatorConstraint = 2,
1455 QuadraticConstraint = 4,
1462 private GeneralConstraintOneofCase generalConstraintCase_ = GeneralConstraintOneofCase.None;
1463 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1464 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1465 public GeneralConstraintOneofCase GeneralConstraintCase {
1466 get {
return generalConstraintCase_; }
1469 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1470 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1471 public void ClearGeneralConstraint() {
1473 generalConstraint_ =
null;
1476 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1477 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1478 public override bool Equals(
object other) {
1482 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1483 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1485 if (ReferenceEquals(other,
null)) {
1488 if (ReferenceEquals(other,
this)) {
1491 if (Name != other.
Name)
return false;
1493 if (!
object.Equals(SosConstraint, other.
SosConstraint))
return false;
1495 if (!
object.Equals(AbsConstraint, other.
AbsConstraint))
return false;
1496 if (!
object.Equals(AndConstraint, other.
AndConstraint))
return false;
1497 if (!
object.Equals(OrConstraint, other.
OrConstraint))
return false;
1498 if (!
object.Equals(MinConstraint, other.
MinConstraint))
return false;
1499 if (!
object.Equals(MaxConstraint, other.
MaxConstraint))
return false;
1501 return Equals(_unknownFields, other._unknownFields);
1504 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1505 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1506 public override int GetHashCode() {
1508 if (HasName) hash ^= Name.GetHashCode();
1517 hash ^= (int) generalConstraintCase_;
1518 if (_unknownFields !=
null) {
1519 hash ^= _unknownFields.GetHashCode();
1524 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1525 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1526 public override string ToString() {
1527 return pb::JsonFormatter.ToDiagnosticString(
this);
1530 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1531 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1532 public void WriteTo(pb::CodedOutputStream output) {
1533 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1534 output.WriteRawMessage(
this);
1537 output.WriteRawTag(10);
1538 output.WriteString(Name);
1540 if (generalConstraintCase_ == GeneralConstraintOneofCase.IndicatorConstraint) {
1541 output.WriteRawTag(18);
1542 output.WriteMessage(IndicatorConstraint);
1544 if (generalConstraintCase_ == GeneralConstraintOneofCase.SosConstraint) {
1545 output.WriteRawTag(26);
1546 output.WriteMessage(SosConstraint);
1548 if (generalConstraintCase_ == GeneralConstraintOneofCase.QuadraticConstraint) {
1549 output.WriteRawTag(34);
1550 output.WriteMessage(QuadraticConstraint);
1552 if (generalConstraintCase_ == GeneralConstraintOneofCase.AbsConstraint) {
1553 output.WriteRawTag(42);
1554 output.WriteMessage(AbsConstraint);
1556 if (generalConstraintCase_ == GeneralConstraintOneofCase.AndConstraint) {
1557 output.WriteRawTag(50);
1558 output.WriteMessage(AndConstraint);
1560 if (generalConstraintCase_ == GeneralConstraintOneofCase.OrConstraint) {
1561 output.WriteRawTag(58);
1562 output.WriteMessage(OrConstraint);
1564 if (generalConstraintCase_ == GeneralConstraintOneofCase.MinConstraint) {
1565 output.WriteRawTag(66);
1566 output.WriteMessage(MinConstraint);
1568 if (generalConstraintCase_ == GeneralConstraintOneofCase.MaxConstraint) {
1569 output.WriteRawTag(74);
1570 output.WriteMessage(MaxConstraint);
1572 if (_unknownFields !=
null) {
1573 _unknownFields.WriteTo(output);
1578 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1579 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1580 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1581 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
1583 output.WriteRawTag(10);
1584 output.WriteString(Name);
1586 if (generalConstraintCase_ == GeneralConstraintOneofCase.IndicatorConstraint) {
1587 output.WriteRawTag(18);
1588 output.WriteMessage(IndicatorConstraint);
1590 if (generalConstraintCase_ == GeneralConstraintOneofCase.SosConstraint) {
1591 output.WriteRawTag(26);
1592 output.WriteMessage(SosConstraint);
1594 if (generalConstraintCase_ == GeneralConstraintOneofCase.QuadraticConstraint) {
1595 output.WriteRawTag(34);
1596 output.WriteMessage(QuadraticConstraint);
1598 if (generalConstraintCase_ == GeneralConstraintOneofCase.AbsConstraint) {
1599 output.WriteRawTag(42);
1600 output.WriteMessage(AbsConstraint);
1602 if (generalConstraintCase_ == GeneralConstraintOneofCase.AndConstraint) {
1603 output.WriteRawTag(50);
1604 output.WriteMessage(AndConstraint);
1606 if (generalConstraintCase_ == GeneralConstraintOneofCase.OrConstraint) {
1607 output.WriteRawTag(58);
1608 output.WriteMessage(OrConstraint);
1610 if (generalConstraintCase_ == GeneralConstraintOneofCase.MinConstraint) {
1611 output.WriteRawTag(66);
1612 output.WriteMessage(MinConstraint);
1614 if (generalConstraintCase_ == GeneralConstraintOneofCase.MaxConstraint) {
1615 output.WriteRawTag(74);
1616 output.WriteMessage(MaxConstraint);
1618 if (_unknownFields !=
null) {
1619 _unknownFields.WriteTo(ref output);
1624 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1625 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1626 public int CalculateSize() {
1629 size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
1631 if (generalConstraintCase_ == GeneralConstraintOneofCase.IndicatorConstraint) {
1632 size += 1 + pb::CodedOutputStream.ComputeMessageSize(IndicatorConstraint);
1634 if (generalConstraintCase_ == GeneralConstraintOneofCase.SosConstraint) {
1635 size += 1 + pb::CodedOutputStream.ComputeMessageSize(SosConstraint);
1637 if (generalConstraintCase_ == GeneralConstraintOneofCase.QuadraticConstraint) {
1638 size += 1 + pb::CodedOutputStream.ComputeMessageSize(QuadraticConstraint);
1640 if (generalConstraintCase_ == GeneralConstraintOneofCase.AbsConstraint) {
1641 size += 1 + pb::CodedOutputStream.ComputeMessageSize(AbsConstraint);
1643 if (generalConstraintCase_ == GeneralConstraintOneofCase.AndConstraint) {
1644 size += 1 + pb::CodedOutputStream.ComputeMessageSize(AndConstraint);
1646 if (generalConstraintCase_ == GeneralConstraintOneofCase.OrConstraint) {
1647 size += 1 + pb::CodedOutputStream.ComputeMessageSize(OrConstraint);
1649 if (generalConstraintCase_ == GeneralConstraintOneofCase.MinConstraint) {
1650 size += 1 + pb::CodedOutputStream.ComputeMessageSize(MinConstraint);
1652 if (generalConstraintCase_ == GeneralConstraintOneofCase.MaxConstraint) {
1653 size += 1 + pb::CodedOutputStream.ComputeMessageSize(MaxConstraint);
1655 if (_unknownFields !=
null) {
1656 size += _unknownFields.CalculateSize();
1661 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1662 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1663 public void MergeFrom(MPGeneralConstraintProto other) {
1664 if (other ==
null) {
1667 if (other.HasName) {
1670 switch (other.GeneralConstraintCase) {
1671 case GeneralConstraintOneofCase.IndicatorConstraint:
1672 if (IndicatorConstraint ==
null) {
1673 IndicatorConstraint =
new global::OperationsResearch.MPIndicatorConstraint();
1675 IndicatorConstraint.MergeFrom(other.IndicatorConstraint);
1677 case GeneralConstraintOneofCase.SosConstraint:
1678 if (SosConstraint ==
null) {
1679 SosConstraint =
new global::OperationsResearch.MPSosConstraint();
1681 SosConstraint.MergeFrom(other.SosConstraint);
1683 case GeneralConstraintOneofCase.QuadraticConstraint:
1684 if (QuadraticConstraint ==
null) {
1685 QuadraticConstraint =
new global::OperationsResearch.MPQuadraticConstraint();
1687 QuadraticConstraint.MergeFrom(other.QuadraticConstraint);
1689 case GeneralConstraintOneofCase.AbsConstraint:
1690 if (AbsConstraint ==
null) {
1691 AbsConstraint =
new global::OperationsResearch.MPAbsConstraint();
1693 AbsConstraint.MergeFrom(other.AbsConstraint);
1695 case GeneralConstraintOneofCase.AndConstraint:
1696 if (AndConstraint ==
null) {
1697 AndConstraint =
new global::OperationsResearch.MPArrayConstraint();
1699 AndConstraint.MergeFrom(other.AndConstraint);
1701 case GeneralConstraintOneofCase.OrConstraint:
1702 if (OrConstraint ==
null) {
1703 OrConstraint =
new global::OperationsResearch.MPArrayConstraint();
1705 OrConstraint.MergeFrom(other.OrConstraint);
1707 case GeneralConstraintOneofCase.MinConstraint:
1708 if (MinConstraint ==
null) {
1709 MinConstraint =
new global::OperationsResearch.MPArrayWithConstantConstraint();
1711 MinConstraint.MergeFrom(other.MinConstraint);
1713 case GeneralConstraintOneofCase.MaxConstraint:
1714 if (MaxConstraint ==
null) {
1715 MaxConstraint =
new global::OperationsResearch.MPArrayWithConstantConstraint();
1717 MaxConstraint.MergeFrom(other.MaxConstraint);
1721 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
1724 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1725 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1726 public void MergeFrom(pb::CodedInputStream input) {
1727 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1728 input.ReadRawMessage(
this);
1731 while ((tag = input.ReadTag()) != 0) {
1734 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
1737 Name = input.ReadString();
1741 global::OperationsResearch.MPIndicatorConstraint subBuilder =
new global::OperationsResearch.MPIndicatorConstraint();
1743 subBuilder.MergeFrom(IndicatorConstraint);
1745 input.ReadMessage(subBuilder);
1746 IndicatorConstraint = subBuilder;
1750 global::OperationsResearch.MPSosConstraint subBuilder =
new global::OperationsResearch.MPSosConstraint();
1752 subBuilder.MergeFrom(SosConstraint);
1754 input.ReadMessage(subBuilder);
1755 SosConstraint = subBuilder;
1759 global::OperationsResearch.MPQuadraticConstraint subBuilder =
new global::OperationsResearch.MPQuadraticConstraint();
1761 subBuilder.MergeFrom(QuadraticConstraint);
1763 input.ReadMessage(subBuilder);
1764 QuadraticConstraint = subBuilder;
1768 global::OperationsResearch.MPAbsConstraint subBuilder =
new global::OperationsResearch.MPAbsConstraint();
1770 subBuilder.MergeFrom(AbsConstraint);
1772 input.ReadMessage(subBuilder);
1773 AbsConstraint = subBuilder;
1777 global::OperationsResearch.MPArrayConstraint subBuilder =
new global::OperationsResearch.MPArrayConstraint();
1779 subBuilder.MergeFrom(AndConstraint);
1781 input.ReadMessage(subBuilder);
1782 AndConstraint = subBuilder;
1786 global::OperationsResearch.MPArrayConstraint subBuilder =
new global::OperationsResearch.MPArrayConstraint();
1788 subBuilder.MergeFrom(OrConstraint);
1790 input.ReadMessage(subBuilder);
1791 OrConstraint = subBuilder;
1795 global::OperationsResearch.MPArrayWithConstantConstraint subBuilder =
new global::OperationsResearch.MPArrayWithConstantConstraint();
1797 subBuilder.MergeFrom(MinConstraint);
1799 input.ReadMessage(subBuilder);
1800 MinConstraint = subBuilder;
1804 global::OperationsResearch.MPArrayWithConstantConstraint subBuilder =
new global::OperationsResearch.MPArrayWithConstantConstraint();
1806 subBuilder.MergeFrom(MaxConstraint);
1808 input.ReadMessage(subBuilder);
1809 MaxConstraint = subBuilder;
1817 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1818 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1819 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1820 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
1822 while ((tag = input.ReadTag()) != 0) {
1825 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
1828 Name = input.ReadString();
1832 global::OperationsResearch.MPIndicatorConstraint subBuilder =
new global::OperationsResearch.MPIndicatorConstraint();
1833 if (generalConstraintCase_ == GeneralConstraintOneofCase.IndicatorConstraint) {
1834 subBuilder.MergeFrom(IndicatorConstraint);
1836 input.ReadMessage(subBuilder);
1837 IndicatorConstraint = subBuilder;
1841 global::OperationsResearch.MPSosConstraint subBuilder =
new global::OperationsResearch.MPSosConstraint();
1842 if (generalConstraintCase_ == GeneralConstraintOneofCase.SosConstraint) {
1843 subBuilder.MergeFrom(SosConstraint);
1845 input.ReadMessage(subBuilder);
1846 SosConstraint = subBuilder;
1850 global::OperationsResearch.MPQuadraticConstraint subBuilder =
new global::OperationsResearch.MPQuadraticConstraint();
1851 if (generalConstraintCase_ == GeneralConstraintOneofCase.QuadraticConstraint) {
1852 subBuilder.MergeFrom(QuadraticConstraint);
1854 input.ReadMessage(subBuilder);
1855 QuadraticConstraint = subBuilder;
1859 global::OperationsResearch.MPAbsConstraint subBuilder =
new global::OperationsResearch.MPAbsConstraint();
1860 if (generalConstraintCase_ == GeneralConstraintOneofCase.AbsConstraint) {
1861 subBuilder.MergeFrom(AbsConstraint);
1863 input.ReadMessage(subBuilder);
1864 AbsConstraint = subBuilder;
1868 global::OperationsResearch.MPArrayConstraint subBuilder =
new global::OperationsResearch.MPArrayConstraint();
1869 if (generalConstraintCase_ == GeneralConstraintOneofCase.AndConstraint) {
1870 subBuilder.MergeFrom(AndConstraint);
1872 input.ReadMessage(subBuilder);
1873 AndConstraint = subBuilder;
1877 global::OperationsResearch.MPArrayConstraint subBuilder =
new global::OperationsResearch.MPArrayConstraint();
1878 if (generalConstraintCase_ == GeneralConstraintOneofCase.OrConstraint) {
1879 subBuilder.MergeFrom(OrConstraint);
1881 input.ReadMessage(subBuilder);
1882 OrConstraint = subBuilder;
1886 global::OperationsResearch.MPArrayWithConstantConstraint subBuilder =
new global::OperationsResearch.MPArrayWithConstantConstraint();
1887 if (generalConstraintCase_ == GeneralConstraintOneofCase.MinConstraint) {
1888 subBuilder.MergeFrom(MinConstraint);
1890 input.ReadMessage(subBuilder);
1891 MinConstraint = subBuilder;
1895 global::OperationsResearch.MPArrayWithConstantConstraint subBuilder =
new global::OperationsResearch.MPArrayWithConstantConstraint();
1896 if (generalConstraintCase_ == GeneralConstraintOneofCase.MaxConstraint) {
1897 subBuilder.MergeFrom(MaxConstraint);
1899 input.ReadMessage(subBuilder);
1900 MaxConstraint = subBuilder;
1919 [global::System.Diagnostics.DebuggerDisplayAttribute(
"{ToString(),nq}")]
1920 public sealed partial
class MPIndicatorConstraint : pb::IMessage<MPIndicatorConstraint>
1921 #
if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1922 , pb::IBufferMessage
1925 private static readonly pb::MessageParser<MPIndicatorConstraint> _parser =
new pb::MessageParser<MPIndicatorConstraint>(() =>
new MPIndicatorConstraint());
1926 private pb::UnknownFieldSet _unknownFields;
1927 private int _hasBits0;
1928 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1929 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1930 public static pb::MessageParser<MPIndicatorConstraint> Parser {
get {
return _parser; } }
1932 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1933 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1934 public static pbr::MessageDescriptor Descriptor {
1935 get {
return global::OperationsResearch.LinearSolverReflection.Descriptor.MessageTypes[3]; }
1938 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1939 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1940 pbr::MessageDescriptor pb::IMessage.Descriptor {
1941 get {
return Descriptor; }
1944 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1945 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1950 partial
void OnConstruction();
1952 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1953 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1955 _hasBits0 = other._hasBits0;
1956 varIndex_ = other.varIndex_;
1957 varValue_ = other.varValue_;
1958 constraint_ = other.constraint_ !=
null ? other.constraint_.
Clone() :
null;
1959 _unknownFields = pb::UnknownFieldSet.
Clone(other._unknownFields);
1962 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1963 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1969 public const int VarIndexFieldNumber = 1;
1970 private readonly
static int VarIndexDefaultValue = 0;
1972 private int varIndex_;
1977 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1978 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1979 public int VarIndex {
1980 get {
if ((_hasBits0 & 1) != 0) {
return varIndex_; }
else {
return VarIndexDefaultValue; } }
1987 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1988 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1989 public bool HasVarIndex {
1990 get {
return (_hasBits0 & 1) != 0; }
1993 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1994 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1995 public void ClearVarIndex() {
2000 public const int VarValueFieldNumber = 2;
2001 private readonly
static int VarValueDefaultValue = 0;
2003 private int varValue_;
2007 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2008 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2009 public int VarValue {
2010 get {
if ((_hasBits0 & 2) != 0) {
return varValue_; }
else {
return VarValueDefaultValue; } }
2017 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2018 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2019 public bool HasVarValue {
2020 get {
return (_hasBits0 & 2) != 0; }
2023 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2024 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2025 public void ClearVarValue() {
2030 public const int ConstraintFieldNumber = 3;
2031 private global::OperationsResearch.MPConstraintProto constraint_;
2035 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2036 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2038 get {
return constraint_; }
2040 constraint_ = value;
2044 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2045 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2046 public override bool Equals(
object other) {
2047 return Equals(other as MPIndicatorConstraint);
2050 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2051 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2053 if (ReferenceEquals(other,
null)) {
2056 if (ReferenceEquals(other,
this)) {
2059 if (VarIndex != other.
VarIndex)
return false;
2060 if (VarValue != other.
VarValue)
return false;
2061 if (!
object.Equals(Constraint, other.
Constraint))
return false;
2062 return Equals(_unknownFields, other._unknownFields);
2065 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2066 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2067 public override int GetHashCode() {
2069 if (HasVarIndex) hash ^= VarIndex.GetHashCode();
2070 if (HasVarValue) hash ^= VarValue.GetHashCode();
2071 if (constraint_ !=
null) hash ^= Constraint.GetHashCode();
2072 if (_unknownFields !=
null) {
2073 hash ^= _unknownFields.GetHashCode();
2078 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2079 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2080 public override string ToString() {
2081 return pb::JsonFormatter.ToDiagnosticString(
this);
2084 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2085 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2086 public void WriteTo(pb::CodedOutputStream output) {
2087 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2088 output.WriteRawMessage(
this);
2091 output.WriteRawTag(8);
2092 output.WriteInt32(VarIndex);
2095 output.WriteRawTag(16);
2096 output.WriteInt32(VarValue);
2098 if (constraint_ !=
null) {
2099 output.WriteRawTag(26);
2100 output.WriteMessage(Constraint);
2102 if (_unknownFields !=
null) {
2103 _unknownFields.WriteTo(output);
2108 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2109 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2110 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2111 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
2113 output.WriteRawTag(8);
2114 output.WriteInt32(VarIndex);
2117 output.WriteRawTag(16);
2118 output.WriteInt32(VarValue);
2120 if (constraint_ !=
null) {
2121 output.WriteRawTag(26);
2122 output.WriteMessage(Constraint);
2124 if (_unknownFields !=
null) {
2125 _unknownFields.WriteTo(ref output);
2130 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2131 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2132 public int CalculateSize() {
2135 size += 1 + pb::CodedOutputStream.ComputeInt32Size(VarIndex);
2138 size += 1 + pb::CodedOutputStream.ComputeInt32Size(VarValue);
2140 if (constraint_ !=
null) {
2141 size += 1 + pb::CodedOutputStream.ComputeMessageSize(Constraint);
2143 if (_unknownFields !=
null) {
2144 size += _unknownFields.CalculateSize();
2149 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2150 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2151 public void MergeFrom(MPIndicatorConstraint other) {
2152 if (other ==
null) {
2155 if (other.HasVarIndex) {
2156 VarIndex = other.VarIndex;
2158 if (other.HasVarValue) {
2159 VarValue = other.VarValue;
2161 if (other.constraint_ !=
null) {
2162 if (constraint_ ==
null) {
2163 Constraint =
new global::OperationsResearch.MPConstraintProto();
2165 Constraint.MergeFrom(other.Constraint);
2167 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
2170 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2171 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2172 public void MergeFrom(pb::CodedInputStream input) {
2173 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2174 input.ReadRawMessage(
this);
2177 while ((tag = input.ReadTag()) != 0) {
2180 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
2183 VarIndex = input.ReadInt32();
2187 VarValue = input.ReadInt32();
2191 if (constraint_ ==
null) {
2192 Constraint =
new global::OperationsResearch.MPConstraintProto();
2194 input.ReadMessage(Constraint);
2202 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2203 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2204 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2205 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
2207 while ((tag = input.ReadTag()) != 0) {
2210 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
2213 VarIndex = input.ReadInt32();
2217 VarValue = input.ReadInt32();
2221 if (constraint_ ==
null) {
2222 Constraint =
new global::OperationsResearch.MPConstraintProto();
2224 input.ReadMessage(Constraint);
2239 [global::System.Diagnostics.DebuggerDisplayAttribute(
"{ToString(),nq}")]
2240 public sealed partial
class MPSosConstraint : pb::IMessage<MPSosConstraint>
2241 #
if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2242 , pb::IBufferMessage
2245 private static readonly pb::MessageParser<MPSosConstraint> _parser =
new pb::MessageParser<MPSosConstraint>(() =>
new MPSosConstraint());
2246 private pb::UnknownFieldSet _unknownFields;
2247 private int _hasBits0;
2248 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2249 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2250 public static pb::MessageParser<MPSosConstraint> Parser {
get {
return _parser; } }
2252 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2253 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2254 public static pbr::MessageDescriptor Descriptor {
2255 get {
return global::OperationsResearch.LinearSolverReflection.Descriptor.MessageTypes[4]; }
2258 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2259 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2260 pbr::MessageDescriptor pb::IMessage.Descriptor {
2261 get {
return Descriptor; }
2264 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2265 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2270 partial
void OnConstruction();
2272 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2273 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2275 _hasBits0 = other._hasBits0;
2276 type_ = other.type_;
2277 varIndex_ = other.varIndex_.Clone();
2278 weight_ = other.weight_.Clone();
2279 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
2282 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2283 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2289 public const int TypeFieldNumber = 1;
2290 private readonly
static global::OperationsResearch.
MPSosConstraint.Types.Type TypeDefaultValue = global::OperationsResearch.MPSosConstraint.Types.Type.Sos1Default;
2292 private global::OperationsResearch.MPSosConstraint.Types.Type type_;
2293 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2294 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2296 get { if ((_hasBits0 & 1) != 0) { return type_; } else { return TypeDefaultValue; } }
2303 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2304 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2305 public bool HasType {
2306 get {
return (_hasBits0 & 1) != 0; }
2309 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2310 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2311 public void ClearType() {
2316 public const int VarIndexFieldNumber = 2;
2317 private static readonly pb::FieldCodec<int> _repeated_varIndex_codec
2318 = pb::FieldCodec.ForInt32(16);
2319 private readonly pbc::RepeatedField<int> varIndex_ =
new pbc::RepeatedField<int>();
2324 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2325 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2326 public pbc::RepeatedField<int> VarIndex {
2327 get {
return varIndex_; }
2331 public const int WeightFieldNumber = 3;
2332 private static readonly pb::FieldCodec<double> _repeated_weight_codec
2333 = pb::FieldCodec.ForDouble(25);
2334 private readonly pbc::RepeatedField<double> weight_ =
new pbc::RepeatedField<double>();
2347 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2348 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2349 public pbc::RepeatedField<double> Weight {
2350 get {
return weight_; }
2353 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2354 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2355 public override bool Equals(
object other) {
2359 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2360 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2362 if (ReferenceEquals(other,
null)) {
2365 if (ReferenceEquals(other,
this)) {
2368 if (Type != other.
Type)
return false;
2369 if(!varIndex_.Equals(other.varIndex_))
return false;
2370 if(!weight_.Equals(other.weight_))
return false;
2371 return Equals(_unknownFields, other._unknownFields);
2374 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2375 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2376 public override int GetHashCode() {
2378 if (HasType) hash ^= Type.GetHashCode();
2379 hash ^= varIndex_.GetHashCode();
2380 hash ^= weight_.GetHashCode();
2381 if (_unknownFields !=
null) {
2382 hash ^= _unknownFields.GetHashCode();
2387 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2388 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2389 public override string ToString() {
2390 return pb::JsonFormatter.ToDiagnosticString(
this);
2393 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2394 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2395 public void WriteTo(pb::CodedOutputStream output) {
2396 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2397 output.WriteRawMessage(
this);
2400 output.WriteRawTag(8);
2401 output.WriteEnum((
int) Type);
2403 varIndex_.WriteTo(output, _repeated_varIndex_codec);
2404 weight_.WriteTo(output, _repeated_weight_codec);
2405 if (_unknownFields !=
null) {
2406 _unknownFields.WriteTo(output);
2411 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2412 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2413 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2414 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
2416 output.WriteRawTag(8);
2417 output.WriteEnum((
int) Type);
2419 varIndex_.WriteTo(ref output, _repeated_varIndex_codec);
2420 weight_.WriteTo(ref output, _repeated_weight_codec);
2421 if (_unknownFields !=
null) {
2422 _unknownFields.WriteTo(ref output);
2427 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2428 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2429 public int CalculateSize() {
2432 size += 1 + pb::CodedOutputStream.ComputeEnumSize((
int) Type);
2434 size += varIndex_.CalculateSize(_repeated_varIndex_codec);
2435 size += weight_.CalculateSize(_repeated_weight_codec);
2436 if (_unknownFields !=
null) {
2437 size += _unknownFields.CalculateSize();
2442 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2443 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2444 public void MergeFrom(MPSosConstraint other) {
2445 if (other ==
null) {
2448 if (other.HasType) {
2451 varIndex_.Add(other.varIndex_);
2452 weight_.Add(other.weight_);
2453 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
2456 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2457 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2458 public void MergeFrom(pb::CodedInputStream input) {
2459 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2460 input.ReadRawMessage(
this);
2463 while ((tag = input.ReadTag()) != 0) {
2466 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
2469 Type = (global::OperationsResearch.MPSosConstraint.Types.Type) input.ReadEnum();
2474 varIndex_.AddEntriesFrom(input, _repeated_varIndex_codec);
2479 weight_.AddEntriesFrom(input, _repeated_weight_codec);
2487 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2488 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2489 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2490 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
2492 while ((tag = input.ReadTag()) != 0) {
2495 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
2498 Type = (global::OperationsResearch.MPSosConstraint.Types.Type) input.ReadEnum();
2503 varIndex_.AddEntriesFrom(ref input, _repeated_varIndex_codec);
2508 weight_.AddEntriesFrom(ref input, _repeated_weight_codec);
2516 #region Nested types
2518 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2519 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2520 public static partial class Types {
2525 [pbr::OriginalName(
"SOS1_DEFAULT")] Sos1Default = 0,
2531 [pbr::OriginalName(
"SOS2")] Sos2 = 1,
2548 [global::System.Diagnostics.DebuggerDisplayAttribute(
"{ToString(),nq}")]
2549 public sealed partial class MPQuadraticConstraint : pb::IMessage<MPQuadraticConstraint>
2550 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2551 , pb::IBufferMessage
2554 private static readonly pb::MessageParser<MPQuadraticConstraint> _parser =
new pb::MessageParser<MPQuadraticConstraint>(() =>
new MPQuadraticConstraint());
2555 private pb::UnknownFieldSet _unknownFields;
2556 private int _hasBits0;
2557 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2558 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2559 public static pb::MessageParser<MPQuadraticConstraint> Parser {
get {
return _parser; } }
2561 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2562 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2563 public static pbr::MessageDescriptor Descriptor {
2564 get {
return global::OperationsResearch.LinearSolverReflection.Descriptor.MessageTypes[5]; }
2567 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2568 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2569 pbr::MessageDescriptor pb::IMessage.Descriptor {
2570 get {
return Descriptor; }
2573 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2574 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2579 partial
void OnConstruction();
2581 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2582 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2584 _hasBits0 = other._hasBits0;
2585 varIndex_ = other.varIndex_.Clone();
2586 coefficient_ = other.coefficient_.Clone();
2587 qvar1Index_ = other.qvar1Index_.Clone();
2588 qvar2Index_ = other.qvar2Index_.Clone();
2589 qcoefficient_ = other.qcoefficient_.Clone();
2590 lowerBound_ = other.lowerBound_;
2591 upperBound_ = other.upperBound_;
2592 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
2595 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2596 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2602 public const int VarIndexFieldNumber = 1;
2603 private static readonly pb::FieldCodec<int> _repeated_varIndex_codec
2604 = pb::FieldCodec.ForInt32(8);
2605 private readonly pbc::RepeatedField<int> varIndex_ =
new pbc::RepeatedField<int>();
2612 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2613 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2614 public pbc::RepeatedField<int> VarIndex {
2615 get {
return varIndex_; }
2619 public const int CoefficientFieldNumber = 2;
2620 private static readonly pb::FieldCodec<double> _repeated_coefficient_codec
2621 = pb::FieldCodec.ForDouble(17);
2622 private readonly pbc::RepeatedField<double> coefficient_ =
new pbc::RepeatedField<double>();
2626 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2627 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2628 public pbc::RepeatedField<double> Coefficient {
2629 get {
return coefficient_; }
2633 public const int Qvar1IndexFieldNumber = 3;
2634 private static readonly pb::FieldCodec<int> _repeated_qvar1Index_codec
2635 = pb::FieldCodec.ForInt32(24);
2636 private readonly pbc::RepeatedField<int> qvar1Index_ =
new pbc::RepeatedField<int>();
2646 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2647 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2648 public pbc::RepeatedField<int> Qvar1Index {
2649 get {
return qvar1Index_; }
2653 public const int Qvar2IndexFieldNumber = 4;
2654 private static readonly pb::FieldCodec<int> _repeated_qvar2Index_codec
2655 = pb::FieldCodec.ForInt32(32);
2656 private readonly pbc::RepeatedField<int> qvar2Index_ =
new pbc::RepeatedField<int>();
2657 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2658 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2659 public pbc::RepeatedField<int> Qvar2Index {
2660 get {
return qvar2Index_; }
2664 public const int QcoefficientFieldNumber = 5;
2665 private static readonly pb::FieldCodec<double> _repeated_qcoefficient_codec
2666 = pb::FieldCodec.ForDouble(41);
2667 private readonly pbc::RepeatedField<double> qcoefficient_ =
new pbc::RepeatedField<double>();
2671 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2672 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2673 public pbc::RepeatedField<double> Qcoefficient {
2674 get {
return qcoefficient_; }
2678 public const int LowerBoundFieldNumber = 6;
2679 private readonly
static double LowerBoundDefaultValue =
double.NegativeInfinity;
2681 private double lowerBound_;
2685 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2686 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2687 public double LowerBound {
2688 get {
if ((_hasBits0 & 1) != 0) {
return lowerBound_; }
else {
return LowerBoundDefaultValue; } }
2691 lowerBound_ = value;
2695 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2696 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2697 public bool HasLowerBound {
2698 get {
return (_hasBits0 & 1) != 0; }
2701 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2702 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2703 public void ClearLowerBound() {
2708 public const int UpperBoundFieldNumber = 7;
2709 private readonly
static double UpperBoundDefaultValue =
double.PositiveInfinity;
2711 private double upperBound_;
2712 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2713 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2714 public double UpperBound {
2715 get {
if ((_hasBits0 & 2) != 0) {
return upperBound_; }
else {
return UpperBoundDefaultValue; } }
2718 upperBound_ = value;
2722 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2723 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2724 public bool HasUpperBound {
2725 get {
return (_hasBits0 & 2) != 0; }
2728 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2729 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2730 public void ClearUpperBound() {
2734 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2735 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2736 public override bool Equals(
object other) {
2740 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2741 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2743 if (ReferenceEquals(other,
null)) {
2746 if (ReferenceEquals(other,
this)) {
2749 if(!varIndex_.Equals(other.varIndex_))
return false;
2750 if(!coefficient_.Equals(other.coefficient_))
return false;
2751 if(!qvar1Index_.Equals(other.qvar1Index_))
return false;
2752 if(!qvar2Index_.Equals(other.qvar2Index_))
return false;
2753 if(!qcoefficient_.Equals(other.qcoefficient_))
return false;
2754 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(LowerBound, other.
LowerBound))
return false;
2755 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(UpperBound, other.
UpperBound))
return false;
2756 return Equals(_unknownFields, other._unknownFields);
2759 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2760 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2761 public override int GetHashCode() {
2763 hash ^= varIndex_.GetHashCode();
2764 hash ^= coefficient_.GetHashCode();
2765 hash ^= qvar1Index_.GetHashCode();
2766 hash ^= qvar2Index_.GetHashCode();
2767 hash ^= qcoefficient_.GetHashCode();
2768 if (HasLowerBound) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(LowerBound);
2769 if (HasUpperBound) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(UpperBound);
2770 if (_unknownFields !=
null) {
2771 hash ^= _unknownFields.GetHashCode();
2776 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2777 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2778 public override string ToString() {
2779 return pb::JsonFormatter.ToDiagnosticString(
this);
2782 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2783 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2784 public void WriteTo(pb::CodedOutputStream output) {
2785 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2786 output.WriteRawMessage(
this);
2788 varIndex_.WriteTo(output, _repeated_varIndex_codec);
2789 coefficient_.WriteTo(output, _repeated_coefficient_codec);
2790 qvar1Index_.WriteTo(output, _repeated_qvar1Index_codec);
2791 qvar2Index_.WriteTo(output, _repeated_qvar2Index_codec);
2792 qcoefficient_.WriteTo(output, _repeated_qcoefficient_codec);
2793 if (HasLowerBound) {
2794 output.WriteRawTag(49);
2795 output.WriteDouble(LowerBound);
2797 if (HasUpperBound) {
2798 output.WriteRawTag(57);
2799 output.WriteDouble(UpperBound);
2801 if (_unknownFields !=
null) {
2802 _unknownFields.WriteTo(output);
2807 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2808 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2809 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2810 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
2811 varIndex_.WriteTo(ref output, _repeated_varIndex_codec);
2812 coefficient_.WriteTo(ref output, _repeated_coefficient_codec);
2813 qvar1Index_.WriteTo(ref output, _repeated_qvar1Index_codec);
2814 qvar2Index_.WriteTo(ref output, _repeated_qvar2Index_codec);
2815 qcoefficient_.WriteTo(ref output, _repeated_qcoefficient_codec);
2816 if (HasLowerBound) {
2817 output.WriteRawTag(49);
2818 output.WriteDouble(LowerBound);
2820 if (HasUpperBound) {
2821 output.WriteRawTag(57);
2822 output.WriteDouble(UpperBound);
2824 if (_unknownFields !=
null) {
2825 _unknownFields.WriteTo(ref output);
2830 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2831 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2832 public int CalculateSize() {
2834 size += varIndex_.CalculateSize(_repeated_varIndex_codec);
2835 size += coefficient_.CalculateSize(_repeated_coefficient_codec);
2836 size += qvar1Index_.CalculateSize(_repeated_qvar1Index_codec);
2837 size += qvar2Index_.CalculateSize(_repeated_qvar2Index_codec);
2838 size += qcoefficient_.CalculateSize(_repeated_qcoefficient_codec);
2839 if (HasLowerBound) {
2842 if (HasUpperBound) {
2845 if (_unknownFields !=
null) {
2846 size += _unknownFields.CalculateSize();
2851 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2852 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2853 public void MergeFrom(MPQuadraticConstraint other) {
2854 if (other ==
null) {
2857 varIndex_.Add(other.varIndex_);
2858 coefficient_.Add(other.coefficient_);
2859 qvar1Index_.Add(other.qvar1Index_);
2860 qvar2Index_.Add(other.qvar2Index_);
2861 qcoefficient_.Add(other.qcoefficient_);
2862 if (other.HasLowerBound) {
2863 LowerBound = other.LowerBound;
2865 if (other.HasUpperBound) {
2866 UpperBound = other.UpperBound;
2868 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
2871 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2872 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2873 public void MergeFrom(pb::CodedInputStream input) {
2874 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2875 input.ReadRawMessage(
this);
2878 while ((tag = input.ReadTag()) != 0) {
2881 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
2885 varIndex_.AddEntriesFrom(input, _repeated_varIndex_codec);
2890 coefficient_.AddEntriesFrom(input, _repeated_coefficient_codec);
2895 qvar1Index_.AddEntriesFrom(input, _repeated_qvar1Index_codec);
2900 qvar2Index_.AddEntriesFrom(input, _repeated_qvar2Index_codec);
2905 qcoefficient_.AddEntriesFrom(input, _repeated_qcoefficient_codec);
2909 LowerBound = input.ReadDouble();
2913 UpperBound = input.ReadDouble();
2921 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2922 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2923 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2924 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
2926 while ((tag = input.ReadTag()) != 0) {
2929 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
2933 varIndex_.AddEntriesFrom(ref input, _repeated_varIndex_codec);
2938 coefficient_.AddEntriesFrom(ref input, _repeated_coefficient_codec);
2943 qvar1Index_.AddEntriesFrom(ref input, _repeated_qvar1Index_codec);
2948 qvar2Index_.AddEntriesFrom(ref input, _repeated_qvar2Index_codec);
2953 qcoefficient_.AddEntriesFrom(ref input, _repeated_qcoefficient_codec);
2957 LowerBound = input.ReadDouble();
2961 UpperBound = input.ReadDouble();
2974 [global::System.Diagnostics.DebuggerDisplayAttribute(
"{ToString(),nq}")]
2975 public sealed partial class MPAbsConstraint : pb::IMessage<MPAbsConstraint>
2976 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2977 , pb::IBufferMessage
2980 private static readonly pb::MessageParser<MPAbsConstraint> _parser =
new pb::MessageParser<MPAbsConstraint>(() =>
new MPAbsConstraint());
2981 private pb::UnknownFieldSet _unknownFields;
2982 private int _hasBits0;
2983 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2984 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2985 public static pb::MessageParser<MPAbsConstraint> Parser {
get {
return _parser; } }
2987 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2988 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2989 public static pbr::MessageDescriptor Descriptor {
2990 get {
return global::OperationsResearch.LinearSolverReflection.Descriptor.MessageTypes[6]; }
2993 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2994 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2995 pbr::MessageDescriptor pb::IMessage.Descriptor {
2996 get {
return Descriptor; }
2999 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3000 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3005 partial
void OnConstruction();
3007 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3008 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3010 _hasBits0 = other._hasBits0;
3011 varIndex_ = other.varIndex_;
3012 resultantVarIndex_ = other.resultantVarIndex_;
3013 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
3016 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3017 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3023 public const int VarIndexFieldNumber = 1;
3024 private readonly
static int VarIndexDefaultValue = 0;
3026 private int varIndex_;
3031 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3032 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3033 public int VarIndex {
3034 get {
if ((_hasBits0 & 1) != 0) {
return varIndex_; }
else {
return VarIndexDefaultValue; } }
3041 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3042 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3043 public bool HasVarIndex {
3044 get {
return (_hasBits0 & 1) != 0; }
3047 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3048 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3049 public void ClearVarIndex() {
3054 public const int ResultantVarIndexFieldNumber = 2;
3055 private readonly
static int ResultantVarIndexDefaultValue = 0;
3057 private int resultantVarIndex_;
3058 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3059 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3060 public int ResultantVarIndex {
3061 get {
if ((_hasBits0 & 2) != 0) {
return resultantVarIndex_; }
else {
return ResultantVarIndexDefaultValue; } }
3064 resultantVarIndex_ = value;
3068 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3069 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3070 public bool HasResultantVarIndex {
3071 get {
return (_hasBits0 & 2) != 0; }
3074 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3075 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3076 public void ClearResultantVarIndex() {
3080 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3081 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3082 public override bool Equals(
object other) {
3086 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3087 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3089 if (ReferenceEquals(other,
null)) {
3092 if (ReferenceEquals(other,
this)) {
3095 if (VarIndex != other.
VarIndex)
return false;
3097 return Equals(_unknownFields, other._unknownFields);
3100 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3101 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3102 public override int GetHashCode() {
3104 if (HasVarIndex) hash ^= VarIndex.GetHashCode();
3105 if (HasResultantVarIndex) hash ^= ResultantVarIndex.GetHashCode();
3106 if (_unknownFields !=
null) {
3107 hash ^= _unknownFields.GetHashCode();
3112 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3113 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3114 public override string ToString() {
3115 return pb::JsonFormatter.ToDiagnosticString(
this);
3118 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3119 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3120 public void WriteTo(pb::CodedOutputStream output) {
3121 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
3122 output.WriteRawMessage(
this);
3125 output.WriteRawTag(8);
3126 output.WriteInt32(VarIndex);
3128 if (HasResultantVarIndex) {
3129 output.WriteRawTag(16);
3130 output.WriteInt32(ResultantVarIndex);
3132 if (_unknownFields !=
null) {
3133 _unknownFields.WriteTo(output);
3138 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
3139 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3140 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3141 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
3143 output.WriteRawTag(8);
3144 output.WriteInt32(VarIndex);
3146 if (HasResultantVarIndex) {
3147 output.WriteRawTag(16);
3148 output.WriteInt32(ResultantVarIndex);
3150 if (_unknownFields !=
null) {
3151 _unknownFields.WriteTo(ref output);
3156 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3157 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3158 public int CalculateSize() {
3161 size += 1 + pb::CodedOutputStream.ComputeInt32Size(VarIndex);
3163 if (HasResultantVarIndex) {
3164 size += 1 + pb::CodedOutputStream.ComputeInt32Size(ResultantVarIndex);
3166 if (_unknownFields !=
null) {
3167 size += _unknownFields.CalculateSize();
3172 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3173 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3174 public void MergeFrom(MPAbsConstraint other) {
3175 if (other ==
null) {
3178 if (other.HasVarIndex) {
3179 VarIndex = other.VarIndex;
3181 if (other.HasResultantVarIndex) {
3182 ResultantVarIndex = other.ResultantVarIndex;
3184 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
3187 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3188 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3189 public void MergeFrom(pb::CodedInputStream input) {
3190 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
3191 input.ReadRawMessage(
this);
3194 while ((tag = input.ReadTag()) != 0) {
3197 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
3200 VarIndex = input.ReadInt32();
3204 ResultantVarIndex = input.ReadInt32();
3212 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
3213 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3214 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3215 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
3217 while ((tag = input.ReadTag()) != 0) {
3220 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
3223 VarIndex = input.ReadInt32();
3227 ResultantVarIndex = input.ReadInt32();
3240 [global::System.Diagnostics.DebuggerDisplayAttribute(
"{ToString(),nq}")]
3241 public sealed partial
class MPArrayConstraint : pb::IMessage<MPArrayConstraint>
3242 #
if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
3243 , pb::IBufferMessage
3246 private static readonly pb::MessageParser<MPArrayConstraint> _parser =
new pb::MessageParser<MPArrayConstraint>(() =>
new MPArrayConstraint());
3247 private pb::UnknownFieldSet _unknownFields;
3248 private int _hasBits0;
3249 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3250 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3251 public static pb::MessageParser<MPArrayConstraint> Parser {
get {
return _parser; } }
3253 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3254 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3255 public static pbr::MessageDescriptor Descriptor {
3256 get {
return global::OperationsResearch.LinearSolverReflection.Descriptor.MessageTypes[7]; }
3259 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3260 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3261 pbr::MessageDescriptor pb::IMessage.Descriptor {
3262 get {
return Descriptor; }
3265 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3266 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3271 partial
void OnConstruction();
3273 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3274 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3276 _hasBits0 = other._hasBits0;
3277 varIndex_ = other.varIndex_.Clone();
3278 resultantVarIndex_ = other.resultantVarIndex_;
3279 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
3282 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3283 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3289 public const int VarIndexFieldNumber = 1;
3290 private static readonly pb::FieldCodec<int> _repeated_varIndex_codec
3291 = pb::FieldCodec.ForInt32(8);
3292 private readonly pbc::RepeatedField<int> varIndex_ =
new pbc::RepeatedField<int>();
3296 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3297 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3298 public pbc::RepeatedField<int> VarIndex {
3299 get {
return varIndex_; }
3303 public const int ResultantVarIndexFieldNumber = 2;
3304 private readonly
static int ResultantVarIndexDefaultValue = 0;
3306 private int resultantVarIndex_;
3307 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3308 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3309 public int ResultantVarIndex {
3310 get {
if ((_hasBits0 & 1) != 0) {
return resultantVarIndex_; }
else {
return ResultantVarIndexDefaultValue; } }
3313 resultantVarIndex_ = value;
3317 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3318 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3319 public bool HasResultantVarIndex {
3320 get {
return (_hasBits0 & 1) != 0; }
3323 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3324 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3325 public void ClearResultantVarIndex() {
3329 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3330 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3331 public override bool Equals(
object other) {
3335 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3336 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3338 if (ReferenceEquals(other,
null)) {
3341 if (ReferenceEquals(other,
this)) {
3344 if(!varIndex_.Equals(other.varIndex_))
return false;
3346 return Equals(_unknownFields, other._unknownFields);
3349 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3350 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3351 public override int GetHashCode() {
3353 hash ^= varIndex_.GetHashCode();
3354 if (HasResultantVarIndex) hash ^= ResultantVarIndex.GetHashCode();
3355 if (_unknownFields !=
null) {
3356 hash ^= _unknownFields.GetHashCode();
3361 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3362 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3363 public override string ToString() {
3364 return pb::JsonFormatter.ToDiagnosticString(
this);
3367 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3368 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3369 public void WriteTo(pb::CodedOutputStream output) {
3370 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
3371 output.WriteRawMessage(
this);
3373 varIndex_.WriteTo(output, _repeated_varIndex_codec);
3374 if (HasResultantVarIndex) {
3375 output.WriteRawTag(16);
3376 output.WriteInt32(ResultantVarIndex);
3378 if (_unknownFields !=
null) {
3379 _unknownFields.WriteTo(output);
3384 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
3385 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3386 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3387 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
3388 varIndex_.WriteTo(ref output, _repeated_varIndex_codec);
3389 if (HasResultantVarIndex) {
3390 output.WriteRawTag(16);
3391 output.WriteInt32(ResultantVarIndex);
3393 if (_unknownFields !=
null) {
3394 _unknownFields.WriteTo(ref output);
3399 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3400 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3401 public int CalculateSize() {
3403 size += varIndex_.CalculateSize(_repeated_varIndex_codec);
3404 if (HasResultantVarIndex) {
3405 size += 1 + pb::CodedOutputStream.ComputeInt32Size(ResultantVarIndex);
3407 if (_unknownFields !=
null) {
3408 size += _unknownFields.CalculateSize();
3413 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3414 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3415 public void MergeFrom(MPArrayConstraint other) {
3416 if (other ==
null) {
3419 varIndex_.Add(other.varIndex_);
3420 if (other.HasResultantVarIndex) {
3421 ResultantVarIndex = other.ResultantVarIndex;
3423 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
3426 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3427 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3428 public void MergeFrom(pb::CodedInputStream input) {
3429 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
3430 input.ReadRawMessage(
this);
3433 while ((tag = input.ReadTag()) != 0) {
3436 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
3440 varIndex_.AddEntriesFrom(input, _repeated_varIndex_codec);
3444 ResultantVarIndex = input.ReadInt32();
3452 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
3453 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3454 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3455 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
3457 while ((tag = input.ReadTag()) != 0) {
3460 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
3464 varIndex_.AddEntriesFrom(ref input, _repeated_varIndex_codec);
3468 ResultantVarIndex = input.ReadInt32();
3482 [global::System.Diagnostics.DebuggerDisplayAttribute(
"{ToString(),nq}")]
3483 public sealed partial class MPArrayWithConstantConstraint : pb::IMessage<MPArrayWithConstantConstraint>
3484 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
3485 , pb::IBufferMessage
3488 private static readonly pb::MessageParser<MPArrayWithConstantConstraint> _parser =
new pb::MessageParser<MPArrayWithConstantConstraint>(() =>
new MPArrayWithConstantConstraint());
3489 private pb::UnknownFieldSet _unknownFields;
3490 private int _hasBits0;
3491 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3492 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3493 public static pb::MessageParser<MPArrayWithConstantConstraint> Parser {
get {
return _parser; } }
3495 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3496 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3497 public static pbr::MessageDescriptor Descriptor {
3498 get {
return global::OperationsResearch.LinearSolverReflection.Descriptor.MessageTypes[8]; }
3501 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3502 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3503 pbr::MessageDescriptor pb::IMessage.Descriptor {
3504 get {
return Descriptor; }
3507 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3508 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3513 partial
void OnConstruction();
3515 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3516 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3518 _hasBits0 = other._hasBits0;
3519 varIndex_ = other.varIndex_.Clone();
3520 constant_ = other.constant_;
3521 resultantVarIndex_ = other.resultantVarIndex_;
3522 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
3525 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3526 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3532 public const int VarIndexFieldNumber = 1;
3533 private static readonly pb::FieldCodec<int> _repeated_varIndex_codec
3534 = pb::FieldCodec.ForInt32(8);
3535 private readonly pbc::RepeatedField<int> varIndex_ =
new pbc::RepeatedField<int>();
3540 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3541 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3542 public pbc::RepeatedField<int> VarIndex {
3543 get {
return varIndex_; }
3547 public const int ConstantFieldNumber = 2;
3548 private readonly
static double ConstantDefaultValue = 0D;
3550 private double constant_;
3551 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3552 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3553 public double Constant {
3554 get {
if ((_hasBits0 & 1) != 0) {
return constant_; }
else {
return ConstantDefaultValue; } }
3561 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3562 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3563 public bool HasConstant {
3564 get {
return (_hasBits0 & 1) != 0; }
3567 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3568 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3569 public void ClearConstant() {
3574 public const int ResultantVarIndexFieldNumber = 3;
3575 private readonly
static int ResultantVarIndexDefaultValue = 0;
3577 private int resultantVarIndex_;
3578 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3579 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3580 public int ResultantVarIndex {
3581 get {
if ((_hasBits0 & 2) != 0) {
return resultantVarIndex_; }
else {
return ResultantVarIndexDefaultValue; } }
3584 resultantVarIndex_ = value;
3588 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3589 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3590 public bool HasResultantVarIndex {
3591 get {
return (_hasBits0 & 2) != 0; }
3594 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3595 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3596 public void ClearResultantVarIndex() {
3600 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3601 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3602 public override bool Equals(
object other) {
3606 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3607 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3609 if (ReferenceEquals(other,
null)) {
3612 if (ReferenceEquals(other,
this)) {
3615 if(!varIndex_.Equals(other.varIndex_))
return false;
3616 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Constant, other.
Constant))
return false;
3618 return Equals(_unknownFields, other._unknownFields);
3621 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3622 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3623 public override int GetHashCode() {
3625 hash ^= varIndex_.GetHashCode();
3626 if (HasConstant) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Constant);
3627 if (HasResultantVarIndex) hash ^= ResultantVarIndex.GetHashCode();
3628 if (_unknownFields !=
null) {
3629 hash ^= _unknownFields.GetHashCode();
3634 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3635 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3636 public override string ToString() {
3637 return pb::JsonFormatter.ToDiagnosticString(
this);
3640 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3641 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3642 public void WriteTo(pb::CodedOutputStream output) {
3643 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
3644 output.WriteRawMessage(
this);
3646 varIndex_.WriteTo(output, _repeated_varIndex_codec);
3648 output.WriteRawTag(17);
3649 output.WriteDouble(Constant);
3651 if (HasResultantVarIndex) {
3652 output.WriteRawTag(24);
3653 output.WriteInt32(ResultantVarIndex);
3655 if (_unknownFields !=
null) {
3656 _unknownFields.WriteTo(output);
3661 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
3662 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3663 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3664 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
3665 varIndex_.WriteTo(ref output, _repeated_varIndex_codec);
3667 output.WriteRawTag(17);
3668 output.WriteDouble(Constant);
3670 if (HasResultantVarIndex) {
3671 output.WriteRawTag(24);
3672 output.WriteInt32(ResultantVarIndex);
3674 if (_unknownFields !=
null) {
3675 _unknownFields.WriteTo(ref output);
3680 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3681 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3682 public int CalculateSize() {
3684 size += varIndex_.CalculateSize(_repeated_varIndex_codec);
3688 if (HasResultantVarIndex) {
3689 size += 1 + pb::CodedOutputStream.ComputeInt32Size(ResultantVarIndex);
3691 if (_unknownFields !=
null) {
3692 size += _unknownFields.CalculateSize();
3697 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3698 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3699 public void MergeFrom(MPArrayWithConstantConstraint other) {
3700 if (other ==
null) {
3703 varIndex_.Add(other.varIndex_);
3704 if (other.HasConstant) {
3705 Constant = other.Constant;
3707 if (other.HasResultantVarIndex) {
3708 ResultantVarIndex = other.ResultantVarIndex;
3710 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
3713 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3714 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3715 public void MergeFrom(pb::CodedInputStream input) {
3716 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
3717 input.ReadRawMessage(
this);
3720 while ((tag = input.ReadTag()) != 0) {
3723 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
3727 varIndex_.AddEntriesFrom(input, _repeated_varIndex_codec);
3731 Constant = input.ReadDouble();
3735 ResultantVarIndex = input.ReadInt32();
3743 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
3744 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3745 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3746 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
3748 while ((tag = input.ReadTag()) != 0) {
3751 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
3755 varIndex_.AddEntriesFrom(ref input, _repeated_varIndex_codec);
3759 Constant = input.ReadDouble();
3763 ResultantVarIndex = input.ReadInt32();
3780 [global::System.Diagnostics.DebuggerDisplayAttribute(
"{ToString(),nq}")]
3781 public sealed partial class MPQuadraticObjective : pb::IMessage<MPQuadraticObjective>
3782 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
3783 , pb::IBufferMessage
3786 private static readonly pb::MessageParser<MPQuadraticObjective> _parser =
new pb::MessageParser<MPQuadraticObjective>(() =>
new MPQuadraticObjective());
3787 private pb::UnknownFieldSet _unknownFields;
3788 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3789 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3790 public static pb::MessageParser<MPQuadraticObjective> Parser {
get {
return _parser; } }
3792 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3793 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3794 public static pbr::MessageDescriptor Descriptor {
3795 get {
return global::OperationsResearch.LinearSolverReflection.Descriptor.MessageTypes[9]; }
3798 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3799 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3800 pbr::MessageDescriptor pb::IMessage.Descriptor {
3801 get {
return Descriptor; }
3804 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3805 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3810 partial
void OnConstruction();
3812 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3813 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3815 qvar1Index_ = other.qvar1Index_.Clone();
3816 qvar2Index_ = other.qvar2Index_.Clone();
3817 coefficient_ = other.coefficient_.Clone();
3818 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
3821 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3822 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3828 public const int Qvar1IndexFieldNumber = 1;
3829 private static readonly pb::FieldCodec<int> _repeated_qvar1Index_codec
3830 = pb::FieldCodec.ForInt32(8);
3831 private readonly pbc::RepeatedField<int> qvar1Index_ =
new pbc::RepeatedField<int>();
3841 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3842 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3843 public pbc::RepeatedField<int> Qvar1Index {
3844 get {
return qvar1Index_; }
3848 public const int Qvar2IndexFieldNumber = 2;
3849 private static readonly pb::FieldCodec<int> _repeated_qvar2Index_codec
3850 = pb::FieldCodec.ForInt32(16);
3851 private readonly pbc::RepeatedField<int> qvar2Index_ =
new pbc::RepeatedField<int>();
3852 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3853 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3854 public pbc::RepeatedField<int> Qvar2Index {
3855 get {
return qvar2Index_; }
3859 public const int CoefficientFieldNumber = 3;
3860 private static readonly pb::FieldCodec<double> _repeated_coefficient_codec
3861 = pb::FieldCodec.ForDouble(25);
3862 private readonly pbc::RepeatedField<double> coefficient_ =
new pbc::RepeatedField<double>();
3866 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3867 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3868 public pbc::RepeatedField<double> Coefficient {
3869 get {
return coefficient_; }
3872 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3873 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3874 public override bool Equals(
object other) {
3878 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3879 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3881 if (ReferenceEquals(other,
null)) {
3884 if (ReferenceEquals(other,
this)) {
3887 if(!qvar1Index_.Equals(other.qvar1Index_))
return false;
3888 if(!qvar2Index_.Equals(other.qvar2Index_))
return false;
3889 if(!coefficient_.Equals(other.coefficient_))
return false;
3890 return Equals(_unknownFields, other._unknownFields);
3893 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3894 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3895 public override int GetHashCode() {
3897 hash ^= qvar1Index_.GetHashCode();
3898 hash ^= qvar2Index_.GetHashCode();
3899 hash ^= coefficient_.GetHashCode();
3900 if (_unknownFields !=
null) {
3901 hash ^= _unknownFields.GetHashCode();
3906 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3907 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3908 public override string ToString() {
3909 return pb::JsonFormatter.ToDiagnosticString(
this);
3912 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3913 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3914 public void WriteTo(pb::CodedOutputStream output) {
3915 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
3916 output.WriteRawMessage(
this);
3918 qvar1Index_.WriteTo(output, _repeated_qvar1Index_codec);
3919 qvar2Index_.WriteTo(output, _repeated_qvar2Index_codec);
3920 coefficient_.WriteTo(output, _repeated_coefficient_codec);
3921 if (_unknownFields !=
null) {
3922 _unknownFields.WriteTo(output);
3927 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
3928 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3929 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3930 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
3931 qvar1Index_.WriteTo(ref output, _repeated_qvar1Index_codec);
3932 qvar2Index_.WriteTo(ref output, _repeated_qvar2Index_codec);
3933 coefficient_.WriteTo(ref output, _repeated_coefficient_codec);
3934 if (_unknownFields !=
null) {
3935 _unknownFields.WriteTo(ref output);
3940 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3941 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3942 public int CalculateSize() {
3944 size += qvar1Index_.CalculateSize(_repeated_qvar1Index_codec);
3945 size += qvar2Index_.CalculateSize(_repeated_qvar2Index_codec);
3946 size += coefficient_.CalculateSize(_repeated_coefficient_codec);
3947 if (_unknownFields !=
null) {
3948 size += _unknownFields.CalculateSize();
3953 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3954 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3955 public void MergeFrom(MPQuadraticObjective other) {
3956 if (other ==
null) {
3959 qvar1Index_.Add(other.qvar1Index_);
3960 qvar2Index_.Add(other.qvar2Index_);
3961 coefficient_.Add(other.coefficient_);
3962 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
3965 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3966 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3967 public void MergeFrom(pb::CodedInputStream input) {
3968 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
3969 input.ReadRawMessage(
this);
3972 while ((tag = input.ReadTag()) != 0) {
3975 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
3979 qvar1Index_.AddEntriesFrom(input, _repeated_qvar1Index_codec);
3984 qvar2Index_.AddEntriesFrom(input, _repeated_qvar2Index_codec);
3989 coefficient_.AddEntriesFrom(input, _repeated_coefficient_codec);
3997 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
3998 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3999 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4000 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
4002 while ((tag = input.ReadTag()) != 0) {
4005 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
4009 qvar1Index_.AddEntriesFrom(ref input, _repeated_qvar1Index_codec);
4014 qvar2Index_.AddEntriesFrom(ref input, _repeated_qvar2Index_codec);
4019 coefficient_.AddEntriesFrom(ref input, _repeated_coefficient_codec);
4034 [global::System.Diagnostics.DebuggerDisplayAttribute(
"{ToString(),nq}")]
4035 public sealed partial class PartialVariableAssignment : pb::IMessage<PartialVariableAssignment>
4036 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
4037 , pb::IBufferMessage
4040 private static readonly pb::MessageParser<PartialVariableAssignment> _parser =
new pb::MessageParser<PartialVariableAssignment>(() =>
new PartialVariableAssignment());
4041 private pb::UnknownFieldSet _unknownFields;
4042 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4043 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4044 public static pb::MessageParser<PartialVariableAssignment> Parser {
get {
return _parser; } }
4046 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4047 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4048 public static pbr::MessageDescriptor Descriptor {
4049 get {
return global::OperationsResearch.LinearSolverReflection.Descriptor.MessageTypes[10]; }
4052 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4053 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4054 pbr::MessageDescriptor pb::IMessage.Descriptor {
4055 get {
return Descriptor; }
4058 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4059 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4064 partial
void OnConstruction();
4066 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4067 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4069 varIndex_ = other.varIndex_.Clone();
4070 varValue_ = other.varValue_.Clone();
4071 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
4074 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4075 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4081 public const int VarIndexFieldNumber = 1;
4082 private static readonly pb::FieldCodec<int> _repeated_varIndex_codec
4083 = pb::FieldCodec.ForInt32(10);
4084 private readonly pbc::RepeatedField<int> varIndex_ =
new pbc::RepeatedField<int>();
4085 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4086 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4087 public pbc::RepeatedField<int> VarIndex {
4088 get {
return varIndex_; }
4092 public const int VarValueFieldNumber = 2;
4093 private static readonly pb::FieldCodec<double> _repeated_varValue_codec
4094 = pb::FieldCodec.ForDouble(18);
4095 private readonly pbc::RepeatedField<double> varValue_ =
new pbc::RepeatedField<double>();
4096 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4097 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4098 public pbc::RepeatedField<double> VarValue {
4099 get {
return varValue_; }
4102 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4103 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4104 public override bool Equals(
object other) {
4108 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4109 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4111 if (ReferenceEquals(other,
null)) {
4114 if (ReferenceEquals(other,
this)) {
4117 if(!varIndex_.Equals(other.varIndex_))
return false;
4118 if(!varValue_.Equals(other.varValue_))
return false;
4119 return Equals(_unknownFields, other._unknownFields);
4122 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4123 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4124 public override int GetHashCode() {
4126 hash ^= varIndex_.GetHashCode();
4127 hash ^= varValue_.GetHashCode();
4128 if (_unknownFields !=
null) {
4129 hash ^= _unknownFields.GetHashCode();
4134 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4135 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4136 public override string ToString() {
4137 return pb::JsonFormatter.ToDiagnosticString(
this);
4140 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4141 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4142 public void WriteTo(pb::CodedOutputStream output) {
4143 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
4144 output.WriteRawMessage(
this);
4146 varIndex_.WriteTo(output, _repeated_varIndex_codec);
4147 varValue_.WriteTo(output, _repeated_varValue_codec);
4148 if (_unknownFields !=
null) {
4149 _unknownFields.WriteTo(output);
4154 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
4155 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4156 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4157 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
4158 varIndex_.WriteTo(ref output, _repeated_varIndex_codec);
4159 varValue_.WriteTo(ref output, _repeated_varValue_codec);
4160 if (_unknownFields !=
null) {
4161 _unknownFields.WriteTo(ref output);
4166 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4167 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4168 public int CalculateSize() {
4170 size += varIndex_.CalculateSize(_repeated_varIndex_codec);
4171 size += varValue_.CalculateSize(_repeated_varValue_codec);
4172 if (_unknownFields !=
null) {
4173 size += _unknownFields.CalculateSize();
4178 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4179 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4180 public void MergeFrom(PartialVariableAssignment other) {
4181 if (other ==
null) {
4184 varIndex_.Add(other.varIndex_);
4185 varValue_.Add(other.varValue_);
4186 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
4189 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4190 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4191 public void MergeFrom(pb::CodedInputStream input) {
4192 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
4193 input.ReadRawMessage(
this);
4196 while ((tag = input.ReadTag()) != 0) {
4199 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
4203 varIndex_.AddEntriesFrom(input, _repeated_varIndex_codec);
4208 varValue_.AddEntriesFrom(input, _repeated_varValue_codec);
4216 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
4217 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4218 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4219 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
4221 while ((tag = input.ReadTag()) != 0) {
4224 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
4228 varIndex_.AddEntriesFrom(ref input, _repeated_varIndex_codec);
4233 varValue_.AddEntriesFrom(ref input, _repeated_varValue_codec);
4246 [global::System.Diagnostics.DebuggerDisplayAttribute(
"{ToString(),nq}")]
4247 public sealed partial class MPModelProto : pb::IMessage<MPModelProto>
4248 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
4249 , pb::IBufferMessage
4252 private static readonly pb::MessageParser<MPModelProto> _parser =
new pb::MessageParser<MPModelProto>(() =>
new MPModelProto());
4253 private pb::UnknownFieldSet _unknownFields;
4254 private int _hasBits0;
4255 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4256 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4257 public static pb::MessageParser<MPModelProto> Parser {
get {
return _parser; } }
4259 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4260 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4261 public static pbr::MessageDescriptor Descriptor {
4262 get {
return global::OperationsResearch.LinearSolverReflection.Descriptor.MessageTypes[11]; }
4265 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4266 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4267 pbr::MessageDescriptor pb::IMessage.Descriptor {
4268 get {
return Descriptor; }
4271 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4272 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4277 partial
void OnConstruction();
4279 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4280 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4282 _hasBits0 = other._hasBits0;
4283 variable_ = other.variable_.Clone();
4284 constraint_ = other.constraint_.Clone();
4285 generalConstraint_ = other.generalConstraint_.Clone();
4286 maximize_ = other.maximize_;
4287 objectiveOffset_ = other.objectiveOffset_;
4288 quadraticObjective_ = other.quadraticObjective_ !=
null ? other.quadraticObjective_.
Clone() :
null;
4289 name_ = other.name_;
4290 solutionHint_ = other.solutionHint_ !=
null ? other.solutionHint_.
Clone() :
null;
4291 annotation_ = other.annotation_.Clone();
4292 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
4295 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4296 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4302 public const int VariableFieldNumber = 3;
4303 private static readonly pb::FieldCodec<global::OperationsResearch.MPVariableProto> _repeated_variable_codec
4305 private readonly pbc::RepeatedField<global::OperationsResearch.MPVariableProto> variable_ =
new pbc::RepeatedField<global::OperationsResearch.MPVariableProto>();
4309 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4310 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4311 public pbc::RepeatedField<global::OperationsResearch.MPVariableProto> Variable {
4312 get { return variable_; }
4316 public const int ConstraintFieldNumber = 4;
4317 private static readonly pb::FieldCodec<global::OperationsResearch.MPConstraintProto> _repeated_constraint_codec
4319 private readonly pbc::RepeatedField<global::OperationsResearch.MPConstraintProto> constraint_ =
new pbc::RepeatedField<global::OperationsResearch.MPConstraintProto>();
4323 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4324 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4325 public pbc::RepeatedField<global::OperationsResearch.MPConstraintProto> Constraint {
4326 get { return constraint_; }
4330 public const int GeneralConstraintFieldNumber = 7;
4331 private static readonly pb::FieldCodec<global::OperationsResearch.MPGeneralConstraintProto> _repeated_generalConstraint_codec
4333 private readonly pbc::RepeatedField<global::OperationsResearch.MPGeneralConstraintProto> generalConstraint_ =
new pbc::RepeatedField<global::OperationsResearch.MPGeneralConstraintProto>();
4338 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4339 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4340 public pbc::RepeatedField<global::OperationsResearch.MPGeneralConstraintProto> GeneralConstraint {
4341 get { return generalConstraint_; }
4345 public const int MaximizeFieldNumber = 1;
4346 private readonly
static bool MaximizeDefaultValue =
false;
4348 private bool maximize_;
4352 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4353 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4354 public bool Maximize {
4355 get {
if ((_hasBits0 & 1) != 0) {
return maximize_; }
else {
return MaximizeDefaultValue; } }
4362 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4363 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4364 public bool HasMaximize {
4365 get {
return (_hasBits0 & 1) != 0; }
4368 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4369 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4370 public void ClearMaximize() {
4375 public const int ObjectiveOffsetFieldNumber = 2;
4376 private readonly
static double ObjectiveOffsetDefaultValue = 0D;
4378 private double objectiveOffset_;
4382 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4383 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4384 public double ObjectiveOffset {
4385 get {
if ((_hasBits0 & 2) != 0) {
return objectiveOffset_; }
else {
return ObjectiveOffsetDefaultValue; } }
4388 objectiveOffset_ = value;
4392 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4393 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4394 public bool HasObjectiveOffset {
4395 get {
return (_hasBits0 & 2) != 0; }
4398 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4399 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4400 public void ClearObjectiveOffset() {
4405 public const int QuadraticObjectiveFieldNumber = 8;
4406 private global::OperationsResearch.MPQuadraticObjective quadraticObjective_;
4411 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4412 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4414 get {
return quadraticObjective_; }
4416 quadraticObjective_ = value;
4421 public const int NameFieldNumber = 5;
4422 private readonly
static string NameDefaultValue =
"";
4424 private string name_;
4428 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4429 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4430 public string Name {
4431 get {
return name_ ?? NameDefaultValue; }
4433 name_ = pb::ProtoPreconditions.CheckNotNull(value,
"value");
4437 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4438 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4439 public bool HasName {
4440 get {
return name_ !=
null; }
4443 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4444 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4445 public void ClearName() {
4450 public const int SolutionHintFieldNumber = 6;
4451 private global::OperationsResearch.PartialVariableAssignment solutionHint_;
4465 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4466 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4468 get {
return solutionHint_; }
4470 solutionHint_ = value;
4475 public const int AnnotationFieldNumber = 9;
4476 private static readonly pb::FieldCodec<global::OperationsResearch.MPModelProto.Types.Annotation> _repeated_annotation_codec
4478 private readonly pbc::RepeatedField<global::OperationsResearch.MPModelProto.Types.Annotation> annotation_ =
new pbc::RepeatedField<global::OperationsResearch.MPModelProto.Types.Annotation>();
4479 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4480 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4481 public pbc::RepeatedField<global::OperationsResearch.MPModelProto.Types.Annotation> Annotation {
4482 get { return annotation_; }
4485 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4486 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4487 public override bool Equals(
object other) {
4491 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4492 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4494 if (ReferenceEquals(other,
null)) {
4497 if (ReferenceEquals(other,
this)) {
4500 if(!variable_.Equals(other.variable_))
return false;
4501 if(!constraint_.Equals(other.constraint_))
return false;
4502 if(!generalConstraint_.Equals(other.generalConstraint_))
return false;
4503 if (Maximize != other.
Maximize)
return false;
4504 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(ObjectiveOffset, other.
ObjectiveOffset))
return false;
4506 if (Name != other.
Name)
return false;
4507 if (!
object.Equals(SolutionHint, other.
SolutionHint))
return false;
4508 if(!annotation_.Equals(other.annotation_))
return false;
4509 return Equals(_unknownFields, other._unknownFields);
4512 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4513 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4514 public override int GetHashCode() {
4516 hash ^= variable_.GetHashCode();
4517 hash ^= constraint_.GetHashCode();
4518 hash ^= generalConstraint_.GetHashCode();
4519 if (HasMaximize) hash ^= Maximize.GetHashCode();
4520 if (HasObjectiveOffset) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(ObjectiveOffset);
4521 if (quadraticObjective_ !=
null) hash ^= QuadraticObjective.GetHashCode();
4522 if (HasName) hash ^= Name.GetHashCode();
4523 if (solutionHint_ !=
null) hash ^= SolutionHint.GetHashCode();
4524 hash ^= annotation_.GetHashCode();
4525 if (_unknownFields !=
null) {
4526 hash ^= _unknownFields.GetHashCode();
4531 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4532 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4533 public override string ToString() {
4534 return pb::JsonFormatter.ToDiagnosticString(
this);
4537 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4538 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4539 public void WriteTo(pb::CodedOutputStream output) {
4540 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
4541 output.WriteRawMessage(
this);
4544 output.WriteRawTag(8);
4545 output.WriteBool(Maximize);
4547 if (HasObjectiveOffset) {
4548 output.WriteRawTag(17);
4549 output.WriteDouble(ObjectiveOffset);
4551 variable_.WriteTo(output, _repeated_variable_codec);
4552 constraint_.WriteTo(output, _repeated_constraint_codec);
4554 output.WriteRawTag(42);
4555 output.WriteString(Name);
4557 if (solutionHint_ !=
null) {
4558 output.WriteRawTag(50);
4559 output.WriteMessage(SolutionHint);
4561 generalConstraint_.WriteTo(output, _repeated_generalConstraint_codec);
4562 if (quadraticObjective_ !=
null) {
4563 output.WriteRawTag(66);
4564 output.WriteMessage(QuadraticObjective);
4566 annotation_.WriteTo(output, _repeated_annotation_codec);
4567 if (_unknownFields !=
null) {
4568 _unknownFields.WriteTo(output);
4573 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
4574 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4575 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4576 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
4578 output.WriteRawTag(8);
4579 output.WriteBool(Maximize);
4581 if (HasObjectiveOffset) {
4582 output.WriteRawTag(17);
4583 output.WriteDouble(ObjectiveOffset);
4585 variable_.WriteTo(ref output, _repeated_variable_codec);
4586 constraint_.WriteTo(ref output, _repeated_constraint_codec);
4588 output.WriteRawTag(42);
4589 output.WriteString(Name);
4591 if (solutionHint_ !=
null) {
4592 output.WriteRawTag(50);
4593 output.WriteMessage(SolutionHint);
4595 generalConstraint_.WriteTo(ref output, _repeated_generalConstraint_codec);
4596 if (quadraticObjective_ !=
null) {
4597 output.WriteRawTag(66);
4598 output.WriteMessage(QuadraticObjective);
4600 annotation_.WriteTo(ref output, _repeated_annotation_codec);
4601 if (_unknownFields !=
null) {
4602 _unknownFields.WriteTo(ref output);
4607 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4608 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4609 public int CalculateSize() {
4611 size += variable_.CalculateSize(_repeated_variable_codec);
4612 size += constraint_.CalculateSize(_repeated_constraint_codec);
4613 size += generalConstraint_.CalculateSize(_repeated_generalConstraint_codec);
4617 if (HasObjectiveOffset) {
4620 if (quadraticObjective_ !=
null) {
4621 size += 1 + pb::CodedOutputStream.ComputeMessageSize(QuadraticObjective);
4624 size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
4626 if (solutionHint_ !=
null) {
4627 size += 1 + pb::CodedOutputStream.ComputeMessageSize(SolutionHint);
4629 size += annotation_.CalculateSize(_repeated_annotation_codec);
4630 if (_unknownFields !=
null) {
4631 size += _unknownFields.CalculateSize();
4636 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4637 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4638 public void MergeFrom(MPModelProto other) {
4639 if (other ==
null) {
4642 variable_.Add(other.variable_);
4643 constraint_.Add(other.constraint_);
4644 generalConstraint_.Add(other.generalConstraint_);
4645 if (other.HasMaximize) {
4646 Maximize = other.Maximize;
4648 if (other.HasObjectiveOffset) {
4649 ObjectiveOffset = other.ObjectiveOffset;
4651 if (other.quadraticObjective_ !=
null) {
4652 if (quadraticObjective_ ==
null) {
4653 QuadraticObjective =
new global::OperationsResearch.MPQuadraticObjective();
4655 QuadraticObjective.MergeFrom(other.QuadraticObjective);
4657 if (other.HasName) {
4660 if (other.solutionHint_ !=
null) {
4661 if (solutionHint_ ==
null) {
4662 SolutionHint =
new global::OperationsResearch.PartialVariableAssignment();
4664 SolutionHint.MergeFrom(other.SolutionHint);
4666 annotation_.Add(other.annotation_);
4667 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
4670 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4671 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4672 public void MergeFrom(pb::CodedInputStream input) {
4673 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
4674 input.ReadRawMessage(
this);
4677 while ((tag = input.ReadTag()) != 0) {
4680 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
4683 Maximize = input.ReadBool();
4687 ObjectiveOffset = input.ReadDouble();
4691 variable_.AddEntriesFrom(input, _repeated_variable_codec);
4695 constraint_.AddEntriesFrom(input, _repeated_constraint_codec);
4699 Name = input.ReadString();
4703 if (solutionHint_ ==
null) {
4704 SolutionHint =
new global::OperationsResearch.PartialVariableAssignment();
4706 input.ReadMessage(SolutionHint);
4710 generalConstraint_.AddEntriesFrom(input, _repeated_generalConstraint_codec);
4714 if (quadraticObjective_ ==
null) {
4715 QuadraticObjective =
new global::OperationsResearch.MPQuadraticObjective();
4717 input.ReadMessage(QuadraticObjective);
4721 annotation_.AddEntriesFrom(input, _repeated_annotation_codec);
4729 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
4730 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4731 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4732 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
4734 while ((tag = input.ReadTag()) != 0) {
4737 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
4740 Maximize = input.ReadBool();
4744 ObjectiveOffset = input.ReadDouble();
4748 variable_.AddEntriesFrom(ref input, _repeated_variable_codec);
4752 constraint_.AddEntriesFrom(ref input, _repeated_constraint_codec);
4756 Name = input.ReadString();
4760 if (solutionHint_ ==
null) {
4761 SolutionHint =
new global::OperationsResearch.PartialVariableAssignment();
4763 input.ReadMessage(SolutionHint);
4767 generalConstraint_.AddEntriesFrom(ref input, _repeated_generalConstraint_codec);
4771 if (quadraticObjective_ ==
null) {
4772 QuadraticObjective =
new global::OperationsResearch.MPQuadraticObjective();
4774 input.ReadMessage(QuadraticObjective);
4778 annotation_.AddEntriesFrom(ref input, _repeated_annotation_codec);
4786 #region Nested types
4788 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4789 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4790 public static partial
class Types {
4795 [global::System.Diagnostics.DebuggerDisplayAttribute(
"{ToString(),nq}")]
4796 public sealed partial class Annotation : pb::IMessage<Annotation>
4797 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
4798 , pb::IBufferMessage
4801 private static readonly pb::MessageParser<Annotation> _parser =
new pb::MessageParser<Annotation>(() =>
new Annotation());
4802 private pb::UnknownFieldSet _unknownFields;
4803 private int _hasBits0;
4804 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4805 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4806 public static pb::MessageParser<Annotation> Parser {
get {
return _parser; } }
4808 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4809 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4810 public static pbr::MessageDescriptor Descriptor {
4811 get {
return global::OperationsResearch.MPModelProto.Descriptor.NestedTypes[0]; }
4814 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4815 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4816 pbr::MessageDescriptor pb::IMessage.Descriptor {
4817 get {
return Descriptor; }
4820 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4821 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4826 partial
void OnConstruction();
4828 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4829 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4831 _hasBits0 = other._hasBits0;
4832 targetType_ = other.targetType_;
4833 targetIndex_ = other.targetIndex_;
4834 targetName_ = other.targetName_;
4835 payloadKey_ = other.payloadKey_;
4836 payloadValue_ = other.payloadValue_;
4837 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
4840 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4841 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4847 public const int TargetTypeFieldNumber = 1;
4848 private readonly
static global::OperationsResearch.MPModelProto.
Types.Annotation.Types.
TargetType TargetTypeDefaultValue = global::OperationsResearch.MPModelProto.Types.Annotation.Types.TargetType.VariableDefault;
4850 private global::OperationsResearch.MPModelProto.Types.Annotation.Types.TargetType targetType_;
4851 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4852 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4854 get { if ((_hasBits0 & 1) != 0) { return targetType_; } else { return TargetTypeDefaultValue; } }
4857 targetType_ = value;
4861 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4862 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4863 public bool HasTargetType {
4864 get {
return (_hasBits0 & 1) != 0; }
4867 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4868 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4869 public void ClearTargetType() {
4874 public const int TargetIndexFieldNumber = 2;
4875 private readonly
static int TargetIndexDefaultValue = 0;
4877 private int targetIndex_;
4882 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4883 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4884 public int TargetIndex {
4885 get {
if ((_hasBits0 & 2) != 0) {
return targetIndex_; }
else {
return TargetIndexDefaultValue; } }
4888 targetIndex_ = value;
4892 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4893 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4894 public bool HasTargetIndex {
4895 get {
return (_hasBits0 & 2) != 0; }
4898 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4899 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4900 public void ClearTargetIndex() {
4905 public const int TargetNameFieldNumber = 3;
4906 private readonly
static string TargetNameDefaultValue =
"";
4908 private string targetName_;
4912 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4913 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4914 public string TargetName {
4915 get {
return targetName_ ?? TargetNameDefaultValue; }
4917 targetName_ = pb::ProtoPreconditions.CheckNotNull(value,
"value");
4921 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4922 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4923 public bool HasTargetName {
4924 get {
return targetName_ !=
null; }
4927 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4928 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4929 public void ClearTargetName() {
4934 public const int PayloadKeyFieldNumber = 4;
4935 private readonly
static string PayloadKeyDefaultValue =
"";
4937 private string payloadKey_;
4942 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4943 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4944 public string PayloadKey {
4945 get {
return payloadKey_ ?? PayloadKeyDefaultValue; }
4947 payloadKey_ = pb::ProtoPreconditions.CheckNotNull(value,
"value");
4951 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4952 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4953 public bool HasPayloadKey {
4954 get {
return payloadKey_ !=
null; }
4957 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4958 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4959 public void ClearPayloadKey() {
4964 public const int PayloadValueFieldNumber = 5;
4965 private readonly
static string PayloadValueDefaultValue =
"";
4967 private string payloadValue_;
4968 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4969 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4970 public string PayloadValue {
4971 get {
return payloadValue_ ?? PayloadValueDefaultValue; }
4973 payloadValue_ = pb::ProtoPreconditions.CheckNotNull(value,
"value");
4977 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4978 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4979 public bool HasPayloadValue {
4980 get {
return payloadValue_ !=
null; }
4983 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4984 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4985 public void ClearPayloadValue() {
4986 payloadValue_ =
null;
4989 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4990 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4991 public override bool Equals(
object other) {
4995 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4996 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4998 if (ReferenceEquals(other,
null)) {
5001 if (ReferenceEquals(other,
this)) {
5004 if (TargetType != other.
TargetType)
return false;
5005 if (TargetIndex != other.
TargetIndex)
return false;
5006 if (TargetName != other.
TargetName)
return false;
5007 if (PayloadKey != other.
PayloadKey)
return false;
5009 return Equals(_unknownFields, other._unknownFields);
5012 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5013 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5014 public override int GetHashCode() {
5016 if (HasTargetType) hash ^= TargetType.GetHashCode();
5017 if (HasTargetIndex) hash ^= TargetIndex.GetHashCode();
5018 if (HasTargetName) hash ^= TargetName.GetHashCode();
5019 if (HasPayloadKey) hash ^= PayloadKey.GetHashCode();
5020 if (HasPayloadValue) hash ^= PayloadValue.GetHashCode();
5021 if (_unknownFields !=
null) {
5022 hash ^= _unknownFields.GetHashCode();
5027 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5028 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5029 public override string ToString() {
5030 return pb::JsonFormatter.ToDiagnosticString(
this);
5033 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5034 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5035 public void WriteTo(pb::CodedOutputStream output) {
5036 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
5037 output.WriteRawMessage(
this);
5039 if (HasTargetType) {
5040 output.WriteRawTag(8);
5041 output.WriteEnum((
int) TargetType);
5043 if (HasTargetIndex) {
5044 output.WriteRawTag(16);
5045 output.WriteInt32(TargetIndex);
5047 if (HasTargetName) {
5048 output.WriteRawTag(26);
5049 output.WriteString(TargetName);
5051 if (HasPayloadKey) {
5052 output.WriteRawTag(34);
5053 output.WriteString(PayloadKey);
5055 if (HasPayloadValue) {
5056 output.WriteRawTag(42);
5057 output.WriteString(PayloadValue);
5059 if (_unknownFields !=
null) {
5060 _unknownFields.WriteTo(output);
5065 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
5066 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5067 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5068 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
5069 if (HasTargetType) {
5070 output.WriteRawTag(8);
5071 output.WriteEnum((
int) TargetType);
5073 if (HasTargetIndex) {
5074 output.WriteRawTag(16);
5075 output.WriteInt32(TargetIndex);
5077 if (HasTargetName) {
5078 output.WriteRawTag(26);
5079 output.WriteString(TargetName);
5081 if (HasPayloadKey) {
5082 output.WriteRawTag(34);
5083 output.WriteString(PayloadKey);
5085 if (HasPayloadValue) {
5086 output.WriteRawTag(42);
5087 output.WriteString(PayloadValue);
5089 if (_unknownFields !=
null) {
5090 _unknownFields.WriteTo(ref output);
5095 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5096 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5097 public int CalculateSize() {
5099 if (HasTargetType) {
5100 size += 1 + pb::CodedOutputStream.ComputeEnumSize((
int) TargetType);
5102 if (HasTargetIndex) {
5103 size += 1 + pb::CodedOutputStream.ComputeInt32Size(TargetIndex);
5105 if (HasTargetName) {
5106 size += 1 + pb::CodedOutputStream.ComputeStringSize(TargetName);
5108 if (HasPayloadKey) {
5109 size += 1 + pb::CodedOutputStream.ComputeStringSize(PayloadKey);
5111 if (HasPayloadValue) {
5112 size += 1 + pb::CodedOutputStream.ComputeStringSize(PayloadValue);
5114 if (_unknownFields !=
null) {
5115 size += _unknownFields.CalculateSize();
5120 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5121 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5122 public void MergeFrom(Annotation other) {
5123 if (other ==
null) {
5126 if (other.HasTargetType) {
5127 TargetType = other.TargetType;
5129 if (other.HasTargetIndex) {
5130 TargetIndex = other.TargetIndex;
5132 if (other.HasTargetName) {
5133 TargetName = other.TargetName;
5135 if (other.HasPayloadKey) {
5136 PayloadKey = other.PayloadKey;
5138 if (other.HasPayloadValue) {
5139 PayloadValue = other.PayloadValue;
5141 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
5144 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5145 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5146 public void MergeFrom(pb::CodedInputStream input) {
5147 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
5148 input.ReadRawMessage(
this);
5151 while ((tag = input.ReadTag()) != 0) {
5154 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
5157 TargetType = (global::OperationsResearch.MPModelProto.Types.Annotation.Types.TargetType) input.ReadEnum();
5161 TargetIndex = input.ReadInt32();
5165 TargetName = input.ReadString();
5169 PayloadKey = input.ReadString();
5173 PayloadValue = input.ReadString();
5181 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
5182 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5183 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5184 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
5186 while ((tag = input.ReadTag()) != 0) {
5189 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
5192 TargetType = (global::OperationsResearch.MPModelProto.Types.Annotation.Types.TargetType) input.ReadEnum();
5196 TargetIndex = input.ReadInt32();
5200 TargetName = input.ReadString();
5204 PayloadKey = input.ReadString();
5208 PayloadValue = input.ReadString();
5216 #region Nested types
5218 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5219 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5220 public static partial
class Types {
5226 [pbr::OriginalName(
"VARIABLE_DEFAULT")] VariableDefault = 0,
5227 [pbr::OriginalName(
"CONSTRAINT")] Constraint = 1,
5228 [pbr::OriginalName(
"GENERAL_CONSTRAINT")] GeneralConstraint = 2,
5245 [global::System.Diagnostics.DebuggerDisplayAttribute(
"{ToString(),nq}")]
5246 public sealed partial
class OptionalDouble : pb::IMessage<OptionalDouble>
5247 #
if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
5248 , pb::IBufferMessage
5251 private static readonly pb::MessageParser<OptionalDouble> _parser =
new pb::MessageParser<OptionalDouble>(() =>
new OptionalDouble());
5252 private pb::UnknownFieldSet _unknownFields;
5253 private int _hasBits0;
5254 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5255 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5256 public static pb::MessageParser<OptionalDouble> Parser {
get {
return _parser; } }
5258 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5259 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5260 public static pbr::MessageDescriptor Descriptor {
5261 get {
return global::OperationsResearch.LinearSolverReflection.Descriptor.MessageTypes[12]; }
5264 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5265 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5266 pbr::MessageDescriptor pb::IMessage.Descriptor {
5267 get {
return Descriptor; }
5270 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5271 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5276 partial
void OnConstruction();
5278 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5279 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5281 _hasBits0 = other._hasBits0;
5282 value_ = other.value_;
5283 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
5286 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5287 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5293 public const int ValueFieldNumber = 1;
5294 private readonly
static double ValueDefaultValue = 0D;
5296 private double value_;
5297 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5298 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5299 public double Value {
5300 get {
if ((_hasBits0 & 1) != 0) {
return value_; }
else {
return ValueDefaultValue; } }
5307 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5308 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5309 public bool HasValue {
5310 get {
return (_hasBits0 & 1) != 0; }
5313 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5314 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5315 public void ClearValue() {
5319 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5320 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5321 public override bool Equals(
object other) {
5325 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5326 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5328 if (ReferenceEquals(other,
null)) {
5331 if (ReferenceEquals(other,
this)) {
5334 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Value, other.
Value))
return false;
5335 return Equals(_unknownFields, other._unknownFields);
5338 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5339 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5340 public override int GetHashCode() {
5342 if (HasValue) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Value);
5343 if (_unknownFields !=
null) {
5344 hash ^= _unknownFields.GetHashCode();
5349 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5350 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5351 public override string ToString() {
5352 return pb::JsonFormatter.ToDiagnosticString(
this);
5355 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5356 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5357 public void WriteTo(pb::CodedOutputStream output) {
5358 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
5359 output.WriteRawMessage(
this);
5362 output.WriteRawTag(9);
5363 output.WriteDouble(Value);
5365 if (_unknownFields !=
null) {
5366 _unknownFields.WriteTo(output);
5371 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
5372 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5373 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5374 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
5376 output.WriteRawTag(9);
5377 output.WriteDouble(Value);
5379 if (_unknownFields !=
null) {
5380 _unknownFields.WriteTo(ref output);
5385 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5386 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5387 public int CalculateSize() {
5392 if (_unknownFields !=
null) {
5393 size += _unknownFields.CalculateSize();
5398 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5399 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5400 public void MergeFrom(OptionalDouble other) {
5401 if (other ==
null) {
5404 if (other.HasValue) {
5405 Value = other.Value;
5407 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
5410 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5411 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5412 public void MergeFrom(pb::CodedInputStream input) {
5413 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
5414 input.ReadRawMessage(
this);
5417 while ((tag = input.ReadTag()) != 0) {
5420 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
5423 Value = input.ReadDouble();
5431 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
5432 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5433 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5434 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
5436 while ((tag = input.ReadTag()) != 0) {
5439 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
5442 Value = input.ReadDouble();
5460 [global::System.Diagnostics.DebuggerDisplayAttribute(
"{ToString(),nq}")]
5461 public sealed partial
class MPSolverCommonParameters : pb::IMessage<MPSolverCommonParameters>
5462 #
if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
5463 , pb::IBufferMessage
5466 private static readonly pb::MessageParser<MPSolverCommonParameters> _parser =
new pb::MessageParser<MPSolverCommonParameters>(() =>
new MPSolverCommonParameters());
5467 private pb::UnknownFieldSet _unknownFields;
5468 private int _hasBits0;
5469 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5470 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5471 public static pb::MessageParser<MPSolverCommonParameters> Parser {
get {
return _parser; } }
5473 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5474 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5475 public static pbr::MessageDescriptor Descriptor {
5476 get {
return global::OperationsResearch.LinearSolverReflection.Descriptor.MessageTypes[13]; }
5479 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5480 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5481 pbr::MessageDescriptor pb::IMessage.Descriptor {
5482 get {
return Descriptor; }
5485 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5486 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5491 partial
void OnConstruction();
5493 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5494 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5496 _hasBits0 = other._hasBits0;
5497 relativeMipGap_ = other.relativeMipGap_ !=
null ? other.relativeMipGap_.
Clone() :
null;
5498 primalTolerance_ = other.primalTolerance_ !=
null ? other.primalTolerance_.
Clone() :
null;
5499 dualTolerance_ = other.dualTolerance_ !=
null ? other.dualTolerance_.
Clone() :
null;
5500 lpAlgorithm_ = other.lpAlgorithm_;
5501 presolve_ = other.presolve_;
5502 scaling_ = other.scaling_;
5503 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
5506 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5507 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5513 public const int RelativeMipGapFieldNumber = 1;
5514 private global::OperationsResearch.OptionalDouble relativeMipGap_;
5532 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5533 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5534 public global::OperationsResearch.
OptionalDouble RelativeMipGap {
5535 get {
return relativeMipGap_; }
5537 relativeMipGap_ = value;
5542 public const int PrimalToleranceFieldNumber = 2;
5543 private global::OperationsResearch.
OptionalDouble primalTolerance_;
5550 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5551 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5552 public global::OperationsResearch.
OptionalDouble PrimalTolerance {
5553 get {
return primalTolerance_; }
5555 primalTolerance_ = value;
5560 public const int DualToleranceFieldNumber = 3;
5561 private global::OperationsResearch.
OptionalDouble dualTolerance_;
5569 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5570 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5571 public global::OperationsResearch.OptionalDouble DualTolerance {
5572 get {
return dualTolerance_; }
5574 dualTolerance_ = value;
5579 public const int LpAlgorithmFieldNumber = 4;
5580 private readonly
static global::OperationsResearch.MPSolverCommonParameters.Types.LPAlgorithmValues LpAlgorithmDefaultValue = global::OperationsResearch.MPSolverCommonParameters.Types.LPAlgorithmValues.LpAlgoUnspecified;
5582 private global::OperationsResearch.MPSolverCommonParameters.Types.LPAlgorithmValues lpAlgorithm_;
5587 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5588 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5589 public global::OperationsResearch.MPSolverCommonParameters.Types.LPAlgorithmValues LpAlgorithm {
5590 get { if ((_hasBits0 & 1) != 0) { return lpAlgorithm_; } else { return LpAlgorithmDefaultValue; } }
5593 lpAlgorithm_ = value;
5597 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5598 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5599 public bool HasLpAlgorithm {
5600 get {
return (_hasBits0 & 1) != 0; }
5603 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5604 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5605 public void ClearLpAlgorithm() {
5610 public const int PresolveFieldNumber = 5;
5611 private readonly
static global::Google.OrTools.Util.OptionalBoolean PresolveDefaultValue = global::Google.OrTools.Util.OptionalBoolean.BoolUnspecified;
5613 private global::Google.OrTools.Util.OptionalBoolean presolve_;
5618 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5619 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5620 public global::Google.OrTools.Util.OptionalBoolean Presolve {
5621 get { if ((_hasBits0 & 2) != 0) { return presolve_; } else { return PresolveDefaultValue; } }
5628 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5629 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5630 public bool HasPresolve {
5631 get {
return (_hasBits0 & 2) != 0; }
5634 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5635 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5636 public void ClearPresolve() {
5641 public const int ScalingFieldNumber = 7;
5642 private readonly
static global::Google.OrTools.Util.OptionalBoolean ScalingDefaultValue = global::Google.OrTools.Util.OptionalBoolean.BoolUnspecified;
5644 private global::Google.OrTools.Util.OptionalBoolean scaling_;
5650 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5651 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5652 public global::Google.OrTools.Util.OptionalBoolean Scaling {
5653 get { if ((_hasBits0 & 4) != 0) { return scaling_; } else { return ScalingDefaultValue; } }
5660 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5661 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5662 public bool HasScaling {
5663 get {
return (_hasBits0 & 4) != 0; }
5666 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5667 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5668 public void ClearScaling() {
5672 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5673 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5674 public override bool Equals(
object other) {
5678 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5679 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5681 if (ReferenceEquals(other,
null)) {
5684 if (ReferenceEquals(other,
this)) {
5688 if (!
object.Equals(PrimalTolerance, other.
PrimalTolerance))
return false;
5689 if (!
object.Equals(DualTolerance, other.
DualTolerance))
return false;
5690 if (LpAlgorithm != other.
LpAlgorithm)
return false;
5691 if (Presolve != other.
Presolve)
return false;
5692 if (Scaling != other.
Scaling)
return false;
5693 return Equals(_unknownFields, other._unknownFields);
5696 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5697 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5698 public override int GetHashCode() {
5700 if (relativeMipGap_ !=
null) hash ^= RelativeMipGap.GetHashCode();
5701 if (primalTolerance_ !=
null) hash ^= PrimalTolerance.GetHashCode();
5702 if (dualTolerance_ !=
null) hash ^= DualTolerance.GetHashCode();
5703 if (HasLpAlgorithm) hash ^= LpAlgorithm.GetHashCode();
5704 if (HasPresolve) hash ^= Presolve.GetHashCode();
5705 if (HasScaling) hash ^= Scaling.GetHashCode();
5706 if (_unknownFields !=
null) {
5707 hash ^= _unknownFields.GetHashCode();
5712 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5713 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5714 public override string ToString() {
5715 return pb::JsonFormatter.ToDiagnosticString(
this);
5718 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5719 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5720 public void WriteTo(pb::CodedOutputStream output) {
5721 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
5722 output.WriteRawMessage(
this);
5724 if (relativeMipGap_ !=
null) {
5725 output.WriteRawTag(10);
5726 output.WriteMessage(RelativeMipGap);
5728 if (primalTolerance_ !=
null) {
5729 output.WriteRawTag(18);
5730 output.WriteMessage(PrimalTolerance);
5732 if (dualTolerance_ !=
null) {
5733 output.WriteRawTag(26);
5734 output.WriteMessage(DualTolerance);
5736 if (HasLpAlgorithm) {
5737 output.WriteRawTag(32);
5738 output.WriteEnum((
int) LpAlgorithm);
5741 output.WriteRawTag(40);
5742 output.WriteEnum((
int) Presolve);
5745 output.WriteRawTag(56);
5746 output.WriteEnum((
int) Scaling);
5748 if (_unknownFields !=
null) {
5749 _unknownFields.WriteTo(output);
5754 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
5755 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5756 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5757 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
5758 if (relativeMipGap_ !=
null) {
5759 output.WriteRawTag(10);
5760 output.WriteMessage(RelativeMipGap);
5762 if (primalTolerance_ !=
null) {
5763 output.WriteRawTag(18);
5764 output.WriteMessage(PrimalTolerance);
5766 if (dualTolerance_ !=
null) {
5767 output.WriteRawTag(26);
5768 output.WriteMessage(DualTolerance);
5770 if (HasLpAlgorithm) {
5771 output.WriteRawTag(32);
5772 output.WriteEnum((
int) LpAlgorithm);
5775 output.WriteRawTag(40);
5776 output.WriteEnum((
int) Presolve);
5779 output.WriteRawTag(56);
5780 output.WriteEnum((
int) Scaling);
5782 if (_unknownFields !=
null) {
5783 _unknownFields.WriteTo(ref output);
5788 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5789 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5790 public int CalculateSize() {
5792 if (relativeMipGap_ !=
null) {
5793 size += 1 + pb::CodedOutputStream.ComputeMessageSize(RelativeMipGap);
5795 if (primalTolerance_ !=
null) {
5796 size += 1 + pb::CodedOutputStream.ComputeMessageSize(PrimalTolerance);
5798 if (dualTolerance_ !=
null) {
5799 size += 1 + pb::CodedOutputStream.ComputeMessageSize(DualTolerance);
5801 if (HasLpAlgorithm) {
5802 size += 1 + pb::CodedOutputStream.ComputeEnumSize((
int) LpAlgorithm);
5805 size += 1 + pb::CodedOutputStream.ComputeEnumSize((
int) Presolve);
5808 size += 1 + pb::CodedOutputStream.ComputeEnumSize((
int) Scaling);
5810 if (_unknownFields !=
null) {
5811 size += _unknownFields.CalculateSize();
5816 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5817 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5818 public void MergeFrom(MPSolverCommonParameters other) {
5819 if (other ==
null) {
5822 if (other.relativeMipGap_ !=
null) {
5823 if (relativeMipGap_ ==
null) {
5824 RelativeMipGap =
new global::OperationsResearch.OptionalDouble();
5826 RelativeMipGap.MergeFrom(other.RelativeMipGap);
5828 if (other.primalTolerance_ !=
null) {
5829 if (primalTolerance_ ==
null) {
5830 PrimalTolerance =
new global::OperationsResearch.OptionalDouble();
5832 PrimalTolerance.MergeFrom(other.PrimalTolerance);
5834 if (other.dualTolerance_ !=
null) {
5835 if (dualTolerance_ ==
null) {
5836 DualTolerance =
new global::OperationsResearch.OptionalDouble();
5838 DualTolerance.MergeFrom(other.DualTolerance);
5840 if (other.HasLpAlgorithm) {
5841 LpAlgorithm = other.LpAlgorithm;
5843 if (other.HasPresolve) {
5844 Presolve = other.Presolve;
5846 if (other.HasScaling) {
5847 Scaling = other.Scaling;
5849 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
5852 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5853 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5854 public void MergeFrom(pb::CodedInputStream input) {
5855 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
5856 input.ReadRawMessage(
this);
5859 while ((tag = input.ReadTag()) != 0) {
5862 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
5865 if (relativeMipGap_ ==
null) {
5866 RelativeMipGap =
new global::OperationsResearch.OptionalDouble();
5868 input.ReadMessage(RelativeMipGap);
5872 if (primalTolerance_ ==
null) {
5873 PrimalTolerance =
new global::OperationsResearch.OptionalDouble();
5875 input.ReadMessage(PrimalTolerance);
5879 if (dualTolerance_ ==
null) {
5880 DualTolerance =
new global::OperationsResearch.OptionalDouble();
5882 input.ReadMessage(DualTolerance);
5886 LpAlgorithm = (global::OperationsResearch.MPSolverCommonParameters.Types.LPAlgorithmValues) input.ReadEnum();
5890 Presolve = (global::Google.OrTools.Util.OptionalBoolean) input.ReadEnum();
5894 Scaling = (global::Google.OrTools.Util.OptionalBoolean) input.ReadEnum();
5902 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
5903 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5904 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5905 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
5907 while ((tag = input.ReadTag()) != 0) {
5910 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
5913 if (relativeMipGap_ ==
null) {
5914 RelativeMipGap =
new global::OperationsResearch.OptionalDouble();
5916 input.ReadMessage(RelativeMipGap);
5920 if (primalTolerance_ ==
null) {
5921 PrimalTolerance =
new global::OperationsResearch.OptionalDouble();
5923 input.ReadMessage(PrimalTolerance);
5927 if (dualTolerance_ ==
null) {
5928 DualTolerance =
new global::OperationsResearch.OptionalDouble();
5930 input.ReadMessage(DualTolerance);
5934 LpAlgorithm = (global::OperationsResearch.MPSolverCommonParameters.Types.LPAlgorithmValues) input.ReadEnum();
5938 Presolve = (global::Google.OrTools.Util.OptionalBoolean) input.ReadEnum();
5942 Scaling = (global::Google.OrTools.Util.OptionalBoolean) input.ReadEnum();
5950 #region Nested types
5952 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5953 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5954 public static partial
class Types {
5955 public enum LPAlgorithmValues {
5956 [pbr::OriginalName(
"LP_ALGO_UNSPECIFIED")] LpAlgoUnspecified = 0,
5960 [pbr::OriginalName(
"LP_ALGO_DUAL")] LpAlgoDual = 1,
5964 [pbr::OriginalName(
"LP_ALGO_PRIMAL")] LpAlgoPrimal = 2,
5968 [pbr::OriginalName(
"LP_ALGO_BARRIER")] LpAlgoBarrier = 3,
5980 [global::System.Diagnostics.DebuggerDisplayAttribute(
"{ToString(),nq}")]
5981 public sealed partial
class MPModelDeltaProto : pb::IMessage<MPModelDeltaProto>
5982 #
if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
5983 , pb::IBufferMessage
5986 private static readonly pb::MessageParser<MPModelDeltaProto> _parser =
new pb::MessageParser<MPModelDeltaProto>(() =>
new MPModelDeltaProto());
5987 private pb::UnknownFieldSet _unknownFields;
5988 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5989 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5990 public static pb::MessageParser<MPModelDeltaProto> Parser {
get {
return _parser; } }
5992 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5993 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5994 public static pbr::MessageDescriptor Descriptor {
5995 get {
return global::OperationsResearch.LinearSolverReflection.Descriptor.MessageTypes[14]; }
5998 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5999 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6000 pbr::MessageDescriptor pb::IMessage.Descriptor {
6004 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6005 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6006 public MPModelDeltaProto() {
6010 partial
void OnConstruction();
6012 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6013 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6015 baselineModelFilePath_ = other.baselineModelFilePath_;
6016 variableOverrides_ = other.variableOverrides_.Clone();
6017 constraintOverrides_ = other.constraintOverrides_.Clone();
6018 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
6021 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6022 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6028 public const int BaselineModelFilePathFieldNumber = 1;
6029 private readonly
static string BaselineModelFilePathDefaultValue =
"";
6031 private string baselineModelFilePath_;
6032 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6033 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6034 public string BaselineModelFilePath {
6035 get {
return baselineModelFilePath_ ?? BaselineModelFilePathDefaultValue; }
6037 baselineModelFilePath_ = pb::ProtoPreconditions.CheckNotNull(value,
"value");
6041 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6042 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6043 public bool HasBaselineModelFilePath {
6044 get {
return baselineModelFilePath_ !=
null; }
6047 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6048 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6049 public void ClearBaselineModelFilePath() {
6050 baselineModelFilePath_ =
null;
6054 public const int VariableOverridesFieldNumber = 2;
6055 private static readonly pbc::MapField<int, global::OperationsResearch.MPVariableProto>.Codec _map_variableOverrides_codec
6056 =
new pbc::MapField<int, global::OperationsResearch.MPVariableProto>.Codec(pb::FieldCodec.ForInt32(8, 0), pb::FieldCodec.ForMessage(18, global::OperationsResearch.
MPVariableProto.
Parser), 18);
6057 private readonly pbc::MapField<int, global::OperationsResearch.MPVariableProto> variableOverrides_ =
new pbc::MapField<int, global::OperationsResearch.MPVariableProto>();
6067 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6068 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6069 public pbc::MapField<int, global::OperationsResearch.MPVariableProto> VariableOverrides {
6070 get { return variableOverrides_; }
6074 public const int ConstraintOverridesFieldNumber = 3;
6075 private static readonly pbc::MapField<int, global::OperationsResearch.MPConstraintProto>.Codec _map_constraintOverrides_codec
6076 =
new pbc::MapField<int, global::OperationsResearch.MPConstraintProto>.Codec(pb::FieldCodec.ForInt32(8, 0), pb::FieldCodec.ForMessage(18, global::OperationsResearch.
MPConstraintProto.
Parser), 26);
6077 private readonly pbc::MapField<int, global::OperationsResearch.MPConstraintProto> constraintOverrides_ =
new pbc::MapField<int, global::OperationsResearch.MPConstraintProto>();
6087 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6088 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6089 public pbc::MapField<int, global::OperationsResearch.MPConstraintProto> ConstraintOverrides {
6090 get { return constraintOverrides_; }
6093 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6094 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6095 public override bool Equals(
object other) {
6099 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6100 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6102 if (ReferenceEquals(other,
null)) {
6105 if (ReferenceEquals(other,
this)) {
6111 return Equals(_unknownFields, other._unknownFields);
6114 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6115 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6116 public override int GetHashCode() {
6118 if (HasBaselineModelFilePath) hash ^= BaselineModelFilePath.GetHashCode();
6119 hash ^= VariableOverrides.GetHashCode();
6120 hash ^= ConstraintOverrides.GetHashCode();
6121 if (_unknownFields !=
null) {
6122 hash ^= _unknownFields.GetHashCode();
6127 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6128 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6129 public override string ToString() {
6130 return pb::JsonFormatter.ToDiagnosticString(
this);
6133 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6134 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6135 public void WriteTo(pb::CodedOutputStream output) {
6136 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
6137 output.WriteRawMessage(
this);
6139 if (HasBaselineModelFilePath) {
6140 output.WriteRawTag(10);
6141 output.WriteString(BaselineModelFilePath);
6143 variableOverrides_.WriteTo(output, _map_variableOverrides_codec);
6144 constraintOverrides_.WriteTo(output, _map_constraintOverrides_codec);
6145 if (_unknownFields !=
null) {
6146 _unknownFields.WriteTo(output);
6151 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
6152 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6153 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6154 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
6155 if (HasBaselineModelFilePath) {
6156 output.WriteRawTag(10);
6157 output.WriteString(BaselineModelFilePath);
6159 variableOverrides_.WriteTo(ref output, _map_variableOverrides_codec);
6160 constraintOverrides_.WriteTo(ref output, _map_constraintOverrides_codec);
6161 if (_unknownFields !=
null) {
6162 _unknownFields.WriteTo(ref output);
6167 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6168 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6169 public int CalculateSize() {
6171 if (HasBaselineModelFilePath) {
6172 size += 1 + pb::CodedOutputStream.ComputeStringSize(BaselineModelFilePath);
6174 size += variableOverrides_.CalculateSize(_map_variableOverrides_codec);
6175 size += constraintOverrides_.CalculateSize(_map_constraintOverrides_codec);
6176 if (_unknownFields !=
null) {
6177 size += _unknownFields.CalculateSize();
6182 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6183 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6184 public void MergeFrom(MPModelDeltaProto other) {
6185 if (other ==
null) {
6188 if (other.HasBaselineModelFilePath) {
6189 BaselineModelFilePath = other.BaselineModelFilePath;
6191 variableOverrides_.MergeFrom(other.variableOverrides_);
6192 constraintOverrides_.MergeFrom(other.constraintOverrides_);
6193 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
6196 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6197 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6198 public void MergeFrom(pb::CodedInputStream input) {
6199 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
6200 input.ReadRawMessage(
this);
6203 while ((tag = input.ReadTag()) != 0) {
6206 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
6209 BaselineModelFilePath = input.ReadString();
6213 variableOverrides_.AddEntriesFrom(input, _map_variableOverrides_codec);
6217 constraintOverrides_.AddEntriesFrom(input, _map_constraintOverrides_codec);
6225 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
6226 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6227 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6228 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
6230 while ((tag = input.ReadTag()) != 0) {
6233 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
6236 BaselineModelFilePath = input.ReadString();
6240 variableOverrides_.AddEntriesFrom(ref input, _map_variableOverrides_codec);
6244 constraintOverrides_.AddEntriesFrom(ref input, _map_constraintOverrides_codec);
6257 [global::System.Diagnostics.DebuggerDisplayAttribute(
"{ToString(),nq}")]
6258 public sealed partial
class MPModelRequest : pb::IMessage<MPModelRequest>
6259 #
if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
6260 , pb::IBufferMessage
6263 private static readonly pb::MessageParser<MPModelRequest> _parser =
new pb::MessageParser<MPModelRequest>(() =>
new MPModelRequest());
6264 private pb::UnknownFieldSet _unknownFields;
6265 private int _hasBits0;
6266 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6267 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6268 public static pb::MessageParser<MPModelRequest> Parser {
get {
return _parser; } }
6270 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6271 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6272 public static pbr::MessageDescriptor Descriptor {
6273 get {
return global::OperationsResearch.LinearSolverReflection.Descriptor.MessageTypes[15]; }
6276 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6277 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6278 pbr::MessageDescriptor pb::IMessage.Descriptor {
6282 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6283 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6284 public MPModelRequest() {
6288 partial
void OnConstruction();
6290 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6291 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6293 _hasBits0 = other._hasBits0;
6294 model_ = other.model_ !=
null ? other.model_.
Clone() :
null;
6295 solverType_ = other.solverType_;
6296 solverTimeLimitSeconds_ = other.solverTimeLimitSeconds_;
6297 enableInternalSolverOutput_ = other.enableInternalSolverOutput_;
6298 solverSpecificParameters_ = other.solverSpecificParameters_;
6299 ignoreSolverSpecificParametersFailure_ = other.ignoreSolverSpecificParametersFailure_;
6300 modelDelta_ = other.modelDelta_ !=
null ? other.modelDelta_.
Clone() :
null;
6301 populateAdditionalSolutionsUpTo_ = other.populateAdditionalSolutionsUpTo_;
6302 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
6305 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6306 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6312 public const int ModelFieldNumber = 1;
6313 private global::OperationsResearch.MPModelProto model_;
6317 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6318 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6320 get {
return model_; }
6327 public const int SolverTypeFieldNumber = 2;
6328 private readonly
static global::OperationsResearch.MPModelRequest.
Types.SolverType SolverTypeDefaultValue = global::OperationsResearch.MPModelRequest.Types.SolverType.GlopLinearProgramming;
6330 private global::OperationsResearch.MPModelRequest.Types.SolverType solverType_;
6331 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6332 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6334 get { if ((_hasBits0 & 1) != 0) { return solverType_; } else { return SolverTypeDefaultValue; } }
6337 solverType_ = value;
6341 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6342 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6343 public bool HasSolverType {
6344 get {
return (_hasBits0 & 1) != 0; }
6347 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6348 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6349 public void ClearSolverType() {
6354 public const int SolverTimeLimitSecondsFieldNumber = 3;
6355 private readonly
static double SolverTimeLimitSecondsDefaultValue = 0D;
6357 private double solverTimeLimitSeconds_;
6369 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6370 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6371 public double SolverTimeLimitSeconds {
6372 get {
if ((_hasBits0 & 2) != 0) {
return solverTimeLimitSeconds_; }
else {
return SolverTimeLimitSecondsDefaultValue; } }
6375 solverTimeLimitSeconds_ = value;
6379 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6380 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6381 public bool HasSolverTimeLimitSeconds {
6382 get {
return (_hasBits0 & 2) != 0; }
6385 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6386 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6387 public void ClearSolverTimeLimitSeconds() {
6392 public const int EnableInternalSolverOutputFieldNumber = 4;
6393 private readonly
static bool EnableInternalSolverOutputDefaultValue =
false;
6395 private bool enableInternalSolverOutput_;
6402 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6403 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6404 public bool EnableInternalSolverOutput {
6405 get {
if ((_hasBits0 & 4) != 0) {
return enableInternalSolverOutput_; }
else {
return EnableInternalSolverOutputDefaultValue; } }
6408 enableInternalSolverOutput_ = value;
6412 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6413 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6414 public bool HasEnableInternalSolverOutput {
6415 get {
return (_hasBits0 & 4) != 0; }
6418 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6419 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6420 public void ClearEnableInternalSolverOutput() {
6425 public const int SolverSpecificParametersFieldNumber = 5;
6426 private readonly
static string SolverSpecificParametersDefaultValue =
"";
6428 private string solverSpecificParameters_;
6445 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6446 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6447 public string SolverSpecificParameters {
6448 get {
return solverSpecificParameters_ ?? SolverSpecificParametersDefaultValue; }
6450 solverSpecificParameters_ = pb::ProtoPreconditions.CheckNotNull(value,
"value");
6454 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6455 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6456 public bool HasSolverSpecificParameters {
6457 get {
return solverSpecificParameters_ !=
null; }
6460 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6461 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6462 public void ClearSolverSpecificParameters() {
6463 solverSpecificParameters_ =
null;
6467 public const int IgnoreSolverSpecificParametersFailureFieldNumber = 9;
6468 private readonly
static bool IgnoreSolverSpecificParametersFailureDefaultValue =
false;
6470 private bool ignoreSolverSpecificParametersFailure_;
6471 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6472 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6473 public bool IgnoreSolverSpecificParametersFailure {
6474 get {
if ((_hasBits0 & 8) != 0) {
return ignoreSolverSpecificParametersFailure_; }
else {
return IgnoreSolverSpecificParametersFailureDefaultValue; } }
6477 ignoreSolverSpecificParametersFailure_ = value;
6481 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6482 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6483 public bool HasIgnoreSolverSpecificParametersFailure {
6484 get {
return (_hasBits0 & 8) != 0; }
6487 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6488 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6489 public void ClearIgnoreSolverSpecificParametersFailure() {
6494 public const int ModelDeltaFieldNumber = 8;
6495 private global::OperationsResearch.MPModelDeltaProto modelDelta_;
6500 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6501 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6503 get {
return modelDelta_; }
6505 modelDelta_ = value;
6510 public const int PopulateAdditionalSolutionsUpToFieldNumber = 11;
6511 private readonly
static int PopulateAdditionalSolutionsUpToDefaultValue = 0;
6513 private int populateAdditionalSolutionsUpTo_;
6523 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6524 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6525 public int PopulateAdditionalSolutionsUpTo {
6526 get {
if ((_hasBits0 & 16) != 0) {
return populateAdditionalSolutionsUpTo_; }
else {
return PopulateAdditionalSolutionsUpToDefaultValue; } }
6529 populateAdditionalSolutionsUpTo_ = value;
6533 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6534 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6535 public bool HasPopulateAdditionalSolutionsUpTo {
6536 get {
return (_hasBits0 & 16) != 0; }
6539 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6540 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6541 public void ClearPopulateAdditionalSolutionsUpTo() {
6545 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6546 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6547 public override bool Equals(
object other) {
6551 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6552 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6554 if (ReferenceEquals(other,
null)) {
6557 if (ReferenceEquals(other,
this)) {
6560 if (!
object.Equals(Model, other.
Model))
return false;
6561 if (SolverType != other.
SolverType)
return false;
6562 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(SolverTimeLimitSeconds, other.
SolverTimeLimitSeconds))
return false;
6566 if (!
object.Equals(ModelDelta, other.
ModelDelta))
return false;
6568 return Equals(_unknownFields, other._unknownFields);
6571 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6572 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6573 public override int GetHashCode() {
6575 if (model_ !=
null) hash ^= Model.GetHashCode();
6576 if (HasSolverType) hash ^= SolverType.GetHashCode();
6577 if (HasSolverTimeLimitSeconds) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(SolverTimeLimitSeconds);
6578 if (HasEnableInternalSolverOutput) hash ^= EnableInternalSolverOutput.GetHashCode();
6579 if (HasSolverSpecificParameters) hash ^= SolverSpecificParameters.GetHashCode();
6580 if (HasIgnoreSolverSpecificParametersFailure) hash ^= IgnoreSolverSpecificParametersFailure.GetHashCode();
6581 if (modelDelta_ !=
null) hash ^= ModelDelta.GetHashCode();
6582 if (HasPopulateAdditionalSolutionsUpTo) hash ^= PopulateAdditionalSolutionsUpTo.GetHashCode();
6583 if (_unknownFields !=
null) {
6584 hash ^= _unknownFields.GetHashCode();
6589 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6590 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6591 public override string ToString() {
6592 return pb::JsonFormatter.ToDiagnosticString(
this);
6595 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6596 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6597 public void WriteTo(pb::CodedOutputStream output) {
6598 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
6599 output.WriteRawMessage(
this);
6601 if (model_ !=
null) {
6602 output.WriteRawTag(10);
6603 output.WriteMessage(Model);
6605 if (HasSolverType) {
6606 output.WriteRawTag(16);
6607 output.WriteEnum((
int) SolverType);
6609 if (HasSolverTimeLimitSeconds) {
6610 output.WriteRawTag(25);
6611 output.WriteDouble(SolverTimeLimitSeconds);
6613 if (HasEnableInternalSolverOutput) {
6614 output.WriteRawTag(32);
6615 output.WriteBool(EnableInternalSolverOutput);
6617 if (HasSolverSpecificParameters) {
6618 output.WriteRawTag(42);
6619 output.WriteString(SolverSpecificParameters);
6621 if (modelDelta_ !=
null) {
6622 output.WriteRawTag(66);
6623 output.WriteMessage(ModelDelta);
6625 if (HasIgnoreSolverSpecificParametersFailure) {
6626 output.WriteRawTag(72);
6627 output.WriteBool(IgnoreSolverSpecificParametersFailure);
6629 if (HasPopulateAdditionalSolutionsUpTo) {
6630 output.WriteRawTag(88);
6631 output.WriteInt32(PopulateAdditionalSolutionsUpTo);
6633 if (_unknownFields !=
null) {
6634 _unknownFields.WriteTo(output);
6639 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
6640 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6641 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6642 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
6643 if (model_ !=
null) {
6644 output.WriteRawTag(10);
6645 output.WriteMessage(Model);
6647 if (HasSolverType) {
6648 output.WriteRawTag(16);
6649 output.WriteEnum((
int) SolverType);
6651 if (HasSolverTimeLimitSeconds) {
6652 output.WriteRawTag(25);
6653 output.WriteDouble(SolverTimeLimitSeconds);
6655 if (HasEnableInternalSolverOutput) {
6656 output.WriteRawTag(32);
6657 output.WriteBool(EnableInternalSolverOutput);
6659 if (HasSolverSpecificParameters) {
6660 output.WriteRawTag(42);
6661 output.WriteString(SolverSpecificParameters);
6663 if (modelDelta_ !=
null) {
6664 output.WriteRawTag(66);
6665 output.WriteMessage(ModelDelta);
6667 if (HasIgnoreSolverSpecificParametersFailure) {
6668 output.WriteRawTag(72);
6669 output.WriteBool(IgnoreSolverSpecificParametersFailure);
6671 if (HasPopulateAdditionalSolutionsUpTo) {
6672 output.WriteRawTag(88);
6673 output.WriteInt32(PopulateAdditionalSolutionsUpTo);
6675 if (_unknownFields !=
null) {
6676 _unknownFields.WriteTo(ref output);
6681 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6682 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6683 public int CalculateSize() {
6685 if (model_ !=
null) {
6686 size += 1 + pb::CodedOutputStream.ComputeMessageSize(Model);
6688 if (HasSolverType) {
6689 size += 1 + pb::CodedOutputStream.ComputeEnumSize((
int) SolverType);
6691 if (HasSolverTimeLimitSeconds) {
6694 if (HasEnableInternalSolverOutput) {
6697 if (HasSolverSpecificParameters) {
6698 size += 1 + pb::CodedOutputStream.ComputeStringSize(SolverSpecificParameters);
6700 if (HasIgnoreSolverSpecificParametersFailure) {
6703 if (modelDelta_ !=
null) {
6704 size += 1 + pb::CodedOutputStream.ComputeMessageSize(ModelDelta);
6706 if (HasPopulateAdditionalSolutionsUpTo) {
6707 size += 1 + pb::CodedOutputStream.ComputeInt32Size(PopulateAdditionalSolutionsUpTo);
6709 if (_unknownFields !=
null) {
6710 size += _unknownFields.CalculateSize();
6715 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6716 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6717 public void MergeFrom(MPModelRequest other) {
6718 if (other ==
null) {
6721 if (other.model_ !=
null) {
6722 if (model_ ==
null) {
6723 Model =
new global::OperationsResearch.MPModelProto();
6725 Model.MergeFrom(other.Model);
6727 if (other.HasSolverType) {
6728 SolverType = other.SolverType;
6730 if (other.HasSolverTimeLimitSeconds) {
6731 SolverTimeLimitSeconds = other.SolverTimeLimitSeconds;
6733 if (other.HasEnableInternalSolverOutput) {
6734 EnableInternalSolverOutput = other.EnableInternalSolverOutput;
6736 if (other.HasSolverSpecificParameters) {
6737 SolverSpecificParameters = other.SolverSpecificParameters;
6739 if (other.HasIgnoreSolverSpecificParametersFailure) {
6740 IgnoreSolverSpecificParametersFailure = other.IgnoreSolverSpecificParametersFailure;
6742 if (other.modelDelta_ !=
null) {
6743 if (modelDelta_ ==
null) {
6744 ModelDelta =
new global::OperationsResearch.MPModelDeltaProto();
6746 ModelDelta.MergeFrom(other.ModelDelta);
6748 if (other.HasPopulateAdditionalSolutionsUpTo) {
6749 PopulateAdditionalSolutionsUpTo = other.PopulateAdditionalSolutionsUpTo;
6751 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
6754 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6755 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6756 public void MergeFrom(pb::CodedInputStream input) {
6757 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
6758 input.ReadRawMessage(
this);
6761 while ((tag = input.ReadTag()) != 0) {
6764 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
6767 if (model_ ==
null) {
6768 Model =
new global::OperationsResearch.MPModelProto();
6770 input.ReadMessage(Model);
6774 SolverType = (global::OperationsResearch.MPModelRequest.Types.SolverType) input.ReadEnum();
6778 SolverTimeLimitSeconds = input.ReadDouble();
6782 EnableInternalSolverOutput = input.ReadBool();
6786 SolverSpecificParameters = input.ReadString();
6790 if (modelDelta_ ==
null) {
6791 ModelDelta =
new global::OperationsResearch.MPModelDeltaProto();
6793 input.ReadMessage(ModelDelta);
6797 IgnoreSolverSpecificParametersFailure = input.ReadBool();
6801 PopulateAdditionalSolutionsUpTo = input.ReadInt32();
6809 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
6810 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6811 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6812 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
6814 while ((tag = input.ReadTag()) != 0) {
6817 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
6820 if (model_ ==
null) {
6821 Model =
new global::OperationsResearch.MPModelProto();
6823 input.ReadMessage(Model);
6827 SolverType = (global::OperationsResearch.MPModelRequest.Types.SolverType) input.ReadEnum();
6831 SolverTimeLimitSeconds = input.ReadDouble();
6835 EnableInternalSolverOutput = input.ReadBool();
6839 SolverSpecificParameters = input.ReadString();
6843 if (modelDelta_ ==
null) {
6844 ModelDelta =
new global::OperationsResearch.MPModelDeltaProto();
6846 input.ReadMessage(ModelDelta);
6850 IgnoreSolverSpecificParametersFailure = input.ReadBool();
6854 PopulateAdditionalSolutionsUpTo = input.ReadInt32();
6862 #region Nested types
6864 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6865 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6866 public static partial
class Types {
6874 public enum SolverType {
6875 [pbr::OriginalName(
"CLP_LINEAR_PROGRAMMING")] ClpLinearProgramming = 0,
6879 [pbr::OriginalName(
"GLOP_LINEAR_PROGRAMMING")] GlopLinearProgramming = 2,
6880 [pbr::OriginalName(
"GLPK_LINEAR_PROGRAMMING")] GlpkLinearProgramming = 1,
6884 [pbr::OriginalName(
"GUROBI_LINEAR_PROGRAMMING")] GurobiLinearProgramming = 6,
6888 [pbr::OriginalName(
"XPRESS_LINEAR_PROGRAMMING")] XpressLinearProgramming = 101,
6892 [pbr::OriginalName(
"CPLEX_LINEAR_PROGRAMMING")] CplexLinearProgramming = 10,
6893 [pbr::OriginalName(
"HIGHS_LINEAR_PROGRAMMING")] HighsLinearProgramming = 15,
6897 [pbr::OriginalName(
"SCIP_MIXED_INTEGER_PROGRAMMING")] ScipMixedIntegerProgramming = 3,
6898 [pbr::OriginalName(
"GLPK_MIXED_INTEGER_PROGRAMMING")] GlpkMixedIntegerProgramming = 4,
6899 [pbr::OriginalName(
"CBC_MIXED_INTEGER_PROGRAMMING")] CbcMixedIntegerProgramming = 5,
6903 [pbr::OriginalName(
"GUROBI_MIXED_INTEGER_PROGRAMMING")] GurobiMixedIntegerProgramming = 7,
6907 [pbr::OriginalName(
"XPRESS_MIXED_INTEGER_PROGRAMMING")] XpressMixedIntegerProgramming = 102,
6911 [pbr::OriginalName(
"CPLEX_MIXED_INTEGER_PROGRAMMING")] CplexMixedIntegerProgramming = 11,
6912 [pbr::OriginalName(
"HIGHS_MIXED_INTEGER_PROGRAMMING")] HighsMixedIntegerProgramming = 16,
6913 [pbr::OriginalName(
"BOP_INTEGER_PROGRAMMING")] BopIntegerProgramming = 12,
6920 [pbr::OriginalName(
"SAT_INTEGER_PROGRAMMING")] SatIntegerProgramming = 14,
6926 [pbr::OriginalName(
"PDLP_LINEAR_PROGRAMMING")] PdlpLinearProgramming = 8,
6927 [pbr::OriginalName(
"KNAPSACK_MIXED_INTEGER_PROGRAMMING")] KnapsackMixedIntegerProgramming = 13,
6935 [global::System.Diagnostics.DebuggerDisplayAttribute(
"{ToString(),nq}")]
6936 public sealed partial
class MPSolution : pb::IMessage<MPSolution>
6937 #
if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
6938 , pb::IBufferMessage
6941 private static readonly pb::MessageParser<MPSolution> _parser =
new pb::MessageParser<MPSolution>(() =>
new MPSolution());
6942 private pb::UnknownFieldSet _unknownFields;
6943 private int _hasBits0;
6944 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6945 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6946 public static pb::MessageParser<MPSolution> Parser {
get {
return _parser; } }
6948 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6949 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6950 public static pbr::MessageDescriptor Descriptor {
6951 get {
return global::OperationsResearch.LinearSolverReflection.Descriptor.MessageTypes[16]; }
6954 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6955 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6956 pbr::MessageDescriptor pb::IMessage.Descriptor {
6957 get {
return Descriptor; }
6960 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6961 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6966 partial
void OnConstruction();
6968 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6969 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6971 _hasBits0 = other._hasBits0;
6972 objectiveValue_ = other.objectiveValue_;
6973 variableValue_ = other.variableValue_.Clone();
6974 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
6977 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6978 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6984 public const int ObjectiveValueFieldNumber = 1;
6985 private readonly
static double ObjectiveValueDefaultValue = 0D;
6987 private double objectiveValue_;
6988 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6989 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6990 public double ObjectiveValue {
6991 get {
if ((_hasBits0 & 1) != 0) {
return objectiveValue_; }
else {
return ObjectiveValueDefaultValue; } }
6994 objectiveValue_ = value;
6998 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6999 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7000 public bool HasObjectiveValue {
7001 get {
return (_hasBits0 & 1) != 0; }
7004 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7005 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7006 public void ClearObjectiveValue() {
7011 public const int VariableValueFieldNumber = 2;
7012 private static readonly pb::FieldCodec<double> _repeated_variableValue_codec
7013 = pb::FieldCodec.ForDouble(18);
7014 private readonly pbc::RepeatedField<double> variableValue_ =
new pbc::RepeatedField<double>();
7015 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7016 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7017 public pbc::RepeatedField<double> VariableValue {
7018 get {
return variableValue_; }
7021 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7022 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7023 public override bool Equals(
object other) {
7027 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7028 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7030 if (ReferenceEquals(other,
null)) {
7033 if (ReferenceEquals(other,
this)) {
7036 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(ObjectiveValue, other.
ObjectiveValue))
return false;
7037 if(!variableValue_.Equals(other.variableValue_))
return false;
7038 return Equals(_unknownFields, other._unknownFields);
7041 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7042 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7043 public override int GetHashCode() {
7045 if (HasObjectiveValue) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(ObjectiveValue);
7046 hash ^= variableValue_.GetHashCode();
7047 if (_unknownFields !=
null) {
7048 hash ^= _unknownFields.GetHashCode();
7053 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7054 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7055 public override string ToString() {
7056 return pb::JsonFormatter.ToDiagnosticString(
this);
7059 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7060 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7061 public void WriteTo(pb::CodedOutputStream output) {
7062 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
7063 output.WriteRawMessage(
this);
7065 if (HasObjectiveValue) {
7066 output.WriteRawTag(9);
7067 output.WriteDouble(ObjectiveValue);
7069 variableValue_.WriteTo(output, _repeated_variableValue_codec);
7070 if (_unknownFields !=
null) {
7071 _unknownFields.WriteTo(output);
7076 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
7077 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7078 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7079 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
7080 if (HasObjectiveValue) {
7081 output.WriteRawTag(9);
7082 output.WriteDouble(ObjectiveValue);
7084 variableValue_.WriteTo(ref output, _repeated_variableValue_codec);
7085 if (_unknownFields !=
null) {
7086 _unknownFields.WriteTo(ref output);
7091 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7092 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7093 public int CalculateSize() {
7095 if (HasObjectiveValue) {
7098 size += variableValue_.CalculateSize(_repeated_variableValue_codec);
7099 if (_unknownFields !=
null) {
7100 size += _unknownFields.CalculateSize();
7105 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7106 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7108 if (other ==
null) {
7114 variableValue_.Add(other.variableValue_);
7115 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
7118 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7119 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7120 public void MergeFrom(pb::CodedInputStream input) {
7121 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
7122 input.ReadRawMessage(
this);
7125 while ((tag = input.ReadTag()) != 0) {
7128 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
7131 ObjectiveValue = input.ReadDouble();
7136 variableValue_.AddEntriesFrom(input, _repeated_variableValue_codec);
7144 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
7145 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7146 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7147 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
7149 while ((tag = input.ReadTag()) != 0) {
7152 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
7155 ObjectiveValue = input.ReadDouble();
7160 variableValue_.AddEntriesFrom(ref input, _repeated_variableValue_codec);
7170 [global::System.Diagnostics.DebuggerDisplayAttribute(
"{ToString(),nq}")]
7171 public sealed partial class MPSolveInfo : pb::IMessage<MPSolveInfo>
7172 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
7173 , pb::IBufferMessage
7176 private static readonly pb::MessageParser<MPSolveInfo> _parser =
new pb::MessageParser<MPSolveInfo>(() =>
new MPSolveInfo());
7177 private pb::UnknownFieldSet _unknownFields;
7178 private int _hasBits0;
7179 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7180 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7181 public static pb::MessageParser<MPSolveInfo> Parser {
get {
return _parser; } }
7183 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7184 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7185 public static pbr::MessageDescriptor Descriptor {
7186 get {
return global::OperationsResearch.LinearSolverReflection.Descriptor.MessageTypes[17]; }
7189 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7190 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7191 pbr::MessageDescriptor pb::IMessage.Descriptor {
7192 get {
return Descriptor; }
7195 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7196 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7201 partial
void OnConstruction();
7203 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7204 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7206 _hasBits0 = other._hasBits0;
7207 solveWallTimeSeconds_ = other.solveWallTimeSeconds_;
7208 solveUserTimeSeconds_ = other.solveUserTimeSeconds_;
7209 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
7212 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7213 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7219 public const int SolveWallTimeSecondsFieldNumber = 1;
7220 private readonly
static double SolveWallTimeSecondsDefaultValue = 0D;
7222 private double solveWallTimeSeconds_;
7230 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7231 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7232 public double SolveWallTimeSeconds {
7233 get {
if ((_hasBits0 & 1) != 0) {
return solveWallTimeSeconds_; }
else {
return SolveWallTimeSecondsDefaultValue; } }
7236 solveWallTimeSeconds_ = value;
7240 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7241 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7242 public bool HasSolveWallTimeSeconds {
7243 get {
return (_hasBits0 & 1) != 0; }
7246 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7247 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7248 public void ClearSolveWallTimeSeconds() {
7253 public const int SolveUserTimeSecondsFieldNumber = 2;
7254 private readonly
static double SolveUserTimeSecondsDefaultValue = 0D;
7256 private double solveUserTimeSeconds_;
7257 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7258 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7259 public double SolveUserTimeSeconds {
7260 get {
if ((_hasBits0 & 2) != 0) {
return solveUserTimeSeconds_; }
else {
return SolveUserTimeSecondsDefaultValue; } }
7263 solveUserTimeSeconds_ = value;
7267 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7268 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7269 public bool HasSolveUserTimeSeconds {
7270 get {
return (_hasBits0 & 2) != 0; }
7273 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7274 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7275 public void ClearSolveUserTimeSeconds() {
7279 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7280 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7281 public override bool Equals(
object other) {
7285 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7286 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7288 if (ReferenceEquals(other,
null)) {
7291 if (ReferenceEquals(other,
this)) {
7294 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(SolveWallTimeSeconds, other.SolveWallTimeSeconds))
return false;
7295 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(SolveUserTimeSeconds, other.SolveUserTimeSeconds))
return false;
7296 return Equals(_unknownFields, other._unknownFields);
7299 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7300 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7301 public override int GetHashCode() {
7303 if (HasSolveWallTimeSeconds) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(SolveWallTimeSeconds);
7304 if (HasSolveUserTimeSeconds) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(SolveUserTimeSeconds);
7305 if (_unknownFields !=
null) {
7306 hash ^= _unknownFields.GetHashCode();
7311 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7312 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7313 public override string ToString() {
7314 return pb::JsonFormatter.ToDiagnosticString(
this);
7317 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7318 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7319 public void WriteTo(pb::CodedOutputStream output) {
7320 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
7321 output.WriteRawMessage(
this);
7323 if (HasSolveWallTimeSeconds) {
7324 output.WriteRawTag(9);
7325 output.WriteDouble(SolveWallTimeSeconds);
7327 if (HasSolveUserTimeSeconds) {
7328 output.WriteRawTag(17);
7329 output.WriteDouble(SolveUserTimeSeconds);
7331 if (_unknownFields !=
null) {
7332 _unknownFields.WriteTo(output);
7337 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
7338 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7339 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7340 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
7341 if (HasSolveWallTimeSeconds) {
7342 output.WriteRawTag(9);
7343 output.WriteDouble(SolveWallTimeSeconds);
7345 if (HasSolveUserTimeSeconds) {
7346 output.WriteRawTag(17);
7347 output.WriteDouble(SolveUserTimeSeconds);
7349 if (_unknownFields !=
null) {
7350 _unknownFields.WriteTo(ref output);
7355 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7356 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7357 public int CalculateSize() {
7359 if (HasSolveWallTimeSeconds) {
7362 if (HasSolveUserTimeSeconds) {
7365 if (_unknownFields !=
null) {
7366 size += _unknownFields.CalculateSize();
7371 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7372 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7374 if (other ==
null) {
7377 if (other.HasSolveWallTimeSeconds) {
7378 SolveWallTimeSeconds = other.SolveWallTimeSeconds;
7380 if (other.HasSolveUserTimeSeconds) {
7381 SolveUserTimeSeconds = other.SolveUserTimeSeconds;
7383 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
7386 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7387 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7388 public void MergeFrom(pb::CodedInputStream input) {
7389 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
7390 input.ReadRawMessage(
this);
7393 while ((tag = input.ReadTag()) != 0) {
7396 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
7399 SolveWallTimeSeconds = input.ReadDouble();
7403 SolveUserTimeSeconds = input.ReadDouble();
7411 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
7412 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7413 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7414 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
7416 while ((tag = input.ReadTag()) != 0) {
7419 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
7422 SolveWallTimeSeconds = input.ReadDouble();
7426 SolveUserTimeSeconds = input.ReadDouble();
7439 [global::System.Diagnostics.DebuggerDisplayAttribute(
"{ToString(),nq}")]
7440 public sealed partial
class MPSolutionResponse : pb::IMessage<MPSolutionResponse>
7441 #
if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
7442 , pb::IBufferMessage
7445 private static readonly pb::MessageParser<MPSolutionResponse> _parser =
new pb::MessageParser<MPSolutionResponse>(() =>
new MPSolutionResponse());
7446 private pb::UnknownFieldSet _unknownFields;
7447 private int _hasBits0;
7448 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7449 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7450 public static pb::MessageParser<MPSolutionResponse> Parser {
get {
return _parser; } }
7452 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7453 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7454 public static pbr::MessageDescriptor Descriptor {
7455 get {
return global::OperationsResearch.LinearSolverReflection.Descriptor.MessageTypes[18]; }
7458 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7459 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7460 pbr::MessageDescriptor pb::IMessage.Descriptor {
7461 get {
return Descriptor; }
7464 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7465 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7470 partial
void OnConstruction();
7472 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7473 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7475 _hasBits0 = other._hasBits0;
7476 status_ = other.status_;
7477 statusStr_ = other.statusStr_;
7478 objectiveValue_ = other.objectiveValue_;
7479 bestObjectiveBound_ = other.bestObjectiveBound_;
7480 variableValue_ = other.variableValue_.Clone();
7481 solveInfo_ = other.solveInfo_ !=
null ? other.solveInfo_.
Clone() :
null;
7482 solverSpecificInfo_ = other.solverSpecificInfo_;
7483 dualValue_ = other.dualValue_.Clone();
7484 reducedCost_ = other.reducedCost_.Clone();
7485 additionalSolutions_ = other.additionalSolutions_.Clone();
7486 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
7489 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7490 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7496 public const int StatusFieldNumber = 1;
7497 private readonly
static global::OperationsResearch.MPSolverResponseStatus StatusDefaultValue = global::OperationsResearch.MPSolverResponseStatus.MpsolverUnknownStatus;
7499 private global::OperationsResearch.MPSolverResponseStatus status_;
7503 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7504 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7505 public global::OperationsResearch.MPSolverResponseStatus Status {
7506 get {
if ((_hasBits0 & 1) != 0) {
return status_; }
else {
return StatusDefaultValue; } }
7513 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7514 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7515 public bool HasStatus {
7516 get {
return (_hasBits0 & 1) != 0; }
7519 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7520 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7521 public void ClearStatus() {
7526 public const int StatusStrFieldNumber = 7;
7527 private readonly
static string StatusStrDefaultValue =
"";
7529 private string statusStr_;
7536 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7537 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7538 public string StatusStr {
7539 get {
return statusStr_ ?? StatusStrDefaultValue; }
7541 statusStr_ = pb::ProtoPreconditions.CheckNotNull(value,
"value");
7545 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7546 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7547 public bool HasStatusStr {
7548 get {
return statusStr_ !=
null; }
7551 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7552 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7553 public void ClearStatusStr() {
7558 public const int ObjectiveValueFieldNumber = 2;
7559 private readonly
static double ObjectiveValueDefaultValue = 0D;
7561 private double objectiveValue_;
7567 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7568 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7569 public double ObjectiveValue {
7570 get {
if ((_hasBits0 & 2) != 0) {
return objectiveValue_; }
else {
return ObjectiveValueDefaultValue; } }
7573 objectiveValue_ = value;
7577 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7578 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7579 public bool HasObjectiveValue {
7580 get {
return (_hasBits0 & 2) != 0; }
7583 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7584 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7585 public void ClearObjectiveValue() {
7590 public const int BestObjectiveBoundFieldNumber = 5;
7591 private readonly
static double BestObjectiveBoundDefaultValue = 0D;
7593 private double bestObjectiveBound_;
7601 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7602 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7603 public double BestObjectiveBound {
7604 get {
if ((_hasBits0 & 4) != 0) {
return bestObjectiveBound_; }
else {
return BestObjectiveBoundDefaultValue; } }
7607 bestObjectiveBound_ = value;
7611 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7612 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7613 public bool HasBestObjectiveBound {
7614 get {
return (_hasBits0 & 4) != 0; }
7617 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7618 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7619 public void ClearBestObjectiveBound() {
7624 public const int VariableValueFieldNumber = 3;
7625 private static readonly pb::FieldCodec<double> _repeated_variableValue_codec
7626 = pb::FieldCodec.ForDouble(26);
7627 private readonly pbc::RepeatedField<double> variableValue_ =
new pbc::RepeatedField<double>();
7633 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7634 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7635 public pbc::RepeatedField<double> VariableValue {
7636 get {
return variableValue_; }
7640 public const int SolveInfoFieldNumber = 10;
7641 private global::OperationsResearch.MPSolveInfo solveInfo_;
7647 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7648 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7649 public global::OperationsResearch.MPSolveInfo SolveInfo {
7650 get {
return solveInfo_; }
7657 public const int SolverSpecificInfoFieldNumber = 11;
7658 private readonly
static pb::ByteString SolverSpecificInfoDefaultValue = pb::ByteString.Empty;
7660 private pb::ByteString solverSpecificInfo_;
7665 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7666 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7667 public pb::ByteString SolverSpecificInfo {
7668 get {
return solverSpecificInfo_ ?? SolverSpecificInfoDefaultValue; }
7670 solverSpecificInfo_ = pb::ProtoPreconditions.CheckNotNull(value,
"value");
7674 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7675 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7676 public bool HasSolverSpecificInfo {
7677 get {
return solverSpecificInfo_ !=
null; }
7680 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7681 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7682 public void ClearSolverSpecificInfo() {
7683 solverSpecificInfo_ =
null;
7687 public const int DualValueFieldNumber = 4;
7688 private static readonly pb::FieldCodec<double> _repeated_dualValue_codec
7689 = pb::FieldCodec.ForDouble(34);
7690 private readonly pbc::RepeatedField<double> dualValue_ =
new pbc::RepeatedField<double>();
7699 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7700 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7701 public pbc::RepeatedField<double> DualValue {
7702 get {
return dualValue_; }
7706 public const int ReducedCostFieldNumber = 6;
7707 private static readonly pb::FieldCodec<double> _repeated_reducedCost_codec
7708 = pb::FieldCodec.ForDouble(50);
7709 private readonly pbc::RepeatedField<double> reducedCost_ =
new pbc::RepeatedField<double>();
7718 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7719 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7720 public pbc::RepeatedField<double> ReducedCost {
7721 get {
return reducedCost_; }
7725 public const int AdditionalSolutionsFieldNumber = 8;
7726 private static readonly pb::FieldCodec<global::OperationsResearch.MPSolution> _repeated_additionalSolutions_codec
7727 = pb::FieldCodec.ForMessage(66, global::OperationsResearch.MPSolution.Parser);
7728 private readonly pbc::RepeatedField<global::OperationsResearch.MPSolution> additionalSolutions_ =
new pbc::RepeatedField<global::OperationsResearch.MPSolution>();
7736 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7737 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7738 public pbc::RepeatedField<global::OperationsResearch.MPSolution> AdditionalSolutions {
7739 get {
return additionalSolutions_; }
7742 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7743 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7744 public override bool Equals(
object other) {
7748 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7749 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7751 if (ReferenceEquals(other,
null)) {
7754 if (ReferenceEquals(other,
this)) {
7757 if (Status != other.
Status)
return false;
7758 if (StatusStr != other.
StatusStr)
return false;
7759 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(ObjectiveValue, other.
ObjectiveValue))
return false;
7760 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(BestObjectiveBound, other.
BestObjectiveBound))
return false;
7761 if(!variableValue_.Equals(other.variableValue_))
return false;
7762 if (!
object.Equals(SolveInfo, other.
SolveInfo))
return false;
7764 if(!dualValue_.Equals(other.dualValue_))
return false;
7765 if(!reducedCost_.Equals(other.reducedCost_))
return false;
7766 if(!additionalSolutions_.Equals(other.additionalSolutions_))
return false;
7767 return Equals(_unknownFields, other._unknownFields);
7770 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7771 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7772 public override int GetHashCode() {
7774 if (HasStatus) hash ^= Status.GetHashCode();
7775 if (HasStatusStr) hash ^= StatusStr.GetHashCode();
7776 if (HasObjectiveValue) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(ObjectiveValue);
7777 if (HasBestObjectiveBound) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(BestObjectiveBound);
7778 hash ^= variableValue_.GetHashCode();
7779 if (solveInfo_ !=
null) hash ^= SolveInfo.GetHashCode();
7780 if (HasSolverSpecificInfo) hash ^= SolverSpecificInfo.GetHashCode();
7781 hash ^= dualValue_.GetHashCode();
7782 hash ^= reducedCost_.GetHashCode();
7783 hash ^= additionalSolutions_.GetHashCode();
7784 if (_unknownFields !=
null) {
7785 hash ^= _unknownFields.GetHashCode();
7790 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7791 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7792 public override string ToString() {
7793 return pb::JsonFormatter.ToDiagnosticString(
this);
7796 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7797 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7798 public void WriteTo(pb::CodedOutputStream output) {
7799 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
7800 output.WriteRawMessage(
this);
7803 output.WriteRawTag(8);
7804 output.WriteEnum((
int) Status);
7806 if (HasObjectiveValue) {
7807 output.WriteRawTag(17);
7808 output.WriteDouble(ObjectiveValue);
7810 variableValue_.WriteTo(output, _repeated_variableValue_codec);
7811 dualValue_.WriteTo(output, _repeated_dualValue_codec);
7812 if (HasBestObjectiveBound) {
7813 output.WriteRawTag(41);
7814 output.WriteDouble(BestObjectiveBound);
7816 reducedCost_.WriteTo(output, _repeated_reducedCost_codec);
7818 output.WriteRawTag(58);
7819 output.WriteString(StatusStr);
7821 additionalSolutions_.WriteTo(output, _repeated_additionalSolutions_codec);
7822 if (solveInfo_ !=
null) {
7823 output.WriteRawTag(82);
7824 output.WriteMessage(SolveInfo);
7826 if (HasSolverSpecificInfo) {
7827 output.WriteRawTag(90);
7828 output.WriteBytes(SolverSpecificInfo);
7830 if (_unknownFields !=
null) {
7831 _unknownFields.WriteTo(output);
7836 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
7837 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7838 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7839 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
7841 output.WriteRawTag(8);
7842 output.WriteEnum((
int) Status);
7844 if (HasObjectiveValue) {
7845 output.WriteRawTag(17);
7846 output.WriteDouble(ObjectiveValue);
7848 variableValue_.WriteTo(ref output, _repeated_variableValue_codec);
7849 dualValue_.WriteTo(ref output, _repeated_dualValue_codec);
7850 if (HasBestObjectiveBound) {
7851 output.WriteRawTag(41);
7852 output.WriteDouble(BestObjectiveBound);
7854 reducedCost_.WriteTo(ref output, _repeated_reducedCost_codec);
7856 output.WriteRawTag(58);
7857 output.WriteString(StatusStr);
7859 additionalSolutions_.WriteTo(ref output, _repeated_additionalSolutions_codec);
7860 if (solveInfo_ !=
null) {
7861 output.WriteRawTag(82);
7862 output.WriteMessage(SolveInfo);
7864 if (HasSolverSpecificInfo) {
7865 output.WriteRawTag(90);
7866 output.WriteBytes(SolverSpecificInfo);
7868 if (_unknownFields !=
null) {
7869 _unknownFields.WriteTo(ref output);
7874 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7875 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7876 public int CalculateSize() {
7879 size += 1 + pb::CodedOutputStream.ComputeEnumSize((
int) Status);
7882 size += 1 + pb::CodedOutputStream.ComputeStringSize(StatusStr);
7884 if (HasObjectiveValue) {
7887 if (HasBestObjectiveBound) {
7890 size += variableValue_.CalculateSize(_repeated_variableValue_codec);
7891 if (solveInfo_ !=
null) {
7892 size += 1 + pb::CodedOutputStream.ComputeMessageSize(SolveInfo);
7894 if (HasSolverSpecificInfo) {
7895 size += 1 + pb::CodedOutputStream.ComputeBytesSize(SolverSpecificInfo);
7897 size += dualValue_.CalculateSize(_repeated_dualValue_codec);
7898 size += reducedCost_.CalculateSize(_repeated_reducedCost_codec);
7899 size += additionalSolutions_.CalculateSize(_repeated_additionalSolutions_codec);
7900 if (_unknownFields !=
null) {
7901 size += _unknownFields.CalculateSize();
7906 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7907 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7908 public void MergeFrom(MPSolutionResponse other) {
7909 if (other ==
null) {
7912 if (other.HasStatus) {
7913 Status = other.Status;
7915 if (other.HasStatusStr) {
7916 StatusStr = other.StatusStr;
7918 if (other.HasObjectiveValue) {
7919 ObjectiveValue = other.ObjectiveValue;
7921 if (other.HasBestObjectiveBound) {
7922 BestObjectiveBound = other.BestObjectiveBound;
7924 variableValue_.Add(other.variableValue_);
7925 if (other.solveInfo_ !=
null) {
7926 if (solveInfo_ ==
null) {
7927 SolveInfo =
new global::OperationsResearch.MPSolveInfo();
7929 SolveInfo.MergeFrom(other.SolveInfo);
7931 if (other.HasSolverSpecificInfo) {
7932 SolverSpecificInfo = other.SolverSpecificInfo;
7934 dualValue_.Add(other.dualValue_);
7935 reducedCost_.Add(other.reducedCost_);
7936 additionalSolutions_.Add(other.additionalSolutions_);
7937 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
7940 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7941 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7942 public void MergeFrom(pb::CodedInputStream input) {
7943 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
7944 input.ReadRawMessage(
this);
7947 while ((tag = input.ReadTag()) != 0) {
7950 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
7953 Status = (global::OperationsResearch.MPSolverResponseStatus) input.ReadEnum();
7957 ObjectiveValue = input.ReadDouble();
7962 variableValue_.AddEntriesFrom(input, _repeated_variableValue_codec);
7967 dualValue_.AddEntriesFrom(input, _repeated_dualValue_codec);
7971 BestObjectiveBound = input.ReadDouble();
7976 reducedCost_.AddEntriesFrom(input, _repeated_reducedCost_codec);
7980 StatusStr = input.ReadString();
7984 additionalSolutions_.AddEntriesFrom(input, _repeated_additionalSolutions_codec);
7988 if (solveInfo_ ==
null) {
7989 SolveInfo =
new global::OperationsResearch.MPSolveInfo();
7991 input.ReadMessage(SolveInfo);
7995 SolverSpecificInfo = input.ReadBytes();
8003 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
8004 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8005 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
8006 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
8008 while ((tag = input.ReadTag()) != 0) {
8011 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
8014 Status = (global::OperationsResearch.MPSolverResponseStatus) input.ReadEnum();
8018 ObjectiveValue = input.ReadDouble();
8023 variableValue_.AddEntriesFrom(ref input, _repeated_variableValue_codec);
8028 dualValue_.AddEntriesFrom(ref input, _repeated_dualValue_codec);
8032 BestObjectiveBound = input.ReadDouble();
8037 reducedCost_.AddEntriesFrom(ref input, _repeated_reducedCost_codec);
8041 StatusStr = input.ReadString();
8045 additionalSolutions_.AddEntriesFrom(ref input, _repeated_additionalSolutions_codec);
8049 if (solveInfo_ ==
null) {
8050 SolveInfo =
new global::OperationsResearch.MPSolveInfo();
8052 input.ReadMessage(SolveInfo);
8056 SolverSpecificInfo = input.ReadBytes();
8070#endregion Designer generated code
global::Google.Protobuf.Reflection pbr
global::System.Collections.Generic scg
global::Google.Protobuf.Collections pbc
global::Google.Protobuf pb
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.
int VarIndex
Variable indices are relative to the "variable" field in MPModelProto. resultant_var = abs(var)
Sets a variable's value equal to a function on a set of variables.
Sets a variable's value equal to a function on a set of variables and, optionally,...
A linear constraint is always of the form: lower_bound <= sum of linear term elements <= upper_bound,...
static pb::MessageParser< MPConstraintProto > Parser
double LowerBound
lower_bound must be <= upper_bound.
MPConstraintProto Clone()
bool IsLazy
[Advanced usage: do not use this if you don't know what you're doing.] A lazy constraint is handled d...
string Name
The name of the constraint.
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....
GeneralConstraintOneofCase
Enum of possible cases for the "general_constraint" oneof.
static pb::MessageParser< MPGeneralConstraintProto > Parser
string Name
The name of the constraint.
global::OperationsResearch.MPSosConstraint SosConstraint
global::OperationsResearch.MPIndicatorConstraint IndicatorConstraint
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 ...
global::OperationsResearch.MPConstraintProto Constraint
The constraint activated by the indicator variable.
int VarValue
Value the above variable should take. Must be 0 or 1.
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...
MPModelDeltaProto Clone()
static pbr::MessageDescriptor Descriptor
string BaselineModelFilePath
Container for nested types declared in the Annotation message type.
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...
int TargetIndex
If both target_index and target_name are set, they must point to the same entity.
string TargetName
Alternate to index. Assumes uniqueness.
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
Container for nested types declared in the MPModelProto message type.
MPModelProto contains all the information for a Linear Programming model.
string Name
Name of the model.
double ObjectiveOffset
Offset for the objective function. Must be finite.
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.
bool Maximize
True if the problem is a maximization problem. Minimize by default.
Container for nested types declared in the MPModelRequest message type.
SolverType
The solver type, which will select a specific implementation, and will also impact the interpretation...
int PopulateAdditionalSolutionsUpTo
Controls the recovery of additional solutions, if any, saved by the underlying solver back in the MPS...
static pbr::MessageDescriptor Descriptor
global::OperationsResearch.MPModelProto Model
The model to be optimized by the server.
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...
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...
bool IgnoreSolverSpecificParametersFailure
Quadratic constraints of the form lb <= sum a_i x_i + sum b_ij x_i x_j <= ub, where a,...
double LowerBound
lower_bound must be <= upper_bound.
Quadratic part of a model's objective. Added with other objectives (such as linear),...
MPQuadraticObjective Clone()
double BestObjectiveBound
This field is only filled for MIP problems. For a minimization problem, this is a lower bound on the ...
global::OperationsResearch.MPSolveInfo SolveInfo
Contains extra information about the solve, populated if the underlying solver (and its interface) su...
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...
pb::ByteString SolverSpecificInfo
Opaque solver-specific information. For the PDLP solver, this is a serialized pdlp::SolveLog proto.
global::OperationsResearch.MPSolverResponseStatus Status
Result of the optimization.
bool HasObjectiveValue
Gets whether the "objective_value" 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...
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 Equals(MPSolverCommonParameters other)
global::OperationsResearch.MPSolverCommonParameters.Types.LPAlgorithmValues LpAlgorithm
Algorithm to solve linear programs. Ask or-core-team@ if you want to know what this does exactly.
global::Google.OrTools.Util.OptionalBoolean Presolve
Gurobi and SCIP enable presolve by default. Ask or-core-team@ for other solvers.
Container for nested types declared in the MPSosConstraint message type.
Special Ordered Set (SOS) constraints of type 1 or 2. See https://en.wikipedia.org/wiki/Special_order...
global::OperationsResearch.MPSosConstraint.Types.Type Type
A variable is always constrained in the form: lower_bound <= x <= upper_bound where lower_bound and u...
bool IsInteger
True if the variable is constrained to be integer. Ignored if MPModelProto::solver_type is LINEAR_PRO...
double LowerBound
lower_bound must be <= upper_bound.
static pb::MessageParser< MPVariableProto > Parser
double ObjectiveCoefficient
The coefficient of the variable in the objective. Must be finite.
string Name
The name of the variable.
To support 'unspecified' double value in proto3, the simplest is to wrap any double value in a nested...
This message encodes a partial (or full) assignment of the variables of a MPModelProto problem....
PartialVariableAssignment Clone()
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...