Export (0) Print
Expand All

UnconstrainedNonlinearModel.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 of model identified by the vid. The default value for a vid is Indeterminate.

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

public void SetValue(
	int vid,
	Rational value
)

Parameters

vid
Type: System.Int32
a variable index
value
Type: Microsoft.SolverFoundation.Common.Rational
The value for the variable.

Implements

IRowVariableModel.SetValue(Int32, Rational)

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.

Show:
© 2014 Microsoft