LinearModel.SetCoefficient Method (Int32, Rational, Int32, Int32)
[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)
Syntax
'Declaration
Public Overridable Sub SetCoefficient ( _
vidRow As Integer, _
num As Rational, _
vidVar1 As Integer, _
vidVar2 As Integer _
)
public virtual void SetCoefficient(
int vidRow,
Rational num,
int vidVar1,
int vidVar2
)
public:
virtual void SetCoefficient(
int vidRow,
Rational num,
int vidVar1,
int vidVar2
)
abstract SetCoefficient :
vidRow:int *
num:Rational *
vidVar1:int *
vidVar2:int -> unit
override SetCoefficient :
vidRow:int *
num:Rational *
vidVar1:int *
vidVar2:int -> unit
public function SetCoefficient(
vidRow : int,
num : Rational,
vidVar1 : int,
vidVar2 : int
)
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)
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.