Share via


NelderMeadSolver.SetBounds Method

[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)

Syntax

'Declaration
Public Overrides Sub SetBounds ( _
    vid As Integer, _
    numLo As Rational, _
    numHi As Rational _
)
public override void SetBounds(
    int vid,
    Rational numLo,
    Rational numHi
)
public:
virtual void SetBounds(
    int vid, 
    Rational numLo, 
    Rational numHi
) override
abstract SetBounds : 
        vid:int * 
        numLo:Rational * 
        numHi:Rational -> unit 
override SetBounds : 
        vid:int * 
        numLo:Rational * 
        numHi:Rational -> unit 
public override function SetBounds(
    vid : int, 
    numLo : Rational, 
    numHi : Rational
)

Parameters

Implements

IRowVariableModel.SetBounds(Int32, Rational, Rational)
IRowVariableModel.SetBounds(Int32, Rational, 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. 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.

.NET Framework Security

See Also

Reference

NelderMeadSolver Class

Microsoft.SolverFoundation.Solvers Namespace