i++ 与数学排列组合的疑问
a1=5 b1=[-0.4,-0.2,0,0.2,0.4] c1=a1+b1 9c1+3c2+2c3+2c4+c5=67 要求c1 c2 c3 c4 c5的所有可能数组解a2=6 b2=[-0.4,-0.2,0,0.2,0.4] c2=a2+b2 2c3+2c4=18
a3=7 b3=[-0.4,-0.2,0,0.2,0.4] c3=a3+b3 2c3+1.4c4+0.6c5=20
a4=8 b4=[-0.4,-0.2,0,0.2,0.4] c4=a4+b4 ...
a5=9 b5=[-0.4,-0.2,0,0.2,0.4] c5=a5+b5 如上满足若干个等式
假如用i1=0;i1<5;i1++语句
b1=-0.4+i1*0.2
b2=-0.4+i2*0.2
b3=-0.4+i3*0.2
b4=-0.4+i4*0.2
b5=-0.4+i5*0.2
最后能得出所有可能解吗?i++语句是否会漏掉其中的排列组合可能解?
[ 本帖最后由 espressocis 于 2014-1-13 18:14 编辑 ]