UnconstrainedNonlinearModel.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 Overridable Sub SetBounds ( _
    vid As Integer, _
    numLo As Rational, _
    numHi As Rational _
)
public virtual void SetBounds(
    int vid,
    Rational numLo,
    Rational numHi
)
public:
virtual void SetBounds(
    int vid, 
    Rational numLo, 
    Rational numHi
)
abstract SetBounds : 
        vid:int * 
        numLo:Rational * 
        numHi:Rational -> unit 
override SetBounds : 
        vid:int * 
        numLo:Rational * 
        numHi:Rational -> unit 
public function SetBounds(
    vid : int, 
    numLo : Rational, 
    numHi : Rational
)

Parameters

Implements

IRowVariableModel.SetBounds(Int32, Rational, Rational)

Exceptions

Exception Condition
NotSupportedException

Not supported by unconstrained solvers.

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, an ArgumentException is thrown.

.NET Framework Security

See Also

Reference

UnconstrainedNonlinearModel Class

Microsoft.SolverFoundation.Solvers Namespace