请各位高手们帮忙解决个目标规划问题,谢谢啦!!!
请各位高手们帮忙解决个目标规划问题,谢谢啦!!! 不要这样吧,解决问题还要扣我的积分 呵呵 不好意思啦 麻烦帮忙解决下面这个程序:sets:
Level/1..4/: P, z, Goal;
S_Con_Num/1..10/: dplus, dminus;
Plant /1..3/: a;
Customer /1..4/: b;
Routes(Plant, Customer): c, x;
endsets
data:
P= ? ? ? ?;
Goal = ? ? ? 0;
a = 100 150 120;
b = 100 100 100 100;
c = 7 9 12 5
6 8 15 5
12 6 9 7;
enddata
min=@sum(Level: P * z);
z(1) = dminus(1)+dminus(2)+dminus(3)+dminus(4);
z(2) = dminus(5)+dminus(6)+dminus(7)+dminus(8);
z(3) = dplus(9);
z(4) = dplus(10);
@for(Plant(i):
@sum(Customer(j): x(i,j)) <= a(i));
@for(Customer(j):
@sum(Plant(i): x(i,j))+dminus(j)-dplus(j)=0.8*b(j);
@sum(Plant(i): x(i,j))+dminus(4+j)-dplus(4+j)=b(j);
);
@sum(Routes: c*x)+dminus(9)-dplus(9)=2673;
@sum(Routes: c*x)+dminus(10)-dplus(10)=2430;
@for(Level(i)|i #lt# @size(Level):
@bnd(0,z(i),Goal(i));
);
页:
[1]