Файловый менеджер - Редактировать - /home/freeclou/resource.optimyar.com/Gams/ProductionInventory.gms
Назад
Sets T /t1*t7/ ; Parameters A c(t) h b U cap d(t) ; A = 100; c(t)= uniform(5,10); h = 2; b = 1.5; U = 200; cap = 100; d(t) = uniform(100,300); ; *************** Free Variable Z; Binary Variables x(t) ; Positive Variable Q(t) I(t) L(t) ; *L.fx('t7')=0; L.fx(t)$(ord(t)=card(t))=0; Equations obj cons1 cons2 cons3 ; obj.. z =e= sum(t,A*x(t) + c(t)*Q(t) + h*I(t) + b*L(t)) ; cons1(t).. Q(t) =L= U*x(t); Alias(t,tp); cons2(t).. Q(t) + I(t-1) =e= d(t)+sum(tp$(ord(tp)<ord(t)),L(tp)) + I(t) - L(t) ; * this cos. should de revised. cons3(t).. I(t) =l= cap; Model ProductionInventory / obj cons1 cons2 cons3 / ; Options MIP = CPLEX reslim =100 *maximum run time (sec.) optcr = 0 ; Solve ProductionInventory us MIP min Z; Display Z.l x.l Q.l d I.l L.l
| ver. 1.4 |
Github
|
.
| PHP 8.1.33 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка