CompactQuasiNewtonModel.SetValue Method

Sets the value for the specified variable index.

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

Syntax

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

Parameters

Implements

IRowVariableModel.SetValue(Int32, Rational)

Remarks

The solver ignores attempts to set a value for a row.

The default value of a variable index is Indeterminate.

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

For each variable index, the state associates a current value, represented as a Rational.

This state is used as a starting point when the model is solved.

.NET Framework Security

See Also

Reference

CompactQuasiNewtonModel Class

Microsoft.SolverFoundation.Solvers Namespace