首页 > 解决方案 > 变量和参数之间的区别

问题描述

我是 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)
;

标签: gams-math

解决方案


简而言之,参数包含数据,变量是优化器做出的决定。

不过这个其实之前问过,这里详细回答:在GAMS中,变量和参数有什么区别?

如果您正在寻找基本教程,可以在这里找到:https ://www.gams.com/latest/docs/UG_Tutorial.html


推荐阅读