Skip to content

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

Léela en español

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

日本語で読む

本页也有简体中文版本。

阅读简体中文版本

numeric_maximize function

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

How to write it

numeric_maximize(expr, variables)

In a bounded region the search is global; a note says when it stopped before proving it.

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

  • numeric_maximize⁡([xsin⁡(x),x≥0,x≤20],x)≈[18.258905014552553,[x→20.0]]\displaystyle \operatorname{numeric\_maximize}(\left[ x \sin(x), x \ge 0, x \le 20 \right], x) \approx \left[ 18.258905014552553, \left[ x \to 20.0 \right] \right]
    numeric_maximize([x*sin(x), x >= 0, x <= 20], x)

    In the solver, numeric_maximize([x*sin(x), x >= 0, x <= 20], x) gives [18.258905014552553, [x -> 20.0]].

    Open in the solver

Functions its examples use

  • sin

    Sine of an angle in radians.

  • maximize

    The maximum of an expression and the point where it is reached.

  • numeric_minimize

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

  • minimize

    The minimum of an expression and the point where it is reached.

  • max_value

    The maximum value of an expression.

  • min_value

    The minimum value of an expression.