Quadratic Program.Set Quadratic Coefficient Method
Definition
Namespace: Numerics.NET.Optimization
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
Overload List
Set | Sets the coefficient of the quadratic term for the specified variables. |
Set | Sets the coefficient of the quadratic term for the specified variables. |
SetQuadraticCoefficient(DecisionVariable, DecisionVariable, Double)
Sets the coefficient of the quadratic term for the specified variables.
public void SetQuadraticCoefficient(
DecisionVariable variable1,
DecisionVariable variable2,
double value
)
Parameters
- variable1 DecisionVariable
- The first variable.
- variable2 DecisionVariable
- The second variable.
- value Double
- The value of the coefficient.
Exceptions
Argument | variable1 is null. -or- variable2 is null. |
SetQuadraticCoefficient(String, String, Double)
Sets the coefficient of the quadratic term for the specified variables.
public void SetQuadraticCoefficient(
string name1,
string name2,
double value
)
Parameters
Exceptions
Argument | name1 is null. -or- name2 is null. |