LotSizingDataModel.Instance 2.0.1
Lot-sizing instance representation, descriptors and problem characterization.
Loading...
Searching...
No Matches
WolseyHistoricalMapping.cs
Go to the documentation of this file.
3
5
6/// <summary>
7/// Represents a Wolsey historical classification and the portion currently
8/// expressible as a universal problem specification.
9/// </summary>
10public sealed class WolseyHistoricalMapping
11{
13 WolseyExtendedClassification historicalClassification,
14 UniversalProblemSpecification universalSpecification,
16 IEnumerable<string> unrepresentedHistoricalDimensions)
17 {
19 historicalClassification ??
20 throw new ArgumentNullException(
21 nameof(historicalClassification));
22
24 universalSpecification ??
25 throw new ArgumentNullException(
26 nameof(universalSpecification));
27
28 Coverage = coverage;
29
31 (unrepresentedHistoricalDimensions ??
32 throw new ArgumentNullException(
33 nameof(unrepresentedHistoricalDimensions)))
34 .Distinct(StringComparer.Ordinal)
35 .OrderBy(value => value, StringComparer.Ordinal)
36 .ToArray();
37 }
38
40
41 public string HistoricalCode =>
42 HistoricalClassification.HistoricalCode;
43
45
47
48 public IReadOnlyList<string>
50}
Preserves Wolsey's optional multi-item/machine/level extension around the single-item PROB-CAP-VAR cl...
WolseyHistoricalMapping(WolseyExtendedClassification historicalClassification, UniversalProblemSpecification universalSpecification, HistoricalMappingCoverage coverage, IEnumerable< string > unrepresentedHistoricalDimensions)
Represents a universal notation interpreted as a problem specification.
HistoricalMappingCoverage
Describes how completely a historical classification can currently be represented by the universal no...