.


:




:

































 

 

 

 


(A, B, C), .




, . , ..
I II III IV
A          
B          
C          

, I, II, III, IV 84, 42, 21 42 .

- :

: func:=3*A+6*B+4*C.

 

: 1∙+6∙B+3∙C<=84

3∙A+1∙B+3∙C<=42

1∙A+3∙B+2∙C<=21

2∙A+3∙B+4∙C<=42

A,B,C (> =0)

A,B,C .

A,B,C .

Maple simplex:

> func:=3*A+6*B+4*C;

> ogran:={1*A+6*B+3*C<=84, 3*A+1*B+3*C<=42, 1*A+3*B+2*C<=21, 2*A+3*B+4*C<=42};

> rez:=maximize(func, ogran, NONNEGATIVE);

> rez:=evalf(rez,3);

> F:=subs(rez,func);

Maple Optimization:

>restart;

>with(Optimization);

[ImportMPS, Interactive, LPSolve, LSSolve, Maximize, Minimize, NLPSolve, QPSolve]

>func:=3*A+6*B+4*C;

3A+6B+4C

 

>ogran:={1*A+6*B+3*C<=84, 3*A+1*B+3*C<=42, 1*A+3*B+2*C<=21, 2*A+3*B+4*C<=42};

{1A+6B+3C<=84, 3A+1B+3C<=42, 1A+3B+2C<=21, 2A+3B+4C<=42};

 

>LPSolve(func, ogran, assume={nonnegative, integer},maximize);

[54., [A=12, B=3, C=0]]

, simplex . . , Optimization .

3. , Optimization.

 

. . j- : aij+kij xj, j+ ljxj

 

xj j- ,
aij i- j- ,
kij ,
j- j- ,
lj , .

 

, .

1.

 

1.

(i) aij j kij j
       
        0,1 0,05
        0,2 0,2
        0,1 0,15
(. .)      
-0,08 -0,1  

 

.

:

f(x1,x2)=(100-0.8x1)x1+ (120-0.1x2)x2 à max,

f(x1,x2)=100x1-0.8x12+120x2-0.1x22 à max.

:

(15+0.1x1)x1+(18+0.05x2)x2 ≤ 1350

(12+0.2x1)x1+(16+0.2x2)x2 ≤1400

(17+0.1x1)x1+(14+0.15x2)x2 ≤ 1580

 

15x1+0.1x12+18x2+0.05x22 ≤ 1350

12x1+0.2x12+16x2+0.2x22 ≤ 1400

17x1+0.1x12+14x2+0.15x22 ≤ 1580

X1 ≥ 0, x2 ≥ 0

. ., .

Maple Optimization:

>restart:with(Optimization);

>func:=100*x1-0.08*x1^2+120*x2-0.1*x2^2;

>ogran:={15*x1+0.1*x1^2+18*x2+0.05*x2^2<=1350,12*x1+0.2*x1^2+16*x2+0.2*x2^2<=1400, 17*x1+0.1*x1^2+14*x2+0.15*x2^2<=1580};

 

>rez:=NLPSolve(func,organ,assume=nonnegative,maximize);

 

>rez:=evalf(rez,3);

 

7220 . . , 32,6 ., 34,7 ..

, Maple .

 

 


 

9

 





:


: 2016-11-24; !; : 1962 |


:

:

, , .
==> ...

1960 - | 1623 -


© 2015-2024 lektsii.org - -

: 0.015 .