3using System.Threading.Tasks;
4using LotSizingDataModel.Instance;
46 LotSizingInstance instance,
49 ArgumentNullException.ThrowIfNull(
52 ArgumentNullException.ThrowIfNull(
78 LotSizingInstance instance,
81 CancellationToken cancellationToken =
default)
83 ArgumentNullException.ThrowIfNull(
86 ArgumentNullException.ThrowIfNull(
89 ArgumentNullException.ThrowIfNull(
92 if (
string.IsNullOrWhiteSpace(
95 throw new InvalidOperationException(
96 "A standard variable-family builder must expose " +
97 "a non-empty family identifier.");
102 cancellationToken.ThrowIfCancellationRequested();
130 LotSizingInstance instance,
133 CancellationToken cancellationToken);
161 double upperBound =
double.PositiveInfinity,
162 string description =
"")
164 ArgumentNullException.ThrowIfNull(
198 string description =
"")
200 ArgumentNullException.ThrowIfNull(
232 ArgumentNullException.ThrowIfNull(
Provides the shared state required while constructing a solver-independent mathematical model.
MathematicalVariable AddVariable(string name, string domainKey, MathematicalVariableType variableType, double lowerBound=0.0, double upperBound=double.PositiveInfinity, string description="")
Creates, adds, and registers a mathematical variable.
Represents one decision variable in a mathematical optimization model.
MathematicalVariableType
Identifies the domain of a mathematical decision variable.