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 "oQgKDk1QTW9kZWxSZXF1ZXN0EjAKBW1vZGVsGAEgASgLMiEub3BlcmF0aW9u",
111 "c19yZXNlYXJjaC5NUE1vZGVsUHJvdG8SXAoLc29sdmVyX3R5cGUYAiABKA4y",
112 "Li5vcGVyYXRpb25zX3Jlc2VhcmNoLk1QTW9kZWxSZXF1ZXN0LlNvbHZlclR5",
113 "cGU6F0dMT1BfTElORUFSX1BST0dSQU1NSU5HEiEKGXNvbHZlcl90aW1lX2xp",
114 "bWl0X3NlY29uZHMYAyABKAESLAodZW5hYmxlX2ludGVybmFsX3NvbHZlcl9v",
115 "dXRwdXQYBCABKAg6BWZhbHNlEiIKGnNvbHZlcl9zcGVjaWZpY19wYXJhbWV0",
116 "ZXJzGAUgASgJEjgKKWlnbm9yZV9zb2x2ZXJfc3BlY2lmaWNfcGFyYW1ldGVy",
117 "c19mYWlsdXJlGAkgASgIOgVmYWxzZRI7Cgttb2RlbF9kZWx0YRgIIAEoCzIm",
118 "Lm9wZXJhdGlvbnNfcmVzZWFyY2guTVBNb2RlbERlbHRhUHJvdG8SLgojcG9w",
119 "dWxhdGVfYWRkaXRpb25hbF9zb2x1dGlvbnNfdXBfdG8YCyABKAU6ATAi3AQK",
120 "ClNvbHZlclR5cGUSGgoWQ0xQX0xJTkVBUl9QUk9HUkFNTUlORxAAEhsKF0dM",
121 "T1BfTElORUFSX1BST0dSQU1NSU5HEAISGwoXR0xQS19MSU5FQVJfUFJPR1JB",
122 "TU1JTkcQARIdChlHVVJPQklfTElORUFSX1BST0dSQU1NSU5HEAYSHQoZWFBS",
123 "RVNTX0xJTkVBUl9QUk9HUkFNTUlORxBlEhwKGENQTEVYX0xJTkVBUl9QUk9H",
124 "UkFNTUlORxAKEhwKGEhJR0hTX0xJTkVBUl9QUk9HUkFNTUlORxAPEiIKHlND",
125 "SVBfTUlYRURfSU5URUdFUl9QUk9HUkFNTUlORxADEiIKHkdMUEtfTUlYRURf",
126 "SU5URUdFUl9QUk9HUkFNTUlORxAEEiEKHUNCQ19NSVhFRF9JTlRFR0VSX1BS",
127 "T0dSQU1NSU5HEAUSJAogR1VST0JJX01JWEVEX0lOVEVHRVJfUFJPR1JBTU1J",
128 "TkcQBxIkCiBYUFJFU1NfTUlYRURfSU5URUdFUl9QUk9HUkFNTUlORxBmEiMK",
129 "H0NQTEVYX01JWEVEX0lOVEVHRVJfUFJPR1JBTU1JTkcQCxIjCh9ISUdIU19N",
130 "SVhFRF9JTlRFR0VSX1BST0dSQU1NSU5HEBASGwoXQk9QX0lOVEVHRVJfUFJP",
131 "R1JBTU1JTkcQDBIbChdTQVRfSU5URUdFUl9QUk9HUkFNTUlORxAOEhsKF1BE",
132 "TFBfTElORUFSX1BST0dSQU1NSU5HEAgSJgoiS05BUFNBQ0tfTUlYRURfSU5U",
133 "RUdFUl9QUk9HUkFNTUlORxANSgQIDBANIkEKCk1QU29sdXRpb24SFwoPb2Jq",
134 "ZWN0aXZlX3ZhbHVlGAEgASgBEhoKDnZhcmlhYmxlX3ZhbHVlGAIgAygBQgIQ",
135 "ASJPCgtNUFNvbHZlSW5mbxIfChdzb2x2ZV93YWxsX3RpbWVfc2Vjb25kcxgB",
136 "IAEoARIfChdzb2x2ZV91c2VyX3RpbWVfc2Vjb25kcxgCIAEoASKcAwoSTVBT",
137 "b2x1dGlvblJlc3BvbnNlElQKBnN0YXR1cxgBIAEoDjIrLm9wZXJhdGlvbnNf",
138 "cmVzZWFyY2guTVBTb2x2ZXJSZXNwb25zZVN0YXR1czoXTVBTT0xWRVJfVU5L",
139 "Tk9XTl9TVEFUVVMSEgoKc3RhdHVzX3N0chgHIAEoCRIXCg9vYmplY3RpdmVf",
140 "dmFsdWUYAiABKAESHAoUYmVzdF9vYmplY3RpdmVfYm91bmQYBSABKAESGgoO",
141 "dmFyaWFibGVfdmFsdWUYAyADKAFCAhABEjQKCnNvbHZlX2luZm8YCiABKAsy",
142 "IC5vcGVyYXRpb25zX3Jlc2VhcmNoLk1QU29sdmVJbmZvEhwKFHNvbHZlcl9z",
143 "cGVjaWZpY19pbmZvGAsgASgMEhYKCmR1YWxfdmFsdWUYBCADKAFCAhABEhgK",
144 "DHJlZHVjZWRfY29zdBgGIAMoAUICEAESPQoUYWRkaXRpb25hbF9zb2x1dGlv",
145 "bnMYCCADKAsyHy5vcGVyYXRpb25zX3Jlc2VhcmNoLk1QU29sdXRpb25KBAgJ",
146 "EAoqvQMKFk1QU29sdmVyUmVzcG9uc2VTdGF0dXMSFAoQTVBTT0xWRVJfT1BU",
147 "SU1BTBAAEhUKEU1QU09MVkVSX0ZFQVNJQkxFEAESFwoTTVBTT0xWRVJfSU5G",
148 "RUFTSUJMRRACEhYKEk1QU09MVkVSX1VOQk9VTkRFRBADEhUKEU1QU09MVkVS",
149 "X0FCTk9STUFMEAQSFwoTTVBTT0xWRVJfTk9UX1NPTFZFRBAGEhsKF01QU09M",
150 "VkVSX01PREVMX0lTX1ZBTElEEGESHgoaTVBTT0xWRVJfQ0FOQ0VMTEVEX0JZ",
151 "X1VTRVIQYhIbChdNUFNPTFZFUl9VTktOT1dOX1NUQVRVUxBjEhoKFk1QU09M",
152 "VkVSX01PREVMX0lOVkFMSUQQBRIoCiRNUFNPTFZFUl9NT0RFTF9JTlZBTElE",
153 "X1NPTFVUSU9OX0hJTlQQVBIsCihNUFNPTFZFUl9NT0RFTF9JTlZBTElEX1NP",
154 "TFZFUl9QQVJBTUVURVJTEFUSJAogTVBTT0xWRVJfU09MVkVSX1RZUEVfVU5B",
155 "VkFJTEFCTEUQBxIhCh1NUFNPTFZFUl9JTkNPTVBBVElCTEVfT1BUSU9OUxBx",
156 "QiMKH2NvbS5nb29nbGUub3J0b29scy5saW5lYXJzb2x2ZXJQAQ=="));
157 descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
158 new pbr::FileDescriptor[] { global::Google.OrTools.Util.OptionalBooleanReflection.Descriptor, },
159 new pbr::GeneratedClrTypeInfo(
new[] {typeof(global::OperationsResearch.
MPSolverResponseStatus), },
null,
new pbr::GeneratedClrTypeInfo[] {
160 new pbr::GeneratedClrTypeInfo(typeof(global::OperationsResearch.MPVariableProto), global::OperationsResearch.MPVariableProto.Parser,
new[]{
"LowerBound",
"UpperBound",
"ObjectiveCoefficient",
"IsInteger",
"Name",
"BranchingPriority" },
null,
null,
null,
null),
161 new pbr::GeneratedClrTypeInfo(typeof(global::OperationsResearch.MPConstraintProto), global::OperationsResearch.MPConstraintProto.Parser,
new[]{
"VarIndex",
"Coefficient",
"LowerBound",
"UpperBound",
"Name",
"IsLazy" },
null,
null,
null,
null),
162 new pbr::GeneratedClrTypeInfo(typeof(global::OperationsResearch.MPGeneralConstraintProto), global::OperationsResearch.MPGeneralConstraintProto.Parser,
new[]{
"Name",
"IndicatorConstraint",
"SosConstraint",
"QuadraticConstraint",
"AbsConstraint",
"AndConstraint",
"OrConstraint",
"MinConstraint",
"MaxConstraint" },
new[]{
"GeneralConstraint" },
null,
null,
null),
163 new pbr::GeneratedClrTypeInfo(typeof(global::OperationsResearch.MPIndicatorConstraint), global::OperationsResearch.MPIndicatorConstraint.Parser,
new[]{
"VarIndex",
"VarValue",
"Constraint" },
null,
null,
null,
null),
164 new pbr::GeneratedClrTypeInfo(typeof(global::OperationsResearch.MPSosConstraint), global::OperationsResearch.MPSosConstraint.Parser,
new[]{
"Type",
"VarIndex",
"Weight" },
null,
new[]{ typeof(global::OperationsResearch.MPSosConstraint.Types.Type) },
null,
null),
165 new pbr::GeneratedClrTypeInfo(typeof(global::OperationsResearch.MPQuadraticConstraint), global::OperationsResearch.MPQuadraticConstraint.Parser,
new[]{
"VarIndex",
"Coefficient",
"Qvar1Index",
"Qvar2Index",
"Qcoefficient",
"LowerBound",
"UpperBound" },
null,
null,
null,
null),
166 new pbr::GeneratedClrTypeInfo(typeof(global::OperationsResearch.MPAbsConstraint), global::OperationsResearch.MPAbsConstraint.Parser,
new[]{
"VarIndex",
"ResultantVarIndex" },
null,
null,
null,
null),
167 new pbr::GeneratedClrTypeInfo(typeof(global::OperationsResearch.MPArrayConstraint), global::OperationsResearch.MPArrayConstraint.Parser,
new[]{
"VarIndex",
"ResultantVarIndex" },
null,
null,
null,
null),
168 new pbr::GeneratedClrTypeInfo(typeof(global::OperationsResearch.MPArrayWithConstantConstraint), global::OperationsResearch.MPArrayWithConstantConstraint.Parser,
new[]{
"VarIndex",
"Constant",
"ResultantVarIndex" },
null,
null,
null,
null),
169 new pbr::GeneratedClrTypeInfo(typeof(global::OperationsResearch.MPQuadraticObjective), global::OperationsResearch.MPQuadraticObjective.Parser,
new[]{
"Qvar1Index",
"Qvar2Index",
"Coefficient" },
null,
null,
null,
null),
170 new pbr::GeneratedClrTypeInfo(typeof(global::OperationsResearch.PartialVariableAssignment), global::OperationsResearch.PartialVariableAssignment.Parser,
new[]{
"VarIndex",
"VarValue" },
null,
null,
null,
null),
171 new pbr::GeneratedClrTypeInfo(typeof(global::OperationsResearch.MPModelProto), global::OperationsResearch.MPModelProto.Parser,
new[]{
"Variable",
"Constraint",
"GeneralConstraint",
"Maximize",
"ObjectiveOffset",
"QuadraticObjective",
"Name",
"SolutionHint",
"Annotation" },
null,
null,
null,
new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::OperationsResearch.MPModelProto.Types.Annotation), global::OperationsResearch.MPModelProto.Types.Annotation.Parser, new[]{
"TargetType",
"TargetIndex",
"TargetName",
"PayloadKey",
"PayloadValue" },
null,
new[]{ typeof(global::OperationsResearch.MPModelProto.Types.Annotation.Types.TargetType) },
null,
null)}),
172 new pbr::GeneratedClrTypeInfo(typeof(global::OperationsResearch.OptionalDouble), global::OperationsResearch.OptionalDouble.Parser,
new[]{
"Value" },
null,
null,
null,
null),
173 new pbr::GeneratedClrTypeInfo(typeof(global::OperationsResearch.MPSolverCommonParameters), global::OperationsResearch.MPSolverCommonParameters.Parser,
new[]{
"RelativeMipGap",
"PrimalTolerance",
"DualTolerance",
"LpAlgorithm",
"Presolve",
"Scaling" },
null,
new[]{ typeof(global::OperationsResearch.MPSolverCommonParameters.Types.LPAlgorithmValues) },
null,
null),
174 new pbr::GeneratedClrTypeInfo(typeof(global::OperationsResearch.MPModelDeltaProto), global::OperationsResearch.MPModelDeltaProto.Parser,
new[]{
"BaselineModelFilePath",
"VariableOverrides",
"ConstraintOverrides" },
null,
null,
null,
new pbr::GeneratedClrTypeInfo[] { null, null, }),
175 new pbr::GeneratedClrTypeInfo(typeof(global::OperationsResearch.MPModelRequest), global::OperationsResearch.MPModelRequest.Parser,
new[]{
"Model",
"SolverType",
"SolverTimeLimitSeconds",
"EnableInternalSolverOutput",
"SolverSpecificParameters",
"IgnoreSolverSpecificParametersFailure",
"ModelDelta",
"PopulateAdditionalSolutionsUpTo" },
null,
new[]{ typeof(global::OperationsResearch.MPModelRequest.Types.SolverType) },
null,
null),
176 new pbr::GeneratedClrTypeInfo(typeof(global::OperationsResearch.MPSolution), global::OperationsResearch.MPSolution.Parser,
new[]{
"ObjectiveValue",
"VariableValue" },
null,
null,
null,
null),
177 new pbr::GeneratedClrTypeInfo(typeof(global::OperationsResearch.MPSolveInfo), global::OperationsResearch.MPSolveInfo.Parser,
new[]{
"SolveWallTimeSeconds",
"SolveUserTimeSeconds" },
null,
null,
null,
null),
178 new pbr::GeneratedClrTypeInfo(typeof(global::OperationsResearch.MPSolutionResponse), global::OperationsResearch.MPSolutionResponse.Parser,
new[]{
"Status",
"StatusStr",
"ObjectiveValue",
"BestObjectiveBound",
"VariableValue",
"SolveInfo",
"SolverSpecificInfo",
"DualValue",
"ReducedCost",
"AdditionalSolutions" },
null,
null,
null,
null)
303 [global::System.Diagnostics.DebuggerDisplayAttribute(
"{ToString(),nq}")]
304 public sealed partial class MPVariableProto : pb::IMessage<MPVariableProto>
305 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
309 private static readonly pb::MessageParser<MPVariableProto> _parser =
new pb::MessageParser<MPVariableProto>(() =>
new MPVariableProto());
310 private pb::UnknownFieldSet _unknownFields;
311 private int _hasBits0;
312 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
313 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
314 public static pb::MessageParser<MPVariableProto>
Parser {
get {
return _parser; } }
316 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
317 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
318 public static pbr::MessageDescriptor
Descriptor {
319 get {
return global::OperationsResearch.LinearSolverReflection.Descriptor.MessageTypes[0]; }
322 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
323 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
324 pbr::MessageDescriptor pb::IMessage.Descriptor {
328 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
329 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
334 partial
void OnConstruction();
336 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
337 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
339 _hasBits0 = other._hasBits0;
340 lowerBound_ = other.lowerBound_;
341 upperBound_ = other.upperBound_;
342 objectiveCoefficient_ = other.objectiveCoefficient_;
343 isInteger_ = other.isInteger_;
345 branchingPriority_ = other.branchingPriority_;
346 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
349 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
350 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
357 private readonly
static double LowerBoundDefaultValue =
double.NegativeInfinity;
359 private double lowerBound_;
363 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
364 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
366 get {
if ((_hasBits0 & 1) != 0) {
return lowerBound_; }
else {
return LowerBoundDefaultValue; } }
373 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
374 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
375 public bool HasLowerBound {
376 get {
return (_hasBits0 & 1) != 0; }
379 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
380 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
387 private readonly
static double UpperBoundDefaultValue =
double.PositiveInfinity;
389 private double upperBound_;
390 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
391 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
393 get {
if ((_hasBits0 & 2) != 0) {
return upperBound_; }
else {
return UpperBoundDefaultValue; } }
400 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
401 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
402 public bool HasUpperBound {
403 get {
return (_hasBits0 & 2) != 0; }
406 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
407 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
414 private readonly
static double ObjectiveCoefficientDefaultValue = 0D;
416 private double objectiveCoefficient_;
420 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
421 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
423 get {
if ((_hasBits0 & 4) != 0) {
return objectiveCoefficient_; }
else {
return ObjectiveCoefficientDefaultValue; } }
426 objectiveCoefficient_ = value;
430 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
431 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
432 public bool HasObjectiveCoefficient {
433 get {
return (_hasBits0 & 4) != 0; }
436 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
437 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
444 private readonly
static bool IsIntegerDefaultValue =
false;
446 private bool isInteger_;
451 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
452 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
454 get {
if ((_hasBits0 & 8) != 0) {
return isInteger_; }
else {
return IsIntegerDefaultValue; } }
461 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
462 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
463 public bool HasIsInteger {
464 get {
return (_hasBits0 & 8) != 0; }
467 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
468 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
475 private readonly
static string NameDefaultValue =
"";
477 private string name_;
481 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
482 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
484 get {
return name_ ?? NameDefaultValue; }
486 name_ = pb::ProtoPreconditions.CheckNotNull(value,
"value");
490 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
491 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
492 public bool HasName {
493 get {
return name_ !=
null; }
496 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
497 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
504 private readonly
static int BranchingPriorityDefaultValue = 0;
506 private int branchingPriority_;
507 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
508 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
510 get {
if ((_hasBits0 & 16) != 0) {
return branchingPriority_; }
else {
return BranchingPriorityDefaultValue; } }
513 branchingPriority_ = value;
517 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
518 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
519 public bool HasBranchingPriority {
520 get {
return (_hasBits0 & 16) != 0; }
523 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
524 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
529 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
530 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
531 public override bool Equals(
object other) {
535 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
536 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
538 if (ReferenceEquals(other,
null)) {
541 if (ReferenceEquals(other,
this)) {
544 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(LowerBound, other.
LowerBound))
return false;
545 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(UpperBound, other.
UpperBound))
return false;
546 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(ObjectiveCoefficient, other.
ObjectiveCoefficient))
return false;
547 if (IsInteger != other.
IsInteger)
return false;
548 if (Name != other.
Name)
return false;
550 return Equals(_unknownFields, other._unknownFields);
553 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
554 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
555 public override int GetHashCode() {
557 if (HasLowerBound) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(LowerBound);
563 if (_unknownFields !=
null) {
564 hash ^= _unknownFields.GetHashCode();
569 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
570 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
571 public override string ToString() {
572 return pb::JsonFormatter.ToDiagnosticString(
this);
575 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
576 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
577 public void WriteTo(pb::CodedOutputStream output) {
578 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
579 output.WriteRawMessage(
this);
582 output.WriteRawTag(9);
586 output.WriteRawTag(17);
587 output.WriteDouble(UpperBound);
589 if (HasObjectiveCoefficient) {
590 output.WriteRawTag(25);
591 output.WriteDouble(ObjectiveCoefficient);
594 output.WriteRawTag(32);
595 output.WriteBool(IsInteger);
598 output.WriteRawTag(42);
599 output.WriteString(Name);
601 if (HasBranchingPriority) {
602 output.WriteRawTag(48);
603 output.WriteInt32(BranchingPriority);
605 if (_unknownFields !=
null) {
606 _unknownFields.WriteTo(output);
611 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
612 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
613 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
614 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
616 output.WriteRawTag(9);
617 output.WriteDouble(LowerBound);
620 output.WriteRawTag(17);
621 output.WriteDouble(UpperBound);
623 if (HasObjectiveCoefficient) {
624 output.WriteRawTag(25);
625 output.WriteDouble(ObjectiveCoefficient);
628 output.WriteRawTag(32);
629 output.WriteBool(IsInteger);
632 output.WriteRawTag(42);
633 output.WriteString(Name);
635 if (HasBranchingPriority) {
636 output.WriteRawTag(48);
637 output.WriteInt32(BranchingPriority);
639 if (_unknownFields !=
null) {
640 _unknownFields.WriteTo(ref output);
645 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
646 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
647 public int CalculateSize() {
655 if (HasObjectiveCoefficient) {
662 size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
664 if (HasBranchingPriority) {
665 size += 1 + pb::CodedOutputStream.ComputeInt32Size(BranchingPriority);
667 if (_unknownFields !=
null) {
668 size += _unknownFields.CalculateSize();
673 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
674 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
675 public void MergeFrom(MPVariableProto other) {
679 if (other.HasLowerBound) {
680 LowerBound = other.LowerBound;
682 if (other.HasUpperBound) {
683 UpperBound = other.UpperBound;
685 if (other.HasObjectiveCoefficient) {
686 ObjectiveCoefficient = other.ObjectiveCoefficient;
688 if (other.HasIsInteger) {
689 IsInteger = other.IsInteger;
694 if (other.HasBranchingPriority) {
695 BranchingPriority = other.BranchingPriority;
697 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
700 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
701 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
702 public void MergeFrom(pb::CodedInputStream input) {
703 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
704 input.ReadRawMessage(
this);
707 while ((tag = input.ReadTag()) != 0) {
708 if ((tag & 7) == 4) {
714 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
733 Name = input.ReadString();
745 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
746 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
747 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
748 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
750 while ((tag = input.ReadTag()) != 0) {
751 if ((tag & 7) == 4) {
757 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
760 LowerBound = input.ReadDouble();
764 UpperBound = input.ReadDouble();
768 ObjectiveCoefficient = input.ReadDouble();
772 IsInteger = input.ReadBool();
776 Name = input.ReadString();
780 BranchingPriority = input.ReadInt32();
803 [global::System.Diagnostics.DebuggerDisplayAttribute(
"{ToString(),nq}")]
804 public sealed partial
class MPConstraintProto : pb::IMessage<MPConstraintProto>
805 #
if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
809 private static readonly pb::MessageParser<MPConstraintProto> _parser =
new pb::MessageParser<MPConstraintProto>(() =>
new MPConstraintProto());
810 private pb::UnknownFieldSet _unknownFields;
811 private int _hasBits0;
812 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
813 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
814 public static pb::MessageParser<MPConstraintProto>
Parser {
get {
return _parser; } }
816 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
817 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
818 public static pbr::MessageDescriptor
Descriptor {
819 get {
return global::OperationsResearch.LinearSolverReflection.Descriptor.MessageTypes[1]; }
822 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
823 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
824 pbr::MessageDescriptor pb::IMessage.Descriptor {
828 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
829 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
834 partial
void OnConstruction();
836 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
837 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
839 _hasBits0 = other._hasBits0;
840 varIndex_ = other.varIndex_.Clone();
841 coefficient_ = other.coefficient_.Clone();
842 lowerBound_ = other.lowerBound_;
843 upperBound_ = other.upperBound_;
845 isLazy_ = other.isLazy_;
846 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
849 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
850 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
857 private static readonly pb::FieldCodec<int> _repeated_varIndex_codec
858 = pb::FieldCodec.ForInt32(50);
859 private readonly pbc::RepeatedField<int> varIndex_ =
new pbc::RepeatedField<int>();
866 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
867 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
868 public pbc::RepeatedField<int>
VarIndex {
869 get {
return varIndex_; }
874 private static readonly pb::FieldCodec<double> _repeated_coefficient_codec
875 = pb::FieldCodec.ForDouble(58);
876 private readonly pbc::RepeatedField<double> coefficient_ =
new pbc::RepeatedField<double>();
880 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
881 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
883 get {
return coefficient_; }
888 private readonly
static double LowerBoundDefaultValue =
double.NegativeInfinity;
890 private double lowerBound_;
894 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
895 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
897 get {
if ((_hasBits0 & 1) != 0) {
return lowerBound_; }
else {
return LowerBoundDefaultValue; } }
904 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
905 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
906 public bool HasLowerBound {
907 get {
return (_hasBits0 & 1) != 0; }
910 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
911 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
918 private readonly
static double UpperBoundDefaultValue =
double.PositiveInfinity;
920 private double upperBound_;
921 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
922 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
924 get {
if ((_hasBits0 & 2) != 0) {
return upperBound_; }
else {
return UpperBoundDefaultValue; } }
931 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
932 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
933 public bool HasUpperBound {
934 get {
return (_hasBits0 & 2) != 0; }
937 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
938 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
945 private readonly
static string NameDefaultValue =
"";
947 private string name_;
951 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
952 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
954 get {
return name_ ?? NameDefaultValue; }
956 name_ = pb::ProtoPreconditions.CheckNotNull(value,
"value");
960 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
961 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
962 public bool HasName {
963 get {
return name_ !=
null; }
966 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
967 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
974 private readonly
static bool IsLazyDefaultValue =
false;
976 private bool isLazy_;
983 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
984 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
986 get {
if ((_hasBits0 & 4) != 0) {
return isLazy_; }
else {
return IsLazyDefaultValue; } }
993 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
994 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
995 public bool HasIsLazy {
996 get {
return (_hasBits0 & 4) != 0; }
999 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1000 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1005 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1006 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1007 public override bool Equals(
object other) {
1011 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1012 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1014 if (ReferenceEquals(other,
null)) {
1017 if (ReferenceEquals(other,
this)) {
1020 if(!varIndex_.Equals(other.varIndex_))
return false;
1021 if(!coefficient_.Equals(other.coefficient_))
return false;
1022 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(LowerBound, other.
LowerBound))
return false;
1023 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(UpperBound, other.
UpperBound))
return false;
1024 if (Name != other.
Name)
return false;
1025 if (IsLazy != other.
IsLazy)
return false;
1026 return Equals(_unknownFields, other._unknownFields);
1029 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1030 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1031 public override int GetHashCode() {
1033 hash ^= varIndex_.GetHashCode();
1034 hash ^= coefficient_.GetHashCode();
1035 if (
HasLowerBound) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(
LowerBound);
1036 if (
HasUpperBound) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(
UpperBound);
1039 if (_unknownFields !=
null) {
1040 hash ^= _unknownFields.GetHashCode();
1045 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1046 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1047 public override string ToString() {
1048 return pb::JsonFormatter.ToDiagnosticString(
this);
1051 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1052 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1053 public void WriteTo(pb::CodedOutputStream output) {
1054 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1055 output.WriteRawMessage(
this);
1058 output.WriteRawTag(17);
1061 if (HasUpperBound) {
1062 output.WriteRawTag(25);
1063 output.WriteDouble(UpperBound);
1066 output.WriteRawTag(34);
1067 output.WriteString(Name);
1070 output.WriteRawTag(40);
1071 output.WriteBool(IsLazy);
1073 varIndex_.WriteTo(output, _repeated_varIndex_codec);
1074 coefficient_.WriteTo(output, _repeated_coefficient_codec);
1075 if (_unknownFields !=
null) {
1076 _unknownFields.WriteTo(output);
1081 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1082 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1083 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1084 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
1085 if (HasLowerBound) {
1086 output.WriteRawTag(17);
1087 output.WriteDouble(LowerBound);
1089 if (HasUpperBound) {
1090 output.WriteRawTag(25);
1091 output.WriteDouble(UpperBound);
1094 output.WriteRawTag(34);
1095 output.WriteString(Name);
1098 output.WriteRawTag(40);
1099 output.WriteBool(IsLazy);
1101 varIndex_.WriteTo(ref output, _repeated_varIndex_codec);
1102 coefficient_.WriteTo(ref output, _repeated_coefficient_codec);
1103 if (_unknownFields !=
null) {
1104 _unknownFields.WriteTo(ref output);
1109 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1110 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1111 public int CalculateSize() {
1113 size += varIndex_.CalculateSize(_repeated_varIndex_codec);
1114 size += coefficient_.CalculateSize(_repeated_coefficient_codec);
1118 if (HasUpperBound) {
1122 size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
1127 if (_unknownFields !=
null) {
1128 size += _unknownFields.CalculateSize();
1133 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1134 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1135 public void MergeFrom(MPConstraintProto other) {
1136 if (other ==
null) {
1139 varIndex_.Add(other.varIndex_);
1140 coefficient_.Add(other.coefficient_);
1141 if (other.HasLowerBound) {
1142 LowerBound = other.LowerBound;
1144 if (other.HasUpperBound) {
1145 UpperBound = other.UpperBound;
1147 if (other.HasName) {
1150 if (other.HasIsLazy) {
1151 IsLazy = other.IsLazy;
1153 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
1156 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1157 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1158 public void MergeFrom(pb::CodedInputStream input) {
1159 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1160 input.ReadRawMessage(
this);
1163 while ((tag = input.ReadTag()) != 0) {
1164 if ((tag & 7) == 4) {
1170 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
1181 Name = input.ReadString();
1185 IsLazy = input.ReadBool();
1190 varIndex_.AddEntriesFrom(input, _repeated_varIndex_codec);
1195 coefficient_.AddEntriesFrom(input, _repeated_coefficient_codec);
1203 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1204 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1205 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1206 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
1208 while ((tag = input.ReadTag()) != 0) {
1209 if ((tag & 7) == 4) {
1215 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
1218 LowerBound = input.ReadDouble();
1222 UpperBound = input.ReadDouble();
1226 Name = input.ReadString();
1230 IsLazy = input.ReadBool();
1235 varIndex_.AddEntriesFrom(ref input, _repeated_varIndex_codec);
1240 coefficient_.AddEntriesFrom(ref input, _repeated_coefficient_codec);
1253 [global::System.Diagnostics.DebuggerDisplayAttribute(
"{ToString(),nq}")]
1254 public sealed partial class MPGeneralConstraintProto : pb::IMessage<MPGeneralConstraintProto>
1255 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1256 , pb::IBufferMessage
1259 private static readonly pb::MessageParser<MPGeneralConstraintProto> _parser =
new pb::MessageParser<MPGeneralConstraintProto>(() =>
new MPGeneralConstraintProto());
1260 private pb::UnknownFieldSet _unknownFields;
1261 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1262 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1263 public static pb::MessageParser<MPGeneralConstraintProto>
Parser {
get {
return _parser; } }
1265 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1266 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1267 public static pbr::MessageDescriptor
Descriptor {
1268 get {
return global::OperationsResearch.LinearSolverReflection.Descriptor.MessageTypes[2]; }
1271 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1272 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1273 pbr::MessageDescriptor pb::IMessage.Descriptor {
1277 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1278 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1283 partial
void OnConstruction();
1285 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1286 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1288 name_ = other.name_;
1290 case GeneralConstraintOneofCase.IndicatorConstraint:
1291 IndicatorConstraint = other.IndicatorConstraint.Clone();
1293 case GeneralConstraintOneofCase.SosConstraint:
1294 SosConstraint = other.SosConstraint.Clone();
1296 case GeneralConstraintOneofCase.QuadraticConstraint:
1297 QuadraticConstraint = other.QuadraticConstraint.Clone();
1299 case GeneralConstraintOneofCase.AbsConstraint:
1300 AbsConstraint = other.AbsConstraint.Clone();
1302 case GeneralConstraintOneofCase.AndConstraint:
1303 AndConstraint = other.AndConstraint.Clone();
1305 case GeneralConstraintOneofCase.OrConstraint:
1306 OrConstraint = other.OrConstraint.Clone();
1308 case GeneralConstraintOneofCase.MinConstraint:
1309 MinConstraint = other.MinConstraint.Clone();
1311 case GeneralConstraintOneofCase.MaxConstraint:
1312 MaxConstraint = other.MaxConstraint.Clone();
1316 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
1319 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1320 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1327 private readonly
static string NameDefaultValue =
"";
1329 private string name_;
1333 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1334 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1335 public string Name {
1336 get {
return name_ ?? NameDefaultValue; }
1338 name_ = pb::ProtoPreconditions.CheckNotNull(value,
"value");
1342 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1343 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1344 public bool HasName {
1345 get {
return name_ !=
null; }
1348 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1349 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1356 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1357 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1361 generalConstraint_ = value;
1367 public const int SosConstraintFieldNumber = 3;
1368 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1369 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1373 generalConstraint_ = value;
1379 public const int QuadraticConstraintFieldNumber = 4;
1380 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1381 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1385 generalConstraint_ = value;
1391 public const int AbsConstraintFieldNumber = 5;
1392 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1393 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1397 generalConstraint_ = value;
1403 public const int AndConstraintFieldNumber = 6;
1408 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1409 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1413 generalConstraint_ = value;
1419 public const int OrConstraintFieldNumber = 7;
1424 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1425 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1429 generalConstraint_ = value;
1435 public const int MinConstraintFieldNumber = 8;
1439 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1440 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1444 generalConstraint_ = value;
1450 public const int MaxConstraintFieldNumber = 9;
1454 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1455 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1459 generalConstraint_ = value;
1464 private object generalConstraint_;
1466 public enum GeneralConstraintOneofCase {
1468 IndicatorConstraint = 2,
1478 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1479 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1481 get {
return generalConstraintCase_; }
1484 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1485 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1488 generalConstraint_ =
null;
1491 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1492 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1493 public override bool Equals(
object other) {
1497 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1498 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1500 if (ReferenceEquals(other,
null)) {
1503 if (ReferenceEquals(other,
this)) {
1506 if (Name != other.
Name)
return false;
1508 if (!
object.Equals(SosConstraint, other.
SosConstraint))
return false;
1510 if (!
object.Equals(AbsConstraint, other.
AbsConstraint))
return false;
1511 if (!
object.Equals(AndConstraint, other.
AndConstraint))
return false;
1512 if (!
object.Equals(OrConstraint, other.
OrConstraint))
return false;
1513 if (!
object.Equals(MinConstraint, other.
MinConstraint))
return false;
1514 if (!
object.Equals(MaxConstraint, other.
MaxConstraint))
return false;
1516 return Equals(_unknownFields, other._unknownFields);
1519 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1520 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1521 public override int GetHashCode() {
1523 if (HasName) hash ^= Name.GetHashCode();
1532 hash ^= (int) generalConstraintCase_;
1533 if (_unknownFields !=
null) {
1534 hash ^= _unknownFields.GetHashCode();
1539 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1540 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1541 public override string ToString() {
1542 return pb::JsonFormatter.ToDiagnosticString(
this);
1545 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1546 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1547 public void WriteTo(pb::CodedOutputStream output) {
1548 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1549 output.WriteRawMessage(
this);
1552 output.WriteRawTag(10);
1553 output.WriteString(
Name);
1555 if (generalConstraintCase_ == GeneralConstraintOneofCase.IndicatorConstraint) {
1556 output.WriteRawTag(18);
1557 output.WriteMessage(IndicatorConstraint);
1559 if (generalConstraintCase_ == GeneralConstraintOneofCase.SosConstraint) {
1560 output.WriteRawTag(26);
1561 output.WriteMessage(SosConstraint);
1563 if (generalConstraintCase_ == GeneralConstraintOneofCase.QuadraticConstraint) {
1564 output.WriteRawTag(34);
1565 output.WriteMessage(QuadraticConstraint);
1567 if (generalConstraintCase_ == GeneralConstraintOneofCase.AbsConstraint) {
1568 output.WriteRawTag(42);
1569 output.WriteMessage(AbsConstraint);
1571 if (generalConstraintCase_ == GeneralConstraintOneofCase.AndConstraint) {
1572 output.WriteRawTag(50);
1573 output.WriteMessage(AndConstraint);
1575 if (generalConstraintCase_ == GeneralConstraintOneofCase.OrConstraint) {
1576 output.WriteRawTag(58);
1577 output.WriteMessage(OrConstraint);
1579 if (generalConstraintCase_ == GeneralConstraintOneofCase.MinConstraint) {
1580 output.WriteRawTag(66);
1581 output.WriteMessage(MinConstraint);
1583 if (generalConstraintCase_ == GeneralConstraintOneofCase.MaxConstraint) {
1584 output.WriteRawTag(74);
1585 output.WriteMessage(MaxConstraint);
1587 if (_unknownFields !=
null) {
1588 _unknownFields.WriteTo(output);
1593 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1594 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1595 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1596 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
1598 output.WriteRawTag(10);
1599 output.WriteString(Name);
1601 if (generalConstraintCase_ == GeneralConstraintOneofCase.IndicatorConstraint) {
1602 output.WriteRawTag(18);
1603 output.WriteMessage(IndicatorConstraint);
1605 if (generalConstraintCase_ == GeneralConstraintOneofCase.SosConstraint) {
1606 output.WriteRawTag(26);
1607 output.WriteMessage(SosConstraint);
1609 if (generalConstraintCase_ == GeneralConstraintOneofCase.QuadraticConstraint) {
1610 output.WriteRawTag(34);
1611 output.WriteMessage(QuadraticConstraint);
1613 if (generalConstraintCase_ == GeneralConstraintOneofCase.AbsConstraint) {
1614 output.WriteRawTag(42);
1615 output.WriteMessage(AbsConstraint);
1617 if (generalConstraintCase_ == GeneralConstraintOneofCase.AndConstraint) {
1618 output.WriteRawTag(50);
1619 output.WriteMessage(AndConstraint);
1621 if (generalConstraintCase_ == GeneralConstraintOneofCase.OrConstraint) {
1622 output.WriteRawTag(58);
1623 output.WriteMessage(OrConstraint);
1625 if (generalConstraintCase_ == GeneralConstraintOneofCase.MinConstraint) {
1626 output.WriteRawTag(66);
1627 output.WriteMessage(MinConstraint);
1629 if (generalConstraintCase_ == GeneralConstraintOneofCase.MaxConstraint) {
1630 output.WriteRawTag(74);
1631 output.WriteMessage(MaxConstraint);
1633 if (_unknownFields !=
null) {
1634 _unknownFields.WriteTo(ref output);
1639 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1640 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1641 public int CalculateSize() {
1644 size += 1 + pb::CodedOutputStream.ComputeStringSize(
Name);
1646 if (generalConstraintCase_ == GeneralConstraintOneofCase.IndicatorConstraint) {
1647 size += 1 + pb::CodedOutputStream.ComputeMessageSize(IndicatorConstraint);
1649 if (generalConstraintCase_ == GeneralConstraintOneofCase.SosConstraint) {
1650 size += 1 + pb::CodedOutputStream.ComputeMessageSize(SosConstraint);
1652 if (generalConstraintCase_ == GeneralConstraintOneofCase.QuadraticConstraint) {
1653 size += 1 + pb::CodedOutputStream.ComputeMessageSize(QuadraticConstraint);
1655 if (generalConstraintCase_ == GeneralConstraintOneofCase.AbsConstraint) {
1656 size += 1 + pb::CodedOutputStream.ComputeMessageSize(AbsConstraint);
1658 if (generalConstraintCase_ == GeneralConstraintOneofCase.AndConstraint) {
1659 size += 1 + pb::CodedOutputStream.ComputeMessageSize(AndConstraint);
1661 if (generalConstraintCase_ == GeneralConstraintOneofCase.OrConstraint) {
1662 size += 1 + pb::CodedOutputStream.ComputeMessageSize(OrConstraint);
1664 if (generalConstraintCase_ == GeneralConstraintOneofCase.MinConstraint) {
1665 size += 1 + pb::CodedOutputStream.ComputeMessageSize(MinConstraint);
1667 if (generalConstraintCase_ == GeneralConstraintOneofCase.MaxConstraint) {
1668 size += 1 + pb::CodedOutputStream.ComputeMessageSize(MaxConstraint);
1670 if (_unknownFields !=
null) {
1671 size += _unknownFields.CalculateSize();
1676 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1677 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1678 public void MergeFrom(MPGeneralConstraintProto other) {
1679 if (other ==
null) {
1682 if (other.HasName) {
1685 switch (other.GeneralConstraintCase) {
1686 case GeneralConstraintOneofCase.IndicatorConstraint:
1687 if (IndicatorConstraint ==
null) {
1688 IndicatorConstraint =
new global::OperationsResearch.MPIndicatorConstraint();
1690 IndicatorConstraint.MergeFrom(other.IndicatorConstraint);
1692 case GeneralConstraintOneofCase.SosConstraint:
1693 if (SosConstraint ==
null) {
1694 SosConstraint =
new global::OperationsResearch.MPSosConstraint();
1696 SosConstraint.MergeFrom(other.SosConstraint);
1698 case GeneralConstraintOneofCase.QuadraticConstraint:
1699 if (QuadraticConstraint ==
null) {
1700 QuadraticConstraint =
new global::OperationsResearch.MPQuadraticConstraint();
1702 QuadraticConstraint.MergeFrom(other.QuadraticConstraint);
1704 case GeneralConstraintOneofCase.AbsConstraint:
1705 if (AbsConstraint ==
null) {
1706 AbsConstraint =
new global::OperationsResearch.MPAbsConstraint();
1708 AbsConstraint.MergeFrom(other.AbsConstraint);
1710 case GeneralConstraintOneofCase.AndConstraint:
1711 if (AndConstraint ==
null) {
1712 AndConstraint =
new global::OperationsResearch.MPArrayConstraint();
1714 AndConstraint.MergeFrom(other.AndConstraint);
1716 case GeneralConstraintOneofCase.OrConstraint:
1717 if (OrConstraint ==
null) {
1718 OrConstraint =
new global::OperationsResearch.MPArrayConstraint();
1720 OrConstraint.MergeFrom(other.OrConstraint);
1722 case GeneralConstraintOneofCase.MinConstraint:
1723 if (MinConstraint ==
null) {
1724 MinConstraint =
new global::OperationsResearch.MPArrayWithConstantConstraint();
1726 MinConstraint.MergeFrom(other.MinConstraint);
1728 case GeneralConstraintOneofCase.MaxConstraint:
1729 if (MaxConstraint ==
null) {
1730 MaxConstraint =
new global::OperationsResearch.MPArrayWithConstantConstraint();
1732 MaxConstraint.MergeFrom(other.MaxConstraint);
1736 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
1739 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1740 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1741 public void MergeFrom(pb::CodedInputStream input) {
1742 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1743 input.ReadRawMessage(
this);
1746 while ((tag = input.ReadTag()) != 0) {
1747 if ((tag & 7) == 4) {
1753 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
1756 Name = input.ReadString();
1760 global::OperationsResearch.MPIndicatorConstraint subBuilder =
new global::OperationsResearch.MPIndicatorConstraint();
1764 input.ReadMessage(subBuilder);
1769 global::OperationsResearch.MPSosConstraint subBuilder =
new global::OperationsResearch.MPSosConstraint();
1773 input.ReadMessage(subBuilder);
1778 global::OperationsResearch.MPQuadraticConstraint subBuilder =
new global::OperationsResearch.MPQuadraticConstraint();
1782 input.ReadMessage(subBuilder);
1787 global::OperationsResearch.MPAbsConstraint subBuilder =
new global::OperationsResearch.MPAbsConstraint();
1791 input.ReadMessage(subBuilder);
1796 global::OperationsResearch.MPArrayConstraint subBuilder =
new global::OperationsResearch.MPArrayConstraint();
1800 input.ReadMessage(subBuilder);
1805 global::OperationsResearch.MPArrayConstraint subBuilder =
new global::OperationsResearch.MPArrayConstraint();
1809 input.ReadMessage(subBuilder);
1814 global::OperationsResearch.MPArrayWithConstantConstraint subBuilder =
new global::OperationsResearch.MPArrayWithConstantConstraint();
1818 input.ReadMessage(subBuilder);
1823 global::OperationsResearch.MPArrayWithConstantConstraint subBuilder =
new global::OperationsResearch.MPArrayWithConstantConstraint();
1827 input.ReadMessage(subBuilder);
1836 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1837 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1838 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1839 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
1841 while ((tag = input.ReadTag()) != 0) {
1842 if ((tag & 7) == 4) {
1848 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
1851 Name = input.ReadString();
1855 global::OperationsResearch.MPIndicatorConstraint subBuilder =
new global::OperationsResearch.MPIndicatorConstraint();
1856 if (generalConstraintCase_ == GeneralConstraintOneofCase.IndicatorConstraint) {
1857 subBuilder.MergeFrom(IndicatorConstraint);
1859 input.ReadMessage(subBuilder);
1860 IndicatorConstraint = subBuilder;
1864 global::OperationsResearch.MPSosConstraint subBuilder =
new global::OperationsResearch.MPSosConstraint();
1865 if (generalConstraintCase_ == GeneralConstraintOneofCase.SosConstraint) {
1866 subBuilder.MergeFrom(SosConstraint);
1868 input.ReadMessage(subBuilder);
1869 SosConstraint = subBuilder;
1873 global::OperationsResearch.MPQuadraticConstraint subBuilder =
new global::OperationsResearch.MPQuadraticConstraint();
1874 if (generalConstraintCase_ == GeneralConstraintOneofCase.QuadraticConstraint) {
1875 subBuilder.MergeFrom(QuadraticConstraint);
1877 input.ReadMessage(subBuilder);
1878 QuadraticConstraint = subBuilder;
1882 global::OperationsResearch.MPAbsConstraint subBuilder =
new global::OperationsResearch.MPAbsConstraint();
1883 if (generalConstraintCase_ == GeneralConstraintOneofCase.AbsConstraint) {
1884 subBuilder.MergeFrom(AbsConstraint);
1886 input.ReadMessage(subBuilder);
1887 AbsConstraint = subBuilder;
1891 global::OperationsResearch.MPArrayConstraint subBuilder =
new global::OperationsResearch.MPArrayConstraint();
1892 if (generalConstraintCase_ == GeneralConstraintOneofCase.AndConstraint) {
1893 subBuilder.MergeFrom(AndConstraint);
1895 input.ReadMessage(subBuilder);
1896 AndConstraint = subBuilder;
1900 global::OperationsResearch.MPArrayConstraint subBuilder =
new global::OperationsResearch.MPArrayConstraint();
1901 if (generalConstraintCase_ == GeneralConstraintOneofCase.OrConstraint) {
1902 subBuilder.MergeFrom(OrConstraint);
1904 input.ReadMessage(subBuilder);
1905 OrConstraint = subBuilder;
1909 global::OperationsResearch.MPArrayWithConstantConstraint subBuilder =
new global::OperationsResearch.MPArrayWithConstantConstraint();
1910 if (generalConstraintCase_ == GeneralConstraintOneofCase.MinConstraint) {
1911 subBuilder.MergeFrom(MinConstraint);
1913 input.ReadMessage(subBuilder);
1914 MinConstraint = subBuilder;
1918 global::OperationsResearch.MPArrayWithConstantConstraint subBuilder =
new global::OperationsResearch.MPArrayWithConstantConstraint();
1919 if (generalConstraintCase_ == GeneralConstraintOneofCase.MaxConstraint) {
1920 subBuilder.MergeFrom(MaxConstraint);
1922 input.ReadMessage(subBuilder);
1923 MaxConstraint = subBuilder;
1942 [global::System.Diagnostics.DebuggerDisplayAttribute(
"{ToString(),nq}")]
1943 public sealed partial
class MPIndicatorConstraint : pb::IMessage<MPIndicatorConstraint>
1944 #
if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1945 , pb::IBufferMessage
1948 private static readonly pb::MessageParser<MPIndicatorConstraint> _parser =
new pb::MessageParser<MPIndicatorConstraint>(() =>
new MPIndicatorConstraint());
1949 private pb::UnknownFieldSet _unknownFields;
1950 private int _hasBits0;
1951 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1952 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1953 public static pb::MessageParser<MPIndicatorConstraint>
Parser {
get {
return _parser; } }
1955 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1956 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1957 public static pbr::MessageDescriptor
Descriptor {
1958 get {
return global::OperationsResearch.LinearSolverReflection.Descriptor.MessageTypes[3]; }
1961 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1962 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1963 pbr::MessageDescriptor pb::IMessage.Descriptor {
1967 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1968 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1973 partial
void OnConstruction();
1975 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1976 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1978 _hasBits0 = other._hasBits0;
1979 varIndex_ = other.varIndex_;
1980 varValue_ = other.varValue_;
1981 constraint_ = other.constraint_ !=
null ? other.constraint_.
Clone() :
null;
1982 _unknownFields = pb::UnknownFieldSet.
Clone(other._unknownFields);
1985 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1986 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1993 private readonly
static int VarIndexDefaultValue = 0;
1995 private int varIndex_;
2000 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2001 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2003 get {
if ((_hasBits0 & 1) != 0) {
return varIndex_; }
else {
return VarIndexDefaultValue; } }
2010 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2011 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2012 public bool HasVarIndex {
2013 get {
return (_hasBits0 & 1) != 0; }
2016 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2017 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2024 private readonly
static int VarValueDefaultValue = 0;
2026 private int varValue_;
2030 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2031 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2033 get {
if ((_hasBits0 & 2) != 0) {
return varValue_; }
else {
return VarValueDefaultValue; } }
2040 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2041 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2042 public bool HasVarValue {
2043 get {
return (_hasBits0 & 2) != 0; }
2046 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2047 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2054 private global::OperationsResearch.MPConstraintProto constraint_;
2058 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2059 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2061 get {
return constraint_; }
2063 constraint_ = value;
2067 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2068 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2069 public override bool Equals(
object other) {
2070 return Equals(other as MPIndicatorConstraint);
2073 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2074 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2076 if (ReferenceEquals(other,
null)) {
2079 if (ReferenceEquals(other,
this)) {
2082 if (VarIndex != other.
VarIndex)
return false;
2083 if (VarValue != other.
VarValue)
return false;
2084 if (!
object.Equals(Constraint, other.
Constraint))
return false;
2085 return Equals(_unknownFields, other._unknownFields);
2088 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2089 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2090 public override int GetHashCode() {
2092 if (HasVarIndex) hash ^= VarIndex.GetHashCode();
2094 if (constraint_ !=
null) hash ^=
Constraint.GetHashCode();
2095 if (_unknownFields !=
null) {
2096 hash ^= _unknownFields.GetHashCode();
2101 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2102 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2103 public override string ToString() {
2104 return pb::JsonFormatter.ToDiagnosticString(
this);
2107 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2108 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2109 public void WriteTo(pb::CodedOutputStream output) {
2110 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2111 output.WriteRawMessage(
this);
2114 output.WriteRawTag(8);
2118 output.WriteRawTag(16);
2119 output.WriteInt32(VarValue);
2121 if (constraint_ !=
null) {
2122 output.WriteRawTag(26);
2123 output.WriteMessage(Constraint);
2125 if (_unknownFields !=
null) {
2126 _unknownFields.WriteTo(output);
2131 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2132 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2133 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2134 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
2136 output.WriteRawTag(8);
2137 output.WriteInt32(VarIndex);
2140 output.WriteRawTag(16);
2141 output.WriteInt32(VarValue);
2143 if (constraint_ !=
null) {
2144 output.WriteRawTag(26);
2145 output.WriteMessage(Constraint);
2147 if (_unknownFields !=
null) {
2148 _unknownFields.WriteTo(ref output);
2153 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2154 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2155 public int CalculateSize() {
2158 size += 1 + pb::CodedOutputStream.ComputeInt32Size(
VarIndex);
2161 size += 1 + pb::CodedOutputStream.ComputeInt32Size(VarValue);
2163 if (constraint_ !=
null) {
2164 size += 1 + pb::CodedOutputStream.ComputeMessageSize(Constraint);
2166 if (_unknownFields !=
null) {
2167 size += _unknownFields.CalculateSize();
2172 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2173 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2174 public void MergeFrom(MPIndicatorConstraint other) {
2175 if (other ==
null) {
2178 if (other.HasVarIndex) {
2179 VarIndex = other.VarIndex;
2181 if (other.HasVarValue) {
2182 VarValue = other.VarValue;
2184 if (other.constraint_ !=
null) {
2185 if (constraint_ ==
null) {
2186 Constraint =
new global::OperationsResearch.MPConstraintProto();
2188 Constraint.MergeFrom(other.Constraint);
2190 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
2193 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2194 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2195 public void MergeFrom(pb::CodedInputStream input) {
2196 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2197 input.ReadRawMessage(
this);
2200 while ((tag = input.ReadTag()) != 0) {
2201 if ((tag & 7) == 4) {
2207 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
2218 if (constraint_ ==
null) {
2219 Constraint =
new global::OperationsResearch.MPConstraintProto();
2229 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2230 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2231 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2232 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
2234 while ((tag = input.ReadTag()) != 0) {
2235 if ((tag & 7) == 4) {
2241 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
2244 VarIndex = input.ReadInt32();
2248 VarValue = input.ReadInt32();
2252 if (constraint_ ==
null) {
2253 Constraint =
new global::OperationsResearch.MPConstraintProto();
2255 input.ReadMessage(Constraint);
2270 [global::System.Diagnostics.DebuggerDisplayAttribute(
"{ToString(),nq}")]
2271 public sealed partial
class MPSosConstraint : pb::IMessage<MPSosConstraint>
2272 #
if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2273 , pb::IBufferMessage
2276 private static readonly pb::MessageParser<MPSosConstraint> _parser =
new pb::MessageParser<MPSosConstraint>(() =>
new MPSosConstraint());
2277 private pb::UnknownFieldSet _unknownFields;
2278 private int _hasBits0;
2279 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2280 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2281 public static pb::MessageParser<MPSosConstraint>
Parser {
get {
return _parser; } }
2283 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2284 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2285 public static pbr::MessageDescriptor
Descriptor {
2286 get {
return global::OperationsResearch.LinearSolverReflection.Descriptor.MessageTypes[4]; }
2289 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2290 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2291 pbr::MessageDescriptor pb::IMessage.Descriptor {
2295 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2296 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2301 partial
void OnConstruction();
2303 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2304 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2306 _hasBits0 = other._hasBits0;
2307 type_ = other.type_;
2308 varIndex_ = other.varIndex_.Clone();
2309 weight_ = other.weight_.Clone();
2310 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
2313 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2314 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2321 private readonly
static global::OperationsResearch.MPSosConstraint.Types.Type TypeDefaultValue = global::OperationsResearch.MPSosConstraint.Types.Type.Sos1Default;
2323 private global::OperationsResearch.MPSosConstraint.Types.Type type_;
2324 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2325 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2327 get { if ((_hasBits0 & 1) != 0) { return type_; } else { return TypeDefaultValue; } }
2334 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2335 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2336 public bool HasType {
2337 get {
return (_hasBits0 & 1) != 0; }
2340 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2341 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2348 private static readonly pb::FieldCodec<int> _repeated_varIndex_codec
2349 = pb::FieldCodec.ForInt32(16);
2350 private readonly pbc::RepeatedField<int> varIndex_ =
new pbc::RepeatedField<int>();
2355 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2356 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2357 public pbc::RepeatedField<int>
VarIndex {
2358 get {
return varIndex_; }
2363 private static readonly pb::FieldCodec<double> _repeated_weight_codec
2364 = pb::FieldCodec.ForDouble(25);
2365 private readonly pbc::RepeatedField<double> weight_ =
new pbc::RepeatedField<double>();
2378 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2379 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2380 public pbc::RepeatedField<double>
Weight {
2381 get {
return weight_; }
2384 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2385 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2386 public override bool Equals(
object other) {
2390 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2391 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2393 if (ReferenceEquals(other,
null)) {
2396 if (ReferenceEquals(other,
this)) {
2399 if (Type != other.
Type)
return false;
2400 if(!varIndex_.Equals(other.varIndex_))
return false;
2401 if(!weight_.Equals(other.weight_))
return false;
2402 return Equals(_unknownFields, other._unknownFields);
2405 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2406 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2407 public override int GetHashCode() {
2409 if (HasType) hash ^= Type.GetHashCode();
2410 hash ^= varIndex_.GetHashCode();
2411 hash ^= weight_.GetHashCode();
2412 if (_unknownFields !=
null) {
2413 hash ^= _unknownFields.GetHashCode();
2418 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2419 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2420 public override string ToString() {
2421 return pb::JsonFormatter.ToDiagnosticString(
this);
2424 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2425 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2426 public void WriteTo(pb::CodedOutputStream output) {
2427 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2428 output.WriteRawMessage(
this);
2431 output.WriteRawTag(8);
2432 output.WriteEnum((
int)
Type);
2434 varIndex_.WriteTo(output, _repeated_varIndex_codec);
2435 weight_.WriteTo(output, _repeated_weight_codec);
2436 if (_unknownFields !=
null) {
2437 _unknownFields.WriteTo(output);
2442 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2443 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2444 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2445 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
2447 output.WriteRawTag(8);
2448 output.WriteEnum((
int) Type);
2450 varIndex_.WriteTo(ref output, _repeated_varIndex_codec);
2451 weight_.WriteTo(ref output, _repeated_weight_codec);
2452 if (_unknownFields !=
null) {
2453 _unknownFields.WriteTo(ref output);
2458 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2459 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2460 public int CalculateSize() {
2463 size += 1 + pb::CodedOutputStream.ComputeEnumSize((
int)
Type);
2465 size += varIndex_.CalculateSize(_repeated_varIndex_codec);
2466 size += weight_.CalculateSize(_repeated_weight_codec);
2467 if (_unknownFields !=
null) {
2468 size += _unknownFields.CalculateSize();
2473 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2474 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2475 public void MergeFrom(MPSosConstraint other) {
2476 if (other ==
null) {
2479 if (other.HasType) {
2482 varIndex_.Add(other.varIndex_);
2483 weight_.Add(other.weight_);
2484 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
2487 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2488 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2489 public void MergeFrom(pb::CodedInputStream input) {
2490 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2491 input.ReadRawMessage(
this);
2494 while ((tag = input.ReadTag()) != 0) {
2495 if ((tag & 7) == 4) {
2501 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
2504 Type = (global::OperationsResearch.MPSosConstraint.Types.Type) input.ReadEnum();
2509 varIndex_.AddEntriesFrom(input, _repeated_varIndex_codec);
2514 weight_.AddEntriesFrom(input, _repeated_weight_codec);
2522 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2523 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2524 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2525 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
2527 while ((tag = input.ReadTag()) != 0) {
2528 if ((tag & 7) == 4) {
2534 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
2537 Type = (global::OperationsResearch.MPSosConstraint.Types.Type) input.ReadEnum();
2542 varIndex_.AddEntriesFrom(ref input, _repeated_varIndex_codec);
2547 weight_.AddEntriesFrom(ref input, _repeated_weight_codec);
2555 #region Nested types
2557 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2558 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2559 public static partial class Types {
2564 [pbr::OriginalName(
"SOS1_DEFAULT")] Sos1Default = 0,
2570 [pbr::OriginalName(
"SOS2")] Sos2 = 1,
2587 [global::System.Diagnostics.DebuggerDisplayAttribute(
"{ToString(),nq}")]
2589 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2590 , pb::IBufferMessage
2593 private static readonly pb::MessageParser<MPQuadraticConstraint> _parser =
new pb::MessageParser<MPQuadraticConstraint>(() =>
new MPQuadraticConstraint());
2594 private pb::UnknownFieldSet _unknownFields;
2595 private int _hasBits0;
2596 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2597 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2598 public static pb::MessageParser<MPQuadraticConstraint>
Parser {
get {
return _parser; } }
2600 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2601 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2602 public static pbr::MessageDescriptor
Descriptor {
2603 get {
return global::OperationsResearch.LinearSolverReflection.Descriptor.MessageTypes[5]; }
2606 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2607 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2608 pbr::MessageDescriptor pb::IMessage.Descriptor {
2612 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2613 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2618 partial
void OnConstruction();
2620 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2621 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2623 _hasBits0 = other._hasBits0;
2624 varIndex_ = other.varIndex_.Clone();
2625 coefficient_ = other.coefficient_.Clone();
2626 qvar1Index_ = other.qvar1Index_.Clone();
2627 qvar2Index_ = other.qvar2Index_.Clone();
2628 qcoefficient_ = other.qcoefficient_.Clone();
2629 lowerBound_ = other.lowerBound_;
2630 upperBound_ = other.upperBound_;
2631 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
2634 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2635 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2642 private static readonly pb::FieldCodec<int> _repeated_varIndex_codec
2643 = pb::FieldCodec.ForInt32(8);
2644 private readonly pbc::RepeatedField<int> varIndex_ =
new pbc::RepeatedField<int>();
2651 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2652 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2653 public pbc::RepeatedField<int>
VarIndex {
2654 get {
return varIndex_; }
2659 private static readonly pb::FieldCodec<double> _repeated_coefficient_codec
2660 = pb::FieldCodec.ForDouble(17);
2661 private readonly pbc::RepeatedField<double> coefficient_ =
new pbc::RepeatedField<double>();
2665 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2666 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2668 get {
return coefficient_; }
2673 private static readonly pb::FieldCodec<int> _repeated_qvar1Index_codec
2674 = pb::FieldCodec.ForInt32(24);
2675 private readonly pbc::RepeatedField<int> qvar1Index_ =
new pbc::RepeatedField<int>();
2685 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2686 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2688 get {
return qvar1Index_; }
2693 private static readonly pb::FieldCodec<int> _repeated_qvar2Index_codec
2694 = pb::FieldCodec.ForInt32(32);
2695 private readonly pbc::RepeatedField<int> qvar2Index_ =
new pbc::RepeatedField<int>();
2696 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2697 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2699 get {
return qvar2Index_; }
2704 private static readonly pb::FieldCodec<double> _repeated_qcoefficient_codec
2705 = pb::FieldCodec.ForDouble(41);
2706 private readonly pbc::RepeatedField<double> qcoefficient_ =
new pbc::RepeatedField<double>();
2710 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2711 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2713 get {
return qcoefficient_; }
2718 private readonly
static double LowerBoundDefaultValue =
double.NegativeInfinity;
2720 private double lowerBound_;
2724 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2725 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2727 get {
if ((_hasBits0 & 1) != 0) {
return lowerBound_; }
else {
return LowerBoundDefaultValue; } }
2730 lowerBound_ = value;
2734 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2735 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2736 public bool HasLowerBound {
2737 get {
return (_hasBits0 & 1) != 0; }
2740 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2741 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2748 private readonly
static double UpperBoundDefaultValue =
double.PositiveInfinity;
2750 private double upperBound_;
2751 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2752 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2754 get {
if ((_hasBits0 & 2) != 0) {
return upperBound_; }
else {
return UpperBoundDefaultValue; } }
2757 upperBound_ = value;
2761 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2762 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2763 public bool HasUpperBound {
2764 get {
return (_hasBits0 & 2) != 0; }
2767 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2768 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2773 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2774 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2775 public override bool Equals(
object other) {
2779 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2780 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2782 if (ReferenceEquals(other,
null)) {
2785 if (ReferenceEquals(other,
this)) {
2788 if(!varIndex_.Equals(other.varIndex_))
return false;
2789 if(!coefficient_.Equals(other.coefficient_))
return false;
2790 if(!qvar1Index_.Equals(other.qvar1Index_))
return false;
2791 if(!qvar2Index_.Equals(other.qvar2Index_))
return false;
2792 if(!qcoefficient_.Equals(other.qcoefficient_))
return false;
2793 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(LowerBound, other.
LowerBound))
return false;
2794 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(UpperBound, other.
UpperBound))
return false;
2795 return Equals(_unknownFields, other._unknownFields);
2798 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2799 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2800 public override int GetHashCode() {
2802 hash ^= varIndex_.GetHashCode();
2803 hash ^= coefficient_.GetHashCode();
2804 hash ^= qvar1Index_.GetHashCode();
2805 hash ^= qvar2Index_.GetHashCode();
2806 hash ^= qcoefficient_.GetHashCode();
2807 if (
HasLowerBound) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(
LowerBound);
2808 if (
HasUpperBound) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(
UpperBound);
2809 if (_unknownFields !=
null) {
2810 hash ^= _unknownFields.GetHashCode();
2815 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2816 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2817 public override string ToString() {
2818 return pb::JsonFormatter.ToDiagnosticString(
this);
2821 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2822 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2823 public void WriteTo(pb::CodedOutputStream output) {
2824 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2825 output.WriteRawMessage(
this);
2827 varIndex_.WriteTo(output, _repeated_varIndex_codec);
2828 coefficient_.WriteTo(output, _repeated_coefficient_codec);
2829 qvar1Index_.WriteTo(output, _repeated_qvar1Index_codec);
2830 qvar2Index_.WriteTo(output, _repeated_qvar2Index_codec);
2831 qcoefficient_.WriteTo(output, _repeated_qcoefficient_codec);
2833 output.WriteRawTag(49);
2836 if (HasUpperBound) {
2837 output.WriteRawTag(57);
2838 output.WriteDouble(UpperBound);
2840 if (_unknownFields !=
null) {
2841 _unknownFields.WriteTo(output);
2846 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2847 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2848 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2849 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
2850 varIndex_.WriteTo(ref output, _repeated_varIndex_codec);
2851 coefficient_.WriteTo(ref output, _repeated_coefficient_codec);
2852 qvar1Index_.WriteTo(ref output, _repeated_qvar1Index_codec);
2853 qvar2Index_.WriteTo(ref output, _repeated_qvar2Index_codec);
2854 qcoefficient_.WriteTo(ref output, _repeated_qcoefficient_codec);
2855 if (HasLowerBound) {
2856 output.WriteRawTag(49);
2857 output.WriteDouble(LowerBound);
2859 if (HasUpperBound) {
2860 output.WriteRawTag(57);
2861 output.WriteDouble(UpperBound);
2863 if (_unknownFields !=
null) {
2864 _unknownFields.WriteTo(ref output);
2869 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2870 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2871 public int CalculateSize() {
2873 size += varIndex_.CalculateSize(_repeated_varIndex_codec);
2874 size += coefficient_.CalculateSize(_repeated_coefficient_codec);
2875 size += qvar1Index_.CalculateSize(_repeated_qvar1Index_codec);
2876 size += qvar2Index_.CalculateSize(_repeated_qvar2Index_codec);
2877 size += qcoefficient_.CalculateSize(_repeated_qcoefficient_codec);
2881 if (HasUpperBound) {
2884 if (_unknownFields !=
null) {
2885 size += _unknownFields.CalculateSize();
2890 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2891 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2892 public void MergeFrom(MPQuadraticConstraint other) {
2893 if (other ==
null) {
2896 varIndex_.Add(other.varIndex_);
2897 coefficient_.Add(other.coefficient_);
2898 qvar1Index_.Add(other.qvar1Index_);
2899 qvar2Index_.Add(other.qvar2Index_);
2900 qcoefficient_.Add(other.qcoefficient_);
2901 if (other.HasLowerBound) {
2902 LowerBound = other.LowerBound;
2904 if (other.HasUpperBound) {
2905 UpperBound = other.UpperBound;
2907 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
2910 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2911 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2912 public void MergeFrom(pb::CodedInputStream input) {
2913 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2914 input.ReadRawMessage(
this);
2917 while ((tag = input.ReadTag()) != 0) {
2918 if ((tag & 7) == 4) {
2924 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
2928 varIndex_.AddEntriesFrom(input, _repeated_varIndex_codec);
2933 coefficient_.AddEntriesFrom(input, _repeated_coefficient_codec);
2938 qvar1Index_.AddEntriesFrom(input, _repeated_qvar1Index_codec);
2943 qvar2Index_.AddEntriesFrom(input, _repeated_qvar2Index_codec);
2948 qcoefficient_.AddEntriesFrom(input, _repeated_qcoefficient_codec);
2964 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2965 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2966 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
2967 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
2969 while ((tag = input.ReadTag()) != 0) {
2970 if ((tag & 7) == 4) {
2976 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
2980 varIndex_.AddEntriesFrom(ref input, _repeated_varIndex_codec);
2985 coefficient_.AddEntriesFrom(ref input, _repeated_coefficient_codec);
2990 qvar1Index_.AddEntriesFrom(ref input, _repeated_qvar1Index_codec);
2995 qvar2Index_.AddEntriesFrom(ref input, _repeated_qvar2Index_codec);
3000 qcoefficient_.AddEntriesFrom(ref input, _repeated_qcoefficient_codec);
3004 LowerBound = input.ReadDouble();
3008 UpperBound = input.ReadDouble();
3021 [global::System.Diagnostics.DebuggerDisplayAttribute(
"{ToString(),nq}")]
3022 public sealed partial class MPAbsConstraint : pb::IMessage<MPAbsConstraint>
3023 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
3024 , pb::IBufferMessage
3027 private static readonly pb::MessageParser<MPAbsConstraint> _parser =
new pb::MessageParser<MPAbsConstraint>(() =>
new MPAbsConstraint());
3028 private pb::UnknownFieldSet _unknownFields;
3029 private int _hasBits0;
3030 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3031 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3032 public static pb::MessageParser<MPAbsConstraint>
Parser {
get {
return _parser; } }
3034 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3035 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3036 public static pbr::MessageDescriptor
Descriptor {
3037 get {
return global::OperationsResearch.LinearSolverReflection.Descriptor.MessageTypes[6]; }
3040 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3041 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3042 pbr::MessageDescriptor pb::IMessage.Descriptor {
3046 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3047 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3052 partial
void OnConstruction();
3054 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3055 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3057 _hasBits0 = other._hasBits0;
3058 varIndex_ = other.varIndex_;
3059 resultantVarIndex_ = other.resultantVarIndex_;
3060 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
3063 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3064 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3071 private readonly
static int VarIndexDefaultValue = 0;
3073 private int varIndex_;
3078 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3079 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3081 get {
if ((_hasBits0 & 1) != 0) {
return varIndex_; }
else {
return VarIndexDefaultValue; } }
3088 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3089 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3090 public bool HasVarIndex {
3091 get {
return (_hasBits0 & 1) != 0; }
3094 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3095 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3102 private readonly
static int ResultantVarIndexDefaultValue = 0;
3104 private int resultantVarIndex_;
3105 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3106 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3108 get {
if ((_hasBits0 & 2) != 0) {
return resultantVarIndex_; }
else {
return ResultantVarIndexDefaultValue; } }
3111 resultantVarIndex_ = value;
3115 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3116 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3117 public bool HasResultantVarIndex {
3118 get {
return (_hasBits0 & 2) != 0; }
3121 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3122 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3127 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3128 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3129 public override bool Equals(
object other) {
3133 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3134 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3136 if (ReferenceEquals(other,
null)) {
3139 if (ReferenceEquals(other,
this)) {
3142 if (VarIndex != other.
VarIndex)
return false;
3144 return Equals(_unknownFields, other._unknownFields);
3147 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3148 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3149 public override int GetHashCode() {
3151 if (HasVarIndex) hash ^= VarIndex.GetHashCode();
3153 if (_unknownFields !=
null) {
3154 hash ^= _unknownFields.GetHashCode();
3159 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3160 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3161 public override string ToString() {
3162 return pb::JsonFormatter.ToDiagnosticString(
this);
3165 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3166 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3167 public void WriteTo(pb::CodedOutputStream output) {
3168 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
3169 output.WriteRawMessage(
this);
3172 output.WriteRawTag(8);
3175 if (HasResultantVarIndex) {
3176 output.WriteRawTag(16);
3177 output.WriteInt32(ResultantVarIndex);
3179 if (_unknownFields !=
null) {
3180 _unknownFields.WriteTo(output);
3185 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
3186 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3187 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3188 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
3190 output.WriteRawTag(8);
3191 output.WriteInt32(VarIndex);
3193 if (HasResultantVarIndex) {
3194 output.WriteRawTag(16);
3195 output.WriteInt32(ResultantVarIndex);
3197 if (_unknownFields !=
null) {
3198 _unknownFields.WriteTo(ref output);
3203 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3204 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3205 public int CalculateSize() {
3208 size += 1 + pb::CodedOutputStream.ComputeInt32Size(
VarIndex);
3210 if (HasResultantVarIndex) {
3211 size += 1 + pb::CodedOutputStream.ComputeInt32Size(ResultantVarIndex);
3213 if (_unknownFields !=
null) {
3214 size += _unknownFields.CalculateSize();
3219 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3220 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3221 public void MergeFrom(MPAbsConstraint other) {
3222 if (other ==
null) {
3225 if (other.HasVarIndex) {
3226 VarIndex = other.VarIndex;
3228 if (other.HasResultantVarIndex) {
3229 ResultantVarIndex = other.ResultantVarIndex;
3231 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
3234 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3235 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3236 public void MergeFrom(pb::CodedInputStream input) {
3237 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
3238 input.ReadRawMessage(
this);
3241 while ((tag = input.ReadTag()) != 0) {
3242 if ((tag & 7) == 4) {
3248 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
3263 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
3264 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3265 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3266 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
3268 while ((tag = input.ReadTag()) != 0) {
3269 if ((tag & 7) == 4) {
3275 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
3278 VarIndex = input.ReadInt32();
3282 ResultantVarIndex = input.ReadInt32();
3295 [global::System.Diagnostics.DebuggerDisplayAttribute(
"{ToString(),nq}")]
3296 public sealed partial
class MPArrayConstraint : pb::IMessage<MPArrayConstraint>
3297 #
if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
3298 , pb::IBufferMessage
3301 private static readonly pb::MessageParser<MPArrayConstraint> _parser =
new pb::MessageParser<MPArrayConstraint>(() =>
new MPArrayConstraint());
3302 private pb::UnknownFieldSet _unknownFields;
3303 private int _hasBits0;
3304 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3305 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3306 public static pb::MessageParser<MPArrayConstraint>
Parser {
get {
return _parser; } }
3308 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3309 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3310 public static pbr::MessageDescriptor
Descriptor {
3311 get {
return global::OperationsResearch.LinearSolverReflection.Descriptor.MessageTypes[7]; }
3314 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3315 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3316 pbr::MessageDescriptor pb::IMessage.Descriptor {
3320 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3321 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3326 partial
void OnConstruction();
3328 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3329 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3331 _hasBits0 = other._hasBits0;
3332 varIndex_ = other.varIndex_.Clone();
3333 resultantVarIndex_ = other.resultantVarIndex_;
3334 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
3337 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3338 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3345 private static readonly pb::FieldCodec<int> _repeated_varIndex_codec
3346 = pb::FieldCodec.ForInt32(8);
3347 private readonly pbc::RepeatedField<int> varIndex_ =
new pbc::RepeatedField<int>();
3351 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3352 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3353 public pbc::RepeatedField<int>
VarIndex {
3354 get {
return varIndex_; }
3359 private readonly
static int ResultantVarIndexDefaultValue = 0;
3361 private int resultantVarIndex_;
3362 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3363 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3365 get {
if ((_hasBits0 & 1) != 0) {
return resultantVarIndex_; }
else {
return ResultantVarIndexDefaultValue; } }
3368 resultantVarIndex_ = value;
3372 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3373 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3374 public bool HasResultantVarIndex {
3375 get {
return (_hasBits0 & 1) != 0; }
3378 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3379 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3384 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3385 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3386 public override bool Equals(
object other) {
3390 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3391 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3393 if (ReferenceEquals(other,
null)) {
3396 if (ReferenceEquals(other,
this)) {
3399 if(!varIndex_.Equals(other.varIndex_))
return false;
3401 return Equals(_unknownFields, other._unknownFields);
3404 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3405 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3406 public override int GetHashCode() {
3408 hash ^= varIndex_.GetHashCode();
3410 if (_unknownFields !=
null) {
3411 hash ^= _unknownFields.GetHashCode();
3416 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3417 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3418 public override string ToString() {
3419 return pb::JsonFormatter.ToDiagnosticString(
this);
3422 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3423 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3424 public void WriteTo(pb::CodedOutputStream output) {
3425 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
3426 output.WriteRawMessage(
this);
3428 varIndex_.WriteTo(output, _repeated_varIndex_codec);
3430 output.WriteRawTag(16);
3433 if (_unknownFields !=
null) {
3434 _unknownFields.WriteTo(output);
3439 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
3440 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3441 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3442 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
3443 varIndex_.WriteTo(ref output, _repeated_varIndex_codec);
3444 if (HasResultantVarIndex) {
3445 output.WriteRawTag(16);
3446 output.WriteInt32(ResultantVarIndex);
3448 if (_unknownFields !=
null) {
3449 _unknownFields.WriteTo(ref output);
3454 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3455 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3456 public int CalculateSize() {
3458 size += varIndex_.CalculateSize(_repeated_varIndex_codec);
3462 if (_unknownFields !=
null) {
3463 size += _unknownFields.CalculateSize();
3468 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3469 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3470 public void MergeFrom(MPArrayConstraint other) {
3471 if (other ==
null) {
3474 varIndex_.Add(other.varIndex_);
3475 if (other.HasResultantVarIndex) {
3476 ResultantVarIndex = other.ResultantVarIndex;
3478 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
3481 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3482 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3483 public void MergeFrom(pb::CodedInputStream input) {
3484 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
3485 input.ReadRawMessage(
this);
3488 while ((tag = input.ReadTag()) != 0) {
3489 if ((tag & 7) == 4) {
3495 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
3499 varIndex_.AddEntriesFrom(input, _repeated_varIndex_codec);
3511 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
3512 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3513 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3514 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
3516 while ((tag = input.ReadTag()) != 0) {
3517 if ((tag & 7) == 4) {
3523 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
3527 varIndex_.AddEntriesFrom(ref input, _repeated_varIndex_codec);
3531 ResultantVarIndex = input.ReadInt32();
3545 [global::System.Diagnostics.DebuggerDisplayAttribute(
"{ToString(),nq}")]
3546 public sealed partial class MPArrayWithConstantConstraint : pb::IMessage<MPArrayWithConstantConstraint>
3547 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
3548 , pb::IBufferMessage
3551 private static readonly pb::MessageParser<MPArrayWithConstantConstraint> _parser =
new pb::MessageParser<MPArrayWithConstantConstraint>(() =>
new MPArrayWithConstantConstraint());
3552 private pb::UnknownFieldSet _unknownFields;
3553 private int _hasBits0;
3554 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3555 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3556 public static pb::MessageParser<MPArrayWithConstantConstraint>
Parser {
get {
return _parser; } }
3558 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3559 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3560 public static pbr::MessageDescriptor
Descriptor {
3561 get {
return global::OperationsResearch.LinearSolverReflection.Descriptor.MessageTypes[8]; }
3564 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3565 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3566 pbr::MessageDescriptor pb::IMessage.Descriptor {
3570 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3571 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3576 partial
void OnConstruction();
3578 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3579 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3581 _hasBits0 = other._hasBits0;
3582 varIndex_ = other.varIndex_.Clone();
3583 constant_ = other.constant_;
3584 resultantVarIndex_ = other.resultantVarIndex_;
3585 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
3588 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3589 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3596 private static readonly pb::FieldCodec<int> _repeated_varIndex_codec
3597 = pb::FieldCodec.ForInt32(8);
3598 private readonly pbc::RepeatedField<int> varIndex_ =
new pbc::RepeatedField<int>();
3603 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3604 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3605 public pbc::RepeatedField<int>
VarIndex {
3606 get {
return varIndex_; }
3611 private readonly
static double ConstantDefaultValue = 0D;
3613 private double constant_;
3614 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3615 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3617 get {
if ((_hasBits0 & 1) != 0) {
return constant_; }
else {
return ConstantDefaultValue; } }
3624 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3625 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3626 public bool HasConstant {
3627 get {
return (_hasBits0 & 1) != 0; }
3630 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3631 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3638 private readonly
static int ResultantVarIndexDefaultValue = 0;
3640 private int resultantVarIndex_;
3641 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3642 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3644 get {
if ((_hasBits0 & 2) != 0) {
return resultantVarIndex_; }
else {
return ResultantVarIndexDefaultValue; } }
3647 resultantVarIndex_ = value;
3651 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3652 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3653 public bool HasResultantVarIndex {
3654 get {
return (_hasBits0 & 2) != 0; }
3657 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3658 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3663 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3664 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3665 public override bool Equals(
object other) {
3669 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3670 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3672 if (ReferenceEquals(other,
null)) {
3675 if (ReferenceEquals(other,
this)) {
3678 if(!varIndex_.Equals(other.varIndex_))
return false;
3679 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Constant, other.
Constant))
return false;
3681 return Equals(_unknownFields, other._unknownFields);
3684 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3685 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3686 public override int GetHashCode() {
3688 hash ^= varIndex_.GetHashCode();
3691 if (_unknownFields !=
null) {
3692 hash ^= _unknownFields.GetHashCode();
3697 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3698 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3699 public override string ToString() {
3700 return pb::JsonFormatter.ToDiagnosticString(
this);
3703 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3704 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3705 public void WriteTo(pb::CodedOutputStream output) {
3706 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
3707 output.WriteRawMessage(
this);
3709 varIndex_.WriteTo(output, _repeated_varIndex_codec);
3711 output.WriteRawTag(17);
3714 if (HasResultantVarIndex) {
3715 output.WriteRawTag(24);
3716 output.WriteInt32(ResultantVarIndex);
3718 if (_unknownFields !=
null) {
3719 _unknownFields.WriteTo(output);
3724 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
3725 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3726 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3727 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
3728 varIndex_.WriteTo(ref output, _repeated_varIndex_codec);
3730 output.WriteRawTag(17);
3731 output.WriteDouble(Constant);
3733 if (HasResultantVarIndex) {
3734 output.WriteRawTag(24);
3735 output.WriteInt32(ResultantVarIndex);
3737 if (_unknownFields !=
null) {
3738 _unknownFields.WriteTo(ref output);
3743 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3744 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3745 public int CalculateSize() {
3747 size += varIndex_.CalculateSize(_repeated_varIndex_codec);
3751 if (HasResultantVarIndex) {
3752 size += 1 + pb::CodedOutputStream.ComputeInt32Size(ResultantVarIndex);
3754 if (_unknownFields !=
null) {
3755 size += _unknownFields.CalculateSize();
3760 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3761 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3762 public void MergeFrom(MPArrayWithConstantConstraint other) {
3763 if (other ==
null) {
3766 varIndex_.Add(other.varIndex_);
3767 if (other.HasConstant) {
3768 Constant = other.Constant;
3770 if (other.HasResultantVarIndex) {
3771 ResultantVarIndex = other.ResultantVarIndex;
3773 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
3776 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3777 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3778 public void MergeFrom(pb::CodedInputStream input) {
3779 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
3780 input.ReadRawMessage(
this);
3783 while ((tag = input.ReadTag()) != 0) {
3784 if ((tag & 7) == 4) {
3790 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
3794 varIndex_.AddEntriesFrom(input, _repeated_varIndex_codec);
3810 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
3811 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3812 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3813 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
3815 while ((tag = input.ReadTag()) != 0) {
3816 if ((tag & 7) == 4) {
3822 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
3826 varIndex_.AddEntriesFrom(ref input, _repeated_varIndex_codec);
3830 Constant = input.ReadDouble();
3834 ResultantVarIndex = input.ReadInt32();
3851 [global::System.Diagnostics.DebuggerDisplayAttribute(
"{ToString(),nq}")]
3852 public sealed partial class MPQuadraticObjective : pb::IMessage<MPQuadraticObjective>
3853 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
3854 , pb::IBufferMessage
3857 private static readonly pb::MessageParser<MPQuadraticObjective> _parser =
new pb::MessageParser<MPQuadraticObjective>(() =>
new MPQuadraticObjective());
3858 private pb::UnknownFieldSet _unknownFields;
3859 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3860 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3861 public static pb::MessageParser<MPQuadraticObjective>
Parser {
get {
return _parser; } }
3863 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3864 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3865 public static pbr::MessageDescriptor
Descriptor {
3866 get {
return global::OperationsResearch.LinearSolverReflection.Descriptor.MessageTypes[9]; }
3869 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3870 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3871 pbr::MessageDescriptor pb::IMessage.Descriptor {
3875 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3876 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3881 partial
void OnConstruction();
3883 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3884 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3886 qvar1Index_ = other.qvar1Index_.Clone();
3887 qvar2Index_ = other.qvar2Index_.Clone();
3888 coefficient_ = other.coefficient_.Clone();
3889 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
3892 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3893 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3900 private static readonly pb::FieldCodec<int> _repeated_qvar1Index_codec
3901 = pb::FieldCodec.ForInt32(8);
3902 private readonly pbc::RepeatedField<int> qvar1Index_ =
new pbc::RepeatedField<int>();
3912 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3913 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3915 get {
return qvar1Index_; }
3920 private static readonly pb::FieldCodec<int> _repeated_qvar2Index_codec
3921 = pb::FieldCodec.ForInt32(16);
3922 private readonly pbc::RepeatedField<int> qvar2Index_ =
new pbc::RepeatedField<int>();
3923 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3924 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3926 get {
return qvar2Index_; }
3931 private static readonly pb::FieldCodec<double> _repeated_coefficient_codec
3932 = pb::FieldCodec.ForDouble(25);
3933 private readonly pbc::RepeatedField<double> coefficient_ =
new pbc::RepeatedField<double>();
3937 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3938 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3940 get {
return coefficient_; }
3943 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3944 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3945 public override bool Equals(
object other) {
3949 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3950 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3952 if (ReferenceEquals(other,
null)) {
3955 if (ReferenceEquals(other,
this)) {
3958 if(!qvar1Index_.Equals(other.qvar1Index_))
return false;
3959 if(!qvar2Index_.Equals(other.qvar2Index_))
return false;
3960 if(!coefficient_.Equals(other.coefficient_))
return false;
3961 return Equals(_unknownFields, other._unknownFields);
3964 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3965 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3966 public override int GetHashCode() {
3968 hash ^= qvar1Index_.GetHashCode();
3969 hash ^= qvar2Index_.GetHashCode();
3970 hash ^= coefficient_.GetHashCode();
3971 if (_unknownFields !=
null) {
3972 hash ^= _unknownFields.GetHashCode();
3977 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3978 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3979 public override string ToString() {
3980 return pb::JsonFormatter.ToDiagnosticString(
this);
3983 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3984 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
3985 public void WriteTo(pb::CodedOutputStream output) {
3986 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
3987 output.WriteRawMessage(
this);
3989 qvar1Index_.WriteTo(output, _repeated_qvar1Index_codec);
3990 qvar2Index_.WriteTo(output, _repeated_qvar2Index_codec);
3991 coefficient_.WriteTo(output, _repeated_coefficient_codec);
3992 if (_unknownFields !=
null) {
3993 _unknownFields.WriteTo(output);
3998 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
3999 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4000 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4001 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
4002 qvar1Index_.WriteTo(ref output, _repeated_qvar1Index_codec);
4003 qvar2Index_.WriteTo(ref output, _repeated_qvar2Index_codec);
4004 coefficient_.WriteTo(ref output, _repeated_coefficient_codec);
4005 if (_unknownFields !=
null) {
4006 _unknownFields.WriteTo(ref output);
4011 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4012 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4013 public int CalculateSize() {
4015 size += qvar1Index_.CalculateSize(_repeated_qvar1Index_codec);
4016 size += qvar2Index_.CalculateSize(_repeated_qvar2Index_codec);
4017 size += coefficient_.CalculateSize(_repeated_coefficient_codec);
4018 if (_unknownFields !=
null) {
4019 size += _unknownFields.CalculateSize();
4024 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4025 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4026 public void MergeFrom(MPQuadraticObjective other) {
4027 if (other ==
null) {
4030 qvar1Index_.Add(other.qvar1Index_);
4031 qvar2Index_.Add(other.qvar2Index_);
4032 coefficient_.Add(other.coefficient_);
4033 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
4036 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4037 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4038 public void MergeFrom(pb::CodedInputStream input) {
4039 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
4040 input.ReadRawMessage(
this);
4043 while ((tag = input.ReadTag()) != 0) {
4044 if ((tag & 7) == 4) {
4050 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
4054 qvar1Index_.AddEntriesFrom(input, _repeated_qvar1Index_codec);
4059 qvar2Index_.AddEntriesFrom(input, _repeated_qvar2Index_codec);
4064 coefficient_.AddEntriesFrom(input, _repeated_coefficient_codec);
4072 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
4073 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4074 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4075 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
4077 while ((tag = input.ReadTag()) != 0) {
4078 if ((tag & 7) == 4) {
4084 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
4088 qvar1Index_.AddEntriesFrom(ref input, _repeated_qvar1Index_codec);
4093 qvar2Index_.AddEntriesFrom(ref input, _repeated_qvar2Index_codec);
4098 coefficient_.AddEntriesFrom(ref input, _repeated_coefficient_codec);
4113 [global::System.Diagnostics.DebuggerDisplayAttribute(
"{ToString(),nq}")]
4114 public sealed partial class PartialVariableAssignment : pb::IMessage<PartialVariableAssignment>
4115 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
4116 , pb::IBufferMessage
4119 private static readonly pb::MessageParser<PartialVariableAssignment> _parser =
new pb::MessageParser<PartialVariableAssignment>(() =>
new PartialVariableAssignment());
4120 private pb::UnknownFieldSet _unknownFields;
4121 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4122 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4123 public static pb::MessageParser<PartialVariableAssignment>
Parser {
get {
return _parser; } }
4125 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4126 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4127 public static pbr::MessageDescriptor
Descriptor {
4128 get {
return global::OperationsResearch.LinearSolverReflection.Descriptor.MessageTypes[10]; }
4131 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4132 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4133 pbr::MessageDescriptor pb::IMessage.Descriptor {
4137 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4138 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4143 partial
void OnConstruction();
4145 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4146 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4148 varIndex_ = other.varIndex_.Clone();
4149 varValue_ = other.varValue_.Clone();
4150 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
4153 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4154 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4161 private static readonly pb::FieldCodec<int> _repeated_varIndex_codec
4162 = pb::FieldCodec.ForInt32(10);
4163 private readonly pbc::RepeatedField<int> varIndex_ =
new pbc::RepeatedField<int>();
4164 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4165 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4166 public pbc::RepeatedField<int>
VarIndex {
4167 get {
return varIndex_; }
4172 private static readonly pb::FieldCodec<double> _repeated_varValue_codec
4173 = pb::FieldCodec.ForDouble(18);
4174 private readonly pbc::RepeatedField<double> varValue_ =
new pbc::RepeatedField<double>();
4175 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4176 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4177 public pbc::RepeatedField<double>
VarValue {
4178 get {
return varValue_; }
4181 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4182 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4183 public override bool Equals(
object other) {
4187 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4188 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4190 if (ReferenceEquals(other,
null)) {
4193 if (ReferenceEquals(other,
this)) {
4196 if(!varIndex_.Equals(other.varIndex_))
return false;
4197 if(!varValue_.Equals(other.varValue_))
return false;
4198 return Equals(_unknownFields, other._unknownFields);
4201 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4202 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4203 public override int GetHashCode() {
4205 hash ^= varIndex_.GetHashCode();
4206 hash ^= varValue_.GetHashCode();
4207 if (_unknownFields !=
null) {
4208 hash ^= _unknownFields.GetHashCode();
4213 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4214 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4215 public override string ToString() {
4216 return pb::JsonFormatter.ToDiagnosticString(
this);
4219 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4220 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4221 public void WriteTo(pb::CodedOutputStream output) {
4222 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
4223 output.WriteRawMessage(
this);
4225 varIndex_.WriteTo(output, _repeated_varIndex_codec);
4226 varValue_.WriteTo(output, _repeated_varValue_codec);
4227 if (_unknownFields !=
null) {
4228 _unknownFields.WriteTo(output);
4233 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
4234 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4235 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4236 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
4237 varIndex_.WriteTo(ref output, _repeated_varIndex_codec);
4238 varValue_.WriteTo(ref output, _repeated_varValue_codec);
4239 if (_unknownFields !=
null) {
4240 _unknownFields.WriteTo(ref output);
4245 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4246 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4247 public int CalculateSize() {
4249 size += varIndex_.CalculateSize(_repeated_varIndex_codec);
4250 size += varValue_.CalculateSize(_repeated_varValue_codec);
4251 if (_unknownFields !=
null) {
4252 size += _unknownFields.CalculateSize();
4257 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4258 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4259 public void MergeFrom(PartialVariableAssignment other) {
4260 if (other ==
null) {
4263 varIndex_.Add(other.varIndex_);
4264 varValue_.Add(other.varValue_);
4265 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
4268 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4269 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4270 public void MergeFrom(pb::CodedInputStream input) {
4271 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
4272 input.ReadRawMessage(
this);
4275 while ((tag = input.ReadTag()) != 0) {
4276 if ((tag & 7) == 4) {
4282 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
4286 varIndex_.AddEntriesFrom(input, _repeated_varIndex_codec);
4291 varValue_.AddEntriesFrom(input, _repeated_varValue_codec);
4299 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
4300 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4301 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4302 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
4304 while ((tag = input.ReadTag()) != 0) {
4305 if ((tag & 7) == 4) {
4311 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
4315 varIndex_.AddEntriesFrom(ref input, _repeated_varIndex_codec);
4320 varValue_.AddEntriesFrom(ref input, _repeated_varValue_codec);
4333 [global::System.Diagnostics.DebuggerDisplayAttribute(
"{ToString(),nq}")]
4334 public sealed partial class MPModelProto : pb::IMessage<MPModelProto>
4335 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
4336 , pb::IBufferMessage
4339 private static readonly pb::MessageParser<MPModelProto> _parser =
new pb::MessageParser<MPModelProto>(() =>
new MPModelProto());
4340 private pb::UnknownFieldSet _unknownFields;
4341 private int _hasBits0;
4342 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4343 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4344 public static pb::MessageParser<MPModelProto>
Parser {
get {
return _parser; } }
4346 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4347 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4348 public static pbr::MessageDescriptor
Descriptor {
4349 get {
return global::OperationsResearch.LinearSolverReflection.Descriptor.MessageTypes[11]; }
4352 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4353 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4354 pbr::MessageDescriptor pb::IMessage.Descriptor {
4358 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4359 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4364 partial
void OnConstruction();
4366 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4367 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4369 _hasBits0 = other._hasBits0;
4370 variable_ = other.variable_.Clone();
4371 constraint_ = other.constraint_.Clone();
4372 generalConstraint_ = other.generalConstraint_.Clone();
4373 maximize_ = other.maximize_;
4374 objectiveOffset_ = other.objectiveOffset_;
4375 quadraticObjective_ = other.quadraticObjective_ !=
null ? other.quadraticObjective_.
Clone() :
null;
4376 name_ = other.name_;
4377 solutionHint_ = other.solutionHint_ !=
null ? other.solutionHint_.
Clone() :
null;
4378 annotation_ = other.annotation_.Clone();
4379 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
4382 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4383 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4390 private static readonly pb::FieldCodec<global::OperationsResearch.MPVariableProto> _repeated_variable_codec
4392 private readonly pbc::RepeatedField<global::OperationsResearch.MPVariableProto> variable_ =
new pbc::RepeatedField<global::OperationsResearch.MPVariableProto>();
4396 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4397 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4398 public pbc::RepeatedField<global::OperationsResearch.MPVariableProto>
Variable {
4399 get { return variable_; }
4404 private static readonly pb::FieldCodec<global::OperationsResearch.MPConstraintProto> _repeated_constraint_codec
4406 private readonly pbc::RepeatedField<global::OperationsResearch.MPConstraintProto> constraint_ =
new pbc::RepeatedField<global::OperationsResearch.MPConstraintProto>();
4410 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4411 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4412 public pbc::RepeatedField<global::OperationsResearch.MPConstraintProto>
Constraint {
4413 get { return constraint_; }
4418 private static readonly pb::FieldCodec<global::OperationsResearch.MPGeneralConstraintProto> _repeated_generalConstraint_codec
4420 private readonly pbc::RepeatedField<global::OperationsResearch.MPGeneralConstraintProto> generalConstraint_ =
new pbc::RepeatedField<global::OperationsResearch.MPGeneralConstraintProto>();
4425 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4426 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4427 public pbc::RepeatedField<global::OperationsResearch.MPGeneralConstraintProto>
GeneralConstraint {
4428 get { return generalConstraint_; }
4433 private readonly
static bool MaximizeDefaultValue =
false;
4435 private bool maximize_;
4439 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4440 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4442 get {
if ((_hasBits0 & 1) != 0) {
return maximize_; }
else {
return MaximizeDefaultValue; } }
4449 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4450 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4451 public bool HasMaximize {
4452 get {
return (_hasBits0 & 1) != 0; }
4455 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4456 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4463 private readonly
static double ObjectiveOffsetDefaultValue = 0D;
4465 private double objectiveOffset_;
4469 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4470 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4472 get {
if ((_hasBits0 & 2) != 0) {
return objectiveOffset_; }
else {
return ObjectiveOffsetDefaultValue; } }
4475 objectiveOffset_ = value;
4479 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4480 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4481 public bool HasObjectiveOffset {
4482 get {
return (_hasBits0 & 2) != 0; }
4485 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4486 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4493 private global::OperationsResearch.MPQuadraticObjective quadraticObjective_;
4498 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4499 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4501 get {
return quadraticObjective_; }
4503 quadraticObjective_ = value;
4508 public const int NameFieldNumber = 5;
4509 private readonly
static string NameDefaultValue =
"";
4511 private string name_;
4515 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4516 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4517 public string Name {
4518 get {
return name_ ?? NameDefaultValue; }
4520 name_ = pb::ProtoPreconditions.CheckNotNull(value,
"value");
4524 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4525 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4526 public bool HasName {
4527 get {
return name_ !=
null; }
4530 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4531 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4538 private global::OperationsResearch.PartialVariableAssignment solutionHint_;
4552 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4553 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4555 get {
return solutionHint_; }
4557 solutionHint_ = value;
4562 public const int AnnotationFieldNumber = 9;
4563 private static readonly pb::FieldCodec<global::OperationsResearch.MPModelProto.Types.Annotation> _repeated_annotation_codec
4565 private readonly pbc::RepeatedField<global::OperationsResearch.MPModelProto.Types.Annotation> annotation_ =
new pbc::RepeatedField<global::OperationsResearch.MPModelProto.Types.Annotation>();
4566 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4567 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4568 public pbc::RepeatedField<global::OperationsResearch.MPModelProto.Types.Annotation>
Annotation {
4569 get { return annotation_; }
4572 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4573 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4574 public override bool Equals(
object other) {
4578 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4579 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4581 if (ReferenceEquals(other,
null)) {
4584 if (ReferenceEquals(other,
this)) {
4587 if(!variable_.Equals(other.variable_))
return false;
4588 if(!constraint_.Equals(other.constraint_))
return false;
4589 if(!generalConstraint_.Equals(other.generalConstraint_))
return false;
4590 if (Maximize != other.
Maximize)
return false;
4591 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(ObjectiveOffset, other.
ObjectiveOffset))
return false;
4593 if (Name != other.
Name)
return false;
4594 if (!
object.Equals(SolutionHint, other.
SolutionHint))
return false;
4595 if(!annotation_.Equals(other.annotation_))
return false;
4596 return Equals(_unknownFields, other._unknownFields);
4599 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4600 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4601 public override int GetHashCode() {
4603 hash ^= variable_.GetHashCode();
4604 hash ^= constraint_.GetHashCode();
4605 hash ^= generalConstraint_.GetHashCode();
4610 if (solutionHint_ !=
null) hash ^=
SolutionHint.GetHashCode();
4611 hash ^= annotation_.GetHashCode();
4612 if (_unknownFields !=
null) {
4613 hash ^= _unknownFields.GetHashCode();
4618 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4619 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4620 public override string ToString() {
4621 return pb::JsonFormatter.ToDiagnosticString(
this);
4624 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4625 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4626 public void WriteTo(pb::CodedOutputStream output) {
4627 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
4628 output.WriteRawMessage(
this);
4631 output.WriteRawTag(8);
4634 if (HasObjectiveOffset) {
4635 output.WriteRawTag(17);
4636 output.WriteDouble(ObjectiveOffset);
4638 variable_.WriteTo(output, _repeated_variable_codec);
4639 constraint_.WriteTo(output, _repeated_constraint_codec);
4641 output.WriteRawTag(42);
4642 output.WriteString(Name);
4644 if (solutionHint_ !=
null) {
4645 output.WriteRawTag(50);
4646 output.WriteMessage(SolutionHint);
4648 generalConstraint_.WriteTo(output, _repeated_generalConstraint_codec);
4649 if (quadraticObjective_ !=
null) {
4650 output.WriteRawTag(66);
4651 output.WriteMessage(QuadraticObjective);
4653 annotation_.WriteTo(output, _repeated_annotation_codec);
4654 if (_unknownFields !=
null) {
4655 _unknownFields.WriteTo(output);
4660 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
4661 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4662 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4663 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
4665 output.WriteRawTag(8);
4666 output.WriteBool(Maximize);
4668 if (HasObjectiveOffset) {
4669 output.WriteRawTag(17);
4670 output.WriteDouble(ObjectiveOffset);
4672 variable_.WriteTo(ref output, _repeated_variable_codec);
4673 constraint_.WriteTo(ref output, _repeated_constraint_codec);
4675 output.WriteRawTag(42);
4676 output.WriteString(Name);
4678 if (solutionHint_ !=
null) {
4679 output.WriteRawTag(50);
4680 output.WriteMessage(SolutionHint);
4682 generalConstraint_.WriteTo(ref output, _repeated_generalConstraint_codec);
4683 if (quadraticObjective_ !=
null) {
4684 output.WriteRawTag(66);
4685 output.WriteMessage(QuadraticObjective);
4687 annotation_.WriteTo(ref output, _repeated_annotation_codec);
4688 if (_unknownFields !=
null) {
4689 _unknownFields.WriteTo(ref output);
4694 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4695 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4696 public int CalculateSize() {
4698 size += variable_.CalculateSize(_repeated_variable_codec);
4699 size += constraint_.CalculateSize(_repeated_constraint_codec);
4700 size += generalConstraint_.CalculateSize(_repeated_generalConstraint_codec);
4704 if (HasObjectiveOffset) {
4707 if (quadraticObjective_ !=
null) {
4708 size += 1 + pb::CodedOutputStream.ComputeMessageSize(QuadraticObjective);
4711 size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
4713 if (solutionHint_ !=
null) {
4714 size += 1 + pb::CodedOutputStream.ComputeMessageSize(SolutionHint);
4716 size += annotation_.CalculateSize(_repeated_annotation_codec);
4717 if (_unknownFields !=
null) {
4718 size += _unknownFields.CalculateSize();
4723 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4724 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4725 public void MergeFrom(MPModelProto other) {
4726 if (other ==
null) {
4729 variable_.Add(other.variable_);
4730 constraint_.Add(other.constraint_);
4731 generalConstraint_.Add(other.generalConstraint_);
4732 if (other.HasMaximize) {
4735 if (other.HasObjectiveOffset) {
4736 ObjectiveOffset = other.ObjectiveOffset;
4738 if (other.quadraticObjective_ !=
null) {
4739 if (quadraticObjective_ ==
null) {
4740 QuadraticObjective =
new global::OperationsResearch.MPQuadraticObjective();
4742 QuadraticObjective.MergeFrom(other.QuadraticObjective);
4744 if (other.HasName) {
4747 if (other.solutionHint_ !=
null) {
4748 if (solutionHint_ ==
null) {
4749 SolutionHint =
new global::OperationsResearch.PartialVariableAssignment();
4751 SolutionHint.MergeFrom(other.SolutionHint);
4753 annotation_.Add(other.annotation_);
4754 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
4757 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4758 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4759 public void MergeFrom(pb::CodedInputStream input) {
4760 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
4761 input.ReadRawMessage(
this);
4764 while ((tag = input.ReadTag()) != 0) {
4765 if ((tag & 7) == 4) {
4771 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
4782 variable_.AddEntriesFrom(input, _repeated_variable_codec);
4786 constraint_.AddEntriesFrom(input, _repeated_constraint_codec);
4790 Name = input.ReadString();
4794 if (solutionHint_ ==
null) {
4795 SolutionHint =
new global::OperationsResearch.PartialVariableAssignment();
4801 generalConstraint_.AddEntriesFrom(input, _repeated_generalConstraint_codec);
4805 if (quadraticObjective_ ==
null) {
4812 annotation_.AddEntriesFrom(input, _repeated_annotation_codec);
4820 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
4821 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4822 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4823 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
4825 while ((tag = input.ReadTag()) != 0) {
4826 if ((tag & 7) == 4) {
4832 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
4835 Maximize = input.ReadBool();
4839 ObjectiveOffset = input.ReadDouble();
4843 variable_.AddEntriesFrom(ref input, _repeated_variable_codec);
4847 constraint_.AddEntriesFrom(ref input, _repeated_constraint_codec);
4851 Name = input.ReadString();
4855 if (solutionHint_ ==
null) {
4856 SolutionHint =
new global::OperationsResearch.PartialVariableAssignment();
4858 input.ReadMessage(SolutionHint);
4862 generalConstraint_.AddEntriesFrom(ref input, _repeated_generalConstraint_codec);
4866 if (quadraticObjective_ ==
null) {
4867 QuadraticObjective =
new global::OperationsResearch.MPQuadraticObjective();
4869 input.ReadMessage(QuadraticObjective);
4873 annotation_.AddEntriesFrom(ref input, _repeated_annotation_codec);
4881 #region Nested types
4883 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4884 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4885 public static partial
class Types {
4890 [global::System.Diagnostics.DebuggerDisplayAttribute(
"{ToString(),nq}")]
4891 public sealed partial class Annotation : pb::IMessage<Annotation>
4892 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
4893 , pb::IBufferMessage
4896 private static readonly pb::MessageParser<Annotation> _parser =
new pb::MessageParser<Annotation>(() =>
new Annotation());
4897 private pb::UnknownFieldSet _unknownFields;
4898 private int _hasBits0;
4899 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4900 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4901 public static pb::MessageParser<Annotation>
Parser {
get {
return _parser; } }
4903 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4904 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4905 public static pbr::MessageDescriptor
Descriptor {
4906 get {
return global::OperationsResearch.MPModelProto.Descriptor.NestedTypes[0]; }
4909 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4910 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4911 pbr::MessageDescriptor pb::IMessage.Descriptor {
4915 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4916 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4921 partial
void OnConstruction();
4923 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4924 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4926 _hasBits0 = other._hasBits0;
4927 targetType_ = other.targetType_;
4928 targetIndex_ = other.targetIndex_;
4929 targetName_ = other.targetName_;
4930 payloadKey_ = other.payloadKey_;
4931 payloadValue_ = other.payloadValue_;
4932 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
4935 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4936 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4943 private readonly
static global::OperationsResearch.MPModelProto.Types.Annotation.Types.TargetType TargetTypeDefaultValue = global::OperationsResearch.MPModelProto.Types.Annotation.Types.TargetType.VariableDefault;
4945 private global::OperationsResearch.MPModelProto.Types.Annotation.Types.TargetType targetType_;
4946 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4947 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4949 get { if ((_hasBits0 & 1) != 0) { return targetType_; } else { return TargetTypeDefaultValue; } }
4952 targetType_ = value;
4956 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4957 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4958 public bool HasTargetType {
4959 get {
return (_hasBits0 & 1) != 0; }
4962 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4963 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4970 private readonly
static int TargetIndexDefaultValue = 0;
4972 private int targetIndex_;
4977 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4978 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4980 get {
if ((_hasBits0 & 2) != 0) {
return targetIndex_; }
else {
return TargetIndexDefaultValue; } }
4983 targetIndex_ = value;
4987 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4988 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
4989 public bool HasTargetIndex {
4990 get {
return (_hasBits0 & 2) != 0; }
4993 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4994 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5001 private readonly
static string TargetNameDefaultValue =
"";
5003 private string targetName_;
5007 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5008 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5010 get {
return targetName_ ?? TargetNameDefaultValue; }
5012 targetName_ = pb::ProtoPreconditions.CheckNotNull(value,
"value");
5016 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5017 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5018 public bool HasTargetName {
5019 get {
return targetName_ !=
null; }
5022 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5023 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5030 private readonly
static string PayloadKeyDefaultValue =
"";
5032 private string payloadKey_;
5037 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5038 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5040 get {
return payloadKey_ ?? PayloadKeyDefaultValue; }
5042 payloadKey_ = pb::ProtoPreconditions.CheckNotNull(value,
"value");
5046 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5047 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5048 public bool HasPayloadKey {
5049 get {
return payloadKey_ !=
null; }
5052 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5053 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5060 private readonly
static string PayloadValueDefaultValue =
"";
5062 private string payloadValue_;
5063 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5064 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5066 get {
return payloadValue_ ?? PayloadValueDefaultValue; }
5068 payloadValue_ = pb::ProtoPreconditions.CheckNotNull(value,
"value");
5072 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5073 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5074 public bool HasPayloadValue {
5075 get {
return payloadValue_ !=
null; }
5078 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5079 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5081 payloadValue_ =
null;
5084 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5085 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5086 public override bool Equals(
object other) {
5090 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5091 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5093 if (ReferenceEquals(other,
null)) {
5096 if (ReferenceEquals(other,
this)) {
5099 if (TargetType != other.
TargetType)
return false;
5100 if (TargetIndex != other.
TargetIndex)
return false;
5101 if (TargetName != other.
TargetName)
return false;
5102 if (PayloadKey != other.
PayloadKey)
return false;
5104 return Equals(_unknownFields, other._unknownFields);
5107 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5108 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5111 if (HasTargetType) hash ^= TargetType.GetHashCode();
5112 if (HasTargetIndex) hash ^= TargetIndex.GetHashCode();
5113 if (HasTargetName) hash ^= TargetName.GetHashCode();
5116 if (_unknownFields !=
null) {
5117 hash ^= _unknownFields.GetHashCode();
5122 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5123 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5124 public override string ToString() {
5125 return pb::JsonFormatter.ToDiagnosticString(
this);
5128 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5129 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5130 public void WriteTo(pb::CodedOutputStream output) {
5131 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
5132 output.WriteRawMessage(
this);
5135 output.WriteRawTag(8);
5138 if (HasTargetIndex) {
5139 output.WriteRawTag(16);
5140 output.WriteInt32(TargetIndex);
5142 if (HasTargetName) {
5143 output.WriteRawTag(26);
5144 output.WriteString(TargetName);
5146 if (HasPayloadKey) {
5147 output.WriteRawTag(34);
5148 output.WriteString(PayloadKey);
5150 if (HasPayloadValue) {
5151 output.WriteRawTag(42);
5152 output.WriteString(PayloadValue);
5154 if (_unknownFields !=
null) {
5155 _unknownFields.WriteTo(output);
5160 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
5161 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5162 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5163 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
5164 if (HasTargetType) {
5165 output.WriteRawTag(8);
5166 output.WriteEnum((
int) TargetType);
5168 if (HasTargetIndex) {
5169 output.WriteRawTag(16);
5170 output.WriteInt32(TargetIndex);
5172 if (HasTargetName) {
5173 output.WriteRawTag(26);
5174 output.WriteString(TargetName);
5176 if (HasPayloadKey) {
5177 output.WriteRawTag(34);
5178 output.WriteString(PayloadKey);
5180 if (HasPayloadValue) {
5181 output.WriteRawTag(42);
5182 output.WriteString(PayloadValue);
5184 if (_unknownFields !=
null) {
5185 _unknownFields.WriteTo(ref output);
5190 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5191 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5192 public int CalculateSize() {
5194 if (HasTargetType) {
5195 size += 1 + pb::CodedOutputStream.ComputeEnumSize((
int) TargetType);
5198 size += 1 + pb::CodedOutputStream.ComputeInt32Size(
TargetIndex);
5200 if (HasTargetName) {
5201 size += 1 + pb::CodedOutputStream.ComputeStringSize(TargetName);
5203 if (HasPayloadKey) {
5204 size += 1 + pb::CodedOutputStream.ComputeStringSize(PayloadKey);
5206 if (HasPayloadValue) {
5207 size += 1 + pb::CodedOutputStream.ComputeStringSize(PayloadValue);
5209 if (_unknownFields !=
null) {
5210 size += _unknownFields.CalculateSize();
5215 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5216 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5217 public void MergeFrom(Annotation other) {
5218 if (other ==
null) {
5221 if (other.HasTargetType) {
5224 if (other.HasTargetIndex) {
5225 TargetIndex = other.TargetIndex;
5227 if (other.HasTargetName) {
5228 TargetName = other.TargetName;
5230 if (other.HasPayloadKey) {
5231 PayloadKey = other.PayloadKey;
5233 if (other.HasPayloadValue) {
5234 PayloadValue = other.PayloadValue;
5236 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
5239 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5240 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5241 public void MergeFrom(pb::CodedInputStream input) {
5242 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
5243 input.ReadRawMessage(
this);
5246 while ((tag = input.ReadTag()) != 0) {
5247 if ((tag & 7) == 4) {
5253 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
5256 TargetType = (global::OperationsResearch.MPModelProto.Types.Annotation.Types.TargetType) input.ReadEnum();
5280 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
5281 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5282 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5283 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
5285 while ((tag = input.ReadTag()) != 0) {
5286 if ((tag & 7) == 4) {
5292 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
5295 TargetType = (global::OperationsResearch.MPModelProto.Types.Annotation.Types.TargetType) input.ReadEnum();
5299 TargetIndex = input.ReadInt32();
5303 TargetName = input.ReadString();
5307 PayloadKey = input.ReadString();
5311 PayloadValue = input.ReadString();
5319 #region Nested types
5321 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5322 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5323 public static partial
class Types {
5329 [pbr::OriginalName(
"VARIABLE_DEFAULT")] VariableDefault = 0,
5330 [pbr::OriginalName(
"CONSTRAINT")]
Constraint = 1,
5348 [global::System.Diagnostics.DebuggerDisplayAttribute(
"{ToString(),nq}")]
5349 public sealed partial
class OptionalDouble : pb::IMessage<OptionalDouble>
5350 #
if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
5351 , pb::IBufferMessage
5354 private static readonly pb::MessageParser<OptionalDouble> _parser =
new pb::MessageParser<OptionalDouble>(() =>
new OptionalDouble());
5355 private pb::UnknownFieldSet _unknownFields;
5356 private int _hasBits0;
5357 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5358 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5359 public static pb::MessageParser<OptionalDouble>
Parser {
get {
return _parser; } }
5361 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5362 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5363 public static pbr::MessageDescriptor Descriptor {
5364 get {
return global::OperationsResearch.LinearSolverReflection.Descriptor.MessageTypes[12]; }
5367 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5368 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5369 pbr::MessageDescriptor pb::IMessage.Descriptor {
5373 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5374 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5379 partial
void OnConstruction();
5381 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5382 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5384 _hasBits0 = other._hasBits0;
5385 value_ = other.value_;
5386 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
5389 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5390 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5397 private readonly
static double ValueDefaultValue = 0D;
5399 private double value_;
5400 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5401 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5402 public double Value {
5403 get {
if ((_hasBits0 & 1) != 0) {
return value_; }
else {
return ValueDefaultValue; } }
5410 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5411 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5412 public bool HasValue {
5413 get {
return (_hasBits0 & 1) != 0; }
5416 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5417 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5422 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5423 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5424 public override bool Equals(
object other) {
5428 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5429 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5431 if (ReferenceEquals(other,
null)) {
5434 if (ReferenceEquals(other,
this)) {
5437 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Value, other.
Value))
return false;
5438 return Equals(_unknownFields, other._unknownFields);
5441 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5442 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5443 public override int GetHashCode() {
5445 if (HasValue) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Value);
5446 if (_unknownFields !=
null) {
5447 hash ^= _unknownFields.GetHashCode();
5452 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5453 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5454 public override string ToString() {
5455 return pb::JsonFormatter.ToDiagnosticString(
this);
5458 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5459 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5460 public void WriteTo(pb::CodedOutputStream output) {
5461 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
5462 output.WriteRawMessage(
this);
5465 output.WriteRawTag(9);
5466 output.WriteDouble(
Value);
5468 if (_unknownFields !=
null) {
5469 _unknownFields.WriteTo(output);
5474 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
5475 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5476 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5477 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
5479 output.WriteRawTag(9);
5480 output.WriteDouble(Value);
5482 if (_unknownFields !=
null) {
5483 _unknownFields.WriteTo(ref output);
5488 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5489 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5490 public int CalculateSize() {
5495 if (_unknownFields !=
null) {
5496 size += _unknownFields.CalculateSize();
5501 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5502 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5503 public void MergeFrom(OptionalDouble other) {
5504 if (other ==
null) {
5507 if (other.HasValue) {
5510 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
5513 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5514 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5515 public void MergeFrom(pb::CodedInputStream input) {
5516 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
5517 input.ReadRawMessage(
this);
5520 while ((tag = input.ReadTag()) != 0) {
5521 if ((tag & 7) == 4) {
5527 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
5530 Value = input.ReadDouble();
5538 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
5539 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5540 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5541 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
5543 while ((tag = input.ReadTag()) != 0) {
5544 if ((tag & 7) == 4) {
5550 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
5553 Value = input.ReadDouble();
5571 [global::System.Diagnostics.DebuggerDisplayAttribute(
"{ToString(),nq}")]
5572 public sealed partial
class MPSolverCommonParameters : pb::IMessage<MPSolverCommonParameters>
5573 #
if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
5574 , pb::IBufferMessage
5577 private static readonly pb::MessageParser<MPSolverCommonParameters> _parser =
new pb::MessageParser<MPSolverCommonParameters>(() =>
new MPSolverCommonParameters());
5578 private pb::UnknownFieldSet _unknownFields;
5579 private int _hasBits0;
5580 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5581 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5582 public static pb::MessageParser<MPSolverCommonParameters>
Parser {
get {
return _parser; } }
5584 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5585 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5586 public static pbr::MessageDescriptor Descriptor {
5587 get {
return global::OperationsResearch.LinearSolverReflection.Descriptor.MessageTypes[13]; }
5590 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5591 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5592 pbr::MessageDescriptor pb::IMessage.Descriptor {
5596 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5597 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5602 partial
void OnConstruction();
5604 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5605 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5607 _hasBits0 = other._hasBits0;
5608 relativeMipGap_ = other.relativeMipGap_ !=
null ? other.relativeMipGap_.
Clone() :
null;
5609 primalTolerance_ = other.primalTolerance_ !=
null ? other.primalTolerance_.
Clone() :
null;
5610 dualTolerance_ = other.dualTolerance_ !=
null ? other.dualTolerance_.
Clone() :
null;
5611 lpAlgorithm_ = other.lpAlgorithm_;
5612 presolve_ = other.presolve_;
5613 scaling_ = other.scaling_;
5614 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
5617 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5618 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5625 private global::OperationsResearch.OptionalDouble relativeMipGap_;
5643 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5644 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5646 get {
return relativeMipGap_; }
5648 relativeMipGap_ = value;
5654 private global::OperationsResearch.OptionalDouble primalTolerance_;
5661 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5662 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5664 get {
return primalTolerance_; }
5666 primalTolerance_ = value;
5672 private global::OperationsResearch.OptionalDouble dualTolerance_;
5680 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5681 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5683 get {
return dualTolerance_; }
5685 dualTolerance_ = value;
5691 private readonly
static global::OperationsResearch.MPSolverCommonParameters.Types.LPAlgorithmValues LpAlgorithmDefaultValue = global::OperationsResearch.MPSolverCommonParameters.Types.LPAlgorithmValues.LpAlgoUnspecified;
5693 private global::OperationsResearch.MPSolverCommonParameters.Types.LPAlgorithmValues lpAlgorithm_;
5698 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5699 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5701 get { if ((_hasBits0 & 1) != 0) { return lpAlgorithm_; } else { return LpAlgorithmDefaultValue; } }
5704 lpAlgorithm_ = value;
5708 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5709 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5711 get {
return (_hasBits0 & 1) != 0; }
5714 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5715 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5716 public void ClearLpAlgorithm() {
5721 public const int PresolveFieldNumber = 5;
5722 private readonly
static global::Google.OrTools.Util.OptionalBoolean PresolveDefaultValue = global::Google.OrTools.Util.OptionalBoolean.BoolUnspecified;
5724 private global::Google.OrTools.Util.OptionalBoolean presolve_;
5729 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5730 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5731 public global::Google.OrTools.Util.OptionalBoolean
Presolve {
5732 get { if ((_hasBits0 & 2) != 0) { return presolve_; } else { return PresolveDefaultValue; } }
5739 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5740 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5742 get {
return (_hasBits0 & 2) != 0; }
5745 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5746 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5747 public void ClearPresolve() {
5752 public const int ScalingFieldNumber = 7;
5753 private readonly
static global::Google.OrTools.Util.OptionalBoolean ScalingDefaultValue = global::Google.OrTools.Util.OptionalBoolean.BoolUnspecified;
5755 private global::Google.OrTools.Util.OptionalBoolean scaling_;
5761 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5762 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5763 public global::Google.OrTools.Util.OptionalBoolean
Scaling {
5764 get { if ((_hasBits0 & 4) != 0) { return scaling_; } else { return ScalingDefaultValue; } }
5771 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5772 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5774 get {
return (_hasBits0 & 4) != 0; }
5777 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5778 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5779 public void ClearScaling() {
5783 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5784 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5785 public override bool Equals(
object other) {
5789 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5790 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5792 if (ReferenceEquals(other,
null)) {
5795 if (ReferenceEquals(other,
this)) {
5804 return Equals(_unknownFields, other._unknownFields);
5807 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5808 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5809 public override int GetHashCode() {
5811 if (relativeMipGap_ !=
null) hash ^= RelativeMipGap.GetHashCode();
5812 if (primalTolerance_ !=
null) hash ^= PrimalTolerance.GetHashCode();
5813 if (dualTolerance_ !=
null) hash ^= DualTolerance.GetHashCode();
5814 if (HasLpAlgorithm) hash ^= LpAlgorithm.GetHashCode();
5815 if (HasPresolve) hash ^= Presolve.GetHashCode();
5817 if (_unknownFields !=
null) {
5818 hash ^= _unknownFields.GetHashCode();
5823 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5824 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5825 public override string ToString() {
5826 return pb::JsonFormatter.ToDiagnosticString(
this);
5829 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5830 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5831 public void WriteTo(pb::CodedOutputStream output) {
5832 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
5833 output.WriteRawMessage(
this);
5835 if (relativeMipGap_ !=
null) {
5836 output.WriteRawTag(10);
5839 if (primalTolerance_ !=
null) {
5840 output.WriteRawTag(18);
5841 output.WriteMessage(PrimalTolerance);
5843 if (dualTolerance_ !=
null) {
5844 output.WriteRawTag(26);
5845 output.WriteMessage(DualTolerance);
5847 if (HasLpAlgorithm) {
5848 output.WriteRawTag(32);
5849 output.WriteEnum((
int) LpAlgorithm);
5852 output.WriteRawTag(40);
5853 output.WriteEnum((
int) Presolve);
5856 output.WriteRawTag(56);
5857 output.WriteEnum((
int) Scaling);
5859 if (_unknownFields !=
null) {
5860 _unknownFields.WriteTo(output);
5865 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
5866 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5867 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5868 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
5869 if (relativeMipGap_ !=
null) {
5870 output.WriteRawTag(10);
5871 output.WriteMessage(RelativeMipGap);
5873 if (primalTolerance_ !=
null) {
5874 output.WriteRawTag(18);
5875 output.WriteMessage(PrimalTolerance);
5877 if (dualTolerance_ !=
null) {
5878 output.WriteRawTag(26);
5879 output.WriteMessage(DualTolerance);
5881 if (HasLpAlgorithm) {
5882 output.WriteRawTag(32);
5883 output.WriteEnum((
int) LpAlgorithm);
5886 output.WriteRawTag(40);
5887 output.WriteEnum((
int) Presolve);
5890 output.WriteRawTag(56);
5891 output.WriteEnum((
int) Scaling);
5893 if (_unknownFields !=
null) {
5894 _unknownFields.WriteTo(ref output);
5899 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5900 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5901 public int CalculateSize() {
5903 if (relativeMipGap_ !=
null) {
5904 size += 1 + pb::CodedOutputStream.ComputeMessageSize(RelativeMipGap);
5906 if (primalTolerance_ !=
null) {
5907 size += 1 + pb::CodedOutputStream.ComputeMessageSize(PrimalTolerance);
5909 if (dualTolerance_ !=
null) {
5910 size += 1 + pb::CodedOutputStream.ComputeMessageSize(DualTolerance);
5912 if (HasLpAlgorithm) {
5913 size += 1 + pb::CodedOutputStream.ComputeEnumSize((
int) LpAlgorithm);
5916 size += 1 + pb::CodedOutputStream.ComputeEnumSize((
int) Presolve);
5919 size += 1 + pb::CodedOutputStream.ComputeEnumSize((
int) Scaling);
5921 if (_unknownFields !=
null) {
5922 size += _unknownFields.CalculateSize();
5927 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5928 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5929 public void MergeFrom(MPSolverCommonParameters other) {
5930 if (other ==
null) {
5933 if (other.relativeMipGap_ !=
null) {
5934 if (relativeMipGap_ ==
null) {
5935 RelativeMipGap =
new global::OperationsResearch.OptionalDouble();
5937 RelativeMipGap.MergeFrom(other.RelativeMipGap);
5939 if (other.primalTolerance_ !=
null) {
5940 if (primalTolerance_ ==
null) {
5941 PrimalTolerance =
new global::OperationsResearch.OptionalDouble();
5943 PrimalTolerance.MergeFrom(other.PrimalTolerance);
5945 if (other.dualTolerance_ !=
null) {
5946 if (dualTolerance_ ==
null) {
5947 DualTolerance =
new global::OperationsResearch.OptionalDouble();
5949 DualTolerance.MergeFrom(other.DualTolerance);
5951 if (other.HasLpAlgorithm) {
5952 LpAlgorithm = other.LpAlgorithm;
5954 if (other.HasPresolve) {
5955 Presolve = other.Presolve;
5957 if (other.HasScaling) {
5958 Scaling = other.Scaling;
5960 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
5963 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5964 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
5965 public void MergeFrom(pb::CodedInputStream input) {
5966 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
5967 input.ReadRawMessage(
this);
5970 while ((tag = input.ReadTag()) != 0) {
5971 if ((tag & 7) == 4) {
5977 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
5980 if (relativeMipGap_ ==
null) {
5981 RelativeMipGap =
new global::OperationsResearch.OptionalDouble();
5983 input.ReadMessage(RelativeMipGap);
5987 if (primalTolerance_ ==
null) {
5988 PrimalTolerance =
new global::OperationsResearch.OptionalDouble();
5990 input.ReadMessage(PrimalTolerance);
5994 if (dualTolerance_ ==
null) {
5995 DualTolerance =
new global::OperationsResearch.OptionalDouble();
5997 input.ReadMessage(DualTolerance);
6001 LpAlgorithm = (global::OperationsResearch.MPSolverCommonParameters.Types.LPAlgorithmValues) input.ReadEnum();
6005 Presolve = (global::Google.OrTools.Util.OptionalBoolean) input.ReadEnum();
6009 Scaling = (global::Google.OrTools.Util.OptionalBoolean) input.ReadEnum();
6017 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
6018 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6019 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6020 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
6022 while ((tag = input.ReadTag()) != 0) {
6023 if ((tag & 7) == 4) {
6029 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
6032 if (relativeMipGap_ ==
null) {
6033 RelativeMipGap =
new global::OperationsResearch.OptionalDouble();
6035 input.ReadMessage(RelativeMipGap);
6039 if (primalTolerance_ ==
null) {
6040 PrimalTolerance =
new global::OperationsResearch.OptionalDouble();
6042 input.ReadMessage(PrimalTolerance);
6046 if (dualTolerance_ ==
null) {
6047 DualTolerance =
new global::OperationsResearch.OptionalDouble();
6049 input.ReadMessage(DualTolerance);
6053 LpAlgorithm = (global::OperationsResearch.MPSolverCommonParameters.Types.LPAlgorithmValues) input.ReadEnum();
6057 Presolve = (global::Google.OrTools.Util.OptionalBoolean) input.ReadEnum();
6061 Scaling = (global::Google.OrTools.Util.OptionalBoolean) input.ReadEnum();
6069 #region Nested types
6071 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6072 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6073 public static partial
class Types {
6074 public enum LPAlgorithmValues {
6075 [pbr::OriginalName(
"LP_ALGO_UNSPECIFIED")] LpAlgoUnspecified = 0,
6079 [pbr::OriginalName(
"LP_ALGO_DUAL")] LpAlgoDual = 1,
6083 [pbr::OriginalName(
"LP_ALGO_PRIMAL")] LpAlgoPrimal = 2,
6087 [pbr::OriginalName(
"LP_ALGO_BARRIER")] LpAlgoBarrier = 3,
6099 [global::System.Diagnostics.DebuggerDisplayAttribute(
"{ToString(),nq}")]
6101 #
if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
6102 , pb::IBufferMessage
6105 private static readonly pb::MessageParser<MPModelDeltaProto> _parser =
new pb::MessageParser<MPModelDeltaProto>(() =>
new MPModelDeltaProto());
6106 private pb::UnknownFieldSet _unknownFields;
6107 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6108 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6109 public static pb::MessageParser<MPModelDeltaProto>
Parser {
get {
return _parser; } }
6111 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6112 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6113 public static pbr::MessageDescriptor Descriptor {
6114 get {
return global::OperationsResearch.LinearSolverReflection.Descriptor.MessageTypes[14]; }
6117 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6118 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6119 pbr::MessageDescriptor pb::IMessage.Descriptor {
6123 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6124 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6125 public MPModelDeltaProto() {
6129 partial
void OnConstruction();
6131 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6132 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6134 baselineModelFilePath_ = other.baselineModelFilePath_;
6135 variableOverrides_ = other.variableOverrides_.Clone();
6136 constraintOverrides_ = other.constraintOverrides_.Clone();
6137 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
6140 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6141 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6147 public const int BaselineModelFilePathFieldNumber = 1;
6148 private readonly
static string BaselineModelFilePathDefaultValue =
"";
6150 private string baselineModelFilePath_;
6151 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6152 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6154 get {
return baselineModelFilePath_ ?? BaselineModelFilePathDefaultValue; }
6156 baselineModelFilePath_ = pb::ProtoPreconditions.CheckNotNull(value,
"value");
6160 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6161 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6163 get {
return baselineModelFilePath_ !=
null; }
6166 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6167 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6168 public void ClearBaselineModelFilePath() {
6169 baselineModelFilePath_ =
null;
6173 public const int VariableOverridesFieldNumber = 2;
6174 private static readonly pbc::MapField<int, global::OperationsResearch.MPVariableProto>.Codec _map_variableOverrides_codec
6175 =
new pbc::MapField<int, global::OperationsResearch.MPVariableProto>.Codec(pb::FieldCodec.ForInt32(8, 0), pb::FieldCodec.ForMessage(18, global::OperationsResearch.
MPVariableProto.
Parser), 18);
6176 private readonly pbc::MapField<int, global::OperationsResearch.MPVariableProto> variableOverrides_ =
new pbc::MapField<int, global::OperationsResearch.MPVariableProto>();
6186 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6187 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6188 public pbc::MapField<int, global::OperationsResearch.MPVariableProto>
VariableOverrides {
6189 get { return variableOverrides_; }
6193 public const int ConstraintOverridesFieldNumber = 3;
6194 private static readonly pbc::MapField<int, global::OperationsResearch.MPConstraintProto>.Codec _map_constraintOverrides_codec
6195 =
new pbc::MapField<int, global::OperationsResearch.MPConstraintProto>.Codec(pb::FieldCodec.ForInt32(8, 0), pb::FieldCodec.ForMessage(18, global::OperationsResearch.
MPConstraintProto.
Parser), 26);
6196 private readonly pbc::MapField<int, global::OperationsResearch.MPConstraintProto> constraintOverrides_ =
new pbc::MapField<int, global::OperationsResearch.MPConstraintProto>();
6206 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6207 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6208 public pbc::MapField<int, global::OperationsResearch.MPConstraintProto>
ConstraintOverrides {
6209 get { return constraintOverrides_; }
6212 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6213 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6214 public override bool Equals(
object other) {
6218 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6219 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6221 if (ReferenceEquals(other,
null)) {
6224 if (ReferenceEquals(other,
this)) {
6230 return Equals(_unknownFields, other._unknownFields);
6233 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6234 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6235 public override int GetHashCode() {
6237 if (HasBaselineModelFilePath) hash ^= BaselineModelFilePath.GetHashCode();
6238 hash ^= VariableOverrides.GetHashCode();
6239 hash ^= ConstraintOverrides.GetHashCode();
6240 if (_unknownFields !=
null) {
6241 hash ^= _unknownFields.GetHashCode();
6246 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6247 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6248 public override string ToString() {
6249 return pb::JsonFormatter.ToDiagnosticString(
this);
6252 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6253 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6254 public void WriteTo(pb::CodedOutputStream output) {
6255 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
6256 output.WriteRawMessage(
this);
6259 output.WriteRawTag(10);
6262 variableOverrides_.WriteTo(output, _map_variableOverrides_codec);
6263 constraintOverrides_.WriteTo(output, _map_constraintOverrides_codec);
6264 if (_unknownFields !=
null) {
6265 _unknownFields.WriteTo(output);
6270 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
6271 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6272 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6273 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
6274 if (HasBaselineModelFilePath) {
6275 output.WriteRawTag(10);
6276 output.WriteString(BaselineModelFilePath);
6278 variableOverrides_.WriteTo(ref output, _map_variableOverrides_codec);
6279 constraintOverrides_.WriteTo(ref output, _map_constraintOverrides_codec);
6280 if (_unknownFields !=
null) {
6281 _unknownFields.WriteTo(ref output);
6286 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6287 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6288 public int CalculateSize() {
6290 if (HasBaselineModelFilePath) {
6291 size += 1 + pb::CodedOutputStream.ComputeStringSize(BaselineModelFilePath);
6293 size += variableOverrides_.CalculateSize(_map_variableOverrides_codec);
6294 size += constraintOverrides_.CalculateSize(_map_constraintOverrides_codec);
6295 if (_unknownFields !=
null) {
6296 size += _unknownFields.CalculateSize();
6301 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6302 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6303 public void MergeFrom(MPModelDeltaProto other) {
6304 if (other ==
null) {
6307 if (other.HasBaselineModelFilePath) {
6308 BaselineModelFilePath = other.BaselineModelFilePath;
6310 variableOverrides_.MergeFrom(other.variableOverrides_);
6311 constraintOverrides_.MergeFrom(other.constraintOverrides_);
6312 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
6315 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6316 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6317 public void MergeFrom(pb::CodedInputStream input) {
6318 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
6319 input.ReadRawMessage(
this);
6322 while ((tag = input.ReadTag()) != 0) {
6323 if ((tag & 7) == 4) {
6329 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
6332 BaselineModelFilePath = input.ReadString();
6336 variableOverrides_.AddEntriesFrom(input, _map_variableOverrides_codec);
6340 constraintOverrides_.AddEntriesFrom(input, _map_constraintOverrides_codec);
6348 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
6349 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6350 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6351 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
6353 while ((tag = input.ReadTag()) != 0) {
6354 if ((tag & 7) == 4) {
6360 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
6363 BaselineModelFilePath = input.ReadString();
6367 variableOverrides_.AddEntriesFrom(ref input, _map_variableOverrides_codec);
6371 constraintOverrides_.AddEntriesFrom(ref input, _map_constraintOverrides_codec);
6384 [global::System.Diagnostics.DebuggerDisplayAttribute(
"{ToString(),nq}")]
6385 public sealed partial
class MPModelRequest : pb::IMessage<MPModelRequest>
6386 #
if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
6387 , pb::IBufferMessage
6390 private static readonly pb::MessageParser<MPModelRequest> _parser =
new pb::MessageParser<MPModelRequest>(() =>
new MPModelRequest());
6391 private pb::UnknownFieldSet _unknownFields;
6392 private int _hasBits0;
6393 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6394 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6395 public static pb::MessageParser<MPModelRequest>
Parser {
get {
return _parser; } }
6397 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6398 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6399 public static pbr::MessageDescriptor Descriptor {
6400 get {
return global::OperationsResearch.LinearSolverReflection.Descriptor.MessageTypes[15]; }
6403 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6404 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6405 pbr::MessageDescriptor pb::IMessage.Descriptor {
6409 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6410 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6411 public MPModelRequest() {
6415 partial
void OnConstruction();
6417 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6418 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6420 _hasBits0 = other._hasBits0;
6421 model_ = other.model_ !=
null ? other.model_.
Clone() :
null;
6422 solverType_ = other.solverType_;
6423 solverTimeLimitSeconds_ = other.solverTimeLimitSeconds_;
6424 enableInternalSolverOutput_ = other.enableInternalSolverOutput_;
6425 solverSpecificParameters_ = other.solverSpecificParameters_;
6426 ignoreSolverSpecificParametersFailure_ = other.ignoreSolverSpecificParametersFailure_;
6427 modelDelta_ = other.modelDelta_ !=
null ? other.modelDelta_.
Clone() :
null;
6428 populateAdditionalSolutionsUpTo_ = other.populateAdditionalSolutionsUpTo_;
6429 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
6432 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6433 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6439 public const int ModelFieldNumber = 1;
6440 private global::OperationsResearch.MPModelProto model_;
6444 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6445 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6447 get {
return model_; }
6455 private readonly
static global::OperationsResearch.MPModelRequest.Types.SolverType SolverTypeDefaultValue = global::OperationsResearch.MPModelRequest.Types.SolverType.GlopLinearProgramming;
6457 private global::OperationsResearch.MPModelRequest.Types.SolverType solverType_;
6458 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6459 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6461 get { if ((_hasBits0 & 1) != 0) { return solverType_; } else { return SolverTypeDefaultValue; } }
6464 solverType_ = value;
6468 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6469 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6471 get {
return (_hasBits0 & 1) != 0; }
6474 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6475 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6476 public void ClearSolverType() {
6481 public const int SolverTimeLimitSecondsFieldNumber = 3;
6482 private readonly
static double SolverTimeLimitSecondsDefaultValue = 0D;
6484 private double solverTimeLimitSeconds_;
6496 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6497 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6499 get {
if ((_hasBits0 & 2) != 0) {
return solverTimeLimitSeconds_; }
else {
return SolverTimeLimitSecondsDefaultValue; } }
6502 solverTimeLimitSeconds_ = value;
6506 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6507 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6509 get {
return (_hasBits0 & 2) != 0; }
6512 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6513 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6514 public void ClearSolverTimeLimitSeconds() {
6520 private readonly
static bool EnableInternalSolverOutputDefaultValue =
false;
6522 private bool enableInternalSolverOutput_;
6529 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6530 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6532 get {
if ((_hasBits0 & 4) != 0) {
return enableInternalSolverOutput_; }
else {
return EnableInternalSolverOutputDefaultValue; } }
6535 enableInternalSolverOutput_ = value;
6539 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6540 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6542 get {
return (_hasBits0 & 4) != 0; }
6545 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6546 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6547 public void ClearEnableInternalSolverOutput() {
6553 private readonly
static string SolverSpecificParametersDefaultValue =
"";
6555 private string solverSpecificParameters_;
6572 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6573 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6575 get {
return solverSpecificParameters_ ?? SolverSpecificParametersDefaultValue; }
6577 solverSpecificParameters_ = pb::ProtoPreconditions.CheckNotNull(value,
"value");
6581 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6582 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6583 public bool HasSolverSpecificParameters {
6584 get {
return solverSpecificParameters_ !=
null; }
6587 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6588 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6589 public void ClearSolverSpecificParameters() {
6590 solverSpecificParameters_ =
null;
6595 private readonly
static bool IgnoreSolverSpecificParametersFailureDefaultValue =
false;
6597 private bool ignoreSolverSpecificParametersFailure_;
6598 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6599 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6601 get {
if ((_hasBits0 & 8) != 0) {
return ignoreSolverSpecificParametersFailure_; }
else {
return IgnoreSolverSpecificParametersFailureDefaultValue; } }
6604 ignoreSolverSpecificParametersFailure_ = value;
6608 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6609 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6610 public bool HasIgnoreSolverSpecificParametersFailure {
6611 get {
return (_hasBits0 & 8) != 0; }
6614 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6615 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6616 public void ClearIgnoreSolverSpecificParametersFailure() {
6622 private global::OperationsResearch.MPModelDeltaProto modelDelta_;
6627 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6628 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6630 get {
return modelDelta_; }
6632 modelDelta_ = value;
6637 public const int PopulateAdditionalSolutionsUpToFieldNumber = 11;
6638 private readonly
static int PopulateAdditionalSolutionsUpToDefaultValue = 0;
6640 private int populateAdditionalSolutionsUpTo_;
6650 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6651 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6653 get {
if ((_hasBits0 & 16) != 0) {
return populateAdditionalSolutionsUpTo_; }
else {
return PopulateAdditionalSolutionsUpToDefaultValue; } }
6656 populateAdditionalSolutionsUpTo_ = value;
6660 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6661 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6662 public bool HasPopulateAdditionalSolutionsUpTo {
6663 get {
return (_hasBits0 & 16) != 0; }
6666 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6667 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6668 public void ClearPopulateAdditionalSolutionsUpTo() {
6672 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6673 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6674 public override bool Equals(
object other) {
6678 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6679 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6681 if (ReferenceEquals(other,
null)) {
6684 if (ReferenceEquals(other,
this)) {
6687 if (!
object.Equals(Model, other.
Model))
return false;
6688 if (SolverType != other.
SolverType)
return false;
6689 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(SolverTimeLimitSeconds, other.
SolverTimeLimitSeconds))
return false;
6695 return Equals(_unknownFields, other._unknownFields);
6698 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6699 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6700 public override int GetHashCode() {
6702 if (model_ !=
null) hash ^= Model.GetHashCode();
6703 if (HasSolverType) hash ^= SolverType.GetHashCode();
6704 if (HasSolverTimeLimitSeconds) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(SolverTimeLimitSeconds);
6705 if (HasEnableInternalSolverOutput) hash ^= EnableInternalSolverOutput.GetHashCode();
6706 if (HasSolverSpecificParameters) hash ^= SolverSpecificParameters.GetHashCode();
6707 if (HasIgnoreSolverSpecificParametersFailure) hash ^= IgnoreSolverSpecificParametersFailure.GetHashCode();
6708 if (modelDelta_ !=
null) hash ^= ModelDelta.GetHashCode();
6709 if (HasPopulateAdditionalSolutionsUpTo) hash ^= PopulateAdditionalSolutionsUpTo.GetHashCode();
6710 if (_unknownFields !=
null) {
6711 hash ^= _unknownFields.GetHashCode();
6716 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6717 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6718 public override string ToString() {
6719 return pb::JsonFormatter.ToDiagnosticString(
this);
6722 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6723 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6724 public void WriteTo(pb::CodedOutputStream output) {
6725 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
6726 output.WriteRawMessage(
this);
6728 if (model_ !=
null) {
6729 output.WriteRawTag(10);
6730 output.WriteMessage(
Model);
6732 if (HasSolverType) {
6733 output.WriteRawTag(16);
6734 output.WriteEnum((
int) SolverType);
6736 if (HasSolverTimeLimitSeconds) {
6737 output.WriteRawTag(25);
6738 output.WriteDouble(SolverTimeLimitSeconds);
6740 if (HasEnableInternalSolverOutput) {
6741 output.WriteRawTag(32);
6742 output.WriteBool(EnableInternalSolverOutput);
6744 if (HasSolverSpecificParameters) {
6745 output.WriteRawTag(42);
6746 output.WriteString(SolverSpecificParameters);
6748 if (modelDelta_ !=
null) {
6749 output.WriteRawTag(66);
6750 output.WriteMessage(ModelDelta);
6752 if (HasIgnoreSolverSpecificParametersFailure) {
6753 output.WriteRawTag(72);
6754 output.WriteBool(IgnoreSolverSpecificParametersFailure);
6756 if (HasPopulateAdditionalSolutionsUpTo) {
6757 output.WriteRawTag(88);
6758 output.WriteInt32(PopulateAdditionalSolutionsUpTo);
6760 if (_unknownFields !=
null) {
6761 _unknownFields.WriteTo(output);
6766 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
6767 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6768 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6769 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
6770 if (model_ !=
null) {
6771 output.WriteRawTag(10);
6772 output.WriteMessage(Model);
6774 if (HasSolverType) {
6775 output.WriteRawTag(16);
6776 output.WriteEnum((
int) SolverType);
6778 if (HasSolverTimeLimitSeconds) {
6779 output.WriteRawTag(25);
6780 output.WriteDouble(SolverTimeLimitSeconds);
6782 if (HasEnableInternalSolverOutput) {
6783 output.WriteRawTag(32);
6784 output.WriteBool(EnableInternalSolverOutput);
6786 if (HasSolverSpecificParameters) {
6787 output.WriteRawTag(42);
6788 output.WriteString(SolverSpecificParameters);
6790 if (modelDelta_ !=
null) {
6791 output.WriteRawTag(66);
6792 output.WriteMessage(ModelDelta);
6794 if (HasIgnoreSolverSpecificParametersFailure) {
6795 output.WriteRawTag(72);
6796 output.WriteBool(IgnoreSolverSpecificParametersFailure);
6798 if (HasPopulateAdditionalSolutionsUpTo) {
6799 output.WriteRawTag(88);
6800 output.WriteInt32(PopulateAdditionalSolutionsUpTo);
6802 if (_unknownFields !=
null) {
6803 _unknownFields.WriteTo(ref output);
6808 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6809 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6810 public int CalculateSize() {
6812 if (model_ !=
null) {
6813 size += 1 + pb::CodedOutputStream.ComputeMessageSize(Model);
6815 if (HasSolverType) {
6816 size += 1 + pb::CodedOutputStream.ComputeEnumSize((
int) SolverType);
6818 if (HasSolverTimeLimitSeconds) {
6824 if (HasSolverSpecificParameters) {
6825 size += 1 + pb::CodedOutputStream.ComputeStringSize(SolverSpecificParameters);
6827 if (HasIgnoreSolverSpecificParametersFailure) {
6830 if (modelDelta_ !=
null) {
6831 size += 1 + pb::CodedOutputStream.ComputeMessageSize(ModelDelta);
6833 if (HasPopulateAdditionalSolutionsUpTo) {
6834 size += 1 + pb::CodedOutputStream.ComputeInt32Size(PopulateAdditionalSolutionsUpTo);
6836 if (_unknownFields !=
null) {
6837 size += _unknownFields.CalculateSize();
6842 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6843 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6844 public void MergeFrom(MPModelRequest other) {
6845 if (other ==
null) {
6848 if (other.model_ !=
null) {
6849 if (model_ ==
null) {
6850 Model =
new global::OperationsResearch.MPModelProto();
6852 Model.MergeFrom(other.Model);
6854 if (other.HasSolverType) {
6857 if (other.HasSolverTimeLimitSeconds) {
6858 SolverTimeLimitSeconds = other.SolverTimeLimitSeconds;
6860 if (other.HasEnableInternalSolverOutput) {
6861 EnableInternalSolverOutput = other.EnableInternalSolverOutput;
6863 if (other.HasSolverSpecificParameters) {
6864 SolverSpecificParameters = other.SolverSpecificParameters;
6866 if (other.HasIgnoreSolverSpecificParametersFailure) {
6867 IgnoreSolverSpecificParametersFailure = other.IgnoreSolverSpecificParametersFailure;
6869 if (other.modelDelta_ !=
null) {
6870 if (modelDelta_ ==
null) {
6871 ModelDelta =
new global::OperationsResearch.MPModelDeltaProto();
6873 ModelDelta.MergeFrom(other.ModelDelta);
6875 if (other.HasPopulateAdditionalSolutionsUpTo) {
6876 PopulateAdditionalSolutionsUpTo = other.PopulateAdditionalSolutionsUpTo;
6878 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
6881 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6882 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6883 public void MergeFrom(pb::CodedInputStream input) {
6884 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
6885 input.ReadRawMessage(
this);
6888 while ((tag = input.ReadTag()) != 0) {
6889 if ((tag & 7) == 4) {
6895 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
6898 if (model_ ==
null) {
6899 Model =
new global::OperationsResearch.MPModelProto();
6901 input.ReadMessage(
Model);
6905 SolverType = (global::OperationsResearch.MPModelRequest.Types.SolverType) input.ReadEnum();
6909 SolverTimeLimitSeconds = input.ReadDouble();
6913 EnableInternalSolverOutput = input.ReadBool();
6917 SolverSpecificParameters = input.ReadString();
6921 if (modelDelta_ ==
null) {
6922 ModelDelta =
new global::OperationsResearch.MPModelDeltaProto();
6924 input.ReadMessage(ModelDelta);
6928 IgnoreSolverSpecificParametersFailure = input.ReadBool();
6932 PopulateAdditionalSolutionsUpTo = input.ReadInt32();
6940 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
6941 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6942 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
6943 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
6945 while ((tag = input.ReadTag()) != 0) {
6946 if ((tag & 7) == 4) {
6952 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
6955 if (model_ ==
null) {
6956 Model =
new global::OperationsResearch.MPModelProto();
6958 input.ReadMessage(Model);
6962 SolverType = (global::OperationsResearch.MPModelRequest.Types.SolverType) input.ReadEnum();
6966 SolverTimeLimitSeconds = input.ReadDouble();
6970 EnableInternalSolverOutput = input.ReadBool();
6974 SolverSpecificParameters = input.ReadString();
6978 if (modelDelta_ ==
null) {
6979 ModelDelta =
new global::OperationsResearch.MPModelDeltaProto();
6981 input.ReadMessage(ModelDelta);
6985 IgnoreSolverSpecificParametersFailure = input.ReadBool();
6989 PopulateAdditionalSolutionsUpTo = input.ReadInt32();
6997 #region Nested types
6999 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7000 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7001 public static partial
class Types {
7009 public enum SolverType {
7010 [pbr::OriginalName(
"CLP_LINEAR_PROGRAMMING")] ClpLinearProgramming = 0,
7014 [pbr::OriginalName(
"GLOP_LINEAR_PROGRAMMING")] GlopLinearProgramming = 2,
7015 [pbr::OriginalName(
"GLPK_LINEAR_PROGRAMMING")] GlpkLinearProgramming = 1,
7019 [pbr::OriginalName(
"GUROBI_LINEAR_PROGRAMMING")] GurobiLinearProgramming = 6,
7023 [pbr::OriginalName(
"XPRESS_LINEAR_PROGRAMMING")] XpressLinearProgramming = 101,
7027 [pbr::OriginalName(
"CPLEX_LINEAR_PROGRAMMING")] CplexLinearProgramming = 10,
7028 [pbr::OriginalName(
"HIGHS_LINEAR_PROGRAMMING")] HighsLinearProgramming = 15,
7032 [pbr::OriginalName(
"SCIP_MIXED_INTEGER_PROGRAMMING")] ScipMixedIntegerProgramming = 3,
7033 [pbr::OriginalName(
"GLPK_MIXED_INTEGER_PROGRAMMING")] GlpkMixedIntegerProgramming = 4,
7034 [pbr::OriginalName(
"CBC_MIXED_INTEGER_PROGRAMMING")] CbcMixedIntegerProgramming = 5,
7038 [pbr::OriginalName(
"GUROBI_MIXED_INTEGER_PROGRAMMING")] GurobiMixedIntegerProgramming = 7,
7042 [pbr::OriginalName(
"XPRESS_MIXED_INTEGER_PROGRAMMING")] XpressMixedIntegerProgramming = 102,
7046 [pbr::OriginalName(
"CPLEX_MIXED_INTEGER_PROGRAMMING")] CplexMixedIntegerProgramming = 11,
7047 [pbr::OriginalName(
"HIGHS_MIXED_INTEGER_PROGRAMMING")] HighsMixedIntegerProgramming = 16,
7048 [pbr::OriginalName(
"BOP_INTEGER_PROGRAMMING")] BopIntegerProgramming = 12,
7055 [pbr::OriginalName(
"SAT_INTEGER_PROGRAMMING")] SatIntegerProgramming = 14,
7061 [pbr::OriginalName(
"PDLP_LINEAR_PROGRAMMING")] PdlpLinearProgramming = 8,
7062 [pbr::OriginalName(
"KNAPSACK_MIXED_INTEGER_PROGRAMMING")] KnapsackMixedIntegerProgramming = 13,
7070 [global::System.Diagnostics.DebuggerDisplayAttribute(
"{ToString(),nq}")]
7071 public sealed partial
class MPSolution : pb::IMessage<MPSolution>
7072 #
if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
7073 , pb::IBufferMessage
7076 private static readonly pb::MessageParser<MPSolution> _parser =
new pb::MessageParser<MPSolution>(() =>
new MPSolution());
7077 private pb::UnknownFieldSet _unknownFields;
7078 private int _hasBits0;
7079 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7080 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7081 public static pb::MessageParser<MPSolution>
Parser {
get {
return _parser; } }
7083 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7084 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7085 public static pbr::MessageDescriptor
Descriptor {
7086 get {
return global::OperationsResearch.LinearSolverReflection.Descriptor.MessageTypes[16]; }
7089 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7090 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7091 pbr::MessageDescriptor pb::IMessage.Descriptor {
7095 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7096 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7101 partial
void OnConstruction();
7103 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7104 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7106 _hasBits0 = other._hasBits0;
7107 objectiveValue_ = other.objectiveValue_;
7108 variableValue_ = other.variableValue_.Clone();
7109 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
7112 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7113 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7119 public const int ObjectiveValueFieldNumber = 1;
7120 private readonly
static double ObjectiveValueDefaultValue = 0D;
7122 private double objectiveValue_;
7123 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7124 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7126 get {
if ((_hasBits0 & 1) != 0) {
return objectiveValue_; }
else {
return ObjectiveValueDefaultValue; } }
7129 objectiveValue_ = value;
7133 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7134 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7135 public bool HasObjectiveValue {
7136 get {
return (_hasBits0 & 1) != 0; }
7139 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7140 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7141 public void ClearObjectiveValue() {
7147 private static readonly pb::FieldCodec<double> _repeated_variableValue_codec
7148 = pb::FieldCodec.ForDouble(18);
7149 private readonly pbc::RepeatedField<double> variableValue_ =
new pbc::RepeatedField<double>();
7150 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7151 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7153 get {
return variableValue_; }
7156 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7157 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7158 public override bool Equals(
object other) {
7162 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7163 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7165 if (ReferenceEquals(other,
null)) {
7168 if (ReferenceEquals(other,
this)) {
7171 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(ObjectiveValue, other.
ObjectiveValue))
return false;
7172 if(!variableValue_.Equals(other.variableValue_))
return false;
7173 return Equals(_unknownFields, other._unknownFields);
7176 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7177 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7181 hash ^= variableValue_.GetHashCode();
7182 if (_unknownFields !=
null) {
7183 hash ^= _unknownFields.GetHashCode();
7188 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7189 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7190 public override string ToString() {
7191 return pb::JsonFormatter.ToDiagnosticString(
this);
7194 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7195 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7196 public void WriteTo(pb::CodedOutputStream output) {
7197 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
7198 output.WriteRawMessage(
this);
7200 if (HasObjectiveValue) {
7201 output.WriteRawTag(9);
7204 variableValue_.WriteTo(output, _repeated_variableValue_codec);
7205 if (_unknownFields !=
null) {
7206 _unknownFields.WriteTo(output);
7211 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
7212 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7213 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7214 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
7215 if (HasObjectiveValue) {
7216 output.WriteRawTag(9);
7217 output.WriteDouble(ObjectiveValue);
7219 variableValue_.WriteTo(ref output, _repeated_variableValue_codec);
7220 if (_unknownFields !=
null) {
7221 _unknownFields.WriteTo(ref output);
7226 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7227 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7228 public int CalculateSize() {
7230 if (HasObjectiveValue) {
7233 size += variableValue_.CalculateSize(_repeated_variableValue_codec);
7234 if (_unknownFields !=
null) {
7235 size += _unknownFields.CalculateSize();
7240 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7241 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7243 if (other ==
null) {
7249 variableValue_.Add(other.variableValue_);
7250 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
7253 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7254 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7255 public void MergeFrom(pb::CodedInputStream input) {
7256 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
7257 input.ReadRawMessage(
this);
7260 while ((tag = input.ReadTag()) != 0) {
7261 if ((tag & 7) == 4) {
7267 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
7275 variableValue_.AddEntriesFrom(input, _repeated_variableValue_codec);
7283 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
7284 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7285 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7286 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
7288 while ((tag = input.ReadTag()) != 0) {
7289 if ((tag & 7) == 4) {
7295 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
7298 ObjectiveValue = input.ReadDouble();
7303 variableValue_.AddEntriesFrom(ref input, _repeated_variableValue_codec);
7313 [global::System.Diagnostics.DebuggerDisplayAttribute(
"{ToString(),nq}")]
7314 public sealed partial class MPSolveInfo : pb::IMessage<MPSolveInfo>
7315 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
7316 , pb::IBufferMessage
7319 private static readonly pb::MessageParser<MPSolveInfo> _parser =
new pb::MessageParser<MPSolveInfo>(() =>
new MPSolveInfo());
7320 private pb::UnknownFieldSet _unknownFields;
7321 private int _hasBits0;
7322 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7323 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7324 public static pb::MessageParser<MPSolveInfo> Parser {
get {
return _parser; } }
7326 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7327 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7328 public static pbr::MessageDescriptor
Descriptor {
7329 get {
return global::OperationsResearch.LinearSolverReflection.Descriptor.MessageTypes[17]; }
7332 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7333 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7334 pbr::MessageDescriptor pb::IMessage.Descriptor {
7338 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7339 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7344 partial
void OnConstruction();
7346 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7347 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7349 _hasBits0 = other._hasBits0;
7350 solveWallTimeSeconds_ = other.solveWallTimeSeconds_;
7351 solveUserTimeSeconds_ = other.solveUserTimeSeconds_;
7352 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
7355 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7356 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7362 public const int SolveWallTimeSecondsFieldNumber = 1;
7363 private readonly
static double SolveWallTimeSecondsDefaultValue = 0D;
7365 private double solveWallTimeSeconds_;
7373 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7374 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7376 get {
if ((_hasBits0 & 1) != 0) {
return solveWallTimeSeconds_; }
else {
return SolveWallTimeSecondsDefaultValue; } }
7379 solveWallTimeSeconds_ = value;
7383 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7384 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7385 public bool HasSolveWallTimeSeconds {
7386 get {
return (_hasBits0 & 1) != 0; }
7389 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7390 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7391 public void ClearSolveWallTimeSeconds() {
7397 private readonly
static double SolveUserTimeSecondsDefaultValue = 0D;
7399 private double solveUserTimeSeconds_;
7400 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7401 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7403 get {
if ((_hasBits0 & 2) != 0) {
return solveUserTimeSeconds_; }
else {
return SolveUserTimeSecondsDefaultValue; } }
7406 solveUserTimeSeconds_ = value;
7410 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7411 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7412 public bool HasSolveUserTimeSeconds {
7413 get {
return (_hasBits0 & 2) != 0; }
7416 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7417 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7418 public void ClearSolveUserTimeSeconds() {
7422 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7423 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7424 public override bool Equals(
object other) {
7428 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7429 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7431 if (ReferenceEquals(other,
null)) {
7434 if (ReferenceEquals(other,
this)) {
7437 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(SolveWallTimeSeconds, other.SolveWallTimeSeconds))
return false;
7438 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(SolveUserTimeSeconds, other.SolveUserTimeSeconds))
return false;
7439 return Equals(_unknownFields, other._unknownFields);
7442 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7443 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7448 if (_unknownFields !=
null) {
7449 hash ^= _unknownFields.GetHashCode();
7454 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7455 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7456 public override string ToString() {
7457 return pb::JsonFormatter.ToDiagnosticString(
this);
7460 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7461 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7462 public void WriteTo(pb::CodedOutputStream output) {
7463 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
7464 output.WriteRawMessage(
this);
7466 if (HasSolveWallTimeSeconds) {
7467 output.WriteRawTag(9);
7470 if (HasSolveUserTimeSeconds) {
7471 output.WriteRawTag(17);
7472 output.WriteDouble(SolveUserTimeSeconds);
7474 if (_unknownFields !=
null) {
7475 _unknownFields.WriteTo(output);
7480 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
7481 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7482 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7483 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
7484 if (HasSolveWallTimeSeconds) {
7485 output.WriteRawTag(9);
7486 output.WriteDouble(SolveWallTimeSeconds);
7488 if (HasSolveUserTimeSeconds) {
7489 output.WriteRawTag(17);
7490 output.WriteDouble(SolveUserTimeSeconds);
7492 if (_unknownFields !=
null) {
7493 _unknownFields.WriteTo(ref output);
7498 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7499 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7500 public int CalculateSize() {
7502 if (HasSolveWallTimeSeconds) {
7505 if (HasSolveUserTimeSeconds) {
7508 if (_unknownFields !=
null) {
7509 size += _unknownFields.CalculateSize();
7514 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7515 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7517 if (other ==
null) {
7520 if (other.HasSolveWallTimeSeconds) {
7521 SolveWallTimeSeconds = other.SolveWallTimeSeconds;
7523 if (other.HasSolveUserTimeSeconds) {
7524 SolveUserTimeSeconds = other.SolveUserTimeSeconds;
7526 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
7529 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7530 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7531 public void MergeFrom(pb::CodedInputStream input) {
7532 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
7533 input.ReadRawMessage(
this);
7536 while ((tag = input.ReadTag()) != 0) {
7537 if ((tag & 7) == 4) {
7543 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
7550 SolveUserTimeSeconds = input.ReadDouble();
7558 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
7559 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7560 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7561 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
7563 while ((tag = input.ReadTag()) != 0) {
7564 if ((tag & 7) == 4) {
7570 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
7573 SolveWallTimeSeconds = input.ReadDouble();
7577 SolveUserTimeSeconds = input.ReadDouble();
7590 [global::System.Diagnostics.DebuggerDisplayAttribute(
"{ToString(),nq}")]
7591 public sealed partial
class MPSolutionResponse : pb::IMessage<MPSolutionResponse>
7592 #
if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
7593 , pb::IBufferMessage
7596 private static readonly pb::MessageParser<MPSolutionResponse> _parser =
new pb::MessageParser<MPSolutionResponse>(() =>
new MPSolutionResponse());
7597 private pb::UnknownFieldSet _unknownFields;
7598 private int _hasBits0;
7599 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7600 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7601 public static pb::MessageParser<MPSolutionResponse> Parser {
get {
return _parser; } }
7603 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7604 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7605 public static pbr::MessageDescriptor
Descriptor {
7606 get {
return global::OperationsResearch.LinearSolverReflection.Descriptor.MessageTypes[18]; }
7609 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7610 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7611 pbr::MessageDescriptor pb::IMessage.Descriptor {
7615 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7616 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7621 partial
void OnConstruction();
7623 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7624 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7626 _hasBits0 = other._hasBits0;
7627 status_ = other.status_;
7628 statusStr_ = other.statusStr_;
7629 objectiveValue_ = other.objectiveValue_;
7630 bestObjectiveBound_ = other.bestObjectiveBound_;
7631 variableValue_ = other.variableValue_.Clone();
7632 solveInfo_ = other.solveInfo_ !=
null ? other.solveInfo_.
Clone() :
null;
7633 solverSpecificInfo_ = other.solverSpecificInfo_;
7634 dualValue_ = other.dualValue_.Clone();
7635 reducedCost_ = other.reducedCost_.Clone();
7636 additionalSolutions_ = other.additionalSolutions_.Clone();
7637 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
7640 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7641 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7647 public const int StatusFieldNumber = 1;
7648 private readonly
static global::OperationsResearch.MPSolverResponseStatus StatusDefaultValue = global::OperationsResearch.MPSolverResponseStatus.MpsolverUnknownStatus;
7650 private global::OperationsResearch.MPSolverResponseStatus status_;
7654 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7655 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7657 get {
if ((_hasBits0 & 1) != 0) {
return status_; }
else {
return StatusDefaultValue; } }
7664 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7665 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7666 public bool HasStatus {
7667 get {
return (_hasBits0 & 1) != 0; }
7670 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7671 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7672 public void ClearStatus() {
7678 private readonly
static string StatusStrDefaultValue =
"";
7680 private string statusStr_;
7687 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7688 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7690 get {
return statusStr_ ?? StatusStrDefaultValue; }
7692 statusStr_ = pb::ProtoPreconditions.CheckNotNull(value,
"value");
7696 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7697 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7698 public bool HasStatusStr {
7699 get {
return statusStr_ !=
null; }
7702 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7703 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7704 public void ClearStatusStr() {
7710 private readonly
static double ObjectiveValueDefaultValue = 0D;
7712 private double objectiveValue_;
7718 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7719 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7721 get {
if ((_hasBits0 & 2) != 0) {
return objectiveValue_; }
else {
return ObjectiveValueDefaultValue; } }
7724 objectiveValue_ = value;
7728 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7729 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7730 public bool HasObjectiveValue {
7731 get {
return (_hasBits0 & 2) != 0; }
7734 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7735 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7736 public void ClearObjectiveValue() {
7742 private readonly
static double BestObjectiveBoundDefaultValue = 0D;
7744 private double bestObjectiveBound_;
7752 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7753 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7755 get {
if ((_hasBits0 & 4) != 0) {
return bestObjectiveBound_; }
else {
return BestObjectiveBoundDefaultValue; } }
7758 bestObjectiveBound_ = value;
7762 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7763 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7764 public bool HasBestObjectiveBound {
7765 get {
return (_hasBits0 & 4) != 0; }
7768 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7769 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7770 public void ClearBestObjectiveBound() {
7776 private static readonly pb::FieldCodec<double> _repeated_variableValue_codec
7777 = pb::FieldCodec.ForDouble(26);
7778 private readonly pbc::RepeatedField<double> variableValue_ =
new pbc::RepeatedField<double>();
7784 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7785 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7787 get {
return variableValue_; }
7791 public const int SolveInfoFieldNumber = 10;
7792 private global::OperationsResearch.MPSolveInfo solveInfo_;
7798 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7799 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7800 public global::OperationsResearch.MPSolveInfo
SolveInfo {
7801 get {
return solveInfo_; }
7808 public const int SolverSpecificInfoFieldNumber = 11;
7809 private readonly
static pb::ByteString SolverSpecificInfoDefaultValue = pb::ByteString.Empty;
7811 private pb::ByteString solverSpecificInfo_;
7816 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7817 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7819 get {
return solverSpecificInfo_ ?? SolverSpecificInfoDefaultValue; }
7821 solverSpecificInfo_ = pb::ProtoPreconditions.CheckNotNull(value,
"value");
7825 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7826 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7827 public bool HasSolverSpecificInfo {
7828 get {
return solverSpecificInfo_ !=
null; }
7831 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7832 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7833 public void ClearSolverSpecificInfo() {
7834 solverSpecificInfo_ =
null;
7839 private static readonly pb::FieldCodec<double> _repeated_dualValue_codec
7840 = pb::FieldCodec.ForDouble(34);
7841 private readonly pbc::RepeatedField<double> dualValue_ =
new pbc::RepeatedField<double>();
7850 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7851 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7852 public pbc::RepeatedField<double>
DualValue {
7853 get {
return dualValue_; }
7857 public const int ReducedCostFieldNumber = 6;
7858 private static readonly pb::FieldCodec<double> _repeated_reducedCost_codec
7859 = pb::FieldCodec.ForDouble(50);
7860 private readonly pbc::RepeatedField<double> reducedCost_ =
new pbc::RepeatedField<double>();
7869 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7870 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7872 get {
return reducedCost_; }
7876 public const int AdditionalSolutionsFieldNumber = 8;
7877 private static readonly pb::FieldCodec<global::OperationsResearch.MPSolution> _repeated_additionalSolutions_codec
7878 = pb::FieldCodec.ForMessage(66, global::OperationsResearch.
MPSolution.
Parser);
7879 private readonly pbc::RepeatedField<global::OperationsResearch.MPSolution> additionalSolutions_ =
new pbc::RepeatedField<global::OperationsResearch.MPSolution>();
7887 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7888 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7890 get {
return additionalSolutions_; }
7893 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7894 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7895 public override bool Equals(
object other) {
7899 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7900 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7902 if (ReferenceEquals(other,
null)) {
7905 if (ReferenceEquals(other,
this)) {
7908 if (Status != other.
Status)
return false;
7909 if (StatusStr != other.
StatusStr)
return false;
7910 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(ObjectiveValue, other.
ObjectiveValue))
return false;
7911 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(BestObjectiveBound, other.
BestObjectiveBound))
return false;
7912 if(!variableValue_.Equals(other.variableValue_))
return false;
7915 if(!dualValue_.Equals(other.dualValue_))
return false;
7916 if(!reducedCost_.Equals(other.reducedCost_))
return false;
7917 if(!additionalSolutions_.Equals(other.additionalSolutions_))
return false;
7918 return Equals(_unknownFields, other._unknownFields);
7921 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7922 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7923 public override int GetHashCode() {
7925 if (HasStatus) hash ^= Status.GetHashCode();
7926 if (HasStatusStr) hash ^= StatusStr.GetHashCode();
7927 if (HasObjectiveValue) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(ObjectiveValue);
7928 if (HasBestObjectiveBound) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(BestObjectiveBound);
7929 hash ^= variableValue_.GetHashCode();
7930 if (solveInfo_ !=
null) hash ^= SolveInfo.GetHashCode();
7931 if (HasSolverSpecificInfo) hash ^= SolverSpecificInfo.GetHashCode();
7932 hash ^= dualValue_.GetHashCode();
7933 hash ^= reducedCost_.GetHashCode();
7934 hash ^= additionalSolutions_.GetHashCode();
7935 if (_unknownFields !=
null) {
7936 hash ^= _unknownFields.GetHashCode();
7941 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7942 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7943 public override string ToString() {
7944 return pb::JsonFormatter.ToDiagnosticString(
this);
7947 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7948 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7949 public void WriteTo(pb::CodedOutputStream output) {
7950 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
7951 output.WriteRawMessage(
this);
7954 output.WriteRawTag(8);
7955 output.WriteEnum((
int)
Status);
7957 if (HasObjectiveValue) {
7958 output.WriteRawTag(17);
7959 output.WriteDouble(ObjectiveValue);
7961 variableValue_.WriteTo(output, _repeated_variableValue_codec);
7962 dualValue_.WriteTo(output, _repeated_dualValue_codec);
7963 if (HasBestObjectiveBound) {
7964 output.WriteRawTag(41);
7965 output.WriteDouble(BestObjectiveBound);
7967 reducedCost_.WriteTo(output, _repeated_reducedCost_codec);
7969 output.WriteRawTag(58);
7970 output.WriteString(StatusStr);
7972 additionalSolutions_.WriteTo(output, _repeated_additionalSolutions_codec);
7973 if (solveInfo_ !=
null) {
7974 output.WriteRawTag(82);
7975 output.WriteMessage(SolveInfo);
7977 if (HasSolverSpecificInfo) {
7978 output.WriteRawTag(90);
7979 output.WriteBytes(SolverSpecificInfo);
7981 if (_unknownFields !=
null) {
7982 _unknownFields.WriteTo(output);
7987 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
7988 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7989 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
7990 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
7992 output.WriteRawTag(8);
7993 output.WriteEnum((
int) Status);
7995 if (HasObjectiveValue) {
7996 output.WriteRawTag(17);
7997 output.WriteDouble(ObjectiveValue);
7999 variableValue_.WriteTo(ref output, _repeated_variableValue_codec);
8000 dualValue_.WriteTo(ref output, _repeated_dualValue_codec);
8001 if (HasBestObjectiveBound) {
8002 output.WriteRawTag(41);
8003 output.WriteDouble(BestObjectiveBound);
8005 reducedCost_.WriteTo(ref output, _repeated_reducedCost_codec);
8007 output.WriteRawTag(58);
8008 output.WriteString(StatusStr);
8010 additionalSolutions_.WriteTo(ref output, _repeated_additionalSolutions_codec);
8011 if (solveInfo_ !=
null) {
8012 output.WriteRawTag(82);
8013 output.WriteMessage(SolveInfo);
8015 if (HasSolverSpecificInfo) {
8016 output.WriteRawTag(90);
8017 output.WriteBytes(SolverSpecificInfo);
8019 if (_unknownFields !=
null) {
8020 _unknownFields.WriteTo(ref output);
8025 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8026 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
8027 public int CalculateSize() {
8030 size += 1 + pb::CodedOutputStream.ComputeEnumSize((
int) Status);
8033 size += 1 + pb::CodedOutputStream.ComputeStringSize(StatusStr);
8035 if (HasObjectiveValue) {
8041 size += variableValue_.CalculateSize(_repeated_variableValue_codec);
8042 if (solveInfo_ !=
null) {
8043 size += 1 + pb::CodedOutputStream.ComputeMessageSize(SolveInfo);
8045 if (HasSolverSpecificInfo) {
8046 size += 1 + pb::CodedOutputStream.ComputeBytesSize(SolverSpecificInfo);
8048 size += dualValue_.CalculateSize(_repeated_dualValue_codec);
8049 size += reducedCost_.CalculateSize(_repeated_reducedCost_codec);
8050 size += additionalSolutions_.CalculateSize(_repeated_additionalSolutions_codec);
8051 if (_unknownFields !=
null) {
8052 size += _unknownFields.CalculateSize();
8057 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8058 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
8059 public void MergeFrom(MPSolutionResponse other) {
8060 if (other ==
null) {
8063 if (other.HasStatus) {
8064 Status = other.Status;
8066 if (other.HasStatusStr) {
8067 StatusStr = other.StatusStr;
8069 if (other.HasObjectiveValue) {
8072 if (other.HasBestObjectiveBound) {
8073 BestObjectiveBound = other.BestObjectiveBound;
8075 variableValue_.Add(other.variableValue_);
8076 if (other.solveInfo_ !=
null) {
8077 if (solveInfo_ ==
null) {
8078 SolveInfo =
new global::OperationsResearch.MPSolveInfo();
8080 SolveInfo.MergeFrom(other.SolveInfo);
8082 if (other.HasSolverSpecificInfo) {
8083 SolverSpecificInfo = other.SolverSpecificInfo;
8085 dualValue_.Add(other.dualValue_);
8086 reducedCost_.Add(other.reducedCost_);
8087 additionalSolutions_.Add(other.additionalSolutions_);
8088 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
8091 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8092 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
8093 public void MergeFrom(pb::CodedInputStream input) {
8094 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
8095 input.ReadRawMessage(
this);
8098 while ((tag = input.ReadTag()) != 0) {
8099 if ((tag & 7) == 4) {
8105 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
8108 Status = (global::OperationsResearch.MPSolverResponseStatus) input.ReadEnum();
8112 ObjectiveValue = input.ReadDouble();
8117 variableValue_.AddEntriesFrom(input, _repeated_variableValue_codec);
8122 dualValue_.AddEntriesFrom(input, _repeated_dualValue_codec);
8126 BestObjectiveBound = input.ReadDouble();
8131 reducedCost_.AddEntriesFrom(input, _repeated_reducedCost_codec);
8135 StatusStr = input.ReadString();
8139 additionalSolutions_.AddEntriesFrom(input, _repeated_additionalSolutions_codec);
8143 if (solveInfo_ ==
null) {
8144 SolveInfo =
new global::OperationsResearch.MPSolveInfo();
8146 input.ReadMessage(SolveInfo);
8150 SolverSpecificInfo = input.ReadBytes();
8158 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
8159 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8160 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
8161 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
8163 while ((tag = input.ReadTag()) != 0) {
8164 if ((tag & 7) == 4) {
8170 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
8173 Status = (global::OperationsResearch.MPSolverResponseStatus) input.ReadEnum();
8177 ObjectiveValue = input.ReadDouble();
8182 variableValue_.AddEntriesFrom(ref input, _repeated_variableValue_codec);
8187 dualValue_.AddEntriesFrom(ref input, _repeated_dualValue_codec);
8191 BestObjectiveBound = input.ReadDouble();
8196 reducedCost_.AddEntriesFrom(ref input, _repeated_reducedCost_codec);
8200 StatusStr = input.ReadString();
8204 additionalSolutions_.AddEntriesFrom(ref input, _repeated_additionalSolutions_codec);
8208 if (solveInfo_ ==
null) {
8209 SolveInfo =
new global::OperationsResearch.MPSolveInfo();
8211 input.ReadMessage(SolveInfo);
8215 SolverSpecificInfo = input.ReadBytes();
8229#endregion Designer generated code
global::Google.Protobuf pb
global::Google.Protobuf.Reflection pbr
global::System.Collections.Generic scg
global::Google.Protobuf.Collections pbc
Holder for reflection information generated from ortools/linear_solver/linear_solver....
static pbr::FileDescriptor Descriptor
File descriptor for ortools/linear_solver/linear_solver.proto.
Sets a variable's value to the absolute value of another variable.
override bool Equals(object other)
static pbr::MessageDescriptor Descriptor
void ClearResultantVarIndex()
Clears the value of the "resultant_var_index" field.
const int ResultantVarIndexFieldNumber
Field number for the "resultant_var_index" field.
static pb::MessageParser< MPAbsConstraint > Parser
void ClearVarIndex()
Clears the value of the "var_index" field.
void WriteTo(pb::CodedOutputStream output)
int VarIndex
Variable indices are relative to the "variable" field in MPModelProto. resultant_var = abs(var).
const int VarIndexFieldNumber
Field number for the "var_index" field.
bool HasResultantVarIndex
Gets whether the "resultant_var_index" field is set.
bool HasVarIndex
Gets whether the "var_index" field is set.
Sets a variable's value equal to a function on a set of variables.
pbc::RepeatedField< int > VarIndex
Variable indices are relative to the "variable" field in MPModelProto.
override bool Equals(object other)
static pb::MessageParser< MPArrayConstraint > Parser
bool HasResultantVarIndex
Gets whether the "resultant_var_index" field is set.
void WriteTo(pb::CodedOutputStream output)
const int ResultantVarIndexFieldNumber
Field number for the "resultant_var_index" field.
const int VarIndexFieldNumber
Field number for the "var_index" field.
void ClearResultantVarIndex()
Clears the value of the "resultant_var_index" field.
static pbr::MessageDescriptor Descriptor
Sets a variable's value equal to a function on a set of variables and, optionally,...
const int ResultantVarIndexFieldNumber
Field number for the "resultant_var_index" field.
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)
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....
global::OperationsResearch.MPSolveInfo SolveInfo
Contains extra information about the solve, populated if the underlying solver (and its interface) su...
const int ObjectiveValueFieldNumber
Field number for the "objective_value" field.
string StatusStr
Human-readable string giving more details about the status. For example, when the status is MPSOLVER_...
double ObjectiveValue
Objective value corresponding to the "variable_value" below, taking into account the source "objectiv...
pbc::RepeatedField< global::OperationsResearch.MPSolution > AdditionalSolutions
[Advanced usage.] If MPModelRequest.populate_additional_solutions_up_to > 0, up to that number of add...
const int DualValueFieldNumber
Field number for the "dual_value" field.
bool HasBestObjectiveBound
Gets whether the "best_objective_bound" field is set.
pbc::RepeatedField< double > VariableValue
Variable values in the same order as the MPModelProto.variable field. This is a dense representation....
pb::ByteString SolverSpecificInfo
Opaque solver-specific information. For the PDLP solver, this is a serialized pdlp....
const int VariableValueFieldNumber
Field number for the "variable_value" field.
const int BestObjectiveBoundFieldNumber
Field number for the "best_objective_bound" field.
global::OperationsResearch.MPSolverResponseStatus Status
Result of the optimization.
override bool Equals(object other)
static pbr::MessageDescriptor Descriptor
pbc::RepeatedField< double > ReducedCost
[Advanced usage.] Values of the reduced cost of the variables in the same order as the MPModelProto....
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.
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.
Special Ordered Set (SOS) constraints of type 1 or 2. See https://en.wikipedia.org/wiki/Special_order...
const int VarIndexFieldNumber
Field number for the "var_index" field.
pbc::RepeatedField< int > VarIndex
Variable index (w.r.t. the "variable" field of MPModelProto) of the variables in the SOS.
const int WeightFieldNumber
Field number for the "weight" field.
global::OperationsResearch.MPSosConstraint.Types.Type Type
override bool Equals(object other)
bool HasType
Gets whether the "type" field is set.
void ClearType()
Clears the value of the "type" field.
pbc::RepeatedField< double > Weight
Optional: SOS weights. If non-empty, must be of the same size as "var_index", and strictly increasing...
static pb::MessageParser< MPSosConstraint > Parser
void WriteTo(pb::CodedOutputStream output)
static pbr::MessageDescriptor Descriptor
const int TypeFieldNumber
Field number for the "type" field.
A variable is always constrained in the form: lower_bound <= x <= upper_bound where lower_bound and u...
void ClearName()
Clears the value of the "name" field.
bool IsInteger
True if the variable is constrained to be integer. Ignored if MPModelProto.solver_type is LINEAR_PROG...
bool HasObjectiveCoefficient
Gets whether the "objective_coefficient" field is set.
bool HasIsInteger
Gets whether the "is_integer" field is set.
bool HasUpperBound
Gets whether the "upper_bound" field is set.
bool HasName
Gets whether the "name" field is set.
double LowerBound
lower_bound must be <= upper_bound.
override bool Equals(object other)
static pbr::MessageDescriptor Descriptor
static pb::MessageParser< MPVariableProto > Parser
const int LowerBoundFieldNumber
Field number for the "lower_bound" field.
const int BranchingPriorityFieldNumber
Field number for the "branching_priority" field.
void ClearBranchingPriority()
Clears the value of the "branching_priority" field.
void ClearLowerBound()
Clears the value of the "lower_bound" field.
double ObjectiveCoefficient
The coefficient of the variable in the objective. Must be finite.
const int NameFieldNumber
Field number for the "name" field.
const int UpperBoundFieldNumber
Field number for the "upper_bound" field.
void ClearObjectiveCoefficient()
Clears the value of the "objective_coefficient" field.
bool HasLowerBound
Gets whether the "lower_bound" field is set.
string Name
The name of the variable.
const int ObjectiveCoefficientFieldNumber
Field number for the "objective_coefficient" field.
void ClearUpperBound()
Clears the value of the "upper_bound" field.
bool HasBranchingPriority
Gets whether the "branching_priority" field is set.
const int IsIntegerFieldNumber
Field number for the "is_integer" field.
void WriteTo(pb::CodedOutputStream output)
void ClearIsInteger()
Clears the value of the "is_integer" field.
To support 'unspecified' double value in proto3, the simplest is to wrap any double value in a nested...
static pb::MessageParser< OptionalDouble > Parser
bool HasValue
Gets whether the "value" field is set.
const int ValueFieldNumber
Field number for the "value" field.
static pbr::MessageDescriptor Descriptor
void ClearValue()
Clears the value of the "value" field.
override bool Equals(object other)
void WriteTo(pb::CodedOutputStream output)
This message encodes a partial (or full) assignment of the variables of a MPModelProto problem....
static pb::MessageParser< PartialVariableAssignment > Parser
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...