数学建模社区-数学中国

标题: 请教lingo11.0中关键字的识别问题~ [打印本页]

作者: zhanghe4632    时间: 2011-1-26 16:42
标题: 请教lingo11.0中关键字的识别问题~
我是第一次用lingo,用的是论坛里的11.0免安装版。
lingo的帮助中有这样一段话:
A final feature you will notice is that LINGO’s editor is "syntax aware." In other words, when it encounters LINGO keywords it displays them in blue, comments are displayed in green, and all remaining text is displayed in black.
但是在使用中max等关键字好像没有被识别!
我试的代码如下:
max=100*s+150*t;
s<=100;
t<=120;
s+2*t<=160;

solve后显示错误是invalid input. a syntax error has occured.
max=100*s+150*t;
       ^
请高人指教~

作者: shengshengchina    时间: 2011-10-6 19:57
  Global optimal solution found.
  Objective value:                              14500.00
  Infeasibilities:                              0.000000
  Total solver iterations:                             0


                       Variable           Value        Reduced Cost
                              S        100.0000            0.000000
                              T        30.00000            0.000000

                            Row    Slack or Surplus      Dual Price
                              1        14500.00            1.000000
                              2        0.000000            25.00000
                              3        90.00000            0.000000
                              4        0.000000            75.00000




欢迎光临 数学建模社区-数学中国 (http://www.madio.net/) Powered by Discuz! X2.5