LotSizingDataModel.Solver 2.0.1
Solver-independent modeling, execution, monitoring and adapter infrastructure.
Loading...
Searching...
No Matches
LocalBranchingBridgeResult.cs
Go to the documentation of this file.
2
3public sealed class LocalBranchingBridgeResult
4{
6 string algorithmId,
7 IReadOnlyList<double> bestValues,
8 double bestObjective,
9 int exactSolves,
10 int relaxationSolves,
11 int iterations,
12 ulong seed,
13 IReadOnlyList<string> trace)
14 {
15 ArgumentNullException.ThrowIfNull(
16 bestValues);
17
18 ArgumentNullException.ThrowIfNull(
19 trace);
20
22 algorithmId?.Trim() ??
23 string.Empty;
24
26 bestValues.ToArray();
27
29 bestObjective;
30
32 exactSolves;
33
35 relaxationSolves;
36
38 iterations;
39
40 Seed =
41 seed;
42
43 Trace =
44 trace.ToArray();
45
46 if (string.IsNullOrWhiteSpace(
47 AlgorithmId) ||
48 BestValues.Length == 0 ||
49 !double.IsFinite(
51 ExactSolves < 0 ||
52 RelaxationSolves < 0 ||
53 Iterations < 0)
54 {
55 throw new InvalidOperationException(
56 "Local Branching bridge result is invalid.");
57 }
58 }
59
60 public string AlgorithmId
61 {
62 get;
63 }
64
65 public double[] BestValues
66 {
67 get;
68 }
69
70 public double BestObjective
71 {
72 get;
73 }
74
75 public int ExactSolves
76 {
77 get;
78 }
79
81 {
82 get;
83 }
84
85 public int Iterations
86 {
87 get;
88 }
89
90 public ulong Seed
91 {
92 get;
93 }
94
95 public string[] Trace
96 {
97 get;
98 }
99}
LocalBranchingBridgeResult(string algorithmId, IReadOnlyList< double > bestValues, double bestObjective, int exactSolves, int relaxationSolves, int iterations, ulong seed, IReadOnlyList< string > trace)