
解 建立目标约束。
(1)装配线正常生产

(2)销售目标

(3)加班限制

写出目标规划的数学模型

写出相应的LINGO程序如下:
model:
sum(variable(j):c(i,j)*x(j))+dminus(i)-dplus(i)=g(i));
bnd(0,z(i),goal)); ' ~) F6 r/ h+ n$ I0 V: u
+ O% g$ |- @0 |) z) d! S
) V9 Y( z+ q; @7 V) F: _


sum(customer(j):x(i,j))<a(i)); x(3,1)+dminus(1)-dplus(1)=100; ' W. j; }1 `* R1 P* |& y
sum(plant(i):x(i,j))+dminus(1+j)-dplus(1+j)=0.8 *b(j);
bnd(0,z(i),goal));
2 P! E6 W/ M, t) Y& w8 b
4 R9 p3 q# a/ K* N
! }& E& _! W9 \; @& v# S% V, N
1 U" t; ]% `, d



4 D2 }& e) P( ?$ ^- s5 t4 L

| 欢迎光临 数学建模社区-数学中国 (http://www.madio.net/) | Powered by Discuz! X2.5 |