综合讨论版 #94293 层

SOS!救命啊

楼主 · 1 楼
我算了一下,你这个问题没有可行解。image/bmp未命名.bmp
2 楼
Set Yij to binary,
and add constraints like:
Yij*M>=Xij
(Yij-1)*M<=Xij,
where M is a very large constant.
3 楼
min 3x11+11x12+3x13+10x14+1x21+9x22+2x23+8x24+7x31+4x32+10x33+5x34
subject to
x11+x12+x13+x14<80
x21+x22+x23+x24<70
x31+x32+x33+x34<60
x11+x21+x31=30
x12+x22+x32=60
x13+x23+x33=50
x14+x24+x34=60
y11+y21+y31=1
y12+y22+y32=1
y13+y23+y33=1
y14+y24+y34=1
int yij
i=1,2,3
j=1,2,3,4
拜托大牛们帮帮忙啊 Yij是根据Xij来定义的,Xij>0则 Yij=1,否则的话为0
用LINDO的什么命令可以实现啊 ~~BOW~~[SIZE=7]