MathematicalModel Build(bool clone=true)
Builds and validates the 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.
MathematicalModel Model
Gets the mathematical model currently being built.
MathematicalModelBuildContext SetObjective(MathematicalObjective objective)
Sets the mathematical objective.
MathematicalModelBuilder ModelBuilder
Gets the mathematical model builder.
LinearConstraint AddConstraint(string name, LinearExpression leftHandSide, MathematicalConstraintSense sense, double rightHandSide, string domainKey="", string description="")
Adds a linear constraint to the mathematical model.
MathematicalModelBuildContext SetDescription(string description)
Sets the model description.
MathematicalVariable GetVariable(string domainKey)
Gets a required mathematical variable from its business-domain key.
MathematicalModelBuildContext(string modelName)
Initializes a mathematical-model build context.
MathematicalVariableRegistry VariableRegistry
Gets the registry that maps business-domain keys to mathematical variables.