MathProgExtensionsWithBounds(VariableBuilderTypeDimension0, FuncDouble, FuncDouble) Method

Finalizes the variable builder and returns the resulting 0-dimensional variable VarD0.

The resulting variable has the given lower and upper bounds.

Definition

Namespace: Orx.MathProg
Assembly: Orx.MathProg (in Orx.MathProg.dll) Version: 1.0.0
C#
public static VarD0 WithBounds(
	this VariableBuilderType<Dimension0> state,
	Func<double> lower,
	Func<double> upper
)

Parameters

state  VariableBuilderTypeDimension0
Current state of the variable builder.
lower  FuncDouble
Function to create the lower bound of the variable.
upper  FuncDouble
Function to create the upper bound of the variable.

Return Value

VarD0

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type VariableBuilderTypeDimension0. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

See Also