TermModel.SetBounds 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 bounds for the specified row.

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

public override void SetBounds(
	int vid,
	Rational lower,
	Rational upper


Type: System.Int32
The row index.
Type: Microsoft.SolverFoundation.Common.Rational
The lower bound of the row.
Type: Microsoft.SolverFoundation.Common.Rational
The upper bound of the row.


IRowVariableModel.SetBounds(Int32, Rational, Rational)
IRowVariableModel.SetBounds(Int32, Rational, Rational)

A row index can have an upper bound of infinity and/or a lower bound of negative infinity.

You should avoid specifying any other nonfinite value for bounds.

If a row index has a lower bound that is greater than its upper bound, the model is automatically infeasible, and an ArgumentException is thrown.