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