ILinearModel.SetCoefficient Method (Int32, Int32, Rational)
[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 A matrix in a linear model.
Namespace: Microsoft.SolverFoundation.Services
Assembly: Microsoft.Solver.Foundation (in Microsoft.Solver.Foundation.dll)
Syntax
'Declaration
Sub SetCoefficient ( _
vidRow As Integer, _
vidVar As Integer, _
num As Rational _
)
void SetCoefficient(
int vidRow,
int vidVar,
Rational num
)
void SetCoefficient(
int vidRow,
int vidVar,
Rational num
)
abstract SetCoefficient :
vidRow:int *
vidVar:int *
num:Rational -> unit
function SetCoefficient(
vidRow : int,
vidVar : int,
num : Rational
)
Parameters
- vidRow
Type: System.Int32
A row identifier.
- vidVar
Type: System.Int32
A column identifier.
- num
Type: Microsoft.SolverFoundation.Common.Rational
A value.
Remarks
If num is zero, the entry is removed.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.