Export (0) Print
Expand All

NelderMeadSolver.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 upper and lower bounds for a vid.

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

public override void SetBounds(
	int vid,
	Rational numLo,
	Rational numHi
)

Parameters

vid
Type: System.Int32
The variable index.
numLo
Type: Microsoft.SolverFoundation.Common.Rational
The lower bound.
numHi
Type: Microsoft.SolverFoundation.Common.Rational
The upper bound.

Implements

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

ExceptionCondition
NotSupportedException

Not supported for goal rows.

ArgumentException

Thrown if upper and lower bounds are incompatible.

Not supported by unconstrained solvers. Logically, a vid may have an upper bound of Infinity and/or a lower bound of -Infinity. Specifying other non-finite values should be avoided. If a vid has a lower bound that is greater than its upper bound, the model is automatically infeasible, and ArgumentException is thrown.

Show:
© 2014 Microsoft