, . (N ) y x1 x2, [a1, b1] [a2, b2] . x1 x2, (26.3) .
x [a, b] Rnd. x=(b-a)×Rnd(1)+a.
1. : a1, b1, a2, b2, N A, , .
2. yopt=A, x1opt=a1, x2opt=a2.
3. i=1.
4. x1=(b1-a1)×Rnd(1)+a1, x2=(b2-a2)×Rnd(1)+a2.
5. : g(x1,x2)<=0, 8, .
6. y=f(x1,x2).
7. y <yopt, yopt=y, x1opt=x1, x2opt=x2, .
8. i=i+1
9. i<=N, 4, 10.
10. x1opt, x2opt yopt.
Mathcad Excel
Mathcad , . .
x 1 x 2,
y=1,7+4,56x1-3x2-0,69x1x2-0,44x22
:
3 <=x1<=4, 0,1<=x2<=0,9
Mathcad :
f(x1, x2):= 1,7+4,56x1-3x2-0,69x1x2-0,44x22
x1:= 3
x2:=0.1
Given
4≥ x1 ≥ 3
0.9 ≥ x2 ≥ 0.1
R:= maximize(f, x1, x2)
R =
minimize , .
Excel , . , , .
, 1 ( 3);
1 ( 0,);
1 :
=1,7+4,56∙1-3∙1-0,69∙1∙1-0,44∙1^2
/ . ( 1), , , 1 1.
.
.
, , /.