







![]() ![]() |
Optimization Framework |
Model..::..AddVariable Method (String, Double, Double, VariableType) |
Model Class See Also Send Feedback |
Adds a new variable 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 AddVariable( string name, double lowerBound, double upperBound, VariableType type ) |
Visual Basic |
---|
Public Sub AddVariable ( _ name As String, _ lowerBound As Double, _ upperBound As Double, _ type As VariableType _ ) |
Visual C++ |
---|
public: void AddVariable( String^ name, double lowerBound, double upperBound, VariableType type ) |
Parameters
- name
- Type: System..::..String
Unique name of the new variable.
- lowerBound
- Type: System..::..Double
Lower bound of the new variable.
- upperBound
- Type: System..::..Double
Upper bound of the new variable.
- type
- Type: Optimization..::..VariableType
Type of the new variable.