>
|
|
Solve a minimization problem specified using algebraic form. The objective function and the constraints are expressions in and .
>
|
|
| (1) |
Solve a minimization problem specified using operator form. The objective function and the constraints are procedures taking two scalar input parameters.
>
|
GlobalSolve(proc(x,y) 5*y^2-x*y+3 end, {proc(x,y) -x-y-8 end}, -10..0, -10..0);
|
| (2) |
Solve a minimization problem specified using Matrix form. The objective function is a procedure taking a two-dimensional Vector as an input parameter.
>
|
p:=proc(V) V[1]^2-V[2]^2 end proc:
|
>
|
nlc := proc(V,W) W[1] := V[2]^2-V[1]-5 end proc:
|
>
|
|
>
|
|
>
|
|
>
|
|
| (3) |