Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

RowVariableModel.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 a row.

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

public virtual void SetBounds(
	int vid,
	Rational lower,
	Rational upper
)

Parameters

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

Implements

IRowVariableModel.SetBounds(Int32, Rational, Rational)

ExceptionCondition
ArgumentException

The row index has a lower bound that is greater than its upper bound.

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.

Show:
© 2015 Microsoft