GAMS展示风格 [英] GAMS Display style

查看:65
本文介绍了GAMS展示风格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在GAMS中显示文本? 例如:在MATLAB中,我可以使用disp('MATLAB'),然后将输出作为MATLAB.

How do I display a text in GAMS? For example: in MATLAB I can use disp('MATLAB'), then I will get the output as MATLAB.

在GAMS中是否可能有这种情况.实际上,我是GAMS环境的新手.

Is it possible to have like this in GAMS. In fact, I am new with GAMS environment.

致谢

推荐答案

实际上有两种方法:

  • $log "text to display",如果您希望它出现在编译阶段(仅在.log文件中显示)
  • display "text to display" ;,如果您希望它在执行阶段中显示(仅在.lst文件中显示)
  • $log "text to display" if you want it to appear during the compilation phase (and shows only in .log file)
  • display "text to display" ; if you want it to appear during the execution phase (and shows only in .lst file)

这篇关于GAMS展示风格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆