LinearModel.AddRow Method (Object, SpecialOrderedSetType, Int32%)
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Adds a reference row for a special ordered set to a linear model.
Namespace: Microsoft.SolverFoundation.Services
Assembly: Microsoft.Solver.Foundation (in Microsoft.Solver.Foundation.dll)
Syntax
'Declaration
Public Overridable Function AddRow ( _
key As Object, _
sos As SpecialOrderedSetType, _
<OutAttribute> ByRef vidRow As Integer _
) As Boolean
public virtual bool AddRow(
Object key,
SpecialOrderedSetType sos,
out int vidRow
)
public:
virtual bool AddRow(
Object^ key,
SpecialOrderedSetType sos,
[OutAttribute] int% vidRow
)
abstract AddRow :
key:Object *
sos:SpecialOrderedSetType *
vidRow:int byref -> bool
override AddRow :
key:Object *
sos:SpecialOrderedSetType *
vidRow:int byref -> bool
public function AddRow(
key : Object,
sos : SpecialOrderedSetType,
vidRow : int
) : boolean
Parameters
- key
Type: System.Object
A key for the row.
- sos
Type: Microsoft.SolverFoundation.Services.SpecialOrderedSetType
A special ordered set.
- vidRow
Type: System.Int32%
A row identifier.
Return Value
Type: System.Boolean
true if the row is added to the model successfully; otherwise, false.
Implements
ILinearModel.AddRow(Object, SpecialOrderedSetType, Int32%)
Remarks
Each special ordered set has one reference row.
.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.