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;
15 public static partial class LinearSolverReflection {
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 {
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)]
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)]
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)]
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)]
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)]
415 private readonly
static double ObjectiveCoefficientDefaultValue = 0D;
417 private double objectiveCoefficient_;
421 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
422 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
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)]
445 private readonly
static bool IsIntegerDefaultValue =
false;
447 private bool isInteger_;
452 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
453 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
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)]
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)]
505 private readonly
static int BranchingPriorityDefaultValue = 0;
507 private int branchingPriority_;
508 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
509 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
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)]
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);
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);
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) {
709 if ((tag & 7) == 4) {
715 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
734 Name = input.ReadString();
746 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
747 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
748 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
749 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
751 while ((tag = input.ReadTag()) != 0) {
752 if ((tag & 7) == 4) {
758 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
761 LowerBound = input.ReadDouble();
765 UpperBound = input.ReadDouble();
769 ObjectiveCoefficient = input.ReadDouble();
773 IsInteger = input.ReadBool();
777 Name = input.ReadString();
781 BranchingPriority = input.ReadInt32();
804 [global::System.Diagnostics.DebuggerDisplayAttribute(
"{ToString(),nq}")]
805 public sealed partial
class MPConstraintProto : pb::IMessage<MPConstraintProto>
806 #
if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
810 private static readonly pb::MessageParser<MPConstraintProto> _parser =
new pb::MessageParser<MPConstraintProto>(() =>
new MPConstraintProto());
811 private pb::UnknownFieldSet _unknownFields;
812 private int _hasBits0;
813 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
814 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
815 public static pb::MessageParser<MPConstraintProto>
Parser {
get {
return _parser; } }
817 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
818 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
819 public static pbr::MessageDescriptor
Descriptor {
820 get {
return global::OperationsResearch.LinearSolverReflection.Descriptor.MessageTypes[1]; }
823 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
824 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
825 pbr::MessageDescriptor pb::IMessage.Descriptor {
829 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
830 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
835 partial
void OnConstruction();
837 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
838 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
840 _hasBits0 = other._hasBits0;
841 varIndex_ = other.varIndex_.Clone();
842 coefficient_ = other.coefficient_.Clone();
843 lowerBound_ = other.lowerBound_;
844 upperBound_ = other.upperBound_;
846 isLazy_ = other.isLazy_;
847 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
850 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
851 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
858 private static readonly pb::FieldCodec<int> _repeated_varIndex_codec
859 = pb::FieldCodec.ForInt32(50);
860 private readonly pbc::RepeatedField<int> varIndex_ =
new pbc::RepeatedField<int>();
867 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
868 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
869 public pbc::RepeatedField<int>
VarIndex {
870 get {
return varIndex_; }
875 private static readonly pb::FieldCodec<double> _repeated_coefficient_codec
876 = pb::FieldCodec.ForDouble(58);
877 private readonly pbc::RepeatedField<double> coefficient_ =
new pbc::RepeatedField<double>();
881 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
882 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
884 get {
return coefficient_; }
889 private readonly
static double LowerBoundDefaultValue =
double.NegativeInfinity;
891 private double lowerBound_;
895 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
896 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
898 get {
if ((_hasBits0 & 1) != 0) {
return lowerBound_; }
else {
return LowerBoundDefaultValue; } }
905 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
906 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
907 public bool HasLowerBound {
908 get {
return (_hasBits0 & 1) != 0; }
911 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
912 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
919 private readonly
static double UpperBoundDefaultValue =
double.PositiveInfinity;
921 private double upperBound_;
922 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
923 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
925 get {
if ((_hasBits0 & 2) != 0) {
return upperBound_; }
else {
return UpperBoundDefaultValue; } }
932 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
933 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
934 public bool HasUpperBound {
935 get {
return (_hasBits0 & 2) != 0; }
938 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
939 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
946 private readonly
static string NameDefaultValue =
"";
948 private string name_;
952 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
953 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
955 get {
return name_ ?? NameDefaultValue; }
957 name_ = pb::ProtoPreconditions.CheckNotNull(value,
"value");
961 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
962 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
963 public bool HasName {
964 get {
return name_ !=
null; }
967 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
968 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
975 private readonly
static bool IsLazyDefaultValue =
false;
977 private bool isLazy_;
984 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
985 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
987 get {
if ((_hasBits0 & 4) != 0) {
return isLazy_; }
else {
return IsLazyDefaultValue; } }
994 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
995 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
996 public bool HasIsLazy {
997 get {
return (_hasBits0 & 4) != 0; }
1000 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1001 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1006 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1007 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1008 public override bool Equals(
object other) {
1012 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1013 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1015 if (ReferenceEquals(other,
null)) {
1018 if (ReferenceEquals(other,
this)) {
1021 if(!varIndex_.Equals(other.varIndex_))
return false;
1022 if(!coefficient_.Equals(other.coefficient_))
return false;
1023 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(LowerBound, other.
LowerBound))
return false;
1024 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(UpperBound, other.
UpperBound))
return false;
1025 if (Name != other.
Name)
return false;
1026 if (IsLazy != other.
IsLazy)
return false;
1027 return Equals(_unknownFields, other._unknownFields);
1030 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1031 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1032 public override int GetHashCode() {
1034 hash ^= varIndex_.GetHashCode();
1035 hash ^= coefficient_.GetHashCode();
1036 if (
HasLowerBound) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(
LowerBound);
1037 if (
HasUpperBound) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(
UpperBound);
1040 if (_unknownFields !=
null) {
1041 hash ^= _unknownFields.GetHashCode();
1046 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1047 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1048 public override string ToString() {
1049 return pb::JsonFormatter.ToDiagnosticString(
this);
1052 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1053 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1054 public void WriteTo(pb::CodedOutputStream output) {
1055 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1056 output.WriteRawMessage(
this);
1059 output.WriteRawTag(17);
1062 if (HasUpperBound) {
1063 output.WriteRawTag(25);
1064 output.WriteDouble(UpperBound);
1067 output.WriteRawTag(34);
1068 output.WriteString(Name);
1071 output.WriteRawTag(40);
1072 output.WriteBool(IsLazy);
1074 varIndex_.WriteTo(output, _repeated_varIndex_codec);
1075 coefficient_.WriteTo(output, _repeated_coefficient_codec);
1076 if (_unknownFields !=
null) {
1077 _unknownFields.WriteTo(output);
1082 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1083 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1084 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1085 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
1086 if (HasLowerBound) {
1087 output.WriteRawTag(17);
1088 output.WriteDouble(LowerBound);
1090 if (HasUpperBound) {
1091 output.WriteRawTag(25);
1092 output.WriteDouble(UpperBound);
1095 output.WriteRawTag(34);
1096 output.WriteString(Name);
1099 output.WriteRawTag(40);
1100 output.WriteBool(IsLazy);
1102 varIndex_.WriteTo(ref output, _repeated_varIndex_codec);
1103 coefficient_.WriteTo(ref output, _repeated_coefficient_codec);
1104 if (_unknownFields !=
null) {
1105 _unknownFields.WriteTo(ref output);
1110 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1111 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1112 public int CalculateSize() {
1114 size += varIndex_.CalculateSize(_repeated_varIndex_codec);
1115 size += coefficient_.CalculateSize(_repeated_coefficient_codec);
1119 if (HasUpperBound) {
1123 size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
1128 if (_unknownFields !=
null) {
1129 size += _unknownFields.CalculateSize();
1134 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1135 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1136 public void MergeFrom(MPConstraintProto other) {
1137 if (other ==
null) {
1140 varIndex_.Add(other.varIndex_);
1141 coefficient_.Add(other.coefficient_);
1142 if (other.HasLowerBound) {
1143 LowerBound = other.LowerBound;
1145 if (other.HasUpperBound) {
1146 UpperBound = other.UpperBound;
1148 if (other.HasName) {
1151 if (other.HasIsLazy) {
1152 IsLazy = other.IsLazy;
1154 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
1157 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1158 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1159 public void MergeFrom(pb::CodedInputStream input) {
1160 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1161 input.ReadRawMessage(
this);
1164 while ((tag = input.ReadTag()) != 0) {
1165 if ((tag & 7) == 4) {
1171 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
1182 Name = input.ReadString();
1186 IsLazy = input.ReadBool();
1191 varIndex_.AddEntriesFrom(input, _repeated_varIndex_codec);
1196 coefficient_.AddEntriesFrom(input, _repeated_coefficient_codec);
1204 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1205 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1206 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1207 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
1209 while ((tag = input.ReadTag()) != 0) {
1210 if ((tag & 7) == 4) {
1216 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
1219 LowerBound = input.ReadDouble();
1223 UpperBound = input.ReadDouble();
1227 Name = input.ReadString();
1231 IsLazy = input.ReadBool();
1236 varIndex_.AddEntriesFrom(ref input, _repeated_varIndex_codec);
1241 coefficient_.AddEntriesFrom(ref input, _repeated_coefficient_codec);
1254 [global::System.Diagnostics.DebuggerDisplayAttribute(
"{ToString(),nq}")]
1255 public sealed partial class MPGeneralConstraintProto : pb::IMessage<MPGeneralConstraintProto>
1256 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1257 , pb::IBufferMessage
1260 private static readonly pb::MessageParser<MPGeneralConstraintProto> _parser =
new pb::MessageParser<MPGeneralConstraintProto>(() =>
new MPGeneralConstraintProto());
1261 private pb::UnknownFieldSet _unknownFields;
1262 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1263 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1264 public static pb::MessageParser<MPGeneralConstraintProto>
Parser {
get {
return _parser; } }
1266 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1267 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1268 public static pbr::MessageDescriptor
Descriptor {
1269 get {
return global::OperationsResearch.LinearSolverReflection.Descriptor.MessageTypes[2]; }
1272 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1273 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1274 pbr::MessageDescriptor pb::IMessage.Descriptor {
1278 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1279 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1284 partial
void OnConstruction();
1286 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1287 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1289 name_ = other.name_;
1291 case GeneralConstraintOneofCase.IndicatorConstraint:
1292 IndicatorConstraint = other.IndicatorConstraint.Clone();
1294 case GeneralConstraintOneofCase.SosConstraint:
1295 SosConstraint = other.SosConstraint.Clone();
1297 case GeneralConstraintOneofCase.QuadraticConstraint:
1298 QuadraticConstraint = other.QuadraticConstraint.Clone();
1300 case GeneralConstraintOneofCase.AbsConstraint:
1301 AbsConstraint = other.AbsConstraint.Clone();
1303 case GeneralConstraintOneofCase.AndConstraint:
1304 AndConstraint = other.AndConstraint.Clone();
1306 case GeneralConstraintOneofCase.OrConstraint:
1307 OrConstraint = other.OrConstraint.Clone();
1309 case GeneralConstraintOneofCase.MinConstraint:
1310 MinConstraint = other.MinConstraint.Clone();
1312 case GeneralConstraintOneofCase.MaxConstraint:
1313 MaxConstraint = other.MaxConstraint.Clone();
1317 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
1320 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1321 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1328 private readonly
static string NameDefaultValue =
"";
1330 private string name_;
1334 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1335 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1336 public string Name {
1337 get {
return name_ ?? NameDefaultValue; }
1339 name_ = pb::ProtoPreconditions.CheckNotNull(value,
"value");
1343 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1344 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1345 public bool HasName {
1346 get {
return name_ !=
null; }
1349 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1350 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1357 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1358 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1362 generalConstraint_ = value;
1368 public const int SosConstraintFieldNumber = 3;
1369 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1370 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1374 generalConstraint_ = value;
1380 public const int QuadraticConstraintFieldNumber = 4;
1381 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1382 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1386 generalConstraint_ = value;
1392 public const int AbsConstraintFieldNumber = 5;
1393 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1394 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1398 generalConstraint_ = value;
1404 public const int AndConstraintFieldNumber = 6;
1409 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1410 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1414 generalConstraint_ = value;
1420 public const int OrConstraintFieldNumber = 7;
1425 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1426 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1430 generalConstraint_ = value;
1436 public const int MinConstraintFieldNumber = 8;
1440 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1441 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1445 generalConstraint_ = value;
1451 public const int MaxConstraintFieldNumber = 9;
1455 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1456 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1460 generalConstraint_ = value;
1465 private object generalConstraint_;
1467 public enum GeneralConstraintOneofCase {
1469 IndicatorConstraint = 2,
1479 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1480 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1482 get {
return generalConstraintCase_; }
1485 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1486 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1489 generalConstraint_ =
null;
1492 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1493 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1494 public override bool Equals(
object other) {
1498 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1499 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1501 if (ReferenceEquals(other,
null)) {
1504 if (ReferenceEquals(other,
this)) {
1507 if (Name != other.
Name)
return false;
1509 if (!
object.Equals(SosConstraint, other.
SosConstraint))
return false;
1511 if (!
object.Equals(AbsConstraint, other.
AbsConstraint))
return false;
1512 if (!
object.Equals(AndConstraint, other.
AndConstraint))
return false;
1513 if (!
object.Equals(OrConstraint, other.
OrConstraint))
return false;
1514 if (!
object.Equals(MinConstraint, other.
MinConstraint))
return false;
1515 if (!
object.Equals(MaxConstraint, other.
MaxConstraint))
return false;
1517 return Equals(_unknownFields, other._unknownFields);
1520 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1521 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1522 public override int GetHashCode() {
1524 if (HasName) hash ^= Name.GetHashCode();
1533 hash ^= (int) generalConstraintCase_;
1534 if (_unknownFields !=
null) {
1535 hash ^= _unknownFields.GetHashCode();
1540 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1541 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1542 public override string ToString() {
1543 return pb::JsonFormatter.ToDiagnosticString(
this);
1546 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1547 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1548 public void WriteTo(pb::CodedOutputStream output) {
1549 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1550 output.WriteRawMessage(
this);
1553 output.WriteRawTag(10);
1554 output.WriteString(
Name);
1556 if (generalConstraintCase_ == GeneralConstraintOneofCase.IndicatorConstraint) {
1557 output.WriteRawTag(18);
1558 output.WriteMessage(IndicatorConstraint);
1560 if (generalConstraintCase_ == GeneralConstraintOneofCase.SosConstraint) {
1561 output.WriteRawTag(26);
1562 output.WriteMessage(SosConstraint);
1564 if (generalConstraintCase_ == GeneralConstraintOneofCase.QuadraticConstraint) {
1565 output.WriteRawTag(34);
1566 output.WriteMessage(QuadraticConstraint);
1568 if (generalConstraintCase_ == GeneralConstraintOneofCase.AbsConstraint) {
1569 output.WriteRawTag(42);
1570 output.WriteMessage(AbsConstraint);
1572 if (generalConstraintCase_ == GeneralConstraintOneofCase.AndConstraint) {
1573 output.WriteRawTag(50);
1574 output.WriteMessage(AndConstraint);
1576 if (generalConstraintCase_ == GeneralConstraintOneofCase.OrConstraint) {
1577 output.WriteRawTag(58);
1578 output.WriteMessage(OrConstraint);
1580 if (generalConstraintCase_ == GeneralConstraintOneofCase.MinConstraint) {
1581 output.WriteRawTag(66);
1582 output.WriteMessage(MinConstraint);
1584 if (generalConstraintCase_ == GeneralConstraintOneofCase.MaxConstraint) {
1585 output.WriteRawTag(74);
1586 output.WriteMessage(MaxConstraint);
1588 if (_unknownFields !=
null) {
1589 _unknownFields.WriteTo(output);
1594 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1595 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1596 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1597 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
1599 output.WriteRawTag(10);
1600 output.WriteString(Name);
1602 if (generalConstraintCase_ == GeneralConstraintOneofCase.IndicatorConstraint) {
1603 output.WriteRawTag(18);
1604 output.WriteMessage(IndicatorConstraint);
1606 if (generalConstraintCase_ == GeneralConstraintOneofCase.SosConstraint) {
1607 output.WriteRawTag(26);
1608 output.WriteMessage(SosConstraint);
1610 if (generalConstraintCase_ == GeneralConstraintOneofCase.QuadraticConstraint) {
1611 output.WriteRawTag(34);
1612 output.WriteMessage(QuadraticConstraint);
1614 if (generalConstraintCase_ == GeneralConstraintOneofCase.AbsConstraint) {
1615 output.WriteRawTag(42);
1616 output.WriteMessage(AbsConstraint);
1618 if (generalConstraintCase_ == GeneralConstraintOneofCase.AndConstraint) {
1619 output.WriteRawTag(50);
1620 output.WriteMessage(AndConstraint);
1622 if (generalConstraintCase_ == GeneralConstraintOneofCase.OrConstraint) {
1623 output.WriteRawTag(58);
1624 output.WriteMessage(OrConstraint);
1626 if (generalConstraintCase_ == GeneralConstraintOneofCase.MinConstraint) {
1627 output.WriteRawTag(66);
1628 output.WriteMessage(MinConstraint);
1630 if (generalConstraintCase_ == GeneralConstraintOneofCase.MaxConstraint) {
1631 output.WriteRawTag(74);
1632 output.WriteMessage(MaxConstraint);
1634 if (_unknownFields !=
null) {
1635 _unknownFields.WriteTo(ref output);
1640 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1641 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1642 public int CalculateSize() {
1645 size += 1 + pb::CodedOutputStream.ComputeStringSize(
Name);
1647 if (generalConstraintCase_ == GeneralConstraintOneofCase.IndicatorConstraint) {
1648 size += 1 + pb::CodedOutputStream.ComputeMessageSize(IndicatorConstraint);
1650 if (generalConstraintCase_ == GeneralConstraintOneofCase.SosConstraint) {
1651 size += 1 + pb::CodedOutputStream.ComputeMessageSize(SosConstraint);
1653 if (generalConstraintCase_ == GeneralConstraintOneofCase.QuadraticConstraint) {
1654 size += 1 + pb::CodedOutputStream.ComputeMessageSize(QuadraticConstraint);
1656 if (generalConstraintCase_ == GeneralConstraintOneofCase.AbsConstraint) {
1657 size += 1 + pb::CodedOutputStream.ComputeMessageSize(AbsConstraint);
1659 if (generalConstraintCase_ == GeneralConstraintOneofCase.AndConstraint) {
1660 size += 1 + pb::CodedOutputStream.ComputeMessageSize(AndConstraint);
1662 if (generalConstraintCase_ == GeneralConstraintOneofCase.OrConstraint) {
1663 size += 1 + pb::CodedOutputStream.ComputeMessageSize(OrConstraint);
1665 if (generalConstraintCase_ == GeneralConstraintOneofCase.MinConstraint) {
1666 size += 1 + pb::CodedOutputStream.ComputeMessageSize(MinConstraint);
1668 if (generalConstraintCase_ == GeneralConstraintOneofCase.MaxConstraint) {
1669 size += 1 + pb::CodedOutputStream.ComputeMessageSize(MaxConstraint);
1671 if (_unknownFields !=
null) {
1672 size += _unknownFields.CalculateSize();
1677 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1678 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1679 public void MergeFrom(MPGeneralConstraintProto other) {
1680 if (other ==
null) {
1683 if (other.HasName) {
1686 switch (other.GeneralConstraintCase) {
1687 case GeneralConstraintOneofCase.IndicatorConstraint:
1688 if (IndicatorConstraint ==
null) {
1689 IndicatorConstraint =
new global::OperationsResearch.MPIndicatorConstraint();
1691 IndicatorConstraint.MergeFrom(other.IndicatorConstraint);
1693 case GeneralConstraintOneofCase.SosConstraint:
1694 if (SosConstraint ==
null) {
1695 SosConstraint =
new global::OperationsResearch.MPSosConstraint();
1697 SosConstraint.MergeFrom(other.SosConstraint);
1699 case GeneralConstraintOneofCase.QuadraticConstraint:
1700 if (QuadraticConstraint ==
null) {
1701 QuadraticConstraint =
new global::OperationsResearch.MPQuadraticConstraint();
1703 QuadraticConstraint.MergeFrom(other.QuadraticConstraint);
1705 case GeneralConstraintOneofCase.AbsConstraint:
1706 if (AbsConstraint ==
null) {
1707 AbsConstraint =
new global::OperationsResearch.MPAbsConstraint();
1709 AbsConstraint.MergeFrom(other.AbsConstraint);
1711 case GeneralConstraintOneofCase.AndConstraint:
1712 if (AndConstraint ==
null) {
1713 AndConstraint =
new global::OperationsResearch.MPArrayConstraint();
1715 AndConstraint.MergeFrom(other.AndConstraint);
1717 case GeneralConstraintOneofCase.OrConstraint:
1718 if (OrConstraint ==
null) {
1719 OrConstraint =
new global::OperationsResearch.MPArrayConstraint();
1721 OrConstraint.MergeFrom(other.OrConstraint);
1723 case GeneralConstraintOneofCase.MinConstraint:
1724 if (MinConstraint ==
null) {
1725 MinConstraint =
new global::OperationsResearch.MPArrayWithConstantConstraint();
1727 MinConstraint.MergeFrom(other.MinConstraint);
1729 case GeneralConstraintOneofCase.MaxConstraint:
1730 if (MaxConstraint ==
null) {
1731 MaxConstraint =
new global::OperationsResearch.MPArrayWithConstantConstraint();
1733 MaxConstraint.MergeFrom(other.MaxConstraint);
1737 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
1740 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1741 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1742 public void MergeFrom(pb::CodedInputStream input) {
1743 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1744 input.ReadRawMessage(
this);
1747 while ((tag = input.ReadTag()) != 0) {
1748 if ((tag & 7) == 4) {
1754 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
1757 Name = input.ReadString();
1761 global::OperationsResearch.MPIndicatorConstraint subBuilder =
new global::OperationsResearch.MPIndicatorConstraint();
1765 input.ReadMessage(subBuilder);
1770 global::OperationsResearch.MPSosConstraint subBuilder =
new global::OperationsResearch.MPSosConstraint();
1774 input.ReadMessage(subBuilder);
1779 global::OperationsResearch.MPQuadraticConstraint subBuilder =
new global::OperationsResearch.MPQuadraticConstraint();
1783 input.ReadMessage(subBuilder);
1788 global::OperationsResearch.MPAbsConstraint subBuilder =
new global::OperationsResearch.MPAbsConstraint();
1792 input.ReadMessage(subBuilder);
1797 global::OperationsResearch.MPArrayConstraint subBuilder =
new global::OperationsResearch.MPArrayConstraint();
1801 input.ReadMessage(subBuilder);
1806 global::OperationsResearch.MPArrayConstraint subBuilder =
new global::OperationsResearch.MPArrayConstraint();
1810 input.ReadMessage(subBuilder);
1815 global::OperationsResearch.MPArrayWithConstantConstraint subBuilder =
new global::OperationsResearch.MPArrayWithConstantConstraint();
1819 input.ReadMessage(subBuilder);
1824 global::OperationsResearch.MPArrayWithConstantConstraint subBuilder =
new global::OperationsResearch.MPArrayWithConstantConstraint();
1828 input.ReadMessage(subBuilder);
1837 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1838 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1839 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1840 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
1842 while ((tag = input.ReadTag()) != 0) {
1843 if ((tag & 7) == 4) {
1849 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
1852 Name = input.ReadString();
1856 global::OperationsResearch.MPIndicatorConstraint subBuilder =
new global::OperationsResearch.MPIndicatorConstraint();
1857 if (generalConstraintCase_ == GeneralConstraintOneofCase.IndicatorConstraint) {
1858 subBuilder.MergeFrom(IndicatorConstraint);
1860 input.ReadMessage(subBuilder);
1861 IndicatorConstraint = subBuilder;
1865 global::OperationsResearch.MPSosConstraint subBuilder =
new global::OperationsResearch.MPSosConstraint();
1866 if (generalConstraintCase_ == GeneralConstraintOneofCase.SosConstraint) {
1867 subBuilder.MergeFrom(SosConstraint);
1869 input.ReadMessage(subBuilder);
1870 SosConstraint = subBuilder;
1874 global::OperationsResearch.MPQuadraticConstraint subBuilder =
new global::OperationsResearch.MPQuadraticConstraint();
1875 if (generalConstraintCase_ == GeneralConstraintOneofCase.QuadraticConstraint) {
1876 subBuilder.MergeFrom(QuadraticConstraint);
1878 input.ReadMessage(subBuilder);
1879 QuadraticConstraint = subBuilder;
1883 global::OperationsResearch.MPAbsConstraint subBuilder =
new global::OperationsResearch.MPAbsConstraint();
1884 if (generalConstraintCase_ == GeneralConstraintOneofCase.AbsConstraint) {
1885 subBuilder.MergeFrom(AbsConstraint);
1887 input.ReadMessage(subBuilder);
1888 AbsConstraint = subBuilder;
1892 global::OperationsResearch.MPArrayConstraint subBuilder =
new global::OperationsResearch.MPArrayConstraint();
1893 if (generalConstraintCase_ == GeneralConstraintOneofCase.AndConstraint) {
1894 subBuilder.MergeFrom(AndConstraint);
1896 input.ReadMessage(subBuilder);
1897 AndConstraint = subBuilder;
1901 global::OperationsResearch.MPArrayConstraint subBuilder =
new global::OperationsResearch.MPArrayConstraint();
1902 if (generalConstraintCase_ == GeneralConstraintOneofCase.OrConstraint) {
1903 subBuilder.MergeFrom(OrConstraint);
1905 input.ReadMessage(subBuilder);
1906 OrConstraint = subBuilder;
1910 global::OperationsResearch.MPArrayWithConstantConstraint subBuilder =
new global::OperationsResearch.MPArrayWithConstantConstraint();
1911 if (generalConstraintCase_ == GeneralConstraintOneofCase.MinConstraint) {
1912 subBuilder.MergeFrom(MinConstraint);
1914 input.ReadMessage(subBuilder);
1915 MinConstraint = subBuilder;
1919 global::OperationsResearch.MPArrayWithConstantConstraint subBuilder =
new global::OperationsResearch.MPArrayWithConstantConstraint();
1920 if (generalConstraintCase_ == GeneralConstraintOneofCase.MaxConstraint) {
1921 subBuilder.MergeFrom(MaxConstraint);
1923 input.ReadMessage(subBuilder);
1924 MaxConstraint = subBuilder;
1943 [global::System.Diagnostics.DebuggerDisplayAttribute(
"{ToString(),nq}")]
1944 public sealed partial
class MPIndicatorConstraint : pb::IMessage<MPIndicatorConstraint>
1945 #
if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1946 , pb::IBufferMessage
1949 private static readonly pb::MessageParser<MPIndicatorConstraint> _parser =
new pb::MessageParser<MPIndicatorConstraint>(() =>
new MPIndicatorConstraint());
1950 private pb::UnknownFieldSet _unknownFields;
1951 private int _hasBits0;
1952 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1953 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1954 public static pb::MessageParser<MPIndicatorConstraint>
Parser {
get {
return _parser; } }
1956 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1957 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1958 public static pbr::MessageDescriptor
Descriptor {
1959 get {
return global::OperationsResearch.LinearSolverReflection.Descriptor.MessageTypes[3]; }
1962 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1963 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1964 pbr::MessageDescriptor pb::IMessage.Descriptor {
1968 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1969 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1974 partial
void OnConstruction();
1976 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1977 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1979 _hasBits0 = other._hasBits0;
1980 varIndex_ = other.varIndex_;
1981 varValue_ = other.varValue_;
1982 constraint_ = other.constraint_ !=
null ? other.constraint_.
Clone() :
null;
1983 _unknownFields = pb::UnknownFieldSet.
Clone(other._unknownFields);
1986 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1987 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1994 private readonly
static int VarIndexDefaultValue = 0;
1996 private int varIndex_;
2001 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2002 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2004 get {
if ((_hasBits0 & 1) != 0) {
return varIndex_; }
else {
return VarIndexDefaultValue; } }
2011 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2012 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2013 public bool HasVarIndex {
2014 get {
return (_hasBits0 & 1) != 0; }
2017 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2018 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2025 private readonly
static int VarValueDefaultValue = 0;
2027 private int varValue_;
2031 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2032 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2034 get {
if ((_hasBits0 & 2) != 0) {
return varValue_; }
else {
return VarValueDefaultValue; } }
2041 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2042 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2043 public bool HasVarValue {
2044 get {
return (_hasBits0 & 2) != 0; }
2047 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2048 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2055 private global::OperationsResearch.MPConstraintProto constraint_;
2059 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2060 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2062 get {
return constraint_; }
2064 constraint_ = value;
2068 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2069 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2070 public override bool Equals(
object other) {
2071 return Equals(other as MPIndicatorConstraint);
2074 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2075 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2077 if (ReferenceEquals(other,
null)) {
2080 if (ReferenceEquals(other,
this)) {
2083 if (VarIndex != other.
VarIndex)
return false;
2084 if (VarValue != other.
VarValue)
return false;
2085 if (!
object.Equals(Constraint, other.
Constraint))
return false;
2086 return Equals(_unknownFields, other._unknownFields);
2089 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2090 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2091 public override int GetHashCode() {
2093 if (HasVarIndex) hash ^= VarIndex.GetHashCode();
2095 if (constraint_ !=
null) hash ^=
Constraint.GetHashCode();
2096 if (_unknownFields !=
null) {
2097 hash ^= _unknownFields.GetHashCode();
2102 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2103 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2104 public override string ToString() {
2105 return pb::JsonFormatter.ToDiagnosticString(
this);
2108 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2109 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2110 public void WriteTo(pb::CodedOutputStream output) {
2111 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2112 output.WriteRawMessage(
this);
2115 output.WriteRawTag(8);
2119 output.WriteRawTag(16);
2120 output.WriteInt32(VarValue);
2122 if (constraint_ !=
null) {
2123 output.WriteRawTag(26);
2124 output.WriteMessage(Constraint);
2126 if (_unknownFields !=
null) {
2127 _unknownFields.WriteTo(output);
2132 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2133 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2134 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2135 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
2137 output.WriteRawTag(8);
2138 output.WriteInt32(VarIndex);
2141 output.WriteRawTag(16);
2142 output.WriteInt32(VarValue);
2144 if (constraint_ !=
null) {
2145 output.WriteRawTag(26);
2146 output.WriteMessage(Constraint);
2148 if (_unknownFields !=
null) {
2149 _unknownFields.WriteTo(ref output);
2154 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2155 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2156 public int CalculateSize() {
2159 size += 1 + pb::CodedOutputStream.ComputeInt32Size(
VarIndex);
2162 size += 1 + pb::CodedOutputStream.ComputeInt32Size(VarValue);
2164 if (constraint_ !=
null) {
2165 size += 1 + pb::CodedOutputStream.ComputeMessageSize(Constraint);
2167 if (_unknownFields !=
null) {
2168 size += _unknownFields.CalculateSize();
2173 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2174 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2175 public void MergeFrom(MPIndicatorConstraint other) {
2176 if (other ==
null) {
2179 if (other.HasVarIndex) {
2180 VarIndex = other.VarIndex;
2182 if (other.HasVarValue) {
2183 VarValue = other.VarValue;
2185 if (other.constraint_ !=
null) {
2186 if (constraint_ ==
null) {
2187 Constraint =
new global::OperationsResearch.MPConstraintProto();
2189 Constraint.MergeFrom(other.Constraint);
2191 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
2194 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2195 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2196 public void MergeFrom(pb::CodedInputStream input) {
2197 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2198 input.ReadRawMessage(
this);
2201 while ((tag = input.ReadTag()) != 0) {
2202 if ((tag & 7) == 4) {
2208 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
2219 if (constraint_ ==
null) {
2220 Constraint =
new global::OperationsResearch.MPConstraintProto();
2230 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2231 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2232 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2233 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
2235 while ((tag = input.ReadTag()) != 0) {
2236 if ((tag & 7) == 4) {
2242 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
2245 VarIndex = input.ReadInt32();
2249 VarValue = input.ReadInt32();
2253 if (constraint_ ==
null) {
2254 Constraint =
new global::OperationsResearch.MPConstraintProto();
2256 input.ReadMessage(Constraint);
2271 [global::System.Diagnostics.DebuggerDisplayAttribute(
"{ToString(),nq}")]
2272 public sealed partial
class MPSosConstraint : pb::IMessage<MPSosConstraint>
2273 #
if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2274 , pb::IBufferMessage
2277 private static readonly pb::MessageParser<MPSosConstraint> _parser =
new pb::MessageParser<MPSosConstraint>(() =>
new MPSosConstraint());
2278 private pb::UnknownFieldSet _unknownFields;
2279 private int _hasBits0;
2280 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2281 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2282 public static pb::MessageParser<MPSosConstraint>
Parser {
get {
return _parser; } }
2284 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2285 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2286 public static pbr::MessageDescriptor
Descriptor {
2287 get {
return global::OperationsResearch.LinearSolverReflection.Descriptor.MessageTypes[4]; }
2290 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2291 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2292 pbr::MessageDescriptor pb::IMessage.Descriptor {
2296 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2297 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2302 partial
void OnConstruction();
2304 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2305 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2307 _hasBits0 = other._hasBits0;
2308 type_ = other.type_;
2309 varIndex_ = other.varIndex_.Clone();
2310 weight_ = other.weight_.Clone();
2311 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
2314 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2315 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2322 private readonly
static global::OperationsResearch.MPSosConstraint.Types.Type TypeDefaultValue = global::OperationsResearch.MPSosConstraint.Types.Type.Sos1Default;
2324 private global::OperationsResearch.MPSosConstraint.Types.Type type_;
2325 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2326 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2328 get { if ((_hasBits0 & 1) != 0) { return type_; } else { return TypeDefaultValue; } }
2335 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2336 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2337 public bool HasType {
2338 get {
return (_hasBits0 & 1) != 0; }
2341 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2342 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2349 private static readonly pb::FieldCodec<int> _repeated_varIndex_codec
2350 = pb::FieldCodec.ForInt32(16);
2351 private readonly pbc::RepeatedField<int> varIndex_ =
new pbc::RepeatedField<int>();
2356 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2357 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2358 public pbc::RepeatedField<int>
VarIndex {
2359 get {
return varIndex_; }
2364 private static readonly pb::FieldCodec<double> _repeated_weight_codec
2365 = pb::FieldCodec.ForDouble(25);
2366 private readonly pbc::RepeatedField<double> weight_ =
new pbc::RepeatedField<double>();
2379 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2380 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2381 public pbc::RepeatedField<double>
Weight {
2382 get {
return weight_; }
2385 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2386 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2387 public override bool Equals(
object other) {
2391 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2392 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2394 if (ReferenceEquals(other,
null)) {
2397 if (ReferenceEquals(other,
this)) {
2400 if (Type != other.
Type)
return false;
2401 if(!varIndex_.Equals(other.varIndex_))
return false;
2402 if(!weight_.Equals(other.weight_))
return false;
2403 return Equals(_unknownFields, other._unknownFields);
2406 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2407 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2408 public override int GetHashCode() {
2410 if (HasType) hash ^= Type.GetHashCode();
2411 hash ^= varIndex_.GetHashCode();
2412 hash ^= weight_.GetHashCode();
2413 if (_unknownFields !=
null) {
2414 hash ^= _unknownFields.GetHashCode();
2419 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2420 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2421 public override string ToString() {
2422 return pb::JsonFormatter.ToDiagnosticString(
this);
2425 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2426 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2427 public void WriteTo(pb::CodedOutputStream output) {
2428 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2429 output.WriteRawMessage(
this);
2432 output.WriteRawTag(8);
2433 output.WriteEnum((
int)
Type);
2435 varIndex_.WriteTo(output, _repeated_varIndex_codec);
2436 weight_.WriteTo(output, _repeated_weight_codec);
2437 if (_unknownFields !=
null) {
2438 _unknownFields.WriteTo(output);
2443 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2444 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2445 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2446 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
2448 output.WriteRawTag(8);
2449 output.WriteEnum((
int) Type);
2451 varIndex_.WriteTo(ref output, _repeated_varIndex_codec);
2452 weight_.WriteTo(ref output, _repeated_weight_codec);
2453 if (_unknownFields !=
null) {
2454 _unknownFields.WriteTo(ref output);
2459 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2460 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2461 public int CalculateSize() {
2464 size += 1 + pb::CodedOutputStream.ComputeEnumSize((
int)
Type);
2466 size += varIndex_.CalculateSize(_repeated_varIndex_codec);
2467 size += weight_.CalculateSize(_repeated_weight_codec);
2468 if (_unknownFields !=
null) {
2469 size += _unknownFields.CalculateSize();
2474 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2475 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2476 public void MergeFrom(MPSosConstraint other) {
2477 if (other ==
null) {
2480 if (other.HasType) {
2483 varIndex_.Add(other.varIndex_);
2484 weight_.Add(other.weight_);
2485 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
2488 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2489 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2490 public void MergeFrom(pb::CodedInputStream input) {
2491 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2492 input.ReadRawMessage(
this);
2495 while ((tag = input.ReadTag()) != 0) {
2496 if ((tag & 7) == 4) {
2502 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
2505 Type = (global::OperationsResearch.MPSosConstraint.Types.Type) input.ReadEnum();
2510 varIndex_.AddEntriesFrom(input, _repeated_varIndex_codec);
2515 weight_.AddEntriesFrom(input, _repeated_weight_codec);
2523 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2524 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2525 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2526 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
2528 while ((tag = input.ReadTag()) != 0) {
2529 if ((tag & 7) == 4) {
2535 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
2538 Type = (global::OperationsResearch.MPSosConstraint.Types.Type) input.ReadEnum();
2543 varIndex_.AddEntriesFrom(ref input, _repeated_varIndex_codec);
2548 weight_.AddEntriesFrom(ref input, _repeated_weight_codec);
2556 #region Nested types
2558 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2559 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2560 public static partial class Types {
2565 [pbr::OriginalName(
"SOS1_DEFAULT")]
Sos1Default = 0,
2571 [pbr::OriginalName(
"SOS2")]
Sos2 = 1,
2588 [global::System.Diagnostics.DebuggerDisplayAttribute(
"{ToString(),nq}")]
2590 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2591 , pb::IBufferMessage
2594 private static readonly pb::MessageParser<MPQuadraticConstraint> _parser =
new pb::MessageParser<MPQuadraticConstraint>(() =>
new MPQuadraticConstraint());
2595 private pb::UnknownFieldSet _unknownFields;
2596 private int _hasBits0;
2597 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2598 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2599 public static pb::MessageParser<MPQuadraticConstraint>
Parser {
get {
return _parser; } }
2601 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2602 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2603 public static pbr::MessageDescriptor
Descriptor {
2604 get {
return global::OperationsResearch.LinearSolverReflection.Descriptor.MessageTypes[5]; }
2607 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2608 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2609 pbr::MessageDescriptor pb::IMessage.Descriptor {
2613 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2614 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2619 partial
void OnConstruction();
2621 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2622 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2624 _hasBits0 = other._hasBits0;
2625 varIndex_ = other.varIndex_.Clone();
2626 coefficient_ = other.coefficient_.Clone();
2627 qvar1Index_ = other.qvar1Index_.Clone();
2628 qvar2Index_ = other.qvar2Index_.Clone();
2629 qcoefficient_ = other.qcoefficient_.Clone();
2630 lowerBound_ = other.lowerBound_;
2631 upperBound_ = other.upperBound_;
2632 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
2635 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2636 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2643 private static readonly pb::FieldCodec<int> _repeated_varIndex_codec
2644 = pb::FieldCodec.ForInt32(8);
2645 private readonly pbc::RepeatedField<int> varIndex_ =
new pbc::RepeatedField<int>();
2652 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2653 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2654 public pbc::RepeatedField<int>
VarIndex {
2655 get {
return varIndex_; }
2660 private static readonly pb::FieldCodec<double> _repeated_coefficient_codec
2661 = pb::FieldCodec.ForDouble(17);
2662 private readonly pbc::RepeatedField<double> coefficient_ =
new pbc::RepeatedField<double>();
2666 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2667 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2669 get {
return coefficient_; }
2674 private static readonly pb::FieldCodec<int> _repeated_qvar1Index_codec
2675 = pb::FieldCodec.ForInt32(24);
2676 private readonly pbc::RepeatedField<int> qvar1Index_ =
new pbc::RepeatedField<int>();
2686 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2687 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2689 get {
return qvar1Index_; }
2694 private static readonly pb::FieldCodec<int> _repeated_qvar2Index_codec
2695 = pb::FieldCodec.ForInt32(32);
2696 private readonly pbc::RepeatedField<int> qvar2Index_ =
new pbc::RepeatedField<int>();
2697 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2698 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2700 get {
return qvar2Index_; }
2705 private static readonly pb::FieldCodec<double> _repeated_qcoefficient_codec
2706 = pb::FieldCodec.ForDouble(41);
2707 private readonly pbc::RepeatedField<double> qcoefficient_ =
new pbc::RepeatedField<double>();
2711 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2712 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2714 get {
return qcoefficient_; }
2719 private readonly
static double LowerBoundDefaultValue =
double.NegativeInfinity;
2721 private double lowerBound_;
2725 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2726 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2728 get {
if ((_hasBits0 & 1) != 0) {
return lowerBound_; }
else {
return LowerBoundDefaultValue; } }
2731 lowerBound_ = value;
2735 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2736 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2737 public bool HasLowerBound {
2738 get {
return (_hasBits0 & 1) != 0; }
2741 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2742 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2749 private readonly
static double UpperBoundDefaultValue =
double.PositiveInfinity;
2751 private double upperBound_;
2752 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2753 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2755 get {
if ((_hasBits0 & 2) != 0) {
return upperBound_; }
else {
return UpperBoundDefaultValue; } }
2758 upperBound_ = value;
2762 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2763 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2764 public bool HasUpperBound {
2765 get {
return (_hasBits0 & 2) != 0; }
2768 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2769 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2774 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2775 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2776 public override bool Equals(
object other) {
2780 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2781 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2783 if (ReferenceEquals(other,
null)) {
2786 if (ReferenceEquals(other,
this)) {
2789 if(!varIndex_.Equals(other.varIndex_))
return false;
2790 if(!coefficient_.Equals(other.coefficient_))
return false;
2791 if(!qvar1Index_.Equals(other.qvar1Index_))
return false;
2792 if(!qvar2Index_.Equals(other.qvar2Index_))
return false;
2793 if(!qcoefficient_.Equals(other.qcoefficient_))
return false;
2794 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(LowerBound, other.
LowerBound))
return false;
2795 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(UpperBound, other.
UpperBound))
return false;
2796 return Equals(_unknownFields, other._unknownFields);
2799 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2800 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2801 public override int GetHashCode() {
2803 hash ^= varIndex_.GetHashCode();
2804 hash ^= coefficient_.GetHashCode();
2805 hash ^= qvar1Index_.GetHashCode();
2806 hash ^= qvar2Index_.GetHashCode();
2807 hash ^= qcoefficient_.GetHashCode();
2808 if (
HasLowerBound) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(
LowerBound);
2809 if (
HasUpperBound) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(
UpperBound);
2810 if (_unknownFields !=
null) {
2811 hash ^= _unknownFields.GetHashCode();
2816 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2817 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2818 public override string ToString() {
2819 return pb::JsonFormatter.ToDiagnosticString(
this);
2822 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2823 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2824 public void WriteTo(pb::CodedOutputStream output) {
2825 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2826 output.WriteRawMessage(
this);
2828 varIndex_.WriteTo(output, _repeated_varIndex_codec);
2829 coefficient_.WriteTo(output, _repeated_coefficient_codec);
2830 qvar1Index_.WriteTo(output, _repeated_qvar1Index_codec);
2831 qvar2Index_.WriteTo(output, _repeated_qvar2Index_codec);
2832 qcoefficient_.WriteTo(output, _repeated_qcoefficient_codec);
2834 output.WriteRawTag(49);
2837 if (HasUpperBound) {
2838 output.WriteRawTag(57);
2839 output.WriteDouble(UpperBound);
2841 if (_unknownFields !=
null) {
2842 _unknownFields.WriteTo(output);
2847 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2848 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2849 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2850 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
2851 varIndex_.WriteTo(ref output, _repeated_varIndex_codec);
2852 coefficient_.WriteTo(ref output, _repeated_coefficient_codec);
2853 qvar1Index_.WriteTo(ref output, _repeated_qvar1Index_codec);
2854 qvar2Index_.WriteTo(ref output, _repeated_qvar2Index_codec);
2855 qcoefficient_.WriteTo(ref output, _repeated_qcoefficient_codec);
2856 if (HasLowerBound) {
2857 output.WriteRawTag(49);
2858 output.WriteDouble(LowerBound);
2860 if (HasUpperBound) {
2861 output.WriteRawTag(57);
2862 output.WriteDouble(UpperBound);
2864 if (_unknownFields !=
null) {
2865 _unknownFields.WriteTo(ref output);
2870 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2871 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2872 public int CalculateSize() {
2874 size += varIndex_.CalculateSize(_repeated_varIndex_codec);
2875 size += coefficient_.CalculateSize(_repeated_coefficient_codec);
2876 size += qvar1Index_.CalculateSize(_repeated_qvar1Index_codec);
2877 size += qvar2Index_.CalculateSize(_repeated_qvar2Index_codec);
2878 size += qcoefficient_.CalculateSize(_repeated_qcoefficient_codec);
2882 if (HasUpperBound) {
2885 if (_unknownFields !=
null) {
2886 size += _unknownFields.CalculateSize();
2891 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2892 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2893 public void MergeFrom(MPQuadraticConstraint other) {
2894 if (other ==
null) {
2897 varIndex_.Add(other.varIndex_);
2898 coefficient_.Add(other.coefficient_);
2899 qvar1Index_.Add(other.qvar1Index_);
2900 qvar2Index_.Add(other.qvar2Index_);
2901 qcoefficient_.Add(other.qcoefficient_);
2902 if (other.HasLowerBound) {
2903 LowerBound = other.LowerBound;
2905 if (other.HasUpperBound) {
2906 UpperBound = other.UpperBound;
2908 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
2911 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2912 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2913 public void MergeFrom(pb::CodedInputStream input) {
2914 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2915 input.ReadRawMessage(
this);
2918 while ((tag = input.ReadTag()) != 0) {
2919 if ((tag & 7) == 4) {
2925 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
2929 varIndex_.AddEntriesFrom(input, _repeated_varIndex_codec);
2934 coefficient_.AddEntriesFrom(input, _repeated_coefficient_codec);
2939 qvar1Index_.AddEntriesFrom(input, _repeated_qvar1Index_codec);
2944 qvar2Index_.AddEntriesFrom(input, _repeated_qvar2Index_codec);
2949 qcoefficient_.AddEntriesFrom(input, _repeated_qcoefficient_codec);
2965 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2966 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2967 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2968 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
2970 while ((tag = input.ReadTag()) != 0) {
2971 if ((tag & 7) == 4) {
2977 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
2981 varIndex_.AddEntriesFrom(ref input, _repeated_varIndex_codec);
2986 coefficient_.AddEntriesFrom(ref input, _repeated_coefficient_codec);
2991 qvar1Index_.AddEntriesFrom(ref input, _repeated_qvar1Index_codec);
2996 qvar2Index_.AddEntriesFrom(ref input, _repeated_qvar2Index_codec);
3001 qcoefficient_.AddEntriesFrom(ref input, _repeated_qcoefficient_codec);
3005 LowerBound = input.ReadDouble();
3009 UpperBound = input.ReadDouble();
3022 [global::System.Diagnostics.DebuggerDisplayAttribute(
"{ToString(),nq}")]
3023 public sealed partial class MPAbsConstraint : pb::IMessage<MPAbsConstraint>
3024 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
3025 , pb::IBufferMessage
3028 private static readonly pb::MessageParser<MPAbsConstraint> _parser =
new pb::MessageParser<MPAbsConstraint>(() =>
new MPAbsConstraint());
3029 private pb::UnknownFieldSet _unknownFields;
3030 private int _hasBits0;
3031 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3032 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3033 public static pb::MessageParser<MPAbsConstraint>
Parser {
get {
return _parser; } }
3035 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3036 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3037 public static pbr::MessageDescriptor
Descriptor {
3038 get {
return global::OperationsResearch.LinearSolverReflection.Descriptor.MessageTypes[6]; }
3041 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3042 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3043 pbr::MessageDescriptor pb::IMessage.Descriptor {
3047 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3048 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3053 partial
void OnConstruction();
3055 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3056 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3058 _hasBits0 = other._hasBits0;
3059 varIndex_ = other.varIndex_;
3060 resultantVarIndex_ = other.resultantVarIndex_;
3061 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
3064 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3065 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3072 private readonly
static int VarIndexDefaultValue = 0;
3074 private int varIndex_;
3079 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3080 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3082 get {
if ((_hasBits0 & 1) != 0) {
return varIndex_; }
else {
return VarIndexDefaultValue; } }
3089 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3090 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3091 public bool HasVarIndex {
3092 get {
return (_hasBits0 & 1) != 0; }
3095 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3096 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3103 private readonly
static int ResultantVarIndexDefaultValue = 0;
3105 private int resultantVarIndex_;
3106 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3107 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3109 get {
if ((_hasBits0 & 2) != 0) {
return resultantVarIndex_; }
else {
return ResultantVarIndexDefaultValue; } }
3112 resultantVarIndex_ = value;
3116 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3117 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3118 public bool HasResultantVarIndex {
3119 get {
return (_hasBits0 & 2) != 0; }
3122 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3123 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3128 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3129 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3130 public override bool Equals(
object other) {
3134 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3135 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3137 if (ReferenceEquals(other,
null)) {
3140 if (ReferenceEquals(other,
this)) {
3143 if (VarIndex != other.
VarIndex)
return false;
3145 return Equals(_unknownFields, other._unknownFields);
3148 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3149 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3150 public override int GetHashCode() {
3152 if (HasVarIndex) hash ^= VarIndex.GetHashCode();
3154 if (_unknownFields !=
null) {
3155 hash ^= _unknownFields.GetHashCode();
3160 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3161 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3162 public override string ToString() {
3163 return pb::JsonFormatter.ToDiagnosticString(
this);
3166 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3167 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3168 public void WriteTo(pb::CodedOutputStream output) {
3169 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
3170 output.WriteRawMessage(
this);
3173 output.WriteRawTag(8);
3176 if (HasResultantVarIndex) {
3177 output.WriteRawTag(16);
3178 output.WriteInt32(ResultantVarIndex);
3180 if (_unknownFields !=
null) {
3181 _unknownFields.WriteTo(output);
3186 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
3187 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3188 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3189 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
3191 output.WriteRawTag(8);
3192 output.WriteInt32(VarIndex);
3194 if (HasResultantVarIndex) {
3195 output.WriteRawTag(16);
3196 output.WriteInt32(ResultantVarIndex);
3198 if (_unknownFields !=
null) {
3199 _unknownFields.WriteTo(ref output);
3204 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3205 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3206 public int CalculateSize() {
3209 size += 1 + pb::CodedOutputStream.ComputeInt32Size(
VarIndex);
3211 if (HasResultantVarIndex) {
3212 size += 1 + pb::CodedOutputStream.ComputeInt32Size(ResultantVarIndex);
3214 if (_unknownFields !=
null) {
3215 size += _unknownFields.CalculateSize();
3220 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3221 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3222 public void MergeFrom(MPAbsConstraint other) {
3223 if (other ==
null) {
3226 if (other.HasVarIndex) {
3227 VarIndex = other.VarIndex;
3229 if (other.HasResultantVarIndex) {
3230 ResultantVarIndex = other.ResultantVarIndex;
3232 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
3235 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3236 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3237 public void MergeFrom(pb::CodedInputStream input) {
3238 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
3239 input.ReadRawMessage(
this);
3242 while ((tag = input.ReadTag()) != 0) {
3243 if ((tag & 7) == 4) {
3249 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
3264 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
3265 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3266 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3267 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
3269 while ((tag = input.ReadTag()) != 0) {
3270 if ((tag & 7) == 4) {
3276 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
3279 VarIndex = input.ReadInt32();
3283 ResultantVarIndex = input.ReadInt32();
3296 [global::System.Diagnostics.DebuggerDisplayAttribute(
"{ToString(),nq}")]
3297 public sealed partial
class MPArrayConstraint : pb::IMessage<MPArrayConstraint>
3298 #
if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
3299 , pb::IBufferMessage
3302 private static readonly pb::MessageParser<MPArrayConstraint> _parser =
new pb::MessageParser<MPArrayConstraint>(() =>
new MPArrayConstraint());
3303 private pb::UnknownFieldSet _unknownFields;
3304 private int _hasBits0;
3305 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3306 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3307 public static pb::MessageParser<MPArrayConstraint>
Parser {
get {
return _parser; } }
3309 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3310 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3311 public static pbr::MessageDescriptor
Descriptor {
3312 get {
return global::OperationsResearch.LinearSolverReflection.Descriptor.MessageTypes[7]; }
3315 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3316 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3317 pbr::MessageDescriptor pb::IMessage.Descriptor {
3321 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3322 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3327 partial
void OnConstruction();
3329 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3330 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3332 _hasBits0 = other._hasBits0;
3333 varIndex_ = other.varIndex_.Clone();
3334 resultantVarIndex_ = other.resultantVarIndex_;
3335 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
3338 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3339 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3346 private static readonly pb::FieldCodec<int> _repeated_varIndex_codec
3347 = pb::FieldCodec.ForInt32(8);
3348 private readonly pbc::RepeatedField<int> varIndex_ =
new pbc::RepeatedField<int>();
3352 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3353 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3354 public pbc::RepeatedField<int>
VarIndex {
3355 get {
return varIndex_; }
3360 private readonly
static int ResultantVarIndexDefaultValue = 0;
3362 private int resultantVarIndex_;
3363 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3364 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3366 get {
if ((_hasBits0 & 1) != 0) {
return resultantVarIndex_; }
else {
return ResultantVarIndexDefaultValue; } }
3369 resultantVarIndex_ = value;
3373 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3374 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3375 public bool HasResultantVarIndex {
3376 get {
return (_hasBits0 & 1) != 0; }
3379 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3380 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3385 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3386 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3387 public override bool Equals(
object other) {
3391 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3392 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3394 if (ReferenceEquals(other,
null)) {
3397 if (ReferenceEquals(other,
this)) {
3400 if(!varIndex_.Equals(other.varIndex_))
return false;
3402 return Equals(_unknownFields, other._unknownFields);
3405 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3406 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3407 public override int GetHashCode() {
3409 hash ^= varIndex_.GetHashCode();
3411 if (_unknownFields !=
null) {
3412 hash ^= _unknownFields.GetHashCode();
3417 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3418 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3419 public override string ToString() {
3420 return pb::JsonFormatter.ToDiagnosticString(
this);
3423 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3424 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3425 public void WriteTo(pb::CodedOutputStream output) {
3426 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
3427 output.WriteRawMessage(
this);
3429 varIndex_.WriteTo(output, _repeated_varIndex_codec);
3431 output.WriteRawTag(16);
3434 if (_unknownFields !=
null) {
3435 _unknownFields.WriteTo(output);
3440 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
3441 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3442 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3443 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
3444 varIndex_.WriteTo(ref output, _repeated_varIndex_codec);
3445 if (HasResultantVarIndex) {
3446 output.WriteRawTag(16);
3447 output.WriteInt32(ResultantVarIndex);
3449 if (_unknownFields !=
null) {
3450 _unknownFields.WriteTo(ref output);
3455 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3456 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3457 public int CalculateSize() {
3459 size += varIndex_.CalculateSize(_repeated_varIndex_codec);
3463 if (_unknownFields !=
null) {
3464 size += _unknownFields.CalculateSize();
3469 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3470 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3471 public void MergeFrom(MPArrayConstraint other) {
3472 if (other ==
null) {
3475 varIndex_.Add(other.varIndex_);
3476 if (other.HasResultantVarIndex) {
3477 ResultantVarIndex = other.ResultantVarIndex;
3479 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
3482 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3483 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3484 public void MergeFrom(pb::CodedInputStream input) {
3485 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
3486 input.ReadRawMessage(
this);
3489 while ((tag = input.ReadTag()) != 0) {
3490 if ((tag & 7) == 4) {
3496 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
3500 varIndex_.AddEntriesFrom(input, _repeated_varIndex_codec);
3512 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
3513 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3514 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3515 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
3517 while ((tag = input.ReadTag()) != 0) {
3518 if ((tag & 7) == 4) {
3524 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
3528 varIndex_.AddEntriesFrom(ref input, _repeated_varIndex_codec);
3532 ResultantVarIndex = input.ReadInt32();
3546 [global::System.Diagnostics.DebuggerDisplayAttribute(
"{ToString(),nq}")]
3547 public sealed partial class MPArrayWithConstantConstraint : pb::IMessage<MPArrayWithConstantConstraint>
3548 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
3549 , pb::IBufferMessage
3552 private static readonly pb::MessageParser<MPArrayWithConstantConstraint> _parser =
new pb::MessageParser<MPArrayWithConstantConstraint>(() =>
new MPArrayWithConstantConstraint());
3553 private pb::UnknownFieldSet _unknownFields;
3554 private int _hasBits0;
3555 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3556 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3557 public static pb::MessageParser<MPArrayWithConstantConstraint>
Parser {
get {
return _parser; } }
3559 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3560 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3561 public static pbr::MessageDescriptor
Descriptor {
3562 get {
return global::OperationsResearch.LinearSolverReflection.Descriptor.MessageTypes[8]; }
3565 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3566 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3567 pbr::MessageDescriptor pb::IMessage.Descriptor {
3571 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3572 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3577 partial
void OnConstruction();
3579 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3580 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3582 _hasBits0 = other._hasBits0;
3583 varIndex_ = other.varIndex_.Clone();
3584 constant_ = other.constant_;
3585 resultantVarIndex_ = other.resultantVarIndex_;
3586 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
3589 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3590 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3597 private static readonly pb::FieldCodec<int> _repeated_varIndex_codec
3598 = pb::FieldCodec.ForInt32(8);
3599 private readonly pbc::RepeatedField<int> varIndex_ =
new pbc::RepeatedField<int>();
3604 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3605 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3606 public pbc::RepeatedField<int>
VarIndex {
3607 get {
return varIndex_; }
3612 private readonly
static double ConstantDefaultValue = 0D;
3614 private double constant_;
3615 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3616 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3618 get {
if ((_hasBits0 & 1) != 0) {
return constant_; }
else {
return ConstantDefaultValue; } }
3625 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3626 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3627 public bool HasConstant {
3628 get {
return (_hasBits0 & 1) != 0; }
3631 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3632 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3639 private readonly
static int ResultantVarIndexDefaultValue = 0;
3641 private int resultantVarIndex_;
3642 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3643 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3645 get {
if ((_hasBits0 & 2) != 0) {
return resultantVarIndex_; }
else {
return ResultantVarIndexDefaultValue; } }
3648 resultantVarIndex_ = value;
3652 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3653 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3654 public bool HasResultantVarIndex {
3655 get {
return (_hasBits0 & 2) != 0; }
3658 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3659 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3664 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3665 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3666 public override bool Equals(
object other) {
3670 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3671 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3673 if (ReferenceEquals(other,
null)) {
3676 if (ReferenceEquals(other,
this)) {
3679 if(!varIndex_.Equals(other.varIndex_))
return false;
3680 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Constant, other.
Constant))
return false;
3682 return Equals(_unknownFields, other._unknownFields);
3685 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3686 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3687 public override int GetHashCode() {
3689 hash ^= varIndex_.GetHashCode();
3692 if (_unknownFields !=
null) {
3693 hash ^= _unknownFields.GetHashCode();
3698 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3699 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3700 public override string ToString() {
3701 return pb::JsonFormatter.ToDiagnosticString(
this);
3704 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3705 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3706 public void WriteTo(pb::CodedOutputStream output) {
3707 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
3708 output.WriteRawMessage(
this);
3710 varIndex_.WriteTo(output, _repeated_varIndex_codec);
3712 output.WriteRawTag(17);
3715 if (HasResultantVarIndex) {
3716 output.WriteRawTag(24);
3717 output.WriteInt32(ResultantVarIndex);
3719 if (_unknownFields !=
null) {
3720 _unknownFields.WriteTo(output);
3725 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
3726 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3727 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3728 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
3729 varIndex_.WriteTo(ref output, _repeated_varIndex_codec);
3731 output.WriteRawTag(17);
3732 output.WriteDouble(Constant);
3734 if (HasResultantVarIndex) {
3735 output.WriteRawTag(24);
3736 output.WriteInt32(ResultantVarIndex);
3738 if (_unknownFields !=
null) {
3739 _unknownFields.WriteTo(ref output);
3744 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3745 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3746 public int CalculateSize() {
3748 size += varIndex_.CalculateSize(_repeated_varIndex_codec);
3752 if (HasResultantVarIndex) {
3753 size += 1 + pb::CodedOutputStream.ComputeInt32Size(ResultantVarIndex);
3755 if (_unknownFields !=
null) {
3756 size += _unknownFields.CalculateSize();
3761 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3762 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3763 public void MergeFrom(MPArrayWithConstantConstraint other) {
3764 if (other ==
null) {
3767 varIndex_.Add(other.varIndex_);
3768 if (other.HasConstant) {
3769 Constant = other.Constant;
3771 if (other.HasResultantVarIndex) {
3772 ResultantVarIndex = other.ResultantVarIndex;
3774 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
3777 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3778 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3779 public void MergeFrom(pb::CodedInputStream input) {
3780 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
3781 input.ReadRawMessage(
this);
3784 while ((tag = input.ReadTag()) != 0) {
3785 if ((tag & 7) == 4) {
3791 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
3795 varIndex_.AddEntriesFrom(input, _repeated_varIndex_codec);
3811 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
3812 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3813 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3814 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
3816 while ((tag = input.ReadTag()) != 0) {
3817 if ((tag & 7) == 4) {
3823 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
3827 varIndex_.AddEntriesFrom(ref input, _repeated_varIndex_codec);
3831 Constant = input.ReadDouble();
3835 ResultantVarIndex = input.ReadInt32();
3852 [global::System.Diagnostics.DebuggerDisplayAttribute(
"{ToString(),nq}")]
3853 public sealed partial class MPQuadraticObjective : pb::IMessage<MPQuadraticObjective>
3854 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
3855 , pb::IBufferMessage
3858 private static readonly pb::MessageParser<MPQuadraticObjective> _parser =
new pb::MessageParser<MPQuadraticObjective>(() =>
new MPQuadraticObjective());
3859 private pb::UnknownFieldSet _unknownFields;
3860 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3861 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3862 public static pb::MessageParser<MPQuadraticObjective>
Parser {
get {
return _parser; } }
3864 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3865 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3866 public static pbr::MessageDescriptor
Descriptor {
3867 get {
return global::OperationsResearch.LinearSolverReflection.Descriptor.MessageTypes[9]; }
3870 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3871 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3872 pbr::MessageDescriptor pb::IMessage.Descriptor {
3876 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3877 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3882 partial
void OnConstruction();
3884 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3885 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3887 qvar1Index_ = other.qvar1Index_.Clone();
3888 qvar2Index_ = other.qvar2Index_.Clone();
3889 coefficient_ = other.coefficient_.Clone();
3890 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
3893 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3894 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3901 private static readonly pb::FieldCodec<int> _repeated_qvar1Index_codec
3902 = pb::FieldCodec.ForInt32(8);
3903 private readonly pbc::RepeatedField<int> qvar1Index_ =
new pbc::RepeatedField<int>();
3913 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3914 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3916 get {
return qvar1Index_; }
3921 private static readonly pb::FieldCodec<int> _repeated_qvar2Index_codec
3922 = pb::FieldCodec.ForInt32(16);
3923 private readonly pbc::RepeatedField<int> qvar2Index_ =
new pbc::RepeatedField<int>();
3924 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3925 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3927 get {
return qvar2Index_; }
3932 private static readonly pb::FieldCodec<double> _repeated_coefficient_codec
3933 = pb::FieldCodec.ForDouble(25);
3934 private readonly pbc::RepeatedField<double> coefficient_ =
new pbc::RepeatedField<double>();
3938 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3939 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3941 get {
return coefficient_; }
3944 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3945 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3946 public override bool Equals(
object other) {
3950 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3951 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3953 if (ReferenceEquals(other,
null)) {
3956 if (ReferenceEquals(other,
this)) {
3959 if(!qvar1Index_.Equals(other.qvar1Index_))
return false;
3960 if(!qvar2Index_.Equals(other.qvar2Index_))
return false;
3961 if(!coefficient_.Equals(other.coefficient_))
return false;
3962 return Equals(_unknownFields, other._unknownFields);
3965 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3966 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3967 public override int GetHashCode() {
3969 hash ^= qvar1Index_.GetHashCode();
3970 hash ^= qvar2Index_.GetHashCode();
3971 hash ^= coefficient_.GetHashCode();
3972 if (_unknownFields !=
null) {
3973 hash ^= _unknownFields.GetHashCode();
3978 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3979 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3980 public override string ToString() {
3981 return pb::JsonFormatter.ToDiagnosticString(
this);
3984 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3985 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3986 public void WriteTo(pb::CodedOutputStream output) {
3987 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
3988 output.WriteRawMessage(
this);
3990 qvar1Index_.WriteTo(output, _repeated_qvar1Index_codec);
3991 qvar2Index_.WriteTo(output, _repeated_qvar2Index_codec);
3992 coefficient_.WriteTo(output, _repeated_coefficient_codec);
3993 if (_unknownFields !=
null) {
3994 _unknownFields.WriteTo(output);
3999 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
4000 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4001 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4002 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
4003 qvar1Index_.WriteTo(ref output, _repeated_qvar1Index_codec);
4004 qvar2Index_.WriteTo(ref output, _repeated_qvar2Index_codec);
4005 coefficient_.WriteTo(ref output, _repeated_coefficient_codec);
4006 if (_unknownFields !=
null) {
4007 _unknownFields.WriteTo(ref output);
4012 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4013 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4014 public int CalculateSize() {
4016 size += qvar1Index_.CalculateSize(_repeated_qvar1Index_codec);
4017 size += qvar2Index_.CalculateSize(_repeated_qvar2Index_codec);
4018 size += coefficient_.CalculateSize(_repeated_coefficient_codec);
4019 if (_unknownFields !=
null) {
4020 size += _unknownFields.CalculateSize();
4025 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4026 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4027 public void MergeFrom(MPQuadraticObjective other) {
4028 if (other ==
null) {
4031 qvar1Index_.Add(other.qvar1Index_);
4032 qvar2Index_.Add(other.qvar2Index_);
4033 coefficient_.Add(other.coefficient_);
4034 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
4037 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4038 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4039 public void MergeFrom(pb::CodedInputStream input) {
4040 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
4041 input.ReadRawMessage(
this);
4044 while ((tag = input.ReadTag()) != 0) {
4045 if ((tag & 7) == 4) {
4051 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
4055 qvar1Index_.AddEntriesFrom(input, _repeated_qvar1Index_codec);
4060 qvar2Index_.AddEntriesFrom(input, _repeated_qvar2Index_codec);
4065 coefficient_.AddEntriesFrom(input, _repeated_coefficient_codec);
4073 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
4074 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4075 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4076 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
4078 while ((tag = input.ReadTag()) != 0) {
4079 if ((tag & 7) == 4) {
4085 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
4089 qvar1Index_.AddEntriesFrom(ref input, _repeated_qvar1Index_codec);
4094 qvar2Index_.AddEntriesFrom(ref input, _repeated_qvar2Index_codec);
4099 coefficient_.AddEntriesFrom(ref input, _repeated_coefficient_codec);
4114 [global::System.Diagnostics.DebuggerDisplayAttribute(
"{ToString(),nq}")]
4115 public sealed partial class PartialVariableAssignment : pb::IMessage<PartialVariableAssignment>
4116 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
4117 , pb::IBufferMessage
4120 private static readonly pb::MessageParser<PartialVariableAssignment> _parser =
new pb::MessageParser<PartialVariableAssignment>(() =>
new PartialVariableAssignment());
4121 private pb::UnknownFieldSet _unknownFields;
4122 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4123 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4124 public static pb::MessageParser<PartialVariableAssignment>
Parser {
get {
return _parser; } }
4126 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4127 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4128 public static pbr::MessageDescriptor
Descriptor {
4129 get {
return global::OperationsResearch.LinearSolverReflection.Descriptor.MessageTypes[10]; }
4132 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4133 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4134 pbr::MessageDescriptor pb::IMessage.Descriptor {
4138 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4139 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4144 partial
void OnConstruction();
4146 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4147 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4149 varIndex_ = other.varIndex_.Clone();
4150 varValue_ = other.varValue_.Clone();
4151 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
4154 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4155 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4162 private static readonly pb::FieldCodec<int> _repeated_varIndex_codec
4163 = pb::FieldCodec.ForInt32(10);
4164 private readonly pbc::RepeatedField<int> varIndex_ =
new pbc::RepeatedField<int>();
4165 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4166 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4167 public pbc::RepeatedField<int>
VarIndex {
4168 get {
return varIndex_; }
4173 private static readonly pb::FieldCodec<double> _repeated_varValue_codec
4174 = pb::FieldCodec.ForDouble(18);
4175 private readonly pbc::RepeatedField<double> varValue_ =
new pbc::RepeatedField<double>();
4176 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4177 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4178 public pbc::RepeatedField<double>
VarValue {
4179 get {
return varValue_; }
4182 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4183 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4184 public override bool Equals(
object other) {
4188 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4189 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4191 if (ReferenceEquals(other,
null)) {
4194 if (ReferenceEquals(other,
this)) {
4197 if(!varIndex_.Equals(other.varIndex_))
return false;
4198 if(!varValue_.Equals(other.varValue_))
return false;
4199 return Equals(_unknownFields, other._unknownFields);
4202 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4203 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4204 public override int GetHashCode() {
4206 hash ^= varIndex_.GetHashCode();
4207 hash ^= varValue_.GetHashCode();
4208 if (_unknownFields !=
null) {
4209 hash ^= _unknownFields.GetHashCode();
4214 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4215 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4216 public override string ToString() {
4217 return pb::JsonFormatter.ToDiagnosticString(
this);
4220 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4221 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4222 public void WriteTo(pb::CodedOutputStream output) {
4223 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
4224 output.WriteRawMessage(
this);
4226 varIndex_.WriteTo(output, _repeated_varIndex_codec);
4227 varValue_.WriteTo(output, _repeated_varValue_codec);
4228 if (_unknownFields !=
null) {
4229 _unknownFields.WriteTo(output);
4234 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
4235 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4236 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4237 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
4238 varIndex_.WriteTo(ref output, _repeated_varIndex_codec);
4239 varValue_.WriteTo(ref output, _repeated_varValue_codec);
4240 if (_unknownFields !=
null) {
4241 _unknownFields.WriteTo(ref output);
4246 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4247 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4248 public int CalculateSize() {
4250 size += varIndex_.CalculateSize(_repeated_varIndex_codec);
4251 size += varValue_.CalculateSize(_repeated_varValue_codec);
4252 if (_unknownFields !=
null) {
4253 size += _unknownFields.CalculateSize();
4258 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4259 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4260 public void MergeFrom(PartialVariableAssignment other) {
4261 if (other ==
null) {
4264 varIndex_.Add(other.varIndex_);
4265 varValue_.Add(other.varValue_);
4266 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
4269 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4270 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4271 public void MergeFrom(pb::CodedInputStream input) {
4272 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
4273 input.ReadRawMessage(
this);
4276 while ((tag = input.ReadTag()) != 0) {
4277 if ((tag & 7) == 4) {
4283 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
4287 varIndex_.AddEntriesFrom(input, _repeated_varIndex_codec);
4292 varValue_.AddEntriesFrom(input, _repeated_varValue_codec);
4300 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
4301 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4302 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4303 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
4305 while ((tag = input.ReadTag()) != 0) {
4306 if ((tag & 7) == 4) {
4312 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
4316 varIndex_.AddEntriesFrom(ref input, _repeated_varIndex_codec);
4321 varValue_.AddEntriesFrom(ref input, _repeated_varValue_codec);
4334 [global::System.Diagnostics.DebuggerDisplayAttribute(
"{ToString(),nq}")]
4335 public sealed partial class MPModelProto : pb::IMessage<MPModelProto>
4336 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
4337 , pb::IBufferMessage
4340 private static readonly pb::MessageParser<MPModelProto> _parser =
new pb::MessageParser<MPModelProto>(() =>
new MPModelProto());
4341 private pb::UnknownFieldSet _unknownFields;
4342 private int _hasBits0;
4343 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4344 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4345 public static pb::MessageParser<MPModelProto>
Parser {
get {
return _parser; } }
4347 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4348 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4349 public static pbr::MessageDescriptor
Descriptor {
4350 get {
return global::OperationsResearch.LinearSolverReflection.Descriptor.MessageTypes[11]; }
4353 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4354 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4355 pbr::MessageDescriptor pb::IMessage.Descriptor {
4359 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4360 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4365 partial
void OnConstruction();
4367 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4368 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4370 _hasBits0 = other._hasBits0;
4371 variable_ = other.variable_.Clone();
4372 constraint_ = other.constraint_.Clone();
4373 generalConstraint_ = other.generalConstraint_.Clone();
4374 maximize_ = other.maximize_;
4375 objectiveOffset_ = other.objectiveOffset_;
4376 quadraticObjective_ = other.quadraticObjective_ !=
null ? other.quadraticObjective_.
Clone() :
null;
4377 name_ = other.name_;
4378 solutionHint_ = other.solutionHint_ !=
null ? other.solutionHint_.
Clone() :
null;
4379 annotation_ = other.annotation_.Clone();
4380 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
4383 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4384 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4391 private static readonly pb::FieldCodec<global::OperationsResearch.MPVariableProto> _repeated_variable_codec
4393 private readonly pbc::RepeatedField<global::OperationsResearch.MPVariableProto> variable_ =
new pbc::RepeatedField<global::OperationsResearch.MPVariableProto>();
4397 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4398 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4399 public pbc::RepeatedField<global::OperationsResearch.MPVariableProto>
Variable {
4400 get { return variable_; }
4405 private static readonly pb::FieldCodec<global::OperationsResearch.MPConstraintProto> _repeated_constraint_codec
4407 private readonly pbc::RepeatedField<global::OperationsResearch.MPConstraintProto> constraint_ =
new pbc::RepeatedField<global::OperationsResearch.MPConstraintProto>();
4411 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4412 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4413 public pbc::RepeatedField<global::OperationsResearch.MPConstraintProto>
Constraint {
4414 get { return constraint_; }
4419 private static readonly pb::FieldCodec<global::OperationsResearch.MPGeneralConstraintProto> _repeated_generalConstraint_codec
4421 private readonly pbc::RepeatedField<global::OperationsResearch.MPGeneralConstraintProto> generalConstraint_ =
new pbc::RepeatedField<global::OperationsResearch.MPGeneralConstraintProto>();
4426 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4427 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4428 public pbc::RepeatedField<global::OperationsResearch.MPGeneralConstraintProto>
GeneralConstraint {
4429 get { return generalConstraint_; }
4434 private readonly
static bool MaximizeDefaultValue =
false;
4436 private bool maximize_;
4440 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4441 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4443 get {
if ((_hasBits0 & 1) != 0) {
return maximize_; }
else {
return MaximizeDefaultValue; } }
4450 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4451 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4452 public bool HasMaximize {
4453 get {
return (_hasBits0 & 1) != 0; }
4456 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4457 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4464 private readonly
static double ObjectiveOffsetDefaultValue = 0D;
4466 private double objectiveOffset_;
4470 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4471 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4473 get {
if ((_hasBits0 & 2) != 0) {
return objectiveOffset_; }
else {
return ObjectiveOffsetDefaultValue; } }
4476 objectiveOffset_ = value;
4480 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4481 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4482 public bool HasObjectiveOffset {
4483 get {
return (_hasBits0 & 2) != 0; }
4486 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4487 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4494 private global::OperationsResearch.MPQuadraticObjective quadraticObjective_;
4499 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4500 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4502 get {
return quadraticObjective_; }
4504 quadraticObjective_ = value;
4509 public const int NameFieldNumber = 5;
4510 private readonly
static string NameDefaultValue =
"";
4512 private string name_;
4516 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4517 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4518 public string Name {
4519 get {
return name_ ?? NameDefaultValue; }
4521 name_ = pb::ProtoPreconditions.CheckNotNull(value,
"value");
4525 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4526 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4527 public bool HasName {
4528 get {
return name_ !=
null; }
4531 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4532 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4539 private global::OperationsResearch.PartialVariableAssignment solutionHint_;
4553 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4554 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4556 get {
return solutionHint_; }
4558 solutionHint_ = value;
4563 public const int AnnotationFieldNumber = 9;
4564 private static readonly pb::FieldCodec<global::OperationsResearch.MPModelProto.Types.Annotation> _repeated_annotation_codec
4566 private readonly pbc::RepeatedField<global::OperationsResearch.MPModelProto.Types.Annotation> annotation_ =
new pbc::RepeatedField<global::OperationsResearch.MPModelProto.Types.Annotation>();
4567 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4568 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4569 public pbc::RepeatedField<global::OperationsResearch.MPModelProto.Types.Annotation>
Annotation {
4570 get { return annotation_; }
4573 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4574 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4575 public override bool Equals(
object other) {
4579 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4580 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4582 if (ReferenceEquals(other,
null)) {
4585 if (ReferenceEquals(other,
this)) {
4588 if(!variable_.Equals(other.variable_))
return false;
4589 if(!constraint_.Equals(other.constraint_))
return false;
4590 if(!generalConstraint_.Equals(other.generalConstraint_))
return false;
4591 if (Maximize != other.
Maximize)
return false;
4592 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(ObjectiveOffset, other.
ObjectiveOffset))
return false;
4594 if (Name != other.
Name)
return false;
4595 if (!
object.Equals(SolutionHint, other.
SolutionHint))
return false;
4596 if(!annotation_.Equals(other.annotation_))
return false;
4597 return Equals(_unknownFields, other._unknownFields);
4600 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4601 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4602 public override int GetHashCode() {
4604 hash ^= variable_.GetHashCode();
4605 hash ^= constraint_.GetHashCode();
4606 hash ^= generalConstraint_.GetHashCode();
4611 if (solutionHint_ !=
null) hash ^=
SolutionHint.GetHashCode();
4612 hash ^= annotation_.GetHashCode();
4613 if (_unknownFields !=
null) {
4614 hash ^= _unknownFields.GetHashCode();
4619 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4620 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4621 public override string ToString() {
4622 return pb::JsonFormatter.ToDiagnosticString(
this);
4625 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4626 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4627 public void WriteTo(pb::CodedOutputStream output) {
4628 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
4629 output.WriteRawMessage(
this);
4632 output.WriteRawTag(8);
4635 if (HasObjectiveOffset) {
4636 output.WriteRawTag(17);
4637 output.WriteDouble(ObjectiveOffset);
4639 variable_.WriteTo(output, _repeated_variable_codec);
4640 constraint_.WriteTo(output, _repeated_constraint_codec);
4642 output.WriteRawTag(42);
4643 output.WriteString(Name);
4645 if (solutionHint_ !=
null) {
4646 output.WriteRawTag(50);
4647 output.WriteMessage(SolutionHint);
4649 generalConstraint_.WriteTo(output, _repeated_generalConstraint_codec);
4650 if (quadraticObjective_ !=
null) {
4651 output.WriteRawTag(66);
4652 output.WriteMessage(QuadraticObjective);
4654 annotation_.WriteTo(output, _repeated_annotation_codec);
4655 if (_unknownFields !=
null) {
4656 _unknownFields.WriteTo(output);
4661 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
4662 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4663 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4664 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
4666 output.WriteRawTag(8);
4667 output.WriteBool(Maximize);
4669 if (HasObjectiveOffset) {
4670 output.WriteRawTag(17);
4671 output.WriteDouble(ObjectiveOffset);
4673 variable_.WriteTo(ref output, _repeated_variable_codec);
4674 constraint_.WriteTo(ref output, _repeated_constraint_codec);
4676 output.WriteRawTag(42);
4677 output.WriteString(Name);
4679 if (solutionHint_ !=
null) {
4680 output.WriteRawTag(50);
4681 output.WriteMessage(SolutionHint);
4683 generalConstraint_.WriteTo(ref output, _repeated_generalConstraint_codec);
4684 if (quadraticObjective_ !=
null) {
4685 output.WriteRawTag(66);
4686 output.WriteMessage(QuadraticObjective);
4688 annotation_.WriteTo(ref output, _repeated_annotation_codec);
4689 if (_unknownFields !=
null) {
4690 _unknownFields.WriteTo(ref output);
4695 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4696 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4697 public int CalculateSize() {
4699 size += variable_.CalculateSize(_repeated_variable_codec);
4700 size += constraint_.CalculateSize(_repeated_constraint_codec);
4701 size += generalConstraint_.CalculateSize(_repeated_generalConstraint_codec);
4705 if (HasObjectiveOffset) {
4708 if (quadraticObjective_ !=
null) {
4709 size += 1 + pb::CodedOutputStream.ComputeMessageSize(QuadraticObjective);
4712 size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
4714 if (solutionHint_ !=
null) {
4715 size += 1 + pb::CodedOutputStream.ComputeMessageSize(SolutionHint);
4717 size += annotation_.CalculateSize(_repeated_annotation_codec);
4718 if (_unknownFields !=
null) {
4719 size += _unknownFields.CalculateSize();
4724 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4725 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4726 public void MergeFrom(MPModelProto other) {
4727 if (other ==
null) {
4730 variable_.Add(other.variable_);
4731 constraint_.Add(other.constraint_);
4732 generalConstraint_.Add(other.generalConstraint_);
4733 if (other.HasMaximize) {
4736 if (other.HasObjectiveOffset) {
4737 ObjectiveOffset = other.ObjectiveOffset;
4739 if (other.quadraticObjective_ !=
null) {
4740 if (quadraticObjective_ ==
null) {
4741 QuadraticObjective =
new global::OperationsResearch.MPQuadraticObjective();
4743 QuadraticObjective.MergeFrom(other.QuadraticObjective);
4745 if (other.HasName) {
4748 if (other.solutionHint_ !=
null) {
4749 if (solutionHint_ ==
null) {
4750 SolutionHint =
new global::OperationsResearch.PartialVariableAssignment();
4752 SolutionHint.MergeFrom(other.SolutionHint);
4754 annotation_.Add(other.annotation_);
4755 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
4758 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4759 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4760 public void MergeFrom(pb::CodedInputStream input) {
4761 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
4762 input.ReadRawMessage(
this);
4765 while ((tag = input.ReadTag()) != 0) {
4766 if ((tag & 7) == 4) {
4772 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
4783 variable_.AddEntriesFrom(input, _repeated_variable_codec);
4787 constraint_.AddEntriesFrom(input, _repeated_constraint_codec);
4791 Name = input.ReadString();
4795 if (solutionHint_ ==
null) {
4796 SolutionHint =
new global::OperationsResearch.PartialVariableAssignment();
4802 generalConstraint_.AddEntriesFrom(input, _repeated_generalConstraint_codec);
4806 if (quadraticObjective_ ==
null) {
4813 annotation_.AddEntriesFrom(input, _repeated_annotation_codec);
4821 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
4822 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4823 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4824 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
4826 while ((tag = input.ReadTag()) != 0) {
4827 if ((tag & 7) == 4) {
4833 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
4836 Maximize = input.ReadBool();
4840 ObjectiveOffset = input.ReadDouble();
4844 variable_.AddEntriesFrom(ref input, _repeated_variable_codec);
4848 constraint_.AddEntriesFrom(ref input, _repeated_constraint_codec);
4852 Name = input.ReadString();
4856 if (solutionHint_ ==
null) {
4857 SolutionHint =
new global::OperationsResearch.PartialVariableAssignment();
4859 input.ReadMessage(SolutionHint);
4863 generalConstraint_.AddEntriesFrom(ref input, _repeated_generalConstraint_codec);
4867 if (quadraticObjective_ ==
null) {
4868 QuadraticObjective =
new global::OperationsResearch.MPQuadraticObjective();
4870 input.ReadMessage(QuadraticObjective);
4874 annotation_.AddEntriesFrom(ref input, _repeated_annotation_codec);
4882 #region Nested types
4884 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4885 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4886 public static partial
class Types {
4891 [global::System.Diagnostics.DebuggerDisplayAttribute(
"{ToString(),nq}")]
4892 public sealed partial class Annotation : pb::IMessage<Annotation>
4893 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
4894 , pb::IBufferMessage
4897 private static readonly pb::MessageParser<Annotation> _parser =
new pb::MessageParser<Annotation>(() =>
new Annotation());
4898 private pb::UnknownFieldSet _unknownFields;
4899 private int _hasBits0;
4900 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4901 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4902 public static pb::MessageParser<Annotation>
Parser {
get {
return _parser; } }
4904 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4905 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4906 public static pbr::MessageDescriptor
Descriptor {
4907 get {
return global::OperationsResearch.MPModelProto.Descriptor.NestedTypes[0]; }
4910 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4911 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4912 pbr::MessageDescriptor pb::IMessage.Descriptor {
4916 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4917 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4922 partial
void OnConstruction();
4924 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4925 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4927 _hasBits0 = other._hasBits0;
4928 targetType_ = other.targetType_;
4929 targetIndex_ = other.targetIndex_;
4930 targetName_ = other.targetName_;
4931 payloadKey_ = other.payloadKey_;
4932 payloadValue_ = other.payloadValue_;
4933 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
4936 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4937 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4944 private readonly
static global::OperationsResearch.MPModelProto.Types.Annotation.Types.TargetType TargetTypeDefaultValue = global::OperationsResearch.MPModelProto.Types.Annotation.Types.TargetType.VariableDefault;
4946 private global::OperationsResearch.MPModelProto.Types.Annotation.Types.TargetType targetType_;
4947 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4948 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4950 get { if ((_hasBits0 & 1) != 0) { return targetType_; } else { return TargetTypeDefaultValue; } }
4953 targetType_ = value;
4957 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4958 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4959 public bool HasTargetType {
4960 get {
return (_hasBits0 & 1) != 0; }
4963 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4964 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4971 private readonly
static int TargetIndexDefaultValue = 0;
4973 private int targetIndex_;
4978 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4979 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4981 get {
if ((_hasBits0 & 2) != 0) {
return targetIndex_; }
else {
return TargetIndexDefaultValue; } }
4984 targetIndex_ = value;
4988 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4989 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4990 public bool HasTargetIndex {
4991 get {
return (_hasBits0 & 2) != 0; }
4994 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4995 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5002 private readonly
static string TargetNameDefaultValue =
"";
5004 private string targetName_;
5008 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5009 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5011 get {
return targetName_ ?? TargetNameDefaultValue; }
5013 targetName_ = pb::ProtoPreconditions.CheckNotNull(value,
"value");
5017 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5018 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5019 public bool HasTargetName {
5020 get {
return targetName_ !=
null; }
5023 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5024 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5031 private readonly
static string PayloadKeyDefaultValue =
"";
5033 private string payloadKey_;
5038 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5039 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5041 get {
return payloadKey_ ?? PayloadKeyDefaultValue; }
5043 payloadKey_ = pb::ProtoPreconditions.CheckNotNull(value,
"value");
5047 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5048 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5049 public bool HasPayloadKey {
5050 get {
return payloadKey_ !=
null; }
5053 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5054 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5061 private readonly
static string PayloadValueDefaultValue =
"";
5063 private string payloadValue_;
5064 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5065 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5067 get {
return payloadValue_ ?? PayloadValueDefaultValue; }
5069 payloadValue_ = pb::ProtoPreconditions.CheckNotNull(value,
"value");
5073 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5074 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5075 public bool HasPayloadValue {
5076 get {
return payloadValue_ !=
null; }
5079 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5080 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5082 payloadValue_ =
null;
5085 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5086 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5087 public override bool Equals(
object other) {
5091 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5092 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5094 if (ReferenceEquals(other,
null)) {
5097 if (ReferenceEquals(other,
this)) {
5100 if (TargetType != other.
TargetType)
return false;
5101 if (TargetIndex != other.
TargetIndex)
return false;
5102 if (TargetName != other.
TargetName)
return false;
5103 if (PayloadKey != other.
PayloadKey)
return false;
5105 return Equals(_unknownFields, other._unknownFields);
5108 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5109 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5112 if (HasTargetType) hash ^= TargetType.GetHashCode();
5113 if (HasTargetIndex) hash ^= TargetIndex.GetHashCode();
5114 if (HasTargetName) hash ^= TargetName.GetHashCode();
5117 if (_unknownFields !=
null) {
5118 hash ^= _unknownFields.GetHashCode();
5123 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5124 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5125 public override string ToString() {
5126 return pb::JsonFormatter.ToDiagnosticString(
this);
5129 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5130 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5131 public void WriteTo(pb::CodedOutputStream output) {
5132 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
5133 output.WriteRawMessage(
this);
5136 output.WriteRawTag(8);
5139 if (HasTargetIndex) {
5140 output.WriteRawTag(16);
5141 output.WriteInt32(TargetIndex);
5143 if (HasTargetName) {
5144 output.WriteRawTag(26);
5145 output.WriteString(TargetName);
5147 if (HasPayloadKey) {
5148 output.WriteRawTag(34);
5149 output.WriteString(PayloadKey);
5151 if (HasPayloadValue) {
5152 output.WriteRawTag(42);
5153 output.WriteString(PayloadValue);
5155 if (_unknownFields !=
null) {
5156 _unknownFields.WriteTo(output);
5161 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
5162 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5163 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5164 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
5165 if (HasTargetType) {
5166 output.WriteRawTag(8);
5167 output.WriteEnum((
int) TargetType);
5169 if (HasTargetIndex) {
5170 output.WriteRawTag(16);
5171 output.WriteInt32(TargetIndex);
5173 if (HasTargetName) {
5174 output.WriteRawTag(26);
5175 output.WriteString(TargetName);
5177 if (HasPayloadKey) {
5178 output.WriteRawTag(34);
5179 output.WriteString(PayloadKey);
5181 if (HasPayloadValue) {
5182 output.WriteRawTag(42);
5183 output.WriteString(PayloadValue);
5185 if (_unknownFields !=
null) {
5186 _unknownFields.WriteTo(ref output);
5191 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5192 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5193 public int CalculateSize() {
5195 if (HasTargetType) {
5196 size += 1 + pb::CodedOutputStream.ComputeEnumSize((
int) TargetType);
5199 size += 1 + pb::CodedOutputStream.ComputeInt32Size(
TargetIndex);
5201 if (HasTargetName) {
5202 size += 1 + pb::CodedOutputStream.ComputeStringSize(TargetName);
5204 if (HasPayloadKey) {
5205 size += 1 + pb::CodedOutputStream.ComputeStringSize(PayloadKey);
5207 if (HasPayloadValue) {
5208 size += 1 + pb::CodedOutputStream.ComputeStringSize(PayloadValue);
5210 if (_unknownFields !=
null) {
5211 size += _unknownFields.CalculateSize();
5216 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5217 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5218 public void MergeFrom(Annotation other) {
5219 if (other ==
null) {
5222 if (other.HasTargetType) {
5225 if (other.HasTargetIndex) {
5226 TargetIndex = other.TargetIndex;
5228 if (other.HasTargetName) {
5229 TargetName = other.TargetName;
5231 if (other.HasPayloadKey) {
5232 PayloadKey = other.PayloadKey;
5234 if (other.HasPayloadValue) {
5235 PayloadValue = other.PayloadValue;
5237 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
5240 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5241 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5242 public void MergeFrom(pb::CodedInputStream input) {
5243 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
5244 input.ReadRawMessage(
this);
5247 while ((tag = input.ReadTag()) != 0) {
5248 if ((tag & 7) == 4) {
5254 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
5257 TargetType = (global::OperationsResearch.MPModelProto.Types.Annotation.Types.TargetType) input.ReadEnum();
5281 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
5282 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5283 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5284 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
5286 while ((tag = input.ReadTag()) != 0) {
5287 if ((tag & 7) == 4) {
5293 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
5296 TargetType = (global::OperationsResearch.MPModelProto.Types.Annotation.Types.TargetType) input.ReadEnum();
5300 TargetIndex = input.ReadInt32();
5304 TargetName = input.ReadString();
5308 PayloadKey = input.ReadString();
5312 PayloadValue = input.ReadString();
5320 #region Nested types
5322 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5323 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5324 public static partial
class Types {
5331 [pbr::OriginalName(
"CONSTRAINT")]
Constraint = 1,
5349 [global::System.Diagnostics.DebuggerDisplayAttribute(
"{ToString(),nq}")]
5350 public sealed partial
class OptionalDouble : pb::IMessage<OptionalDouble>
5351 #
if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
5352 , pb::IBufferMessage
5355 private static readonly pb::MessageParser<OptionalDouble> _parser =
new pb::MessageParser<OptionalDouble>(() =>
new OptionalDouble());
5356 private pb::UnknownFieldSet _unknownFields;
5357 private int _hasBits0;
5358 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5359 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5360 public static pb::MessageParser<OptionalDouble>
Parser {
get {
return _parser; } }
5362 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5363 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5364 public static pbr::MessageDescriptor Descriptor {
5365 get {
return global::OperationsResearch.LinearSolverReflection.Descriptor.MessageTypes[12]; }
5368 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5369 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5370 pbr::MessageDescriptor pb::IMessage.Descriptor {
5374 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5375 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5380 partial
void OnConstruction();
5382 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5383 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5385 _hasBits0 = other._hasBits0;
5386 value_ = other.value_;
5387 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
5390 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5391 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5398 private readonly
static double ValueDefaultValue = 0D;
5400 private double value_;
5401 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5402 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5403 public double Value {
5404 get {
if ((_hasBits0 & 1) != 0) {
return value_; }
else {
return ValueDefaultValue; } }
5411 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5412 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5413 public bool HasValue {
5414 get {
return (_hasBits0 & 1) != 0; }
5417 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5418 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5423 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5424 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5425 public override bool Equals(
object other) {
5429 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5430 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5432 if (ReferenceEquals(other,
null)) {
5435 if (ReferenceEquals(other,
this)) {
5438 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Value, other.
Value))
return false;
5439 return Equals(_unknownFields, other._unknownFields);
5442 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5443 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5444 public override int GetHashCode() {
5446 if (HasValue) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Value);
5447 if (_unknownFields !=
null) {
5448 hash ^= _unknownFields.GetHashCode();
5453 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5454 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5455 public override string ToString() {
5456 return pb::JsonFormatter.ToDiagnosticString(
this);
5459 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5460 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5461 public void WriteTo(pb::CodedOutputStream output) {
5462 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
5463 output.WriteRawMessage(
this);
5466 output.WriteRawTag(9);
5467 output.WriteDouble(
Value);
5469 if (_unknownFields !=
null) {
5470 _unknownFields.WriteTo(output);
5475 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
5476 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5477 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5478 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
5480 output.WriteRawTag(9);
5481 output.WriteDouble(Value);
5483 if (_unknownFields !=
null) {
5484 _unknownFields.WriteTo(ref output);
5489 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5490 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5491 public int CalculateSize() {
5496 if (_unknownFields !=
null) {
5497 size += _unknownFields.CalculateSize();
5502 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5503 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5504 public void MergeFrom(OptionalDouble other) {
5505 if (other ==
null) {
5508 if (other.HasValue) {
5511 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
5514 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5515 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5516 public void MergeFrom(pb::CodedInputStream input) {
5517 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
5518 input.ReadRawMessage(
this);
5521 while ((tag = input.ReadTag()) != 0) {
5522 if ((tag & 7) == 4) {
5528 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
5531 Value = input.ReadDouble();
5539 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
5540 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5541 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5542 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
5544 while ((tag = input.ReadTag()) != 0) {
5545 if ((tag & 7) == 4) {
5551 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
5554 Value = input.ReadDouble();
5572 [global::System.Diagnostics.DebuggerDisplayAttribute(
"{ToString(),nq}")]
5573 public sealed partial
class MPSolverCommonParameters : pb::IMessage<MPSolverCommonParameters>
5574 #
if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
5575 , pb::IBufferMessage
5578 private static readonly pb::MessageParser<MPSolverCommonParameters> _parser =
new pb::MessageParser<MPSolverCommonParameters>(() =>
new MPSolverCommonParameters());
5579 private pb::UnknownFieldSet _unknownFields;
5580 private int _hasBits0;
5581 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5582 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5583 public static pb::MessageParser<MPSolverCommonParameters>
Parser {
get {
return _parser; } }
5585 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5586 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5587 public static pbr::MessageDescriptor Descriptor {
5588 get {
return global::OperationsResearch.LinearSolverReflection.Descriptor.MessageTypes[13]; }
5591 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5592 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5593 pbr::MessageDescriptor pb::IMessage.Descriptor {
5597 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5598 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5603 partial
void OnConstruction();
5605 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5606 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5608 _hasBits0 = other._hasBits0;
5609 relativeMipGap_ = other.relativeMipGap_ !=
null ? other.relativeMipGap_.
Clone() :
null;
5610 primalTolerance_ = other.primalTolerance_ !=
null ? other.primalTolerance_.
Clone() :
null;
5611 dualTolerance_ = other.dualTolerance_ !=
null ? other.dualTolerance_.
Clone() :
null;
5612 lpAlgorithm_ = other.lpAlgorithm_;
5613 presolve_ = other.presolve_;
5614 scaling_ = other.scaling_;
5615 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
5618 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5619 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5626 private global::OperationsResearch.OptionalDouble relativeMipGap_;
5644 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5645 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5647 get {
return relativeMipGap_; }
5649 relativeMipGap_ = value;
5655 private global::OperationsResearch.OptionalDouble primalTolerance_;
5662 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5663 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5665 get {
return primalTolerance_; }
5667 primalTolerance_ = value;
5673 private global::OperationsResearch.OptionalDouble dualTolerance_;
5681 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5682 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5684 get {
return dualTolerance_; }
5686 dualTolerance_ = value;
5692 private readonly
static global::OperationsResearch.MPSolverCommonParameters.Types.LPAlgorithmValues LpAlgorithmDefaultValue = global::OperationsResearch.MPSolverCommonParameters.Types.LPAlgorithmValues.LpAlgoUnspecified;
5694 private global::OperationsResearch.MPSolverCommonParameters.Types.LPAlgorithmValues lpAlgorithm_;
5699 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5700 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5702 get { if ((_hasBits0 & 1) != 0) { return lpAlgorithm_; } else { return LpAlgorithmDefaultValue; } }
5705 lpAlgorithm_ = value;
5709 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5710 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5712 get {
return (_hasBits0 & 1) != 0; }
5715 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5716 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5717 public void ClearLpAlgorithm() {
5722 public const int PresolveFieldNumber = 5;
5723 private readonly
static global::Google.OrTools.Util.OptionalBoolean PresolveDefaultValue = global::Google.OrTools.Util.OptionalBoolean.BoolUnspecified;
5725 private global::Google.OrTools.Util.OptionalBoolean presolve_;
5730 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5731 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5732 public global::Google.OrTools.Util.OptionalBoolean
Presolve {
5733 get { if ((_hasBits0 & 2) != 0) { return presolve_; } else { return PresolveDefaultValue; } }
5740 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5741 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5743 get {
return (_hasBits0 & 2) != 0; }
5746 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5747 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5748 public void ClearPresolve() {
5753 public const int ScalingFieldNumber = 7;
5754 private readonly
static global::Google.OrTools.Util.OptionalBoolean ScalingDefaultValue = global::Google.OrTools.Util.OptionalBoolean.BoolUnspecified;
5756 private global::Google.OrTools.Util.OptionalBoolean scaling_;
5762 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5763 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5764 public global::Google.OrTools.Util.OptionalBoolean
Scaling {
5765 get { if ((_hasBits0 & 4) != 0) { return scaling_; } else { return ScalingDefaultValue; } }
5772 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5773 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5775 get {
return (_hasBits0 & 4) != 0; }
5778 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5779 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5780 public void ClearScaling() {
5784 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5785 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5786 public override bool Equals(
object other) {
5790 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5791 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5793 if (ReferenceEquals(other,
null)) {
5796 if (ReferenceEquals(other,
this)) {
5805 return Equals(_unknownFields, other._unknownFields);
5808 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5809 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5810 public override int GetHashCode() {
5812 if (relativeMipGap_ !=
null) hash ^= RelativeMipGap.GetHashCode();
5813 if (primalTolerance_ !=
null) hash ^= PrimalTolerance.GetHashCode();
5814 if (dualTolerance_ !=
null) hash ^= DualTolerance.GetHashCode();
5815 if (HasLpAlgorithm) hash ^= LpAlgorithm.GetHashCode();
5816 if (HasPresolve) hash ^= Presolve.GetHashCode();
5818 if (_unknownFields !=
null) {
5819 hash ^= _unknownFields.GetHashCode();
5824 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5825 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5826 public override string ToString() {
5827 return pb::JsonFormatter.ToDiagnosticString(
this);
5830 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5831 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5832 public void WriteTo(pb::CodedOutputStream output) {
5833 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
5834 output.WriteRawMessage(
this);
5836 if (relativeMipGap_ !=
null) {
5837 output.WriteRawTag(10);
5840 if (primalTolerance_ !=
null) {
5841 output.WriteRawTag(18);
5842 output.WriteMessage(PrimalTolerance);
5844 if (dualTolerance_ !=
null) {
5845 output.WriteRawTag(26);
5846 output.WriteMessage(DualTolerance);
5848 if (HasLpAlgorithm) {
5849 output.WriteRawTag(32);
5850 output.WriteEnum((
int) LpAlgorithm);
5853 output.WriteRawTag(40);
5854 output.WriteEnum((
int) Presolve);
5857 output.WriteRawTag(56);
5858 output.WriteEnum((
int) Scaling);
5860 if (_unknownFields !=
null) {
5861 _unknownFields.WriteTo(output);
5866 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
5867 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5868 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5869 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
5870 if (relativeMipGap_ !=
null) {
5871 output.WriteRawTag(10);
5872 output.WriteMessage(RelativeMipGap);
5874 if (primalTolerance_ !=
null) {
5875 output.WriteRawTag(18);
5876 output.WriteMessage(PrimalTolerance);
5878 if (dualTolerance_ !=
null) {
5879 output.WriteRawTag(26);
5880 output.WriteMessage(DualTolerance);
5882 if (HasLpAlgorithm) {
5883 output.WriteRawTag(32);
5884 output.WriteEnum((
int) LpAlgorithm);
5887 output.WriteRawTag(40);
5888 output.WriteEnum((
int) Presolve);
5891 output.WriteRawTag(56);
5892 output.WriteEnum((
int) Scaling);
5894 if (_unknownFields !=
null) {
5895 _unknownFields.WriteTo(ref output);
5900 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5901 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5902 public int CalculateSize() {
5904 if (relativeMipGap_ !=
null) {
5905 size += 1 + pb::CodedOutputStream.ComputeMessageSize(RelativeMipGap);
5907 if (primalTolerance_ !=
null) {
5908 size += 1 + pb::CodedOutputStream.ComputeMessageSize(PrimalTolerance);
5910 if (dualTolerance_ !=
null) {
5911 size += 1 + pb::CodedOutputStream.ComputeMessageSize(DualTolerance);
5913 if (HasLpAlgorithm) {
5914 size += 1 + pb::CodedOutputStream.ComputeEnumSize((
int) LpAlgorithm);
5917 size += 1 + pb::CodedOutputStream.ComputeEnumSize((
int) Presolve);
5920 size += 1 + pb::CodedOutputStream.ComputeEnumSize((
int) Scaling);
5922 if (_unknownFields !=
null) {
5923 size += _unknownFields.CalculateSize();
5928 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5929 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5930 public void MergeFrom(MPSolverCommonParameters other) {
5931 if (other ==
null) {
5934 if (other.relativeMipGap_ !=
null) {
5935 if (relativeMipGap_ ==
null) {
5936 RelativeMipGap =
new global::OperationsResearch.OptionalDouble();
5938 RelativeMipGap.MergeFrom(other.RelativeMipGap);
5940 if (other.primalTolerance_ !=
null) {
5941 if (primalTolerance_ ==
null) {
5942 PrimalTolerance =
new global::OperationsResearch.OptionalDouble();
5944 PrimalTolerance.MergeFrom(other.PrimalTolerance);
5946 if (other.dualTolerance_ !=
null) {
5947 if (dualTolerance_ ==
null) {
5948 DualTolerance =
new global::OperationsResearch.OptionalDouble();
5950 DualTolerance.MergeFrom(other.DualTolerance);
5952 if (other.HasLpAlgorithm) {
5953 LpAlgorithm = other.LpAlgorithm;
5955 if (other.HasPresolve) {
5956 Presolve = other.Presolve;
5958 if (other.HasScaling) {
5959 Scaling = other.Scaling;
5961 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
5964 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5965 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5966 public void MergeFrom(pb::CodedInputStream input) {
5967 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
5968 input.ReadRawMessage(
this);
5971 while ((tag = input.ReadTag()) != 0) {
5972 if ((tag & 7) == 4) {
5978 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
5981 if (relativeMipGap_ ==
null) {
5982 RelativeMipGap =
new global::OperationsResearch.OptionalDouble();
5984 input.ReadMessage(RelativeMipGap);
5988 if (primalTolerance_ ==
null) {
5989 PrimalTolerance =
new global::OperationsResearch.OptionalDouble();
5991 input.ReadMessage(PrimalTolerance);
5995 if (dualTolerance_ ==
null) {
5996 DualTolerance =
new global::OperationsResearch.OptionalDouble();
5998 input.ReadMessage(DualTolerance);
6002 LpAlgorithm = (global::OperationsResearch.MPSolverCommonParameters.Types.LPAlgorithmValues) input.ReadEnum();
6006 Presolve = (global::Google.OrTools.Util.OptionalBoolean) input.ReadEnum();
6010 Scaling = (global::Google.OrTools.Util.OptionalBoolean) input.ReadEnum();
6018 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
6019 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6020 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6021 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
6023 while ((tag = input.ReadTag()) != 0) {
6024 if ((tag & 7) == 4) {
6030 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
6033 if (relativeMipGap_ ==
null) {
6034 RelativeMipGap =
new global::OperationsResearch.OptionalDouble();
6036 input.ReadMessage(RelativeMipGap);
6040 if (primalTolerance_ ==
null) {
6041 PrimalTolerance =
new global::OperationsResearch.OptionalDouble();
6043 input.ReadMessage(PrimalTolerance);
6047 if (dualTolerance_ ==
null) {
6048 DualTolerance =
new global::OperationsResearch.OptionalDouble();
6050 input.ReadMessage(DualTolerance);
6054 LpAlgorithm = (global::OperationsResearch.MPSolverCommonParameters.Types.LPAlgorithmValues) input.ReadEnum();
6058 Presolve = (global::Google.OrTools.Util.OptionalBoolean) input.ReadEnum();
6062 Scaling = (global::Google.OrTools.Util.OptionalBoolean) input.ReadEnum();
6070 #region Nested types
6072 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6073 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6074 public static partial
class Types {
6075 public enum LPAlgorithmValues {
6076 [pbr::OriginalName(
"LP_ALGO_UNSPECIFIED")] LpAlgoUnspecified = 0,
6080 [pbr::OriginalName(
"LP_ALGO_DUAL")] LpAlgoDual = 1,
6084 [pbr::OriginalName(
"LP_ALGO_PRIMAL")]
LpAlgoPrimal = 2,
6100 [global::System.Diagnostics.DebuggerDisplayAttribute(
"{ToString(),nq}")]
6102 #
if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
6103 , pb::IBufferMessage
6106 private static readonly pb::MessageParser<MPModelDeltaProto> _parser =
new pb::MessageParser<MPModelDeltaProto>(() =>
new MPModelDeltaProto());
6107 private pb::UnknownFieldSet _unknownFields;
6108 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6109 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6110 public static pb::MessageParser<MPModelDeltaProto>
Parser {
get {
return _parser; } }
6112 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6113 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6114 public static pbr::MessageDescriptor Descriptor {
6115 get {
return global::OperationsResearch.LinearSolverReflection.Descriptor.MessageTypes[14]; }
6118 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6119 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6120 pbr::MessageDescriptor pb::IMessage.Descriptor {
6124 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6125 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6126 public MPModelDeltaProto() {
6130 partial
void OnConstruction();
6132 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6133 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6135 baselineModelFilePath_ = other.baselineModelFilePath_;
6136 variableOverrides_ = other.variableOverrides_.Clone();
6137 constraintOverrides_ = other.constraintOverrides_.Clone();
6138 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
6141 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6142 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6148 public const int BaselineModelFilePathFieldNumber = 1;
6149 private readonly
static string BaselineModelFilePathDefaultValue =
"";
6151 private string baselineModelFilePath_;
6152 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6153 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6155 get {
return baselineModelFilePath_ ?? BaselineModelFilePathDefaultValue; }
6157 baselineModelFilePath_ = pb::ProtoPreconditions.CheckNotNull(value,
"value");
6161 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6162 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6164 get {
return baselineModelFilePath_ !=
null; }
6167 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6168 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6169 public void ClearBaselineModelFilePath() {
6170 baselineModelFilePath_ =
null;
6174 public const int VariableOverridesFieldNumber = 2;
6175 private static readonly pbc::MapField<int, global::OperationsResearch.MPVariableProto>.Codec _map_variableOverrides_codec
6176 =
new pbc::MapField<int, global::OperationsResearch.MPVariableProto>.Codec(pb::FieldCodec.ForInt32(8, 0), pb::FieldCodec.ForMessage(18, global::OperationsResearch.
MPVariableProto.
Parser), 18);
6177 private readonly pbc::MapField<int, global::OperationsResearch.MPVariableProto> variableOverrides_ =
new pbc::MapField<int, global::OperationsResearch.MPVariableProto>();
6187 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6188 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6189 public pbc::MapField<int, global::OperationsResearch.MPVariableProto>
VariableOverrides {
6190 get { return variableOverrides_; }
6194 public const int ConstraintOverridesFieldNumber = 3;
6195 private static readonly pbc::MapField<int, global::OperationsResearch.MPConstraintProto>.Codec _map_constraintOverrides_codec
6196 =
new pbc::MapField<int, global::OperationsResearch.MPConstraintProto>.Codec(pb::FieldCodec.ForInt32(8, 0), pb::FieldCodec.ForMessage(18, global::OperationsResearch.
MPConstraintProto.
Parser), 26);
6197 private readonly pbc::MapField<int, global::OperationsResearch.MPConstraintProto> constraintOverrides_ =
new pbc::MapField<int, global::OperationsResearch.MPConstraintProto>();
6207 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6208 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6209 public pbc::MapField<int, global::OperationsResearch.MPConstraintProto>
ConstraintOverrides {
6210 get { return constraintOverrides_; }
6213 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6214 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6215 public override bool Equals(
object other) {
6219 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6220 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6222 if (ReferenceEquals(other,
null)) {
6225 if (ReferenceEquals(other,
this)) {
6231 return Equals(_unknownFields, other._unknownFields);
6234 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6235 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6236 public override int GetHashCode() {
6238 if (HasBaselineModelFilePath) hash ^= BaselineModelFilePath.GetHashCode();
6239 hash ^= VariableOverrides.GetHashCode();
6240 hash ^= ConstraintOverrides.GetHashCode();
6241 if (_unknownFields !=
null) {
6242 hash ^= _unknownFields.GetHashCode();
6247 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6248 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6249 public override string ToString() {
6250 return pb::JsonFormatter.ToDiagnosticString(
this);
6253 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6254 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6255 public void WriteTo(pb::CodedOutputStream output) {
6256 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
6257 output.WriteRawMessage(
this);
6260 output.WriteRawTag(10);
6263 variableOverrides_.WriteTo(output, _map_variableOverrides_codec);
6264 constraintOverrides_.WriteTo(output, _map_constraintOverrides_codec);
6265 if (_unknownFields !=
null) {
6266 _unknownFields.WriteTo(output);
6271 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
6272 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6273 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6274 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
6275 if (HasBaselineModelFilePath) {
6276 output.WriteRawTag(10);
6277 output.WriteString(BaselineModelFilePath);
6279 variableOverrides_.WriteTo(ref output, _map_variableOverrides_codec);
6280 constraintOverrides_.WriteTo(ref output, _map_constraintOverrides_codec);
6281 if (_unknownFields !=
null) {
6282 _unknownFields.WriteTo(ref output);
6287 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6288 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6289 public int CalculateSize() {
6291 if (HasBaselineModelFilePath) {
6292 size += 1 + pb::CodedOutputStream.ComputeStringSize(BaselineModelFilePath);
6294 size += variableOverrides_.CalculateSize(_map_variableOverrides_codec);
6295 size += constraintOverrides_.CalculateSize(_map_constraintOverrides_codec);
6296 if (_unknownFields !=
null) {
6297 size += _unknownFields.CalculateSize();
6302 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6303 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6304 public void MergeFrom(MPModelDeltaProto other) {
6305 if (other ==
null) {
6308 if (other.HasBaselineModelFilePath) {
6309 BaselineModelFilePath = other.BaselineModelFilePath;
6311 variableOverrides_.MergeFrom(other.variableOverrides_);
6312 constraintOverrides_.MergeFrom(other.constraintOverrides_);
6313 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
6316 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6317 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6318 public void MergeFrom(pb::CodedInputStream input) {
6319 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
6320 input.ReadRawMessage(
this);
6323 while ((tag = input.ReadTag()) != 0) {
6324 if ((tag & 7) == 4) {
6330 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
6333 BaselineModelFilePath = input.ReadString();
6337 variableOverrides_.AddEntriesFrom(input, _map_variableOverrides_codec);
6341 constraintOverrides_.AddEntriesFrom(input, _map_constraintOverrides_codec);
6349 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
6350 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6351 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6352 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
6354 while ((tag = input.ReadTag()) != 0) {
6355 if ((tag & 7) == 4) {
6361 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
6364 BaselineModelFilePath = input.ReadString();
6368 variableOverrides_.AddEntriesFrom(ref input, _map_variableOverrides_codec);
6372 constraintOverrides_.AddEntriesFrom(ref input, _map_constraintOverrides_codec);
6385 [global::System.Diagnostics.DebuggerDisplayAttribute(
"{ToString(),nq}")]
6386 public sealed partial
class MPModelRequest : pb::IMessage<MPModelRequest>
6387 #
if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
6388 , pb::IBufferMessage
6391 private static readonly pb::MessageParser<MPModelRequest> _parser =
new pb::MessageParser<MPModelRequest>(() =>
new MPModelRequest());
6392 private pb::UnknownFieldSet _unknownFields;
6393 private int _hasBits0;
6394 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6395 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6396 public static pb::MessageParser<MPModelRequest>
Parser {
get {
return _parser; } }
6398 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6399 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6400 public static pbr::MessageDescriptor Descriptor {
6401 get {
return global::OperationsResearch.LinearSolverReflection.Descriptor.MessageTypes[15]; }
6404 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6405 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6406 pbr::MessageDescriptor pb::IMessage.Descriptor {
6410 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6411 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6412 public MPModelRequest() {
6416 partial
void OnConstruction();
6418 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6419 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6421 _hasBits0 = other._hasBits0;
6422 model_ = other.model_ !=
null ? other.model_.
Clone() :
null;
6423 solverType_ = other.solverType_;
6424 solverTimeLimitSeconds_ = other.solverTimeLimitSeconds_;
6425 enableInternalSolverOutput_ = other.enableInternalSolverOutput_;
6426 solverSpecificParameters_ = other.solverSpecificParameters_;
6427 ignoreSolverSpecificParametersFailure_ = other.ignoreSolverSpecificParametersFailure_;
6428 modelDelta_ = other.modelDelta_ !=
null ? other.modelDelta_.
Clone() :
null;
6429 populateAdditionalSolutionsUpTo_ = other.populateAdditionalSolutionsUpTo_;
6430 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
6433 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6434 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6440 public const int ModelFieldNumber = 1;
6441 private global::OperationsResearch.MPModelProto model_;
6445 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6446 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6448 get {
return model_; }
6456 private readonly
static global::OperationsResearch.MPModelRequest.Types.SolverType SolverTypeDefaultValue = global::OperationsResearch.MPModelRequest.Types.SolverType.GlopLinearProgramming;
6458 private global::OperationsResearch.MPModelRequest.Types.SolverType solverType_;
6459 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6460 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6462 get { if ((_hasBits0 & 1) != 0) { return solverType_; } else { return SolverTypeDefaultValue; } }
6465 solverType_ = value;
6469 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6470 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6472 get {
return (_hasBits0 & 1) != 0; }
6475 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6476 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6477 public void ClearSolverType() {
6482 public const int SolverTimeLimitSecondsFieldNumber = 3;
6483 private readonly
static double SolverTimeLimitSecondsDefaultValue = 0D;
6485 private double solverTimeLimitSeconds_;
6497 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6498 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6500 get {
if ((_hasBits0 & 2) != 0) {
return solverTimeLimitSeconds_; }
else {
return SolverTimeLimitSecondsDefaultValue; } }
6503 solverTimeLimitSeconds_ = value;
6507 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6508 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6510 get {
return (_hasBits0 & 2) != 0; }
6513 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6514 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6515 public void ClearSolverTimeLimitSeconds() {
6521 private readonly
static bool EnableInternalSolverOutputDefaultValue =
false;
6523 private bool enableInternalSolverOutput_;
6530 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6531 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6533 get {
if ((_hasBits0 & 4) != 0) {
return enableInternalSolverOutput_; }
else {
return EnableInternalSolverOutputDefaultValue; } }
6536 enableInternalSolverOutput_ = value;
6540 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6541 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6543 get {
return (_hasBits0 & 4) != 0; }
6546 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6547 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6548 public void ClearEnableInternalSolverOutput() {
6554 private readonly
static string SolverSpecificParametersDefaultValue =
"";
6556 private string solverSpecificParameters_;
6573 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6574 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6576 get {
return solverSpecificParameters_ ?? SolverSpecificParametersDefaultValue; }
6578 solverSpecificParameters_ = pb::ProtoPreconditions.CheckNotNull(value,
"value");
6582 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6583 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6584 public bool HasSolverSpecificParameters {
6585 get {
return solverSpecificParameters_ !=
null; }
6588 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6589 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6590 public void ClearSolverSpecificParameters() {
6591 solverSpecificParameters_ =
null;
6596 private readonly
static bool IgnoreSolverSpecificParametersFailureDefaultValue =
false;
6598 private bool ignoreSolverSpecificParametersFailure_;
6599 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6600 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6602 get {
if ((_hasBits0 & 8) != 0) {
return ignoreSolverSpecificParametersFailure_; }
else {
return IgnoreSolverSpecificParametersFailureDefaultValue; } }
6605 ignoreSolverSpecificParametersFailure_ = value;
6609 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6610 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6611 public bool HasIgnoreSolverSpecificParametersFailure {
6612 get {
return (_hasBits0 & 8) != 0; }
6615 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6616 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6617 public void ClearIgnoreSolverSpecificParametersFailure() {
6623 private global::OperationsResearch.MPModelDeltaProto modelDelta_;
6628 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6629 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6631 get {
return modelDelta_; }
6633 modelDelta_ = value;
6638 public const int PopulateAdditionalSolutionsUpToFieldNumber = 11;
6639 private readonly
static int PopulateAdditionalSolutionsUpToDefaultValue = 0;
6641 private int populateAdditionalSolutionsUpTo_;
6651 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6652 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6654 get {
if ((_hasBits0 & 16) != 0) {
return populateAdditionalSolutionsUpTo_; }
else {
return PopulateAdditionalSolutionsUpToDefaultValue; } }
6657 populateAdditionalSolutionsUpTo_ = value;
6661 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6662 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6663 public bool HasPopulateAdditionalSolutionsUpTo {
6664 get {
return (_hasBits0 & 16) != 0; }
6667 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6668 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6669 public void ClearPopulateAdditionalSolutionsUpTo() {
6673 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6674 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6675 public override bool Equals(
object other) {
6679 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6680 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6682 if (ReferenceEquals(other,
null)) {
6685 if (ReferenceEquals(other,
this)) {
6688 if (!
object.Equals(Model, other.
Model))
return false;
6689 if (SolverType != other.
SolverType)
return false;
6690 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(SolverTimeLimitSeconds, other.
SolverTimeLimitSeconds))
return false;
6696 return Equals(_unknownFields, other._unknownFields);
6699 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6700 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6701 public override int GetHashCode() {
6703 if (model_ !=
null) hash ^= Model.GetHashCode();
6704 if (HasSolverType) hash ^= SolverType.GetHashCode();
6705 if (HasSolverTimeLimitSeconds) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(SolverTimeLimitSeconds);
6706 if (HasEnableInternalSolverOutput) hash ^= EnableInternalSolverOutput.GetHashCode();
6707 if (HasSolverSpecificParameters) hash ^= SolverSpecificParameters.GetHashCode();
6708 if (HasIgnoreSolverSpecificParametersFailure) hash ^= IgnoreSolverSpecificParametersFailure.GetHashCode();
6709 if (modelDelta_ !=
null) hash ^= ModelDelta.GetHashCode();
6710 if (HasPopulateAdditionalSolutionsUpTo) hash ^= PopulateAdditionalSolutionsUpTo.GetHashCode();
6711 if (_unknownFields !=
null) {
6712 hash ^= _unknownFields.GetHashCode();
6717 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6718 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6719 public override string ToString() {
6720 return pb::JsonFormatter.ToDiagnosticString(
this);
6723 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6724 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6725 public void WriteTo(pb::CodedOutputStream output) {
6726 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
6727 output.WriteRawMessage(
this);
6729 if (model_ !=
null) {
6730 output.WriteRawTag(10);
6731 output.WriteMessage(
Model);
6733 if (HasSolverType) {
6734 output.WriteRawTag(16);
6735 output.WriteEnum((
int) SolverType);
6737 if (HasSolverTimeLimitSeconds) {
6738 output.WriteRawTag(25);
6739 output.WriteDouble(SolverTimeLimitSeconds);
6741 if (HasEnableInternalSolverOutput) {
6742 output.WriteRawTag(32);
6743 output.WriteBool(EnableInternalSolverOutput);
6745 if (HasSolverSpecificParameters) {
6746 output.WriteRawTag(42);
6747 output.WriteString(SolverSpecificParameters);
6749 if (modelDelta_ !=
null) {
6750 output.WriteRawTag(66);
6751 output.WriteMessage(ModelDelta);
6753 if (HasIgnoreSolverSpecificParametersFailure) {
6754 output.WriteRawTag(72);
6755 output.WriteBool(IgnoreSolverSpecificParametersFailure);
6757 if (HasPopulateAdditionalSolutionsUpTo) {
6758 output.WriteRawTag(88);
6759 output.WriteInt32(PopulateAdditionalSolutionsUpTo);
6761 if (_unknownFields !=
null) {
6762 _unknownFields.WriteTo(output);
6767 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
6768 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6769 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6770 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
6771 if (model_ !=
null) {
6772 output.WriteRawTag(10);
6773 output.WriteMessage(Model);
6775 if (HasSolverType) {
6776 output.WriteRawTag(16);
6777 output.WriteEnum((
int) SolverType);
6779 if (HasSolverTimeLimitSeconds) {
6780 output.WriteRawTag(25);
6781 output.WriteDouble(SolverTimeLimitSeconds);
6783 if (HasEnableInternalSolverOutput) {
6784 output.WriteRawTag(32);
6785 output.WriteBool(EnableInternalSolverOutput);
6787 if (HasSolverSpecificParameters) {
6788 output.WriteRawTag(42);
6789 output.WriteString(SolverSpecificParameters);
6791 if (modelDelta_ !=
null) {
6792 output.WriteRawTag(66);
6793 output.WriteMessage(ModelDelta);
6795 if (HasIgnoreSolverSpecificParametersFailure) {
6796 output.WriteRawTag(72);
6797 output.WriteBool(IgnoreSolverSpecificParametersFailure);
6799 if (HasPopulateAdditionalSolutionsUpTo) {
6800 output.WriteRawTag(88);
6801 output.WriteInt32(PopulateAdditionalSolutionsUpTo);
6803 if (_unknownFields !=
null) {
6804 _unknownFields.WriteTo(ref output);
6809 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6810 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6811 public int CalculateSize() {
6813 if (model_ !=
null) {
6814 size += 1 + pb::CodedOutputStream.ComputeMessageSize(Model);
6816 if (HasSolverType) {
6817 size += 1 + pb::CodedOutputStream.ComputeEnumSize((
int) SolverType);
6819 if (HasSolverTimeLimitSeconds) {
6825 if (HasSolverSpecificParameters) {
6826 size += 1 + pb::CodedOutputStream.ComputeStringSize(SolverSpecificParameters);
6828 if (HasIgnoreSolverSpecificParametersFailure) {
6831 if (modelDelta_ !=
null) {
6832 size += 1 + pb::CodedOutputStream.ComputeMessageSize(ModelDelta);
6834 if (HasPopulateAdditionalSolutionsUpTo) {
6835 size += 1 + pb::CodedOutputStream.ComputeInt32Size(PopulateAdditionalSolutionsUpTo);
6837 if (_unknownFields !=
null) {
6838 size += _unknownFields.CalculateSize();
6843 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6844 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6845 public void MergeFrom(MPModelRequest other) {
6846 if (other ==
null) {
6849 if (other.model_ !=
null) {
6850 if (model_ ==
null) {
6851 Model =
new global::OperationsResearch.MPModelProto();
6853 Model.MergeFrom(other.Model);
6855 if (other.HasSolverType) {
6858 if (other.HasSolverTimeLimitSeconds) {
6859 SolverTimeLimitSeconds = other.SolverTimeLimitSeconds;
6861 if (other.HasEnableInternalSolverOutput) {
6862 EnableInternalSolverOutput = other.EnableInternalSolverOutput;
6864 if (other.HasSolverSpecificParameters) {
6865 SolverSpecificParameters = other.SolverSpecificParameters;
6867 if (other.HasIgnoreSolverSpecificParametersFailure) {
6868 IgnoreSolverSpecificParametersFailure = other.IgnoreSolverSpecificParametersFailure;
6870 if (other.modelDelta_ !=
null) {
6871 if (modelDelta_ ==
null) {
6872 ModelDelta =
new global::OperationsResearch.MPModelDeltaProto();
6874 ModelDelta.MergeFrom(other.ModelDelta);
6876 if (other.HasPopulateAdditionalSolutionsUpTo) {
6877 PopulateAdditionalSolutionsUpTo = other.PopulateAdditionalSolutionsUpTo;
6879 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
6882 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6883 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6884 public void MergeFrom(pb::CodedInputStream input) {
6885 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
6886 input.ReadRawMessage(
this);
6889 while ((tag = input.ReadTag()) != 0) {
6890 if ((tag & 7) == 4) {
6896 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
6899 if (model_ ==
null) {
6900 Model =
new global::OperationsResearch.MPModelProto();
6902 input.ReadMessage(
Model);
6906 SolverType = (global::OperationsResearch.MPModelRequest.Types.SolverType) input.ReadEnum();
6910 SolverTimeLimitSeconds = input.ReadDouble();
6914 EnableInternalSolverOutput = input.ReadBool();
6918 SolverSpecificParameters = input.ReadString();
6922 if (modelDelta_ ==
null) {
6923 ModelDelta =
new global::OperationsResearch.MPModelDeltaProto();
6925 input.ReadMessage(ModelDelta);
6929 IgnoreSolverSpecificParametersFailure = input.ReadBool();
6933 PopulateAdditionalSolutionsUpTo = input.ReadInt32();
6941 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
6942 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6943 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6944 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
6946 while ((tag = input.ReadTag()) != 0) {
6947 if ((tag & 7) == 4) {
6953 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
6956 if (model_ ==
null) {
6957 Model =
new global::OperationsResearch.MPModelProto();
6959 input.ReadMessage(Model);
6963 SolverType = (global::OperationsResearch.MPModelRequest.Types.SolverType) input.ReadEnum();
6967 SolverTimeLimitSeconds = input.ReadDouble();
6971 EnableInternalSolverOutput = input.ReadBool();
6975 SolverSpecificParameters = input.ReadString();
6979 if (modelDelta_ ==
null) {
6980 ModelDelta =
new global::OperationsResearch.MPModelDeltaProto();
6982 input.ReadMessage(ModelDelta);
6986 IgnoreSolverSpecificParametersFailure = input.ReadBool();
6990 PopulateAdditionalSolutionsUpTo = input.ReadInt32();
6998 #region Nested types
7000 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7001 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7002 public static partial
class Types {
7010 public enum SolverType {
7011 [pbr::OriginalName(
"CLP_LINEAR_PROGRAMMING")] ClpLinearProgramming = 0,
7071 [global::System.Diagnostics.DebuggerDisplayAttribute(
"{ToString(),nq}")]
7072 public sealed partial
class MPSolution : pb::IMessage<MPSolution>
7073 #
if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
7074 , pb::IBufferMessage
7077 private static readonly pb::MessageParser<MPSolution> _parser =
new pb::MessageParser<MPSolution>(() =>
new MPSolution());
7078 private pb::UnknownFieldSet _unknownFields;
7079 private int _hasBits0;
7080 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7081 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7082 public static pb::MessageParser<MPSolution>
Parser {
get {
return _parser; } }
7084 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7085 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7086 public static pbr::MessageDescriptor
Descriptor {
7087 get {
return global::OperationsResearch.LinearSolverReflection.Descriptor.MessageTypes[16]; }
7090 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7091 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7092 pbr::MessageDescriptor pb::IMessage.Descriptor {
7096 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7097 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7102 partial
void OnConstruction();
7104 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7105 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7107 _hasBits0 = other._hasBits0;
7108 objectiveValue_ = other.objectiveValue_;
7109 variableValue_ = other.variableValue_.Clone();
7110 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
7113 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7114 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7120 public const int ObjectiveValueFieldNumber = 1;
7121 private readonly
static double ObjectiveValueDefaultValue = 0D;
7123 private double objectiveValue_;
7124 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7125 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7127 get {
if ((_hasBits0 & 1) != 0) {
return objectiveValue_; }
else {
return ObjectiveValueDefaultValue; } }
7130 objectiveValue_ = value;
7134 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7135 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7136 public bool HasObjectiveValue {
7137 get {
return (_hasBits0 & 1) != 0; }
7140 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7141 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7142 public void ClearObjectiveValue() {
7148 private static readonly pb::FieldCodec<double> _repeated_variableValue_codec
7149 = pb::FieldCodec.ForDouble(18);
7150 private readonly pbc::RepeatedField<double> variableValue_ =
new pbc::RepeatedField<double>();
7151 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7152 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7154 get {
return variableValue_; }
7157 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7158 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7159 public override bool Equals(
object other) {
7163 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7164 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7166 if (ReferenceEquals(other,
null)) {
7169 if (ReferenceEquals(other,
this)) {
7172 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(ObjectiveValue, other.
ObjectiveValue))
return false;
7173 if(!variableValue_.Equals(other.variableValue_))
return false;
7174 return Equals(_unknownFields, other._unknownFields);
7177 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7178 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7182 hash ^= variableValue_.GetHashCode();
7183 if (_unknownFields !=
null) {
7184 hash ^= _unknownFields.GetHashCode();
7189 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7190 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7191 public override string ToString() {
7192 return pb::JsonFormatter.ToDiagnosticString(
this);
7195 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7196 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7197 public void WriteTo(pb::CodedOutputStream output) {
7198 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
7199 output.WriteRawMessage(
this);
7201 if (HasObjectiveValue) {
7202 output.WriteRawTag(9);
7205 variableValue_.WriteTo(output, _repeated_variableValue_codec);
7206 if (_unknownFields !=
null) {
7207 _unknownFields.WriteTo(output);
7212 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
7213 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7214 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7215 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
7216 if (HasObjectiveValue) {
7217 output.WriteRawTag(9);
7218 output.WriteDouble(ObjectiveValue);
7220 variableValue_.WriteTo(ref output, _repeated_variableValue_codec);
7221 if (_unknownFields !=
null) {
7222 _unknownFields.WriteTo(ref output);
7227 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7228 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7229 public int CalculateSize() {
7231 if (HasObjectiveValue) {
7234 size += variableValue_.CalculateSize(_repeated_variableValue_codec);
7235 if (_unknownFields !=
null) {
7236 size += _unknownFields.CalculateSize();
7241 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7242 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7244 if (other ==
null) {
7250 variableValue_.Add(other.variableValue_);
7251 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
7254 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7255 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7256 public void MergeFrom(pb::CodedInputStream input) {
7257 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
7258 input.ReadRawMessage(
this);
7261 while ((tag = input.ReadTag()) != 0) {
7262 if ((tag & 7) == 4) {
7268 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
7276 variableValue_.AddEntriesFrom(input, _repeated_variableValue_codec);
7284 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
7285 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7286 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7287 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
7289 while ((tag = input.ReadTag()) != 0) {
7290 if ((tag & 7) == 4) {
7296 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
7299 ObjectiveValue = input.ReadDouble();
7304 variableValue_.AddEntriesFrom(ref input, _repeated_variableValue_codec);
7314 [global::System.Diagnostics.DebuggerDisplayAttribute(
"{ToString(),nq}")]
7315 public sealed partial class MPSolveInfo : pb::IMessage<MPSolveInfo>
7316 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
7317 , pb::IBufferMessage
7320 private static readonly pb::MessageParser<MPSolveInfo> _parser =
new pb::MessageParser<MPSolveInfo>(() =>
new MPSolveInfo());
7321 private pb::UnknownFieldSet _unknownFields;
7322 private int _hasBits0;
7323 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7324 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7325 public static pb::MessageParser<MPSolveInfo> Parser {
get {
return _parser; } }
7327 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7328 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7329 public static pbr::MessageDescriptor
Descriptor {
7330 get {
return global::OperationsResearch.LinearSolverReflection.Descriptor.MessageTypes[17]; }
7333 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7334 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7335 pbr::MessageDescriptor pb::IMessage.Descriptor {
7339 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7340 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7345 partial
void OnConstruction();
7347 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7348 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7350 _hasBits0 = other._hasBits0;
7351 solveWallTimeSeconds_ = other.solveWallTimeSeconds_;
7352 solveUserTimeSeconds_ = other.solveUserTimeSeconds_;
7353 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
7356 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7357 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7363 public const int SolveWallTimeSecondsFieldNumber = 1;
7364 private readonly
static double SolveWallTimeSecondsDefaultValue = 0D;
7366 private double solveWallTimeSeconds_;
7374 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7375 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7377 get {
if ((_hasBits0 & 1) != 0) {
return solveWallTimeSeconds_; }
else {
return SolveWallTimeSecondsDefaultValue; } }
7380 solveWallTimeSeconds_ = value;
7384 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7385 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7386 public bool HasSolveWallTimeSeconds {
7387 get {
return (_hasBits0 & 1) != 0; }
7390 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7391 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7392 public void ClearSolveWallTimeSeconds() {
7398 private readonly
static double SolveUserTimeSecondsDefaultValue = 0D;
7400 private double solveUserTimeSeconds_;
7401 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7402 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7404 get {
if ((_hasBits0 & 2) != 0) {
return solveUserTimeSeconds_; }
else {
return SolveUserTimeSecondsDefaultValue; } }
7407 solveUserTimeSeconds_ = value;
7411 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7412 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7413 public bool HasSolveUserTimeSeconds {
7414 get {
return (_hasBits0 & 2) != 0; }
7417 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7418 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7419 public void ClearSolveUserTimeSeconds() {
7423 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7424 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7425 public override bool Equals(
object other) {
7429 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7430 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7432 if (ReferenceEquals(other,
null)) {
7435 if (ReferenceEquals(other,
this)) {
7438 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(SolveWallTimeSeconds, other.SolveWallTimeSeconds))
return false;
7439 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(SolveUserTimeSeconds, other.SolveUserTimeSeconds))
return false;
7440 return Equals(_unknownFields, other._unknownFields);
7443 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7444 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7449 if (_unknownFields !=
null) {
7450 hash ^= _unknownFields.GetHashCode();
7455 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7456 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7457 public override string ToString() {
7458 return pb::JsonFormatter.ToDiagnosticString(
this);
7461 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7462 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7463 public void WriteTo(pb::CodedOutputStream output) {
7464 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
7465 output.WriteRawMessage(
this);
7467 if (HasSolveWallTimeSeconds) {
7468 output.WriteRawTag(9);
7471 if (HasSolveUserTimeSeconds) {
7472 output.WriteRawTag(17);
7473 output.WriteDouble(SolveUserTimeSeconds);
7475 if (_unknownFields !=
null) {
7476 _unknownFields.WriteTo(output);
7481 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
7482 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7483 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7484 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
7485 if (HasSolveWallTimeSeconds) {
7486 output.WriteRawTag(9);
7487 output.WriteDouble(SolveWallTimeSeconds);
7489 if (HasSolveUserTimeSeconds) {
7490 output.WriteRawTag(17);
7491 output.WriteDouble(SolveUserTimeSeconds);
7493 if (_unknownFields !=
null) {
7494 _unknownFields.WriteTo(ref output);
7499 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7500 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7501 public int CalculateSize() {
7503 if (HasSolveWallTimeSeconds) {
7506 if (HasSolveUserTimeSeconds) {
7509 if (_unknownFields !=
null) {
7510 size += _unknownFields.CalculateSize();
7515 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7516 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7518 if (other ==
null) {
7521 if (other.HasSolveWallTimeSeconds) {
7522 SolveWallTimeSeconds = other.SolveWallTimeSeconds;
7524 if (other.HasSolveUserTimeSeconds) {
7525 SolveUserTimeSeconds = other.SolveUserTimeSeconds;
7527 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
7530 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7531 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7532 public void MergeFrom(pb::CodedInputStream input) {
7533 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
7534 input.ReadRawMessage(
this);
7537 while ((tag = input.ReadTag()) != 0) {
7538 if ((tag & 7) == 4) {
7544 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
7551 SolveUserTimeSeconds = input.ReadDouble();
7559 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
7560 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7561 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7562 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
7564 while ((tag = input.ReadTag()) != 0) {
7565 if ((tag & 7) == 4) {
7571 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
7574 SolveWallTimeSeconds = input.ReadDouble();
7578 SolveUserTimeSeconds = input.ReadDouble();
7591 [global::System.Diagnostics.DebuggerDisplayAttribute(
"{ToString(),nq}")]
7592 public sealed partial
class MPSolutionResponse : pb::IMessage<MPSolutionResponse>
7593 #
if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
7594 , pb::IBufferMessage
7597 private static readonly pb::MessageParser<MPSolutionResponse> _parser =
new pb::MessageParser<MPSolutionResponse>(() =>
new MPSolutionResponse());
7598 private pb::UnknownFieldSet _unknownFields;
7599 private int _hasBits0;
7600 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7601 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7602 public static pb::MessageParser<MPSolutionResponse> Parser {
get {
return _parser; } }
7604 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7605 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7606 public static pbr::MessageDescriptor
Descriptor {
7607 get {
return global::OperationsResearch.LinearSolverReflection.Descriptor.MessageTypes[18]; }
7610 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7611 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7612 pbr::MessageDescriptor pb::IMessage.Descriptor {
7616 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7617 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7622 partial
void OnConstruction();
7624 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7625 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7627 _hasBits0 = other._hasBits0;
7628 status_ = other.status_;
7629 statusStr_ = other.statusStr_;
7630 objectiveValue_ = other.objectiveValue_;
7631 bestObjectiveBound_ = other.bestObjectiveBound_;
7632 variableValue_ = other.variableValue_.Clone();
7633 solveInfo_ = other.solveInfo_ !=
null ? other.solveInfo_.
Clone() :
null;
7634 solverSpecificInfo_ = other.solverSpecificInfo_;
7635 dualValue_ = other.dualValue_.Clone();
7636 reducedCost_ = other.reducedCost_.Clone();
7637 additionalSolutions_ = other.additionalSolutions_.Clone();
7638 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
7641 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7642 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7648 public const int StatusFieldNumber = 1;
7649 private readonly
static global::OperationsResearch.MPSolverResponseStatus StatusDefaultValue = global::OperationsResearch.MPSolverResponseStatus.MpsolverUnknownStatus;
7651 private global::OperationsResearch.MPSolverResponseStatus status_;
7655 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7656 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7658 get {
if ((_hasBits0 & 1) != 0) {
return status_; }
else {
return StatusDefaultValue; } }
7665 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7666 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7667 public bool HasStatus {
7668 get {
return (_hasBits0 & 1) != 0; }
7671 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7672 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7673 public void ClearStatus() {
7679 private readonly
static string StatusStrDefaultValue =
"";
7681 private string statusStr_;
7688 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7689 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7691 get {
return statusStr_ ?? StatusStrDefaultValue; }
7693 statusStr_ = pb::ProtoPreconditions.CheckNotNull(value,
"value");
7697 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7698 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7699 public bool HasStatusStr {
7700 get {
return statusStr_ !=
null; }
7703 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7704 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7705 public void ClearStatusStr() {
7711 private readonly
static double ObjectiveValueDefaultValue = 0D;
7713 private double objectiveValue_;
7719 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7720 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7722 get {
if ((_hasBits0 & 2) != 0) {
return objectiveValue_; }
else {
return ObjectiveValueDefaultValue; } }
7725 objectiveValue_ = value;
7729 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7730 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7731 public bool HasObjectiveValue {
7732 get {
return (_hasBits0 & 2) != 0; }
7735 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7736 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7737 public void ClearObjectiveValue() {
7743 private readonly
static double BestObjectiveBoundDefaultValue = 0D;
7745 private double bestObjectiveBound_;
7753 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7754 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7756 get {
if ((_hasBits0 & 4) != 0) {
return bestObjectiveBound_; }
else {
return BestObjectiveBoundDefaultValue; } }
7759 bestObjectiveBound_ = value;
7763 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7764 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7765 public bool HasBestObjectiveBound {
7766 get {
return (_hasBits0 & 4) != 0; }
7769 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7770 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7771 public void ClearBestObjectiveBound() {
7777 private static readonly pb::FieldCodec<double> _repeated_variableValue_codec
7778 = pb::FieldCodec.ForDouble(26);
7779 private readonly pbc::RepeatedField<double> variableValue_ =
new pbc::RepeatedField<double>();
7785 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7786 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7788 get {
return variableValue_; }
7792 public const int SolveInfoFieldNumber = 10;
7793 private global::OperationsResearch.MPSolveInfo solveInfo_;
7799 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7800 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7801 public global::OperationsResearch.MPSolveInfo
SolveInfo {
7802 get {
return solveInfo_; }
7809 public const int SolverSpecificInfoFieldNumber = 11;
7810 private readonly
static pb::ByteString SolverSpecificInfoDefaultValue = pb::ByteString.Empty;
7812 private pb::ByteString solverSpecificInfo_;
7817 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7818 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7820 get {
return solverSpecificInfo_ ?? SolverSpecificInfoDefaultValue; }
7822 solverSpecificInfo_ = pb::ProtoPreconditions.CheckNotNull(value,
"value");
7826 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7827 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7828 public bool HasSolverSpecificInfo {
7829 get {
return solverSpecificInfo_ !=
null; }
7832 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7833 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7834 public void ClearSolverSpecificInfo() {
7835 solverSpecificInfo_ =
null;
7840 private static readonly pb::FieldCodec<double> _repeated_dualValue_codec
7841 = pb::FieldCodec.ForDouble(34);
7842 private readonly pbc::RepeatedField<double> dualValue_ =
new pbc::RepeatedField<double>();
7851 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7852 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7853 public pbc::RepeatedField<double>
DualValue {
7854 get {
return dualValue_; }
7858 public const int ReducedCostFieldNumber = 6;
7859 private static readonly pb::FieldCodec<double> _repeated_reducedCost_codec
7860 = pb::FieldCodec.ForDouble(50);
7861 private readonly pbc::RepeatedField<double> reducedCost_ =
new pbc::RepeatedField<double>();
7870 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7871 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7873 get {
return reducedCost_; }
7877 public const int AdditionalSolutionsFieldNumber = 8;
7878 private static readonly pb::FieldCodec<global::OperationsResearch.MPSolution> _repeated_additionalSolutions_codec
7879 = pb::FieldCodec.ForMessage(66, global::OperationsResearch.
MPSolution.
Parser);
7880 private readonly pbc::RepeatedField<global::OperationsResearch.MPSolution> additionalSolutions_ =
new pbc::RepeatedField<global::OperationsResearch.MPSolution>();
7888 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7889 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7891 get {
return additionalSolutions_; }
7894 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7895 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7896 public override bool Equals(
object other) {
7900 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7901 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7903 if (ReferenceEquals(other,
null)) {
7906 if (ReferenceEquals(other,
this)) {
7909 if (Status != other.
Status)
return false;
7910 if (StatusStr != other.
StatusStr)
return false;
7911 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(ObjectiveValue, other.
ObjectiveValue))
return false;
7912 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(BestObjectiveBound, other.
BestObjectiveBound))
return false;
7913 if(!variableValue_.Equals(other.variableValue_))
return false;
7916 if(!dualValue_.Equals(other.dualValue_))
return false;
7917 if(!reducedCost_.Equals(other.reducedCost_))
return false;
7918 if(!additionalSolutions_.Equals(other.additionalSolutions_))
return false;
7919 return Equals(_unknownFields, other._unknownFields);
7922 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7923 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7924 public override int GetHashCode() {
7926 if (HasStatus) hash ^= Status.GetHashCode();
7927 if (HasStatusStr) hash ^= StatusStr.GetHashCode();
7928 if (HasObjectiveValue) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(ObjectiveValue);
7929 if (HasBestObjectiveBound) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(BestObjectiveBound);
7930 hash ^= variableValue_.GetHashCode();
7931 if (solveInfo_ !=
null) hash ^= SolveInfo.GetHashCode();
7932 if (HasSolverSpecificInfo) hash ^= SolverSpecificInfo.GetHashCode();
7933 hash ^= dualValue_.GetHashCode();
7934 hash ^= reducedCost_.GetHashCode();
7935 hash ^= additionalSolutions_.GetHashCode();
7936 if (_unknownFields !=
null) {
7937 hash ^= _unknownFields.GetHashCode();
7942 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7943 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7944 public override string ToString() {
7945 return pb::JsonFormatter.ToDiagnosticString(
this);
7948 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7949 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7950 public void WriteTo(pb::CodedOutputStream output) {
7951 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
7952 output.WriteRawMessage(
this);
7955 output.WriteRawTag(8);
7956 output.WriteEnum((
int)
Status);
7958 if (HasObjectiveValue) {
7959 output.WriteRawTag(17);
7960 output.WriteDouble(ObjectiveValue);
7962 variableValue_.WriteTo(output, _repeated_variableValue_codec);
7963 dualValue_.WriteTo(output, _repeated_dualValue_codec);
7964 if (HasBestObjectiveBound) {
7965 output.WriteRawTag(41);
7966 output.WriteDouble(BestObjectiveBound);
7968 reducedCost_.WriteTo(output, _repeated_reducedCost_codec);
7970 output.WriteRawTag(58);
7971 output.WriteString(StatusStr);
7973 additionalSolutions_.WriteTo(output, _repeated_additionalSolutions_codec);
7974 if (solveInfo_ !=
null) {
7975 output.WriteRawTag(82);
7976 output.WriteMessage(SolveInfo);
7978 if (HasSolverSpecificInfo) {
7979 output.WriteRawTag(90);
7980 output.WriteBytes(SolverSpecificInfo);
7982 if (_unknownFields !=
null) {
7983 _unknownFields.WriteTo(output);
7988 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
7989 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7990 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7991 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
7993 output.WriteRawTag(8);
7994 output.WriteEnum((
int) Status);
7996 if (HasObjectiveValue) {
7997 output.WriteRawTag(17);
7998 output.WriteDouble(ObjectiveValue);
8000 variableValue_.WriteTo(ref output, _repeated_variableValue_codec);
8001 dualValue_.WriteTo(ref output, _repeated_dualValue_codec);
8002 if (HasBestObjectiveBound) {
8003 output.WriteRawTag(41);
8004 output.WriteDouble(BestObjectiveBound);
8006 reducedCost_.WriteTo(ref output, _repeated_reducedCost_codec);
8008 output.WriteRawTag(58);
8009 output.WriteString(StatusStr);
8011 additionalSolutions_.WriteTo(ref output, _repeated_additionalSolutions_codec);
8012 if (solveInfo_ !=
null) {
8013 output.WriteRawTag(82);
8014 output.WriteMessage(SolveInfo);
8016 if (HasSolverSpecificInfo) {
8017 output.WriteRawTag(90);
8018 output.WriteBytes(SolverSpecificInfo);
8020 if (_unknownFields !=
null) {
8021 _unknownFields.WriteTo(ref output);
8026 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8027 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
8028 public int CalculateSize() {
8031 size += 1 + pb::CodedOutputStream.ComputeEnumSize((
int) Status);
8034 size += 1 + pb::CodedOutputStream.ComputeStringSize(StatusStr);
8036 if (HasObjectiveValue) {
8042 size += variableValue_.CalculateSize(_repeated_variableValue_codec);
8043 if (solveInfo_ !=
null) {
8044 size += 1 + pb::CodedOutputStream.ComputeMessageSize(SolveInfo);
8046 if (HasSolverSpecificInfo) {
8047 size += 1 + pb::CodedOutputStream.ComputeBytesSize(SolverSpecificInfo);
8049 size += dualValue_.CalculateSize(_repeated_dualValue_codec);
8050 size += reducedCost_.CalculateSize(_repeated_reducedCost_codec);
8051 size += additionalSolutions_.CalculateSize(_repeated_additionalSolutions_codec);
8052 if (_unknownFields !=
null) {
8053 size += _unknownFields.CalculateSize();
8058 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8059 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
8060 public void MergeFrom(MPSolutionResponse other) {
8061 if (other ==
null) {
8064 if (other.HasStatus) {
8065 Status = other.Status;
8067 if (other.HasStatusStr) {
8068 StatusStr = other.StatusStr;
8070 if (other.HasObjectiveValue) {
8073 if (other.HasBestObjectiveBound) {
8074 BestObjectiveBound = other.BestObjectiveBound;
8076 variableValue_.Add(other.variableValue_);
8077 if (other.solveInfo_ !=
null) {
8078 if (solveInfo_ ==
null) {
8079 SolveInfo =
new global::OperationsResearch.MPSolveInfo();
8081 SolveInfo.MergeFrom(other.SolveInfo);
8083 if (other.HasSolverSpecificInfo) {
8084 SolverSpecificInfo = other.SolverSpecificInfo;
8086 dualValue_.Add(other.dualValue_);
8087 reducedCost_.Add(other.reducedCost_);
8088 additionalSolutions_.Add(other.additionalSolutions_);
8089 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
8092 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8093 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
8094 public void MergeFrom(pb::CodedInputStream input) {
8095 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
8096 input.ReadRawMessage(
this);
8099 while ((tag = input.ReadTag()) != 0) {
8100 if ((tag & 7) == 4) {
8106 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
8109 Status = (global::OperationsResearch.MPSolverResponseStatus) input.ReadEnum();
8113 ObjectiveValue = input.ReadDouble();
8118 variableValue_.AddEntriesFrom(input, _repeated_variableValue_codec);
8123 dualValue_.AddEntriesFrom(input, _repeated_dualValue_codec);
8127 BestObjectiveBound = input.ReadDouble();
8132 reducedCost_.AddEntriesFrom(input, _repeated_reducedCost_codec);
8136 StatusStr = input.ReadString();
8140 additionalSolutions_.AddEntriesFrom(input, _repeated_additionalSolutions_codec);
8144 if (solveInfo_ ==
null) {
8145 SolveInfo =
new global::OperationsResearch.MPSolveInfo();
8147 input.ReadMessage(SolveInfo);
8151 SolverSpecificInfo = input.ReadBytes();
8159 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
8160 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8161 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
8162 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
8164 while ((tag = input.ReadTag()) != 0) {
8165 if ((tag & 7) == 4) {
8171 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
8174 Status = (global::OperationsResearch.MPSolverResponseStatus) input.ReadEnum();
8178 ObjectiveValue = input.ReadDouble();
8183 variableValue_.AddEntriesFrom(ref input, _repeated_variableValue_codec);
8188 dualValue_.AddEntriesFrom(ref input, _repeated_dualValue_codec);
8192 BestObjectiveBound = input.ReadDouble();
8197 reducedCost_.AddEntriesFrom(ref input, _repeated_reducedCost_codec);
8201 StatusStr = input.ReadString();
8205 additionalSolutions_.AddEntriesFrom(ref input, _repeated_additionalSolutions_codec);
8209 if (solveInfo_ ==
null) {
8210 SolveInfo =
new global::OperationsResearch.MPSolveInfo();
8212 input.ReadMessage(SolveInfo);
8216 SolverSpecificInfo = input.ReadBytes();
8230#endregion Designer generated code
global::Google.Protobuf pb
global::Google.Protobuf.Reflection pbr
global::System.Collections.Generic scg
global::Google.Protobuf.Collections pbc
Holder for reflection information generated from ortools/linear_solver/linear_solver....
static pbr::FileDescriptor Descriptor
File descriptor for ortools/linear_solver/linear_solver.proto.
Sets a variable's value to the absolute value of another variable.
override bool Equals(object other)
static pbr::MessageDescriptor Descriptor
void ClearResultantVarIndex()
Clears the value of the "resultant_var_index" field.
const int ResultantVarIndexFieldNumber
Field number for the "resultant_var_index" field.
static pb::MessageParser< MPAbsConstraint > Parser
void ClearVarIndex()
Clears the value of the "var_index" field.
void WriteTo(pb::CodedOutputStream output)
int VarIndex
Variable indices are relative to the "variable" field in MPModelProto. resultant_var = abs(var)
const int VarIndexFieldNumber
Field number for the "var_index" field.
bool HasResultantVarIndex
Gets whether the "resultant_var_index" field is set.
bool HasVarIndex
Gets whether the "var_index" field is set.
Sets a variable's value equal to a function on a set of variables.
pbc::RepeatedField< int > VarIndex
Variable indices are relative to the "variable" field in MPModelProto.
override bool Equals(object other)
static pb::MessageParser< MPArrayConstraint > Parser
bool HasResultantVarIndex
Gets whether the "resultant_var_index" field is set.
void WriteTo(pb::CodedOutputStream output)
const int ResultantVarIndexFieldNumber
Field number for the "resultant_var_index" field.
const int VarIndexFieldNumber
Field number for the "var_index" field.
void ClearResultantVarIndex()
Clears the value of the "resultant_var_index" field.
static pbr::MessageDescriptor Descriptor
Sets a variable's value equal to a function on a set of variables and, optionally,...
const int ResultantVarIndexFieldNumber
Field number for the "resultant_var_index" field.
override bool Equals(object other)
pbc::RepeatedField< int > VarIndex
Variable indices are relative to the "variable" field in MPModelProto. resultant_var = f(var_1,...
void WriteTo(pb::CodedOutputStream output)
static pb::MessageParser< MPArrayWithConstantConstraint > Parser
void ClearResultantVarIndex()
Clears the value of the "resultant_var_index" field.
bool HasConstant
Gets whether the "constant" field is set.
static pbr::MessageDescriptor Descriptor
void ClearConstant()
Clears the value of the "constant" field.
MPArrayWithConstantConstraint()
bool HasResultantVarIndex
Gets whether the "resultant_var_index" field is set.
const int VarIndexFieldNumber
Field number for the "var_index" field.
const int ConstantFieldNumber
Field number for the "constant" field.
A linear constraint is always of the form: lower_bound <= sum of linear term elements <= upper_bound,...
bool HasLowerBound
Gets whether the "lower_bound" field is set.
const int CoefficientFieldNumber
Field number for the "coefficient" field.
bool HasIsLazy
Gets whether the "is_lazy" field is set.
static pb::MessageParser< MPConstraintProto > Parser
static pbr::MessageDescriptor Descriptor
void ClearUpperBound()
Clears the value of the "upper_bound" field.
const int NameFieldNumber
Field number for the "name" field.
bool HasUpperBound
Gets whether the "upper_bound" field is set.
double LowerBound
lower_bound must be <= upper_bound.
const int VarIndexFieldNumber
Field number for the "var_index" field.
pbc::RepeatedField< double > Coefficient
Must be finite.
void ClearIsLazy()
Clears the value of the "is_lazy" field.
const int IsLazyFieldNumber
Field number for the "is_lazy" field.
MPConstraintProto Clone()
bool HasName
Gets whether the "name" field is set.
void ClearLowerBound()
Clears the value of the "lower_bound" field.
pbc::RepeatedField< int > VarIndex
var_index[i] is the variable index (w.r.t. to "variable" field of MPModelProto) of the i-th linear te...
void ClearName()
Clears the value of the "name" field.
bool IsLazy
[Advanced usage: do not use this if you don't know what you're doing.] A lazy constraint is handled d...
override bool Equals(object other)
string Name
The name of the constraint.
const int LowerBoundFieldNumber
Field number for the "lower_bound" field.
void WriteTo(pb::CodedOutputStream output)
const int UpperBoundFieldNumber
Field number for the "upper_bound" field.
General constraints. See each individual proto type for more information.
global::OperationsResearch.MPArrayConstraint AndConstraint
All variables in "and" constraints must be Boolean. resultant_var = and(var_1, var_2....
const int NameFieldNumber
Field number for the "name" field.
GeneralConstraintOneofCase
Enum of possible cases for the "general_constraint" oneof.
static pb::MessageParser< MPGeneralConstraintProto > Parser
const int IndicatorConstraintFieldNumber
Field number for the "indicator_constraint" field.
string Name
The name of the constraint.
void ClearName()
Clears the value of the "name" field.
global::OperationsResearch.MPSosConstraint SosConstraint
global::OperationsResearch.MPIndicatorConstraint IndicatorConstraint
void WriteTo(pb::CodedOutputStream output)
bool HasName
Gets whether the "name" field is set.
MPGeneralConstraintProto()
global::OperationsResearch.MPArrayWithConstantConstraint MinConstraint
resultant_var = min(var_1, var_2, ..., constant)
global::OperationsResearch.MPAbsConstraint AbsConstraint
void ClearGeneralConstraint()
override bool Equals(object other)
static pbr::MessageDescriptor Descriptor
GeneralConstraintOneofCase GeneralConstraintCase
global::OperationsResearch.MPQuadraticConstraint QuadraticConstraint
global::OperationsResearch.MPArrayWithConstantConstraint MaxConstraint
resultant_var = max(var_1, var_2, ..., constant)
global::OperationsResearch.MPArrayConstraint OrConstraint
All variables in "or" constraints must be Boolean. resultant_var = or(var_1, var_2....
Indicator constraints encode the activation or deactivation of linear constraints given the value of ...
static pbr::MessageDescriptor Descriptor
static pb::MessageParser< MPIndicatorConstraint > Parser
const int VarValueFieldNumber
Field number for the "var_value" field.
void ClearVarValue()
Clears the value of the "var_value" field.
global::OperationsResearch.MPConstraintProto Constraint
The constraint activated by the indicator variable.
int VarValue
Value the above variable should take. Must be 0 or 1.
void WriteTo(pb::CodedOutputStream output)
const int ConstraintFieldNumber
Field number for the "constraint" field.
override bool Equals(object other)
bool HasVarValue
Gets whether the "var_value" field is set.
bool HasVarIndex
Gets whether the "var_index" field is set.
const int VarIndexFieldNumber
Field number for the "var_index" field.
void ClearVarIndex()
Clears the value of the "var_index" field.
int VarIndex
Variable index (w.r.t. the "variable" field of MPModelProto) of the Boolean variable used as indicato...
Encodes a full MPModelProto by way of referencing to a "baseline" MPModelProto stored in a file,...
pbc::MapField< int, global::OperationsResearch.MPConstraintProto > ConstraintOverrides
Constraints can be changed (or added) in the same way as variables, see above. It's mostly like apply...
pbc::MapField< int, global::OperationsResearch.MPVariableProto > VariableOverrides
The variable protos listed here will override (via MergeFrom()) the ones in the baseline model: you o...
bool HasBaselineModelFilePath
Gets whether the "baseline_model_file_path" field is set.
MPModelDeltaProto Clone()
static pb::MessageParser< MPModelDeltaProto > Parser
static pbr::MessageDescriptor Descriptor
override bool Equals(object other)
string BaselineModelFilePath
TargetType
The target of an Annotation is a single entity (e.g. a variable). Several Annotations may apply to th...
Annotations can be freely added by users who want to attach arbitrary payload to the model's variable...
const int PayloadKeyFieldNumber
Field number for the "payload_key" field.
const int TargetNameFieldNumber
Field number for the "target_name" field.
static pbr::MessageDescriptor Descriptor
void WriteTo(pb::CodedOutputStream output)
bool HasTargetIndex
Gets whether the "target_index" field is set.
bool HasPayloadValue
Gets whether the "payload_value" field is set.
void ClearTargetName()
Clears the value of the "target_name" field.
int TargetIndex
If both target_index and target_name are set, they must point to the same entity.
const int PayloadValueFieldNumber
Field number for the "payload_value" field.
string TargetName
Alternate to index. Assumes uniqueness.
const int TargetIndexFieldNumber
Field number for the "target_index" field.
bool HasPayloadKey
Gets whether the "payload_key" field is set.
void ClearTargetIndex()
Clears the value of the "target_index" field.
void ClearPayloadValue()
Clears the value of the "payload_value" field.
void ClearTargetType()
Clears the value of the "target_type" field.
override bool Equals(object other)
global::OperationsResearch.MPModelProto.Types.Annotation.Types.TargetType TargetType
string PayloadKey
The payload is a (key, value) string pair. Depending on the use cases, one of the two may be omitted.
static pb::MessageParser< Annotation > Parser
void ClearPayloadKey()
Clears the value of the "payload_key" field.
const int TargetTypeFieldNumber
Field number for the "target_type" field.
bool HasTargetType
Gets whether the "target_type" field is set.
Container for nested types declared in the MPModelProto message type.
MPModelProto contains all the information for a Linear Programming model.
override int GetHashCode()
pbc::RepeatedField< global::OperationsResearch.MPGeneralConstraintProto > GeneralConstraint
All the general constraints appearing in the model. Note that not all solvers support all types of ge...
pbc::RepeatedField< global::OperationsResearch.MPModelProto.Types.Annotation > Annotation
string Name
Name of the model.
static pbr::MessageDescriptor Descriptor
const int GeneralConstraintFieldNumber
Field number for the "general_constraint" field.
static pb::MessageParser< MPModelProto > Parser
void ClearMaximize()
Clears the value of the "maximize" field.
void WriteTo(pb::CodedOutputStream output)
const int MaximizeFieldNumber
Field number for the "maximize" field.
double ObjectiveOffset
Offset for the objective function. Must be finite.
pbc::RepeatedField< global::OperationsResearch.MPConstraintProto > Constraint
All the constraints appearing in the model.
override string ToString()
bool HasMaximize
Gets whether the "maximize" field is set.
const int ObjectiveOffsetFieldNumber
Field number for the "objective_offset" field.
void ClearName()
Clears the value of the "name" field.
bool HasObjectiveOffset
Gets whether the "objective_offset" field is set.
const int ConstraintFieldNumber
Field number for the "constraint" field.
const int QuadraticObjectiveFieldNumber
Field number for the "quadratic_objective" field.
const int SolutionHintFieldNumber
Field number for the "solution_hint" field.
const int VariableFieldNumber
Field number for the "variable" field.
void ClearObjectiveOffset()
Clears the value of the "objective_offset" field.
global::OperationsResearch.PartialVariableAssignment SolutionHint
Solution hint.
global::OperationsResearch.MPQuadraticObjective QuadraticObjective
Optionally, a quadratic objective. As of 2019/06, only SCIP and Gurobi support quadratic objectives.
pbc::RepeatedField< global::OperationsResearch.MPVariableProto > Variable
All the variables appearing in the model.
bool HasName
Gets whether the "name" field is set.
bool Maximize
True if the problem is a maximization problem. Minimize by default.
override bool Equals(object other)
@ CbcMixedIntegerProgramming
@ GurobiLinearProgramming
Commercial, needs a valid license.
@ GlpkMixedIntegerProgramming
@ GurobiMixedIntegerProgramming
Commercial, needs a valid license.
@ PdlpLinearProgramming
In-house linear programming solver based on the primal-dual hybrid gradient method....
@ ScipMixedIntegerProgramming
Recommended default for MIP models.
@ KnapsackMixedIntegerProgramming
@ HighsMixedIntegerProgramming
@ XpressLinearProgramming
Commercial, needs a valid license. NOLINT.
@ GlopLinearProgramming
Recommended default for LP models.
@ XpressMixedIntegerProgramming
Commercial, needs a valid license. NOLINT.
@ CplexMixedIntegerProgramming
Commercial, needs a valid license. NOLINT.
@ CplexLinearProgramming
Commercial, needs a valid license. NOLINT.
int PopulateAdditionalSolutionsUpTo
Controls the recovery of additional solutions, if any, saved by the underlying solver back in the MPS...
override bool Equals(object other)
static pbr::MessageDescriptor Descriptor
global::OperationsResearch.MPModelProto Model
The model to be optimized by the server.
bool HasSolverType
Gets whether the "solver_type" field is set.
const int EnableInternalSolverOutputFieldNumber
Field number for the "enable_internal_solver_output" field.
global::OperationsResearch.MPModelRequest.Types.SolverType SolverType
string SolverSpecificParameters
Advanced usage. Solver-specific parameters in the solver's own format, different for each solver....
double SolverTimeLimitSeconds
Maximum time to be spent by the solver to solve 'model'. If the server is busy and the RPC's deadline...
const int SolverSpecificParametersFieldNumber
Field number for the "solver_specific_parameters" field.
const int SolverTypeFieldNumber
Field number for the "solver_type" field.
bool EnableInternalSolverOutput
If this is set, then EnableOutput() will be set on the internal MPSolver that solves the model.
global::OperationsResearch.MPModelDeltaProto ModelDelta
Advanced usage: model "delta". If used, "model" must be unset. See the definition of MPModelDeltaProt...
bool IgnoreSolverSpecificParametersFailure
const int IgnoreSolverSpecificParametersFailureFieldNumber
Field number for the "ignore_solver_specific_parameters_failure" field.
static pb::MessageParser< MPModelRequest > Parser
bool HasSolverTimeLimitSeconds
Gets whether the "solver_time_limit_seconds" field is set.
bool HasEnableInternalSolverOutput
Gets whether the "enable_internal_solver_output" field is set.
const int ModelDeltaFieldNumber
Field number for the "model_delta" field.
Quadratic constraints of the form lb <= sum a_i x_i + sum b_ij x_i x_j <= ub, where a,...
pbc::RepeatedField< int > Qvar2Index
const int UpperBoundFieldNumber
Field number for the "upper_bound" field.
const int Qvar2IndexFieldNumber
Field number for the "qvar2_index" field.
static pbr::MessageDescriptor Descriptor
const int QcoefficientFieldNumber
Field number for the "qcoefficient" field.
override bool Equals(object other)
const int VarIndexFieldNumber
Field number for the "var_index" field.
pbc::RepeatedField< int > VarIndex
Sparse representation of linear terms in the quadratic constraint, where term i is var_index[i] * coe...
const int CoefficientFieldNumber
Field number for the "coefficient" field.
bool HasUpperBound
Gets whether the "upper_bound" field is set.
double LowerBound
lower_bound must be <= upper_bound.
void ClearUpperBound()
Clears the value of the "upper_bound" field.
bool HasLowerBound
Gets whether the "lower_bound" field is set.
pbc::RepeatedField< double > Qcoefficient
Must be finite.
const int Qvar1IndexFieldNumber
Field number for the "qvar1_index" field.
static pb::MessageParser< MPQuadraticConstraint > Parser
pbc::RepeatedField< double > Coefficient
Must be finite.
const int LowerBoundFieldNumber
Field number for the "lower_bound" field.
pbc::RepeatedField< int > Qvar1Index
Sparse representation of quadratic terms in the quadratic constraint, where term i is qvar1_index[i] ...
void WriteTo(pb::CodedOutputStream output)
void ClearLowerBound()
Clears the value of the "lower_bound" field.
Quadratic part of a model's objective. Added with other objectives (such as linear),...
const int CoefficientFieldNumber
Field number for the "coefficient" field.
pbc::RepeatedField< double > Coefficient
Must be finite.
pbc::RepeatedField< int > Qvar1Index
Sparse representation of quadratic terms in the objective function, where term i is qvar1_index[i] * ...
pbc::RepeatedField< int > Qvar2Index
void WriteTo(pb::CodedOutputStream output)
override bool Equals(object other)
static pbr::MessageDescriptor Descriptor
MPQuadraticObjective Clone()
static pb::MessageParser< MPQuadraticObjective > Parser
const int Qvar1IndexFieldNumber
Field number for the "qvar1_index" field.
const int Qvar2IndexFieldNumber
Field number for the "qvar2_index" field.
double BestObjectiveBound
This field is only filled for MIP problems. For a minimization problem, this is a lower bound on the ...
const int StatusStrFieldNumber
Field number for the "status_str" field.
pbc::RepeatedField< double > DualValue
[Advanced usage.] Values of the dual variables values in the same order as the MPModelProto::constrai...
global::OperationsResearch.MPSolveInfo SolveInfo
Contains extra information about the solve, populated if the underlying solver (and its interface) su...
const int ObjectiveValueFieldNumber
Field number for the "objective_value" field.
string StatusStr
Human-readable string giving more details about the status. For example, when the status is MPSOLVER_...
double ObjectiveValue
Objective value corresponding to the "variable_value" below, taking into account the source "objectiv...
pbc::RepeatedField< global::OperationsResearch.MPSolution > AdditionalSolutions
[Advanced usage.] If MPModelRequest.populate_additional_solutions_up_to > 0, up to that number of add...
const int DualValueFieldNumber
Field number for the "dual_value" field.
bool HasBestObjectiveBound
Gets whether the "best_objective_bound" field is set.
pbc::RepeatedField< double > VariableValue
Variable values in the same order as the MPModelProto::variable field. This is a dense representation...
pb::ByteString SolverSpecificInfo
Opaque solver-specific information. For the PDLP solver, this is a serialized pdlp::SolveLog proto.
const int VariableValueFieldNumber
Field number for the "variable_value" field.
const int BestObjectiveBoundFieldNumber
Field number for the "best_objective_bound" field.
global::OperationsResearch.MPSolverResponseStatus Status
Result of the optimization.
override bool Equals(object other)
static pbr::MessageDescriptor Descriptor
pbc::RepeatedField< double > ReducedCost
[Advanced usage.] Values of the reduced cost of the variables in the same order as the MPModelProto::...
override string ToString()
const int VariableValueFieldNumber
Field number for the "variable_value" field.
pbc::RepeatedField< double > VariableValue
void MergeFrom(MPSolution other)
static pbr::MessageDescriptor Descriptor
override int GetHashCode()
override bool Equals(object other)
static pb::MessageParser< MPSolution > Parser
bool HasObjectiveValue
Gets whether the "objective_value" field is set.
static pbr::MessageDescriptor Descriptor
const int SolveUserTimeSecondsFieldNumber
Field number for the "solve_user_time_seconds" field.
double SolveWallTimeSeconds
How much wall time (resp. user time) elapsed during the Solve() of the underlying solver library....
override int GetHashCode()
double SolveUserTimeSeconds
override bool Equals(object other)
override string ToString()
bool HasSolveUserTimeSeconds
Gets whether the "solve_user_time_seconds" field is set.
bool HasSolveWallTimeSeconds
Gets whether the "solve_wall_time_seconds" field is set.
@ LpAlgoPrimal
Primal simplex.
@ LpAlgoBarrier
Barrier algorithm.
MPSolverCommonParameters holds advanced usage parameters that apply to any of the solvers we support....
global::OperationsResearch.OptionalDouble DualTolerance
Tolerance for dual feasibility. For SCIP and Gurobi this is the feasibility tolerance for reduced cos...
const int LpAlgorithmFieldNumber
Field number for the "lp_algorithm" field.
bool HasScaling
Gets whether the "scaling" field is set.
MPSolverCommonParameters()
global::OperationsResearch.OptionalDouble PrimalTolerance
Tolerance for primal feasibility of basic solutions: this is the maximum allowed error in constraint ...
global::OperationsResearch.OptionalDouble RelativeMipGap
The solver stops if the relative MIP gap reaches this value or below. The relative MIP gap is an uppe...
global::Google.OrTools.Util.OptionalBoolean Scaling
Enable automatic scaling of matrix coefficients and objective. Available for Gurobi and GLOP....
bool HasLpAlgorithm
Gets whether the "lp_algorithm" field is set.
bool Equals(MPSolverCommonParameters other)
bool HasPresolve
Gets whether the "presolve" field is set.
global::OperationsResearch.MPSolverCommonParameters.Types.LPAlgorithmValues LpAlgorithm
Algorithm to solve linear programs. Ask or-core-team@ if you want to know what this does exactly.
override bool Equals(object other)
static pbr::MessageDescriptor Descriptor
static pb::MessageParser< MPSolverCommonParameters > Parser
const int RelativeMipGapFieldNumber
Field number for the "relative_mip_gap" field.
global::Google.OrTools.Util.OptionalBoolean Presolve
Gurobi and SCIP enable presolve by default. Ask or-core-team@ for other solvers.
const int DualToleranceFieldNumber
Field number for the "dual_tolerance" field.
const int PrimalToleranceFieldNumber
Field number for the "primal_tolerance" field.
@ Sos1Default
At most one variable in var_index must be non-zero.
@ Sos2
At most two consecutive variables from var_index can be non-zero (i.e. for some i,...
Special Ordered Set (SOS) constraints of type 1 or 2. See https://en.wikipedia.org/wiki/Special_order...
const int VarIndexFieldNumber
Field number for the "var_index" field.
pbc::RepeatedField< int > VarIndex
Variable index (w.r.t. the "variable" field of MPModelProto) of the variables in the SOS.
const int WeightFieldNumber
Field number for the "weight" field.
global::OperationsResearch.MPSosConstraint.Types.Type Type
override bool Equals(object other)
bool HasType
Gets whether the "type" field is set.
void ClearType()
Clears the value of the "type" field.
pbc::RepeatedField< double > Weight
Optional: SOS weights. If non-empty, must be of the same size as "var_index", and strictly increasing...
static pb::MessageParser< MPSosConstraint > Parser
void WriteTo(pb::CodedOutputStream output)
static pbr::MessageDescriptor Descriptor
const int TypeFieldNumber
Field number for the "type" field.
A variable is always constrained in the form: lower_bound <= x <= upper_bound where lower_bound and u...
void ClearName()
Clears the value of the "name" field.
bool IsInteger
True if the variable is constrained to be integer. Ignored if MPModelProto::solver_type is LINEAR_PRO...
bool HasObjectiveCoefficient
Gets whether the "objective_coefficient" field is set.
bool HasIsInteger
Gets whether the "is_integer" field is set.
bool HasUpperBound
Gets whether the "upper_bound" field is set.
bool HasName
Gets whether the "name" field is set.
double LowerBound
lower_bound must be <= upper_bound.
override bool Equals(object other)
static pbr::MessageDescriptor Descriptor
static pb::MessageParser< MPVariableProto > Parser
const int LowerBoundFieldNumber
Field number for the "lower_bound" field.
const int BranchingPriorityFieldNumber
Field number for the "branching_priority" field.
void ClearBranchingPriority()
Clears the value of the "branching_priority" field.
void ClearLowerBound()
Clears the value of the "lower_bound" field.
double ObjectiveCoefficient
The coefficient of the variable in the objective. Must be finite.
const int NameFieldNumber
Field number for the "name" field.
const int UpperBoundFieldNumber
Field number for the "upper_bound" field.
void ClearObjectiveCoefficient()
Clears the value of the "objective_coefficient" field.
bool HasLowerBound
Gets whether the "lower_bound" field is set.
string Name
The name of the variable.
const int ObjectiveCoefficientFieldNumber
Field number for the "objective_coefficient" field.
void ClearUpperBound()
Clears the value of the "upper_bound" field.
bool HasBranchingPriority
Gets whether the "branching_priority" field is set.
const int IsIntegerFieldNumber
Field number for the "is_integer" field.
void WriteTo(pb::CodedOutputStream output)
void ClearIsInteger()
Clears the value of the "is_integer" field.
To support 'unspecified' double value in proto3, the simplest is to wrap any double value in a nested...
static pb::MessageParser< OptionalDouble > Parser
bool HasValue
Gets whether the "value" field is set.
const int ValueFieldNumber
Field number for the "value" field.
static pbr::MessageDescriptor Descriptor
void ClearValue()
Clears the value of the "value" field.
override bool Equals(object other)
void WriteTo(pb::CodedOutputStream output)
This message encodes a partial (or full) assignment of the variables of a MPModelProto problem....
static pb::MessageParser< PartialVariableAssignment > Parser
override bool Equals(object other)
PartialVariableAssignment()
pbc::RepeatedField< double > VarValue
const int VarIndexFieldNumber
Field number for the "var_index" field.
const int VarValueFieldNumber
Field number for the "var_value" field.
static pbr::MessageDescriptor Descriptor
pbc::RepeatedField< int > VarIndex
void WriteTo(pb::CodedOutputStream output)
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...