(急!在线等)用lingo 10.0建模时出现以下错误:invalid input.A syntax error has
来源:学生作业帮 编辑:大师作文网作业帮 分类:综合作业 时间:2024/11/11 06:31:49
(急!在线等)用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;
代码如下:
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;
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;
再问: 谢谢,可是改了之后又出现了新的错误!
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
lingo中错误代码11,Invalid input .A syntax error has occured.3] I/
lingo8.0错误11 Invalid input.A syntax error has occurred 哪里有错误
lingo a syntax error has occurred
lingo错误代码11:a syntax error has occured
lingo 程序出错 syntax error has occurred
lingo错误1017怎么办,在线等,急
ArcGIS栅格计算器计算时为什么出现错误Syntax error at or near symbol
fortran程序出现错误,错误 1 error #5082:Syntax error,found IDENTIFIER
- Syntax error on token ",",< expected - This method has a c
急!lingo程序运行时出现以下错误:index variables may not share names with
越狱时打开absinthe出现错误,显示error The attached device has a backup p