# numeric_minimize function

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

## How to write it

### numeric_minimize(expr, variables)

In a bounded region the search is global, whole unknowns included; a pole answers -inf.

**expr**

The objective, or the objective first and then its conditions, in brackets. Takes an expression, or 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{numeric\_minimize}\left(\left[ \sin(3 x)+\frac{(x-1)^{2}}{10}, x \ge -10, x \le 10 \right], x\right) \approx \left[ -0.9681275146103557, \left[ x \to 1.5583849056881718 \right] \right]$

  `numeric_minimize([sin(3x) + (x - 1)^2/10, x >= -10, x <= 10], x)`

  In the solver, `numeric_minimize([sin(3x) + (x - 1)^2/10, x >= -10, x <= 10], x)` gives `[-0.9681275146103557, [x -> 1.5583849056881718]]`.

  [Open in the solver](https://hilberon.com/?q=numeric_minimize%28%5Bsin%283x%29%20%2B%20%28x%20-%201%29%5E2%2F10%2C%20x%20%3E%3D%20-10%2C%20x%20%3C%3D%2010%5D%2C%20x%29)
- $\displaystyle \operatorname{numeric\_minimize}(\left[ (x-2.3)^{2}+\sin(y), x \ge -10, x \le 10, y \ge -5, y \le 5, y \in \mathbb{Z} \right], \left[ x, y \right]) \approx \left[ -0.9589242746631385, \left[ x \to 2.3, y \to 5 \right] \right]$

  `numeric_minimize([(x - 2.3)^2 + sin(y), x >= -10, x <= 10, y >= -5, y <= 5, y : integer], [x, y])`

  In the solver, `numeric_minimize([(x - 2.3)^2 + sin(y), x >= -10, x <= 10, y >= -5, y <= 5, y : integer], [x, y])` gives `[-0.9589242746631385, [x -> 2.3, y -> 5]]`.

  [Open in the solver](https://hilberon.com/?q=numeric_minimize%28%5B%28x%20-%202.3%29%5E2%20%2B%20sin%28y%29%2C%20x%20%3E%3D%20-10%2C%20x%20%3C%3D%2010%2C%20y%20%3E%3D%20-5%2C%20y%20%3C%3D%205%2C%20y%20%3A%20integer%5D%2C%20%5Bx%2C%20y%5D%29)
- $\displaystyle \operatorname{numeric\_minimize}\left(\left[ \frac{1}{x}+x, x \ge -1, x \le 2 \right], x\right) \approx \left[ -\infty, \left[ x \to 0 \right] \right]$

  `numeric_minimize([1/x + x, x >= -1, x <= 2], x)`

  In the solver, `numeric_minimize([1/x + x, x >= -1, x <= 2], x)` gives `[-inf, [x -> 0]]`.

  [Open in the solver](https://hilberon.com/?q=numeric_minimize%28%5B1%2Fx%20%2B%20x%2C%20x%20%3E%3D%20-1%2C%20x%20%3C%3D%202%5D%2C%20x%29)

## Functions its examples use

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

  Sine of an angle in radians.

## Related functions

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

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

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

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

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

  The minimum value of an expression.

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