1using LotSizingDataModel.Instance;
31 throw new ArgumentNullException(
32 nameof(mappingService));
44 public async ValueTask<UlsAlgorithmsExactAdapterResult>
46 LotSizingInstance instance,
49 CancellationToken cancellationToken =
default)
51 ArgumentNullException.ThrowIfNull(
54 ArgumentNullException.ThrowIfNull(
68 var mathematicalResult =
75 await _mappingService.MapAsync(
81 IncludeZeroValues =
true,
82 RequireKnownCategories =
true,
83 RequireCompleteVariableValues =
true
90 throw new InvalidOperationException(
91 "The normalized LotSizingDataModel mapping of the external exact ULS result failed: " +
End-to-end LotSizingDataModel result of an external exact ULSAlgorithms adapter execution.
Executes one explicitly selected exact ULSAlgorithms method. No method fallback is permitted.
Immutable external exact-solve evidence retained before projection back into LotSizingDataModel.
async ValueTask< UlsAlgorithmsExactAdapterResult > SolveAndMapAsync(LotSizingInstance instance, MathematicalModel canonicalModel, UlsAlgorithmsExactMethod method, CancellationToken cancellationToken=default)
UlsAlgorithmsExactLotSizingAdapter(IMathematicalSolutionMappingService mappingService)
Projects a validated ULSAlgorithms exact result onto the already-built canonical LotSizingDataModel m...
Normalized deterministic uncapacitated single-item problem passed to ULSAlgorithms.
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.
UlsAlgorithmsExactMethod
Exact ULSAlgorithms methods deliberately exposed by the LotSizingDataModel alpha.34 bridge.