>
|
|
Solve a minimization problem using operator form. The objective function is specified as a procedure taking two input parameters, corresponding to the problem variables, and returning a scalar.
>
|
GlobalSolve(proc(x,y) x^2-y end proc, -1..1, -1..1);
|
| (1) |
Solve a minimization problem with the objective function and constraints and . Each constraint is specified in the same way as the objective function.
>
|
|
| (2) |
Find the global minimum of a piecewise function.
>
|
p:= proc(x)
piecewise(x < -1, x^4-x+2, x < 1, x^3+x^2+7, x < 3, x^2+3)
end proc;
|
| (3) |
>
|
|
| (4) |