ILinearModel.SetCoefficient Method (Int32, Rational, Int32, Int32)

Solver Foundation 3.0

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Sets the coefficient of the Q matrix on the objective row.

Namespace:  Microsoft.SolverFoundation.Services
Assembly:  Microsoft.Solver.Foundation (in Microsoft.Solver.Foundation.dll)

void SetCoefficient(
	int vidRow,
	Rational num,
	int vidVar1,
	int vidVar2
)

Parameters

vidRow
Type: System.Int32
A row index.
num
Type: Microsoft.SolverFoundation.Common.Rational
A value.
vidVar1
Type: System.Int32
A column identifier.
vidVar2
Type: System.Int32
Another column variable identifier.

If num is zero, the entry is removed.

Show: