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