# 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

- $\displaystyle \operatorname{min\_value}(x^{2}-2 x, x) = -1$

  `min_value(x^2 - 2x, x)`

  In the solver, `min_value(x^2 - 2x, x)` gives `-1`.

  [Open in the solver](https://hilberon.com/?q=min_value%28x%5E2%20-%202x%2C%20x%29)
- $\displaystyle \operatorname{min\_value}(\left[ x+y, x+2 y \ge 4, 3 x+y \ge 6, x \ge 0, y \ge 0 \right], \left[ x, y \right]) = \frac{14}{5}$

  `min_value([x + y, x + 2y >= 4, 3x + y >= 6, x >= 0, y >= 0], [x, y])`

  In the solver, `min_value([x + y, x + 2y >= 4, 3x + y >= 6, x >= 0, y >= 0], [x, y])` gives `14/5`.

  [Open in the solver](https://hilberon.com/?q=min_value%28%5Bx%20%2B%20y%2C%20x%20%2B%202y%20%3E%3D%204%2C%203x%20%2B%20y%20%3E%3D%206%2C%20x%20%3E%3D%200%2C%20y%20%3E%3D%200%5D%2C%20%5Bx%2C%20y%5D%29)

## Related functions

- [max_value](https://hilberon.com/library/max_value)

  The maximum value of an expression.
- [minimize](https://hilberon.com/library/minimize)

  The minimum of an expression and the point where it is reached.
- [maximize](https://hilberon.com/library/maximize)

  The maximum of an expression and the point where it is reached.
- [numeric_maximize](https://hilberon.com/library/numeric_maximize)

  The maximum of an expression found numerically, with the point where it is reached.
- [numeric_minimize](https://hilberon.com/library/numeric_minimize)

  The minimum of an expression found numerically, with the point where it is reached.

---
Source: https://hilberon.com/library/min_value
