Function Min(x1, x2, ...)

Min

Min(
    x1,      ! (input) numerical, string or element expression
    x2,      ! (input) numerical, string or element expression
    ..
    )

Arguments

x1,x2,\(\dots\)

Multiple numerical, string or element expressions.

Return Value

The function Min returns the smallest number, the string lowest in the lexicographical ordering, or the element value with the lowest ordinal value, among \(x1,x2,\dots\)

Note

The function Min can be used in constraints of nonlinear mathematical programs. However, nonlinear solvers may experience convergence problems if the first order derivatives of two arguments between which the Min function switches are discontinous.

See also

The function Max. Arithmetic functions are discussed in full detail in Arithmetic Functions of the Language Reference.