ITermModel.AddConstant Method

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Adds a constant to a model.

Namespace:  Microsoft.SolverFoundation.Services
Assembly:  Microsoft.Solver.Foundation (in Microsoft.Solver.Foundation.dll)

Syntax

'Declaration
Function AddConstant ( _
    value As Rational, _
    <OutAttribute> ByRef vid As Integer _
) As Boolean
bool AddConstant(
    Rational value,
    out int vid
)
bool AddConstant(
    Rational value, 
    [OutAttribute] int% vid
)
abstract AddConstant : 
        value:Rational * 
        vid:int byref -> bool 
function AddConstant(
    value : Rational, 
    vid : int
) : boolean

Parameters

  • vid
    Type: System.Int32%
    The row or variable index of the new constant, or the row or variable index of an existing constant that has the same value.

Return Value

Type: System.Boolean
true if a new constant is added; false if an existing constant is re-used.

Remarks

Constants are considered rows.

.NET Framework Security

See Also

Reference

ITermModel Interface

Microsoft.SolverFoundation.Services Namespace