[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Sets the value of model identified by the vid. The default value for a vid is Indeterminate.
Assembly: Microsoft.Solver.Foundation (in Microsoft.Solver.Foundation.dll)
'Declaration Public Sub SetValue ( _ vid As Integer, _ value As Rational _ )
public void SetValue( int vid, Rational value )
public: virtual void SetValue( int vid, Rational value ) sealed
abstract SetValue : vid:int * value:Rational -> unit override SetValue : vid:int * value:Rational -> unit
public final function SetValue( vid : int, value : Rational )
a variable index
The value for the variable.
This class can be used to represent not just a model, but also a current state for the model’s variables. The state associates with each vid a current value represented as a Rational. This state will be used as a starting point when solving. Setting a value for a row is ignored by the solver.
.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.