lingo中可以同时存在多个目标函数吗

2024-11-24 15:55:51
推荐回答(1个)
回答1:

不行

model:
z=x1+x2+x3+x4+x5+x6+x7+x8+x9;
w=5*x1+4*x2+4*x3+3*x4+4*x5+3*x6+2*x7+2*x8+3*x9;
min=z;
!max=w;
!min=0*z-1*w;
x1+x2+x3+x4+x5>2;
x3+x5+x6+x8+x9>3;
x4+x6+x7+x9>2;
2*x3-x1-x2<0;
x4-x7<0;
2*x5-x1-x2<0;
x6-x7<0;
x8-x5<0;
2*x9-x1-x2<0;
@bin(x1);@bin(x2);@bin(x3);@bin(x4);@bin(x5);@bin(x6);@bin(x7);@bin(x8);@bin(x9);
end