程序如下:
model:
min=1.0341*w1+1.1131*w2+5.771*w3+0.8000*w4;
w1^2+w2^2+w3^2+w4^2=1;
end
运行结果如下:
Local optimal solution found. Objective value: 5.771000 Extended solver steps: 5 Total solver iterations: 30
Variable Value Reduced Cost W1 0.000000 1.034100 W2 0.000000 1.113100 W3 1.000000 0.000000 W4 0.000000 0.8000000
Row Slack or Surplus Dual Price 1 5.771000 -1.000000 2 0.000000 -2.885500
这个结果显然是不对的
本人刚开始学LINGO,不知道问题在哪,还请大牛们帮忙,谢谢!


雷达卡




京公网安备 11010802022788号







