线性规划问题求解

2024-11-29 03:49:27
推荐回答(1个)
回答(1):

这个答案还满意不

取整后的结果




sets:
 siliao/1..5/:dbz,kwz,wss,jg,x;
endsets
data:
 dbz = 3 2 1 6 18;
 kwz = 1 0.5 0.2 2 0.5;
 wss = 0.5 1.0 0.2 2 0.8;
 jg = 0.2 0.7 0.4 0.3 0.8;
enddata
min = @sum(siliao(i):jg(i)*x(i));
@sum(siliao(i):dbz(i)* x(i))>=700;
@sum(siliao(i):kwz(i)* x(i))>=30;
@sum(siliao(i):wss(i)* x(i))>=100;
@for(siliao(i):@gin(x));