Share via


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

  • 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

See Also

Reference

LinearModel Class

SetCoefficient Overload

Microsoft.SolverFoundation.Services Namespace