9 private readonly IReadOnlyCollection<WolseyVariant> _variants;
14 IEnumerable<WolseyVariant>? variants =
null)
22 .OrderBy(variant => (
int)variant)
28 public IReadOnlyCollection<WolseyVariant>
Variants => _variants;
43 $
"{Problem}-{Capacity}";
45 if (_variants.Count == 0)
55 _variants.Select(RenderVariant)) +
61 _variants.Contains(variant);
63 private static string RenderVariant(
70 _ => variant.ToString()
WolseyProblemVersion Problem
WolseySingleItemClassification(WolseyProblemVersion problem, WolseyCapacityRegime capacity, IEnumerable< WolseyVariant >? variants=null)
WolseyCapacityRegime Capacity
IReadOnlyCollection< WolseyVariant > Variants
string HistoricalCode
Renders a stable LotSizingDataModel canonical transcription of the historical PROB-CAP-VAR code.
override string ToString()
bool HasVariant(WolseyVariant variant)
WolseyCapacityRegime
Second CAP field of Wolsey's 2002 single-item classification.
WolseyVariant
Third VAR field extensions of Wolsey's 2002 single-item classification.
@ STConstant
Constant start-up times, Wolsey ST(C).
@ LBConstant
Constant minimum production levels, Wolsey LB(C).
WolseyProblemVersion
First PROB field of Wolsey's 2002 single-item classification.