Skip to content

Esta página también está en español.

Léela en español

このページは日本語でも読めます。

日本語で読む

本页也有简体中文版本。

阅读简体中文版本

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⁡(x2−2x,x)=−1\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
  • min_value⁡([x+y,x+2y≥4,3x+y≥6,x≥0,y≥0],[x,y])=145\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
  • 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.