(急!在线等)用lingo 10.0建模时出现以下错误:invalid input.A syntax error has occured.代码如下:MODEL:DATA:M=1;ENDDATAmin=(13.6+1000*M)*x1+(12.45+800*M)*x2+(12.3+800*M)*x3+(10.15+1000*M)*x4; 目标函数;x1=10;x1+x2=25;x1+x2
来源:学生作业帮助网 编辑:作业帮 时间:2024/08/28 02:49:31
![(急!在线等)用lingo 10.0建模时出现以下错误:invalid input.A syntax error has occured.代码如下:MODEL:DATA:M=1;ENDDATAmin=(13.6+1000*M)*x1+(12.45+800*M)*x2+(12.3+800*M)*x3+(10.15+1000*M)*x4; 目标函数;x1=10;x1+x2=25;x1+x2](/uploads/image/z/10130464-64-4.jpg?t=%EF%BC%88%E6%80%A5%21%E5%9C%A8%E7%BA%BF%E7%AD%89%EF%BC%89%E7%94%A8lingo+10.0%E5%BB%BA%E6%A8%A1%E6%97%B6%E5%87%BA%E7%8E%B0%E4%BB%A5%E4%B8%8B%E9%94%99%E8%AF%AF%EF%BC%9Ainvalid+input.A+syntax+error+has+occured.%E4%BB%A3%E7%A0%81%E5%A6%82%E4%B8%8B%EF%BC%9AMODEL%EF%BC%9ADATA%3AM%3D1%3BENDDATAmin%3D%2813.6%2B1000%2AM%29%2Ax1%2B%2812.45%2B800%2AM%29%2Ax2%2B%2812.3%2B800%2AM%29%2Ax3%2B%2810.15%2B1000%2AM%29%2Ax4%3B+%E7%9B%AE%E6%A0%87%E5%87%BD%E6%95%B0%EF%BC%9Bx1%3D10%3Bx1%2Bx2%3D25%3Bx1%2Bx2)
(急!在线等)用lingo 10.0建模时出现以下错误:invalid input.A syntax error has occured.代码如下:MODEL:DATA:M=1;ENDDATAmin=(13.6+1000*M)*x1+(12.45+800*M)*x2+(12.3+800*M)*x3+(10.15+1000*M)*x4; 目标函数;x1=10;x1+x2=25;x1+x2
(急!在线等)用lingo 10.0建模时出现以下错误:invalid input.A syntax error has occured.
代码如下:
MODEL:
DATA:
M=1;
ENDDATA
min=(13.6+1000*M)*x1+(12.45+800*M)*x2+(12.3+800*M)*x3+(10.15+1000*M)*x4; 目标函数;
x1=10;
x1+x2=25;
x1+x2+x3=50;
x1+x2+x3+x4=70;
@GIN(x1);@GIN(x2);@GIN(x3);@GIN(x4);!指定产品件数为整数;
END;
(急!在线等)用lingo 10.0建模时出现以下错误:invalid input.A syntax error has occured.代码如下:MODEL:DATA:M=1;ENDDATAmin=(13.6+1000*M)*x1+(12.45+800*M)*x2+(12.3+800*M)*x3+(10.15+1000*M)*x4; 目标函数;x1=10;x1+x2=25;x1+x2
MODEL:!改成英文状态下的冒号;
DATA:
M=1;
ENDDATA
min=(13.6+1000*M)*x1+(12.45+800*M)*x2+(12.3+800*M)*x3+(10.15+1000*M)*x4; !目标函数;!改成英文状态下的分号;
x1=10;
x1+x2=25;
x1+x2+x3=50;
x1+x2+x3+x4=70;
@GIN(x1);@GIN(x2);@GIN(x3);@GIN(x4);!指定产品件数为整数;!改成英文状态下的分号;
END;