1using LotSizingDataModel.Instance;
2using LotSizingDataModel.Solution;
18 throw new ArgumentNullException(
19 nameof(mappingService));
22 public async ValueTask<LotSizingSolution>
24 LotSizingInstance instance,
27 CancellationToken cancellationToken =
default)
29 ArgumentNullException.ThrowIfNull(
32 ArgumentNullException.ThrowIfNull(
46 throw new InvalidOperationException(
47 "The metaheuristic run did not produce a feasible incumbent.");
53 var mathematicalResult =
59 await _mappingService.MapAsync(
65 IncludeZeroValues =
true,
66 RequireKnownCategories =
true,
67 RequireCompleteVariableValues =
true
74 throw new InvalidOperationException(
75 "Normalized mapping of the MetaheuristicsPlatform incumbent failed: " +
Defines the options used when mapping a mathematical solver result back to a normalized lot-sizing so...
Describes the result of mapping a mathematical solver result back to a normalized lot-sizing solution...
bool IsSuccessful
Gets or sets a value indicating whether mapping succeeded.
LotSizingSolution? Solution
Gets or sets the normalized lot-sizing solution produced by the mapping process.
string FailureMessage
Gets or sets the mapping failure message.
Represents a solver-independent mathematical optimization model.
Defines a service that maps a generic mathematical solver result to a normalized lot-sizing solution.