IRowVariableModel.SetValue Method

Solver Foundation 3.0

[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)

void SetValue(
	int vid,
	Rational value


Type: System.Int32
The variable index.
Type: Microsoft.SolverFoundation.Common.Rational
The new value.

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.