ILinearModel.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
Sub SetCoefficient ( _
    vidRow As Integer, _
    num As Rational, _
    vidVar1 As Integer, _
    vidVar2 As Integer _
)
void SetCoefficient(
    int vidRow,
    Rational num,
    int vidVar1,
    int vidVar2
)
void SetCoefficient(
    int vidRow, 
    Rational num, 
    int vidVar1, 
    int vidVar2
)
abstract SetCoefficient : 
        vidRow:int * 
        num:Rational * 
        vidVar1:int * 
        vidVar2:int -> unit 
function SetCoefficient(
    vidRow : int, 
    num : Rational, 
    vidVar1 : int, 
    vidVar2 : int
)

Parameters

  • vidVar2
    Type: System.Int32
    Another column variable identifier.

Remarks

If num is zero, the entry is removed.

.NET Framework Security

See Also

Reference

ILinearModel Interface

SetCoefficient Overload

Microsoft.SolverFoundation.Services Namespace