Export (0) Print
Expand All

LinearModel.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)

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

Parameters

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

Implements

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

If num is zero, the entry is removed.

Show:
© 2014 Microsoft