我是GAMS的新手,正在努力寻找有用的在线教程。有人可以回答我以下问题吗?...
参数和变量之间有什么区别。从我们的大学课程来看,它们似乎是相同的,尽管我想我错过了一些东西。
我们的第一个程序具有以下代码。
Parameters
el_supply Price elasticity of supply in the EU
el_dem Price elasticity of demand in the EU
int_supply Supply intercept in the EU
int_dem Demand intercept in the EU
tp Rate of technical progress
chg_dem Rate of change in demand
;
el_supply = 0.5;
el_dem = -0.1;
Variables
SUPPLY Supply of wheat in the EU (Mio t)
DEMAND Demand of wheat in the EU (Mio t)
NX Net exports of wheat in the EU (Mio t)
PRICE Wheat price in the EU (Euro per t)
;
答案 0 :(得分:0)
简而言之,参数包含数据,变量是优化器做出的决定。
但这实际上是以前问过的,并在此处进行了详细解答:In GAMS, what is the difference between variables and parameters?
如果您正在寻找基础教程,可以在这里找到一个:https://www.gams.com/latest/docs/UG_Tutorial.html