LotSizingDataModel.Solver 2.0.1
Solver-independent modeling, execution, monitoring and adapter infrastructure.
Loading...
Searching...
No Matches
MetaheuristicsPlatformBridgeProvenance.cs
Go to the documentation of this file.
1using MetaheuristicsPlatform.Algorithms.Constraints.DebConstraintGa;
2using MetaheuristicsPlatform.Algorithms.Matheuristics.LocalBranching;
3using MetaheuristicsPlatform.Catalog;
4
6
8{
9 public const string Version = "1.0.1";
10
11 public const string SourceCommit =
12 "0ab7521dc1f42f50209c8badea811502977b8409";
13
14 public const string ReleaseArchiveSha256 =
15 "ce7d39c184e17965e64b2739516b62bd186ff4bf12bdedf570f1293e241f2404";
16
17 public static void EnsureCompatibleRuntime()
18 {
19 var deb =
20 new DebConstraintGaOptimizer();
21
22 if (!string.Equals(
23 deb.Descriptor.Id,
24 MetaheuristicAlgorithmIds.DebConstraintGa,
25 StringComparison.Ordinal))
26 {
27 throw new InvalidOperationException(
28 "MetaheuristicsPlatform Deb constraint-GA identity drift.");
29 }
30
31 var localBranching =
32 new LocalBranchingMatheuristicOptimizer();
33
34 if (!string.Equals(
35 localBranching.Descriptor.Id,
36 MetaheuristicAlgorithmIds.LocalBranchingMatheuristic,
37 StringComparison.Ordinal))
38 {
39 throw new InvalidOperationException(
40 "MetaheuristicsPlatform Local Branching identity drift.");
41 }
42 }
43}