GAMS Display style

本秂侑毒 提交于 2019-12-24 04:51:34

问题


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.

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

Regards


回答1:


display "Hi, warning message here!"

... should work. This will appear in your .LST file, which you should get familiar with reading for debugging purposes.




回答2:


There are actually two ways:

  • $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)


来源:https://stackoverflow.com/questions/28664155/gams-display-style

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!