min_value function
The minimum value of an expression.
How to write it
min_value(expr, variables)
The least value over every real value of the variables.
- expr
- Any expression: a number, a formula, a list or a matrix. Takes an expression.
- variables
- A variable, or a list of variables such as [x, y]. Takes a variable, or a list of variables.
min_value(expr, variables)
The least value under conditions, without the point.
- expr
- The objective first, then its conditions, in brackets. Takes a list.
- variables
- A variable, or a list of variables such as [x, y]. Takes a variable, or a list of variables.
Examples
min_value(x^2 - 2x, x)In the solver,
Open in the solvermin_value(x^2 - 2x, x)gives-1.min_value([x + y, x + 2y >= 4, 3x + y >= 6, x >= 0, y >= 0], [x, y])In the solver,
Open in the solvermin_value([x + y, x + 2y >= 4, 3x + y >= 6, x >= 0, y >= 0], [x, y])gives14/5.
Related functions
- max_value
The maximum value of an expression.
- minimize
The minimum of an expression and the point where it is reached.
- maximize
The maximum of an expression and the point where it is reached.
- numeric_maximize
The maximum of an expression found numerically, with the point where it is reached.
- numeric_minimize
The minimum of an expression found numerically, with the point where it is reached.