ILinearModel.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 of a linear model.
Namespace: Microsoft.SolverFoundation.Services
Assembly: Microsoft.Solver.Foundation (in Microsoft.Solver.Foundation.dll)
Syntax
'Declaration
Sub SetValue ( _
vid As Integer, _
num As Rational _
)
void SetValue(
int vid,
Rational num
)
void SetValue(
int vid,
Rational num
)
abstract SetValue :
vid:int *
num:Rational -> unit
function SetValue(
vid : int,
num : Rational
)
Parameters
- vid
Type: System.Int32
A variable index.
- num
Type: Microsoft.SolverFoundation.Common.Rational
The current value.
Remarks
The default value for a variable index is Indeterminate.
An ILinearModel object can represent a linear model or the current state of the model's user and row variables. The state associates each variable index with a current value, represented as a Rational, and a basis status, represented as a boolean. This state may be used as a starting point when solving, and the state may be updated by a solve attempt. Some solvers may ignore this initial state for rows and even for variables.
.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.