运行程序lingo程序,出现unexpected jacobian overflow

问题描述:

运行程序lingo程序,出现unexpected jacobian overflow
min=0.125*@sqrt(x1^2+(x2-x1)^2)+0.125*@sqrt((x2-x1)^2+(x3-x2)^2)+0.125*@sqrt((x4-x2)^2+x3^2)+0.125*@sqrt(x1^2+x4^2)
+0.125*@sqrt((x1-5)^2+5^2)+0.125*@sqrt((x1-5)^2+(x2-5)^2)+0.125*@sqrt((x2-5)^2+(x3-5)^2)+0.125*@sqrt((x4-5)^2+5^2)
x1

min这句后面一定要写分号啊 你的lingo版本不好 最好换一个
min=0.125*@sqrt(x1^2+(x2-x1)^2)+0.125*@sqrt((x2-x1)^2+(x3-x2)^2)+0.125*@sqrt((x4-x2)^2+x3^2)+0.125*@sqrt(x1^2+x4^2)
+0.125*@sqrt((x1-5)^2+5^2)+0.125*@sqrt((x1-5)^2+(x2-5)^2)+0.125*@sqrt((x2-5)^2+(x3-5)^2)+0.125*@sqrt((x4-5)^2+5^2)
x1