lingo 一点语法问题语句是这样的max (a1+a2+a4+0.905a5+0.175a6+0.93a7+0.56a8+a9+0.335b2+0.655b3+0.47b4+0.83b5+0.635b6+b7+0.34b8+b9+0.44c1+0.22c2+c3+0.74c4+0.14c6+0.58c7+0.365c8+d1+0.295d2+d3+0.67d4+0.89d5+d7+0.625e3+0.505e4+e5+0.215e6+0.86e7
来源:学生作业帮助网 编辑:作业帮 时间:2024/11/15 19:46:11
lingo 一点语法问题语句是这样的max (a1+a2+a4+0.905a5+0.175a6+0.93a7+0.56a8+a9+0.335b2+0.655b3+0.47b4+0.83b5+0.635b6+b7+0.34b8+b9+0.44c1+0.22c2+c3+0.74c4+0.14c6+0.58c7+0.365c8+d1+0.295d2+d3+0.67d4+0.89d5+d7+0.625e3+0.505e4+e5+0.215e6+0.86e7
lingo 一点语法问题
语句是这样的
max (a1+a2+a4+0.905a5+0.175a6+0.93a7+0.56a8+a9+0.335b2+0.655b3+0.47b4+0.83b5+0.635b6+b7+0.34b8+b9+0.44c1+0.22c2+c3+0.74c4+0.14c6+0.58c7+0.365c8+d1+0.295d2+d3+0.67d4+0.89d5+d7+0.625e3+0.505e4+e5+0.215e6+0.86e7+0.045e9)/(a1+a2+a3+a4+a5+a6+a7+a8+a9+b1+b2+b3+b4+b5+b6+b7+b8+b9+c1+c2+c3+c4+c5+c6+c7+c8+c9+d1+d2+d3+d4+d5+d6+d7+d8+d9+e1+e2+e3+e4+e5+e6+e7+e8+e9)
SUBJECT TO
a1+a2+a3+a4+a5+a6+a7+a8+a9>1064
b1+b2+b3+b4+b5+b6+b7+b8+b9>1064
c1+c2+c3+c4+c5+c6+c7+c8+c9>1064
d1+d2+d3+d4+d5+d6+d7+d8+d9>1064
e1+e2+e3+e4+e5+e6+e7+e8+e9>1064
a1+b1+c1+d1+e1
lingo 一点语法问题语句是这样的max (a1+a2+a4+0.905a5+0.175a6+0.93a7+0.56a8+a9+0.335b2+0.655b3+0.47b4+0.83b5+0.635b6+b7+0.34b8+b9+0.44c1+0.22c2+c3+0.74c4+0.14c6+0.58c7+0.365c8+d1+0.295d2+d3+0.67d4+0.89d5+d7+0.625e3+0.505e4+e5+0.215e6+0.86e7
这是用lindo语言写的,用lingo运行当然有问题了
改成下面就可以在lingo里面运行了
max=(a1+a2+a4+0.905*a5+0.175*a6+0.93*a7+0.56*a8+a9+0.335*b2+0.655*b3+0.47*b4+0.83*b5+0.635*b6+b7+0.34*b8+b9+0.44*c1+0.22*c2+c3+0.74*c4+0.14*c6+0.58*c7+0.365*c8+d1+0.295*d2+d3+0.67*d4+0.89*d5+d7+0.625*e3+0.505*e4+e5+0.215*e6+0.86*e7+0.045*e9)/(a1+a2+a3+a4+a5+a6+a7+a8+a9+b1+b2+b3+b4+b5+b6+b7+b8+b9+c1+c2+c3+c4+c5+c6+c7+c8+c9+d1+d2+d3+d4+d5+d6+d7+d8+d9+e1+e2+e3+e4+e5+e6+e7+e8+e9);
a1+a2+a3+a4+a5+a6+a7+a8+a9>1064;
b1+b2+b3+b4+b5+b6+b7+b8+b9>1064;
c1+c2+c3+c4+c5+c6+c7+c8+c9>1064;
d1+d2+d3+d4+d5+d6+d7+d8+d9>1064;
e1+e2+e3+e4+e5+e6+e7+e8+e9>1064;
a1+b1+c1+d1+e1