NelderMeadSolver.SetUpperBound Method
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Sets the upper bound for a vid.
Namespace: Microsoft.SolverFoundation.Solvers
Assembly: Microsoft.Solver.Foundation (in Microsoft.Solver.Foundation.dll)
Syntax
'Declaration
Public Overrides Sub SetUpperBound ( _
vid As Integer, _
numHi As Rational _
)
public override void SetUpperBound(
int vid,
Rational numHi
)
public:
virtual void SetUpperBound(
int vid,
Rational numHi
) override
abstract SetUpperBound :
vid:int *
numHi:Rational -> unit
override SetUpperBound :
vid:int *
numHi:Rational -> unit
public override function SetUpperBound(
vid : int,
numHi : Rational
)
Parameters
- vid
Type: System.Int32
The variable index.
- numHi
Type: Microsoft.SolverFoundation.Common.Rational
The upper bound.
Implements
IRowVariableModel.SetUpperBound(Int32, Rational)
IRowVariableModel.SetUpperBound(Int32, Rational)
Exceptions
Exception | Condition |
---|---|
NotSupportedException | Not supported for goal rows. |
ArgumentException | Thrown if upper and lower bounds are incompatible. |
Remarks
Not supported by unconstrained solvers.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.