IRowVariableModel.SetValue Method

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

Sets the value for the specified variable index.

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

Syntax

'Declaration
Sub SetValue ( _
    vid As Integer, _
    value As Rational _
)
void SetValue(
    int vid,
    Rational value
)
void SetValue(
    int vid, 
    Rational value
)
abstract SetValue : 
        vid:int * 
        value:Rational -> unit 
function SetValue(
    vid : int, 
    value : Rational
)

Parameters

Remarks

The default value of a variable index is Indeterminate.

An IRowVariableModel can be used to represent not just a linear model, but also the current state for the user and row variables of a model.

The state associates a current value, represented as a Rational, with each variable index.

This state might be used as a starting point when a model is being solved, and it may be updated by a solve attempt.

Some solvers may ignore this initial state for rows and, in some cases, for variables.

.NET Framework Security

See Also

Reference

IRowVariableModel Interface

Microsoft.SolverFoundation.Services Namespace