MathProgExtensionsWithBounds(VariableBuilderTypeDimension2, FunVec2`1Double, FunVec2`1Double) Method

Finalizes the variable builder and returns the resulting 2-dimensional variable VarD2.

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 VarD2 WithBounds(
	this VariableBuilderType<Dimension2> state,
	FunVec2<double> lower,
	FunVec2<double> upper
)

Parameters

state  VariableBuilderTypeDimension2
Current state of the variable builder.
lower  FunVec2Double
Functional 2-dimensional vector of lower bounds of the variables.
upper  FunVec2Double
Functional 2-dimensional vector of upper bounds of the variables.

Return Value

VarD2

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type VariableBuilderTypeDimension2. 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