QuadraticProgram.SetQuadraticCoefficient Method

Definition

Namespace: Extreme.Mathematics.Optimization
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23

Overload List

SetQuadraticCoefficient(DecisionVariable, DecisionVariable, Double) Sets the coefficient of the quadratic term for the specified variables.
SetQuadraticCoefficient(String, String, Double) 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.
C#
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

ArgumentNullException

variable1 is null.

-or-

variable2 is null.

SetQuadraticCoefficient(String, String, Double)

Sets the coefficient of the quadratic term for the specified variables.
C#
public void SetQuadraticCoefficient(
	string name1,
	string name2,
	double value
)

Parameters

name1  String
The name of the first variable.
name2  String
The name of the second variable.
value  Double
The value of the coefficient.

Exceptions

ArgumentNullException

name1 is null.

-or-

name2 is null.

See Also