Previous Up Next

6.19.3  Maximum and minimum of an expression: fMax fMin

The fMax and fMin commands find where maxima and minima occur. They can do this for expressions of one variable or for expressions of several variables subject to a set of constraints, either equalities or inequalities.

The find the maximum and minimum of an expression with one variable:


Examples.


The find the maximum and minimum of an expression with several variables subject to constraints:


Examples.


Although the initial point is required to be feasible, the algorithm will sometimes succeed even with a poor choice of initial point. Note that the initial value of a variable must not be zero.


Previous Up Next