AddConstraint Method (String, Double, Double, Expression)

Fabrica Bolos GLPK

Collapse imageExpand ImageCopy imageCopyHover image
Adds a new constraint to this model instance if it is consistent.

Namespace: Optimization
Assembly: Optimization.Framework (in Optimization.Framework.dll) Version: 0.3.1036.0

Syntax

C#
public void AddConstraint(
	string name,
	double lowerBound,
	double upperBound,
	Expression expression
)
Visual Basic
Public Sub AddConstraint ( _
	name As String, _
	lowerBound As Double, _
	upperBound As Double, _
	expression As Expression _
)
Visual C++
public:
void AddConstraint(
	String^ name, 
	double lowerBound, 
	double upperBound, 
	Expression^ expression
)

Parameters

name
Type: System..::..String
Unique name of the new constraint.
lowerBound
Type: System..::..Double
Lower bound (left hand side) of the new constraint.
upperBound
Type: System..::..Double
Upper bound (right hand side) of the new constraint.
expression
Type: Optimization..::..Expression
Expression of the new constraint.

See Also