LotSizingDataModel.Instance 2.0.1
Lot-sizing instance representation, descriptors and problem characterization.
Loading...
Searching...
No Matches
ScientificClassificationRequest.cs
Go to the documentation of this file.
3
5
6/// <summary>
7/// Optional inputs to one scientific-classification run.
8/// </summary>
10{
12 string? declaredNotation = null,
13 UniversalDerivedSemantics? derivedSemantics = null,
14 double numericalTolerance =
16 {
17 if (
18 !double.IsFinite(numericalTolerance) ||
19 numericalTolerance < 0.0)
20 {
21 throw new ArgumentOutOfRangeException(
22 nameof(numericalTolerance),
23 numericalTolerance,
24 "Numerical tolerance must be finite and non-negative.");
25 }
26
28 declaredNotation?.Trim() ?? string.Empty;
29
31 derivedSemantics ??
33
34 NumericalTolerance = numericalTolerance;
35 }
36
37 /// <summary>
38 /// Gets notation declared by a file, author, benchmark or caller.
39 /// It is never overwritten by detected notation.
40 /// </summary>
41 public string DeclaredNotation { get; }
42
43 public bool HasDeclaredNotation =>
44 !string.IsNullOrWhiteSpace(DeclaredNotation);
45
46 /// <summary>
47 /// Gets explicit detailed analyses supplied by the caller.
48 /// </summary>
50
51 public double NumericalTolerance { get; }
52}
Extracts factual lot-sizing problem features from a supply-chain instance.
const double DefaultNumericalTolerance
Default tolerance used when comparing numerical time-series values.
Carries explicit derived analyses that cannot be inferred from the coarse typed descriptor alone.
UniversalDerivedSemantics DerivedSemantics
Gets explicit detailed analyses supplied by the caller.
ScientificClassificationRequest(string? declaredNotation=null, UniversalDerivedSemantics? derivedSemantics=null, double numericalTolerance=LotSizingProblemFeatureExtractor.DefaultNumericalTolerance)
string DeclaredNotation
Gets notation declared by a file, author, benchmark or caller. It is never overwritten by detected no...